/*.sap-grid {*/
/*  display: grid;*/
/*  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));*/
/*  gap: 5px;*/
/*}*/

/*@media (max-width: 600px) {*/
/*  .sap-grid {*/
/*    grid-template-columns: repeat(2, 1fr);*/
/*  }*/
/*}*/

/* Update this class in your CSS */
.sap-grid {
  display: grid;
  /* Change 'auto-fit' to 'auto-fill' */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 10px; /* I increased gap slightly to look better */
  justify-content: start; /* Ensures items start from the left */
}

@media (max-width: 600px) {
  .sap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
}

/* Product Card */
/*.product-card {*/
/*  border: 1px solid #ddd;*/
/*  text-align: center;*/
/*  background: #fff;*/
/*  color: #e0e0e0;*/
/*  border-radius:8px;*/
  
  /*border: 2px solid #0073aa;   Stylish border color 
  border-radius: 6px;         Rounded corners */
/*}*/

/* Update this class */
.product-card {
  border: 1px solid #ddd;
  text-align: center;
  background: #fff;
  color: #e0e0e0;
  border-radius: 8px;

  /* --- ADD THESE 3 LINES --- */
  max-width: 300px; /* Forces the card to never exceed 300px */
  width: 100%;      /* Ensures it fills space on small screens */
  margin-left: 0;   /* Keeps the single card aligned to the left */
  /* ------------------------- */
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Product Image */
.product-image {
  width: calc(100% - 8px);
  margin: 4px;
  overflow: hidden;
  border-radius: 7px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}

/* Product Info */
.product-info {
  padding: 0 12px;
}

.product-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.product-code {
  margin-top: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  background-color: #e0f7fa;
  border: 1px solid #b2ebf2;
  padding: 5px;
  border-radius: 6px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 7px;
}

/* Buy Button */
.buy-button {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #ff6f00, #ffa726); /* Amber/orange */

  color: white;
  text-decoration: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: bold;
  border-top: 1px solid #eee;
  transition: background 0.3s ease;
  cursor: pointer;
  margin-bottom: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.buy-button:hover {
  background: linear-gradient(135deg, #e64a19, #f7703c);
}

/* Pagination Container */
.sap-pagination {
  text-align: center;
  margin: 30px 0;
}

/* Pagination Links */
.sap-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
  min-width: 40px;
}

/* Hover State */
.sap-pagination .page-numbers:hover {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

/* Current Page */
.sap-pagination .page-numbers.current {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
  font-weight: bold;
}

/* Prev/Next Arrows */
.sap-pagination .page-numbers.prev,
.sap-pagination .page-numbers.next {
  font-weight: bold;
}

body{
	background-color: #121212;
color: #e0e0e0;
}


/* Center the search box container */
#sap-search-box {
  display: block;            /* Make it block to center */
  margin: 20px auto;         /* Top/bottom margin + center horizontally */
  padding: 10px 15px;        /* Comfortable padding */
  width: 300px;              /* Fixed width (adjust as needed) */
  max-width: 90%;            /* Responsive on small screens */
  font-size: 16px;           /* Easy to read font size */
  border: 2px solid #0073aa; /* Stylish border color */
  border-radius: 6px;        /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
  transition: border-color 0.3s ease;
}

/* Border color on focus */
#sap-search-box:focus {
  border-color: #005177;
  outline: none;
  box-shadow: 0 0 8px #005177aa;
}

/* telegram button codes*/

 /* reset any default margins/padding that might create gaps */
    .sap-search, .center-box { margin: 0; padding: 0; }



    /* center container — keep minimal top gap (0) */
    .center-box {
        display: flex;
        justify-content: center;
        margin-top: 0; /* <-- set to 0 to remove gap */
        margin-bottom: 5px;
    }

    .telegram-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background-color: #0088cc;
        color: white;
        padding: 10px 18px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        transition: 0.3s;
    }

    .telegram-btn:hover { background-color: #0077b5; }

    .tg-icon { width: 24px; height: 24px; }



