body {
font-family: "Times New Roman", Times, serif;
    background-color: #fff;
}
/* header  #ffffff styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
  
.logo {
    display: flex;
    flex-direction: column;
}

.logo a {
    font-size: 24px;
    color: #8B4513; /* Vibrant brown #8B4513 color */
    text-decoration: none;
}

.slogan {
    font-size: 14px;
    color: #8B4513;
    font-style: italic;
    margin-top: 5px;
}
  
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.categories-dropdown {
    position: relative;
    margin-right: 20px;
}

.categories-btn {
    background-color: transparent;
    border: 2px solid #8B4513;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #8B4513;
    position: relative;
    left: 15px;
    transition: background-color 0.3s ease;
}

.categories-btn:hover {
    background-color: #057c19;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.categories-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown-content a:hover {
    background-color: #f5deb3;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #8B4513;
    border-radius: 25px;
    overflow: hidden;
    width: 620px;
    position: relative;
    right: 25px;
}

.search-bar input {
    border: none;
    padding: 10px;
    font-size: 13px;
    outline: none;
    flex: 1;
}
  
.search-icon {
    background-color: #057c19;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 8px;
    margin-left: -33px;
    cursor: pointer;
  }
  
.nav-buttons {
    display: flex;
    gap: 10px;
  }
  
.sign-in-btn,
.cart-btn, 
.cart2-btn{
    background: none;
    border: none;
    color: #8B4513;
    font-size: 20px;
    cursor: pointer;
  }
  
.sign-in-btn i,
.cart-btn i {
    font-size: 24px;
  }
  
  /* Hover Effects */
.categories-btn:hover,
.sign-in-btn:hover,
.cart-btn:hover,
.cart2-btn:hover,
.search-icon:hover {
    color: black; /* Tomato color on hover */
    transform: scale(1.1);
}
  
/* Mobile View */
  @media (max-width: 768px) {
.nav-container {
      flex-direction: column;
      align-items: center;
}
  
.search-bar {
      width: 100%;
}
  
.logo img {
      width: 50px;
}
  
.slogan {
      font-size: 10px;
}
  }
/* Below header */
/* Gift Strip */
.gift-strip {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #8B4513;
}

.gift-btn {
    background: white;
    color: #8B4513;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gift-btn:hover {
    transform: scale(1.05);
}

/* Advertising Banner */

/* Circle Button Section */
.circle-buttons {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: wheat;
}

.circle-button {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8B4513; /* Vibrant brown border */
    transition: transform 0.3s ease;
}

.circle-img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.circle-button p {
    margin-top: 10px;
    font-size: 16px;
    color:rgb(61, 58, 58);
    font-family: Arial, sans-serif;
    text-align: center;
    position: relative;
    font-weight: bold;
}

.circle-button p:hover {
    text-decoration: underline; /* Underline on hover */
}

.custom-items {
    padding: 20px;
    text-align: center;
    background-color: white;
}

.custom-items h2 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 20px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.item-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    transition: transform 0.3s;
}

.item-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.item-details {
    margin-top: 10px;
}

.item-details h3 {
    font-size: 16px;
    color: #8B4513;
    margin-bottom: 5px;
}

.item-details p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.add-to-cart {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-to-cart:hover {
    background-color: #FF6347;
    transform: scale(1.05);
}

/* business custom */


.business-customization {
    padding: 20px;
    background-color: white;
}

h2 {
    text-align: left;
    color: black;
    margin-bottom: 20px;
    font-family: 'Times New Roman', Times, serif;
    

}

.grid-container, .custom-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.grid-item, .custom-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.grid-item img, .custom-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.item-info, .grid-details {
    padding: 10px;
    text-align: center;
}

.item-info h3, .grid-details h3 {
    font-size: 18px;
    color: #8B4513;
}

/* business custom */

/* printable barner page or custom business */

/* Scoped Printable Banner Page Styles */
.printable-banner-page {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.printable-banner-page h2 {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    color: #8B4513 !important;
}

.printable-banner-page .product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.printable-banner-page .product-image img {
    width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.printable-banner-page .product-details {
    display: flex;
    flex-direction: column;
}

.printable-banner-page .product-details form label {
    margin-top: 10px !important;
}

.printable-banner-page .product-details form input,
.printable-banner-page .product-details form textarea {
    width: 100% !important;
    padding: 10px !important;
    margin-top: 5px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

.printable-banner-page button {
    margin-top: 15px !important;
    padding: 12px 20px !important;
    background-color: #8B4513 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 16px !important;
}

.printable-banner-page button:hover {
    background-color: #a55a32 !important;
}

.printable-banner-page #totalCost {
    margin-top: 10px !important;
    font-weight: bold !important;
    font-size: 18px !important;
}

/* printable barner page or custom business */

/* purchase tshirts page */

.purchase-content {
    padding: 20px;
    text-align: center;
   background-color: #ffffff;
}

.purchase-content h2 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 20px;
    background-color: #f5deb3;
}

.purchase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail-images img:hover {
    transform: scale(1.1);
}

.product-details {
    text-align: left;
}

.product-details h3 {
    color: #8B4513;
    font-size: 18px;
    margin-bottom: 10px;
}

label {
    font-size: 14px;
    display: block;
    margin-top: 10px;
}

select, input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
}

.add-to-cart {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.add-to-cart:hover {
    background-color: #FF6347;
}

/* arrows */

.image-gallery {
    position: relative;
    display: inline-block;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* popup sign in */

.cart-count {
    background-color: red;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.social-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.email-input {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.submit-btn {
    background-color: #8B4513;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
.seller-name {
    font-size: 14px;
    color: gray;}

/* General Styles for the Sections */
.item-feedback-section, .more-products-section {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    background-color: rgb(219, 171, 98);
}

/* Heading Styles */
.item-feedback-section h2, .more-products-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Feedback List Styles */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
   
}

.feedback-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.feedback-content {
    flex: 1;
}

.buyer-name {
    font-weight: bold;
    margin: 0;
}

.buyer-comment {
    margin: 5px 0;
    color: #555;
}

.rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #ddd;
}

.star.filled {
    color: #ffa500; /* Gold color for filled stars */
}

/* More Products Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
   
}

.product-card {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 10px;
}

.product-name {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    color: #333;
}

.product-price {
    font-size: 14px;
    color: #666;
}


/* end */


/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer-section p {
    font-weight: bold;
    font-size: 16px; /* Adjusted size for the titles */
    margin-bottom: 10px;
}

.app-icons a, .social-icons a, .payment-icons i {
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.app-icons a:hover, .social-icons a:hover, .payment-icons i:hover {
    color: #8B4513;
}

.subscribe input {
    width: 70%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    margin-right: 5px;
}

.subscribe button {
    background-color: #8B4513;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe button:hover {
    background-color: #5C3317;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 5px 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #8B4513;
}

.social-icons a {
    font-size: 20px;
    margin-right: 10px;
}

.payment-icons i {
    font-size: 20px;
    margin-right: 10px;
}

.payment-icons .fa-mobile-alt {
    font-size: 16px;
    margin-right: 5px;
}

footer .copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #ccc;
}


/* quick picks */
/* Quick Picks to Gift or Whatever Section */
.quick-picks-section {
    padding: 20px;
    background-color: #fff;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    margin-top: 30px;
}

.quick-picks-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

/* Quick Picks Grid Styles */
.quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.quick-pick-item {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-pick-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 10px;
}

.product-name {
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
    color: #333;
}

.product-price {
    font-size: 14px;
    color: #666;
}
/* Buy Now Button Styles */
.buy-now-button {
    background-color: #ff4500; /* Vibrant color for the button */
    color: #fff; /* White text color */
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.buy-now-button:hover {
    background-color: #ff6347; /* Slightly lighter shade for hover effect */
    transform: translateY(-3px); /* Lift effect on hover */
}



/* who are they */
/* Styling for the Who Are They Section */
.who-are-they-section {
    text-align: center;
    margin: 50px 0;
}

.who-are-they-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px; /* Reduced gap for smaller images */
    padding: 20px;
    scroll-snap-type: x mandatory;
}

.who-are-they-item {
    min-width: 120px; /* Reduced width for smaller items */
    max-width: 120px; /* Ensures consistent sizing */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.who-are-they-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.who-are-they-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.who-are-they-name {
    margin-top: 8px;
    font-size: 12px; /* Slightly smaller font size */
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
}
.subcategory-grid, .product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.subcategory-box, .product-box {
    text-align: center;
    width: 200px; /* Adjust as needed */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    text-decoration: none;
    color: #000;
}

.subcategory-box:hover, .product-box:hover {
    transform: scale(1.05);
}

.image-container {
    width: 100%;
    height: 180px; /* Adjust height as needed */
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box */
}

.subcategory-box p, .product-box p {
    padding: 10px;
    font-weight: bold;
}
.image-container {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    overflow: hidden;
    border-radius: 8px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the box */
    transition: transform 0.3s ease-in-out;
}

.image-container img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}
/* j*/
.quick-picks-section {
    padding: 20px;
    background: #fafafa;
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
}

.quick-picks-section h2 {
    font-family: Arial, sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: normal;
    color: #333;
}

.quick-picks-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.quick-picks-section .product-box {
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.quick-picks-section .product-box:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quick-picks-section .image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.quick-picks-section .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-picks-section .image-error {
    width: 100%;
    height: 100%;
    background: #f2dede;
    color: #a94442;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}

.quick-picks-section .product-name {
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin: 8px 0 4px;
}

.quick-picks-section .product-price {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #27ae60;
    margin: 0;
}

.view-all-container {
    margin-top: 10px;
}

.view-all-button {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    background: #8B4513;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.view-all-button:hover {
    background: #a0522d;
}

.popular-categories {
    padding: 30px;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    font-family: Arial, sans-serif;
}
.popular-categories h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
}
.popular-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.popular-item {
    text-decoration: none;
    color: #333;
    width: 150px;
    transition: transform 0.3s;
}
.popular-item:hover {
    transform: scale(1.05);
}
.popular-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.popular-item p {
    margin-top: 8px;
    font-size: 14px;
}

.top-deals-section {
    padding: 20px;
    background-color: #f9f9f9;
    margin: 20px auto;
    max-width: 1200px;
  }
  .top-deals-section h2 {
    text-align: center;
    font-family: Arial, sans-serif;
    margin-bottom: 15px;
  }
  .deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .deal-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
  }
  .deal-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .deal-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  .deal-price {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #27ae60;
    margin: 5px 0;
  }
  .deal-timer {
    background-color: #0099ff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  /* shop.php */
  /* Global resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
  }
  
  /* Container */
  .shop-container {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 16px;
  }
  
  /* Sidebar */
  .sidebar {
    flex: 0 0 240px;
  }
  .breadcrumb {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .breadcrumb a {
    color: #555;
    text-decoration: none;
  }
  .breadcrumb a:hover {
    text-decoration: underline;
  }
  .subcategory-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .subcategory-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    font-size: 14px;
  }
  .subcategory-item:hover {
    background: #f0f0f0;
  }
  
  /* Main content */
  .shop-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  
  /* Sort bar */
  .sort-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  .sort-container select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  /* Product Grid */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
  }
  .product-box {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
  }
  .product-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .image-container {
    width: 100%;
    padding-top: 75%; /* maintains aspect ratio */
    position: relative;
    background: #eee;
  }
  .image-container img,
  .image-container .image-error {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .caption,
  .product-price,
  .product-rating {
    padding: 8px 12px;
  }
  .caption {
    font-size: 16px;
    font-weight: 600;
  }
  .product-price {
    font-size: 14px;
    color: #27ae60;
    margin-top: 4px;
  }
  .product-rating {
    font-size: 12px;
    color: #f1c40f;
    margin-top: 2px;
  }
  
  /* Section headings */
  .product-section h2,
  .related-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .pagination a {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
  }
  .pagination a.active {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
  }
  
  /* Related Products */
  .related-section {
    margin-top: 32px;
  }
  /* Mobile view for the gift-strip section */
@media (max-width: 768px) {
    .gift-strip {
      display: flex;
      overflow-x: auto;               /* enable horizontal scroll */
      -webkit-overflow-scrolling: touch;
      gap: 8px;                       /* space between buttons */
      padding: 8px 16px;              /* container padding */
      white-space: nowrap;            /* keep buttons on one line */
    }
  
    .gift-strip .gift-btn {
      flex: none;                     /* keep original button width/shape */
      white-space: nowrap;            /* prevent text wrap */
      padding: 8px 12px;              /* adjust padding for mobile */
      font-size: 14px;                /* slightly smaller text */
    }
  }