
/* --- Global Styles & Brand Colors --- */
/* --- PALETTE 3: Modern Apothecary (Dark Brown, Gray & Gold) --- */
:root {
  /* A very dark, rich espresso brown for primary text and the footer. */
  --brand-primary: #4E342E;

  /* A true black for hover states, creating a subtle, premium feel. */
  --brand-dark: #3E2723;

  /* An elegant, muted gold/ochre for buttons, links, and important accents. */
  --brand-action: #D4A25F;

  /* A slightly richer gold for hover states. */
  --brand-action-hover: #C19153;

  /* A very light, warm gold for subtle highlights. */
  --brand-light: #F1E4D2;

  /* A clean, bright, and neutral light gray for section backgrounds. */
  --brand-lightest: #F4F4F6;

  --text-secondary: #546E7A;
  --border-color: #e5e7eb; /* Light gray for borders */
}
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #f9fafb; /* Off-white background for the body */
  color: #374151; /* Default text color */
  overflow-x: hidden; /* Prevent horizontal scroll */
  -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
  -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Consistent spacing between main sections */
  padding-bottom: 3rem; /* Space at the bottom before footer */
}

/* --- Header & Mobile Sidebar --- */
header {
  position: sticky; top: 0; z-index: 50; background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}
.header-title, .header-link, #menu-toggle, .mobile-sidebar-header .text-lg, .mobile-sidebar-nav a {
    color: var(--brand-primary);
    text-decoration: none;
}
.header-link:hover { color: var(--brand-dark); }
.header-logo { height: 40px; width: auto; }

.cart-count {
    background-color: var(--brand-lightest); color: var(--brand-primary);
    font-size: 0.75rem; font-weight: 600;
    padding: 2px 8px; border-radius: 999px; /* Pill shape */
    min-width: 1.5em; text-align: center; line-height: 1.5; /* Ensure it looks good even with single digit */
}
.cart-count:empty, .cart-count:has(span:empty) { display: none; }
.cart-count:not(:empty) { display: inline-block; }


.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 80%;
    max-width: 280px; /* Sensible max width */
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); /* Shadow on the right side */
    transition: left 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother transition */
    z-index: 100; /* Above overlay */
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
}
.mobile-sidebar.open {
    left: 0; /* Slide in from the left */
}

.mobile-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.mobile-sidebar-close { background: none; border: none; font-size: 1.5rem; color: var(--brand-primary); cursor: pointer; padding: 0.5rem; line-height: 1; }
.mobile-sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-sidebar-nav a { font-size: 1rem; padding: 0.75rem; border-radius: 0.5rem; transition: background-color 0.2s, color 0.2s; }
.mobile-sidebar-nav a:hover { background-color: var(--brand-lightest); color: var(--brand-action); }

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 99; /* Below sidebar, above content */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.overlay.active {
    display: block;
    opacity: 1;
}

/* Base Card Styling */
.card {
    position: relative; background-color: #ffffff; border: 1px solid var(--border-color); border-radius: 0.75rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; min-height: 320px; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.card-image { width: 100%; height: 140px; background-size: cover; background-position: center; flex-shrink: 0; }
.card-info { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.card-name { font-size: 1rem; font-weight: 500; color: var(--brand-primary); margin-bottom: 0.5rem; line-height: 1.4; height: 2.8em; /* approx 2 lines */ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-price { font-size: 0.875rem; color: #4b5e77; margin-bottom: 1rem; }
.add-to-cart-btn {
    background-color: var(--brand-action); color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem;
    font-size: 0.875rem; font-weight: 500; border: none; cursor: pointer; transition: background-color 0.2s; margin-top: auto; flex-shrink: 0;
}
.add-to-cart-btn:hover { background-color: var(--brand-action-hover); }


/* Search Section */
.search-section { 
    position: relative; 
    text-align: center; 
    min-height: 400px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 2rem 1rem; 
    /* The "overflow: hidden;" property has been REMOVED */
}
.background-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background-image: url(/images/hero-background.jpg); background-size: cover; background-position: center; background-attachment: fixed; }
.background-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(38, 50, 56, 0.7); z-index: 1; } /* Darker overlay for better text contrast */
.search-section .max-w-3xl { z-index: 10; /* Ensure content is above overlay */ }
.search-section #search-btn { background-color: var(--brand-action); }
.search-section #search-btn:hover { background-color: var(--brand-action-hover); }

#search-dropdown {
    position: absolute; top: calc(100% + 4px); /* Small gap */ left: 0; right: 0;
    background-color: white; border: 1px solid var(--border-color); border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 45; max-height: 300px; overflow-y: auto; display: none;
}
#search-dropdown.open { display: block; }
.search-dropdown-item { display: flex; align-items: center; padding: 0.75rem 1rem; cursor: pointer; transition: background-color 0.2s; text-decoration: none; color: inherit; }
.search-dropdown-item:hover { background-color: #f3f4f6; } /* Light gray hover */
.search-dropdown-item img { width: 40px; height: 40px; margin-right: 0.75rem; object-fit: cover; border-radius: 0.25rem; }
.search-dropdown-item .price { margin-left: auto; font-weight: 500; color: var(--brand-primary); }

/* Section Headings */
.section-heading { font-size: 2rem; font-weight: 600; color: var(--brand-primary); text-align: center; margin-bottom: 0.75rem; }
.heading-line { width: 80px; height: 3px; background-color: var(--brand-light); margin: 0 auto 2rem; }

/* Carousel Base Styles */
.carousel-wrapper { position: relative; overflow: hidden; max-width: 100%; margin: 0 auto; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition */ }
.arrow-button {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 40px; height: 40px;
    display: none; /* Hidden by default, shown on larger screens */
    align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--brand-primary);
    transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    cursor: pointer; border: 1px solid var(--border-color);
}
@media (min-width: 768px) { .arrow-button { display: flex; } } /* Show arrows on medium screens and up */
.arrow-button:hover { background-color: #ffffff; transform: translateY(-50%) scale(1.1); }
.arrow-button.disabled { opacity: 0.4; cursor: not-allowed; transform: translateY(-50%) scale(1); background-color: rgba(230, 230, 230, 0.8); }
.arrow-button.left-2 { 
    left: 0.5rem; 
}
.arrow-button.right-2 { 
    right: 0.5rem; 
}

/* Adjust position slightly for a bit more space on larger screens */
@media (min-width: 768px) {
    .arrow-button.left-2 { left: 1rem; }
    .arrow-button.right-2 { right: 1rem; }
}


/* Banner Carousel */
.banner { flex: 0 0 100%; padding: 0.5rem; height: 200px; box-sizing: border-box; scroll-snap-align: center; }
@media (min-width: 768px) { .banner { flex: 0 0 50%; height: 300px; } }
.banner-inner { height: 100%; border-radius: 1rem; background-color: #f3f4f6; overflow: hidden; }
.banner-inner img { width: 100%; height: 100%; object-fit: cover; }

/* Shop by Category Section */
.shop-category-section { padding: 3rem 1rem; background: #ffffff; }
.category-container { max-width: 1200px; margin: 0 auto; display: flex; gap: 2rem; flex-direction: column; }
@media (min-width: 768px) { .category-container { flex-direction: row; } }

.category-sidebar {
    flex: 1 1 100%; background-color: #ffffff; border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); padding: 1rem;
    border: 1px solid var(--border-color); /* Added border for definition */
}
@media (min-width: 768px) {
    .category-sidebar { flex: 0 0 240px; max-height: 600px; overflow-y: auto; }
}

.category-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; /* For horizontal scroll on mobile */
}
@media (min-width: 768px) { /* Vertical layout on larger screens */
    .category-list { flex-direction: column; gap: 0.25rem; /* Smaller gap for vertical */ overflow-x: hidden; padding-bottom: 0; }
}
.category-list::-webkit-scrollbar { display: none; } /* Hide scrollbar */

.category-item {
    display: flex; align-items: center; padding: 0.75rem 1rem; flex-shrink: 0;
    font-size: 0.95rem; color: var(--brand-primary);
    cursor: pointer; border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s; position: relative; text-decoration: none;
}
.category-icon {
    width: 28px; height: 28px; margin-right: 0.75rem;
    background-size: cover; background-position: center; border-radius: 50%;
    flex-shrink: 0;
}
/* REFINED: Category Name Styling for BOLD */
.category-sidebar .category-list .category-item .category-item-name {
    font-weight: 600; /* Make it bold */
    color: inherit; /* Inherit color from .category-item initially */
    transition: color 0.2s;
}

.category-item:hover,
.category-item.active {
    background-color: var(--brand-lightest);
}
/* Ensure the name text color changes correctly on hover/active */
.category-item:hover .category-item-name,
.category-item.active .category-item-name {
    color: var(--brand-action);
}


.product-grid-container { flex: 1; position: relative; min-height: 300px; padding-top: 0.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; transition: opacity 0.3s ease; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.view-all-link { display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--brand-action); margin-bottom: 1rem; text-decoration: none; }
.view-all-link:hover { text-decoration: underline; }

/* Deals Section & Similar Carousels */
.deals-section { padding: 3rem 1rem; background: var(--brand-lightest); }
.deals-grid, .brands-grid, .blog-grid { /* Common grid styling for carousels */
    display: flex; gap: 1.5rem; padding-bottom: 0.5rem; /* Padding for scrollbar if visible */
}

.deal-card, .deals-grid > .card { flex-shrink: 0; width: 80%; scroll-snap-align: start; } /* Mobile first: 80% width */
@media (min-width: 480px) { .deal-card, .deals-grid > .card { width: calc(60% - 0.75rem); } } /* Small devices */
@media (min-width: 640px) { .deal-card, .deals-grid > .card { width: calc(50% - 0.75rem); } } /* SM */
@media (min-width: 768px) { .deal-card, .deals-grid > .card { width: calc(33.333% - 1rem); } } /* MD */
@media (min-width: 1024px) { .deal-card, .deals-grid > .card { width: calc(25% - 1.125rem); } } /* LG */
@media (min-width: 1280px) { .deal-card, .deals-grid > .card { width: calc(20% - 1.2rem); } } /* XL */

.deal-prices { display: flex; justify-content: center; align-items: baseline; gap: 0.5rem; }
.deal-original-price { font-size: 0.875rem; color: #6b7280; text-decoration: line-through; }
.deal-discounted-price { font-size: 1rem; font-weight: 600; color: var(--brand-action); }
.deal-badge { position: absolute; top: 0.75rem; left: 0.75rem; background-color: var(--brand-action); color: #ffffff; font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 0.25rem; }

.loading-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border: 4px solid #e5e7eb; border-top: 4px solid var(--brand-primary); border-radius: 50%; animation: spin 1s linear infinite; display: none; z-index: 5; }
.loading-spinner.active { display: block; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Responsive Carousel (Swipe on Mobile, Arrows on Desktop) */
.responsive-carousel .carousel-track, .category-nav .carousel-track {
    flex-wrap: nowrap;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (max-width: 767px) { /* Mobile and Tablet portrait */
    .responsive-carousel .carousel-wrapper, .category-nav .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory; /* Enable swipe snapping */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
        touch-action: pan-x; /* Allow horizontal panning */
    }
    .responsive-carousel .carousel-wrapper::-webkit-scrollbar, .category-nav .carousel-wrapper::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .responsive-carousel .carousel-track > *, .category-nav .carousel-track > * {
        scroll-snap-align: start; /* Snap items to the start */
    }
    .responsive-carousel .arrow-button, .category-nav .arrow-button {
        display: none !important; /* Hide arrows on smaller screens */
    }
}

/* Category Navigation (Sticky Top Bar) */
.category-nav { position: sticky; top: 64px; /* Adjust if header height changes */ z-index: 40; background-color: #ffffff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
.category-nav .carousel-track { display: flex; gap: 1rem; padding: 0.75rem 1rem; }
.category-nav-item { flex-shrink: 0; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 999px; background-color: var(--brand-lightest); color: var(--brand-primary); text-decoration: none; transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
.category-nav-item:hover { background-color: var(--brand-light); color: var(--brand-dark); } /* Use brand-light for hover */

/* Featured Brands Section */
.featured-brands-section { padding: 3rem 1rem; background: #ffffff; }
/* .brands-grid defined with .deals-grid */
.brand-card { flex-shrink: 0; width: 45%; min-height: 160px; scroll-snap-align: start; }
@media (min-width: 480px) { .brand-card { width: calc(33.333% - 1rem); } }
@media (min-width: 768px) { .brand-card { width: calc(25% - 1.125rem); } }
@media (min-width: 1024px) { .brand-card { width: calc(20% - 1.2rem); } } /* 5 items on large screens */

.brand-image { width: 100%; height: 100px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #f9fafb; border-bottom: 1px solid var(--border-color); }
.brand-info { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.brand-name { font-size: 1rem; font-weight: 500; color: var(--brand-primary); }

/* Blog Section */
.blog-section { padding: 3rem 1rem; background: var(--brand-lightest); }
/* .blog-grid defined with .deals-grid */
.blog-card {
    flex-shrink: 0; width: 90%; /* Mobile: almost full width */
    background: #fff; border-radius: 0.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden; display: flex; flex-direction: column; min-height: 380px; scroll-snap-align: start;
}
@media (min-width: 640px) { .blog-card { width: calc(50% - 0.75rem); } } /* SM: 2 items */
@media (min-width: 1024px) { .blog-card { width: calc(33.333% - 1rem); } } /* LG: 3 items */
@media (min-width: 1280px) { .blog-card { width: calc(25% - 1.125rem); } } /* XL: 4 items */

.blog-image { width: 100%; height: 160px; background-size: cover; background-position: center; }
.blog-info { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category { font-size: .75rem; color: var(--brand-action); background: var(--brand-lightest); padding: .25rem .5rem; border-radius: .25rem; align-self: flex-start; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-title { font-size: 1.125rem; /* Slightly larger title */ font-weight: 600; color: var(--brand-primary); margin-bottom: .5rem; line-height: 1.4; }
.blog-description { font-size: .875rem; color: #4b5e77; flex-grow: 1; margin-bottom: 1rem; line-height: 1.6; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: .875rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.blog-read-more { color: var(--brand-action); font-weight: 500; text-decoration: none; }
.blog-read-more:hover { text-decoration: underline; }
.blog-date { color: #6b7280; }

/* Customer Reviews Section */
.pro-reviews-section { padding: 3rem 1rem; background: #ffffff; }
.pro-reviews-container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) { .pro-reviews-container { grid-template-columns: repeat(2, 1fr); } } /* MD: 2 columns */
@media (min-width: 1024px) { .pro-reviews-container { grid-template-columns: repeat(3, 1fr); } } /* LG: 3 columns */

.pro-review-card {
    background: #fff; border-radius: 1rem; padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color);
}
.pro-review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.pro-review-content { flex-grow: 1; }
.pro-review-rating { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 1rem; } /* Centered stars in existing reviews */
.pro-review-star { width: 18px; height: 18px; color: #facc15; /* Gold color for stars */ }
.pro-review-star[fill="none"] { color: #e5e7eb; /* Light gray for empty stars */ }
.pro-review-text { font-size: 0.875rem; color: #4b5e77; line-height: 1.6; margin: 0; font-style: italic; text-align: center; } /* Centered review text */
.pro-review-footer { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.pro-review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-light); }
.pro-review-user-info { flex-grow: 1; }
.pro-review-author { font-size: 1rem; font-weight: 600; color: var(--brand-primary); margin: 0; }
.pro-review-date { font-size: 0.75rem; color: #6b7280; }

/* Submit Your Review Section */
.submit-review-section {
    padding: 3rem 1rem;
    background-color: var(--brand-lightest);
}

.review-form-container {
    background-color: #ffffff;
    padding: 2.5rem; /* Increased padding */
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.07); /* Slightly enhanced shadow */
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5rem; /* Consistent spacing between form groups */
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 0.6rem; /* Slightly more space below label */
}
.form-label.text-center {
    text-align: center;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem; /* Slightly taller inputs */
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif; /* Ensure font consistency */
    color: #374151;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0; /* Lighter placeholder text */
    opacity: 1;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-action);
    box-shadow: 0 0 0 3px rgba(212, 162, 95, 0.25);
}

.form-textarea {
    resize: vertical;
    min-height: 120px; /* Taller textarea */
}

/* Centering Star Rating in Form */
.star-rating-input-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem; /* Space below stars before next field */
}

.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.2em; /* Slightly more gap between stars */
}
.star-rating-input input[type="radio"] {
    display: none;
}
.star-rating-input label {
    font-size: 2.5rem; /* Larger stars */
    color: #cbd5e0; /* Default unselected star color (Tailwind gray-400) */
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    line-height: 1;
    padding: 0 0.1em;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input[type="radio"]:checked ~ label {
    color: #facc15; /* Gold for selected/hovered (Tailwind yellow-400) */
}

/* Submit Button Centering and Styling */
.review-form-container .text-center {
    text-align: center;
    margin-top: 2.5rem; /* More space above the button */
}

.submit-review-button {
    display: inline-block;
    padding: 0.85rem 2.5rem; /* Taller and wider button */
    background-color: var(--brand-action);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.submit-review-button:hover:not(:disabled) {
    background-color: var(--brand-action-hover);
    transform: translateY(-1px); /* Subtle lift on hover */
}
.submit-review-button:active:not(:disabled) {
    transform: translateY(0px); /* Press down effect */
}
.submit-review-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* FAQ Section */
.faq-section { padding: 3rem 1rem; background: #ffffff; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; margin-bottom: 1rem; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; cursor: pointer; font-weight: 500; color: var(--brand-primary); background-color: #fcfcfc; transition: background-color 0.2s; }
.faq-question span { flex: 1; }
.faq-question:hover { background-color: #f3f4f6; } /* Light hover for question */
.faq-arrow { transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; color: var(--brand-action); }
.faq-answer { display: none; padding: 0 1.25rem 1.25rem; color: #4b5e77; line-height: 1.6; border-top: 1px solid #eee; margin-top: -1px; /* Overlap border */ }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }

/* --- Footer Section --- */
.footer-section { background-color: var(--brand-primary); color: #ffffff; padding: 3rem 1rem 1rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-container { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-container { grid-template-columns: repeat(5, 1fr); } } /* Adjusted for 5 columns */

.footer-column h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; color: var(--brand-light); }
.newsletter-input { width: 100%; padding: .75rem; border-radius: .5rem; border: none; color: #1f2937; margin-bottom: .75rem; box-sizing: border-box; }
.newsletter-button {
    width: 100%; padding: .75rem; border-radius: .5rem; border: none;
    background-color: var(--brand-action);
    color: #ffffff;
    font-weight: 500; cursor: pointer; transition: background-color 0.2s;
}
.newsletter-button:hover { background-color: var(--brand-action-hover); }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { color: var(--brand-lightest); transition: color 0.2s; display: inline-block; } /* ensure proper sizing */
.social-icons a svg { width: 24px; height: 24px; } /* Explicit size for social SVGs */
.social-icons a:hover { color: var(--brand-action); }
.footer-column a, .footer-column p { font-size: 0.875rem; color: #e5e7eb; margin-bottom: 0.5rem; text-decoration: none; display: flex; align-items: flex-start; /* Align icon with first line of text */ transition: color 0.2s; }
.footer-column a:hover { color: var(--brand-action); }
.footer-column .address-line span { line-height: 1.5; } /* Better line height for multi-line addresses */
.footer-icon { width: 1rem; height: 1rem; margin-right: 0.75rem; flex-shrink: 0; stroke: currentColor; opacity: 0.8; transition: opacity 0.2s; margin-top: 0.2em; /* Align icon slightly better with text */ }

/* --- NEW OR MODIFIED: Payment Partners Styles --- */
.payment-partners-section {
    max-width: 1200px; /* Or match your main content width */
    margin-left: auto;   /* Center the section block */
    margin-right: auto;  /* Center the section block */
    margin-top: 2.5rem;    /* Space above */
    margin-bottom: 2rem;   /* Space below */
    padding: 1.5rem 1rem;  /* Internal padding */
    text-align: center;    /* Center the title text */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.payment-partners-title {
    font-size: 1.125rem;      /* Consistent with other footer H3s */
    font-weight: 600;
    color: var(--brand-light); /* Consistent title color */
    margin-bottom: 1.5rem;   /* Space below title */
    text-align: center;      /* Explicitly center title */
}

.payment-icons-container {
    display: flex;          /* Enable flexbox */
    flex-wrap: wrap;        /* Allow items to wrap to the next line on smaller screens */
    justify-content: center;/* HORIZONTALLY center the flex items (icons) within the container */
    align-items: center;    /* VERTICALLY center the flex items if they have different heights */
    gap: 1.5rem;            /* Consistent gap between icons, works for rows and columns */
                                /* You can use two values for row-gap and column-gap if needed: e.g., gap: 1rem 1.5rem; */
}

.payment-icon {
    height: 28px;           /* Base height for icons */
    width: auto;            /* Let width scale proportionally for SVGs */
    max-width: 70px;        /* Max width for PNGs or very wide SVGs */
    flex-shrink: 0;         /* Prevent icons from shrinking if container is too small before wrapping */
    object-fit: contain;    /* Ensures the image is scaled correctly within its bounds */

    /* Styling for monochrome light appearance */
   /* filter: brightness(0) invert(1) opacity(0.75); */
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.payment-icon:hover {
    filter: brightness(0) invert(1) opacity(0.75); /* Become fully opaque white on hover */
    /* Or to show original colors on hover:
    filter: none;
    opacity: 1;
    */
}

/* Specific class for Zelle if it's a colored PNG and shouldn't be filtered by default */
.payment-icon.zelle-icon {
    filter: none; /* Remove the monochrome filter */
    opacity: 0.85; /* Still apply some base opacity if desired */
}
.payment-icon.zelle-icon:hover {
    opacity: 1; /* Full opacity on hover */
}
/* --- END REFINED: Payment Partners Styles --- */

/* Ensure your .footer-bottom is styled to appear after this section */
.footer-bottom {
    text-align: center;
    padding-top: 2rem; /* Space above copyright */
    margin-top: 0; /* Reset margin if it was there before */
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); -- This might have been removed if payment partners has borders */
    font-size: 0.875rem;
    color: #e5e7eb;
}


/* Toast Notification */
#toast-notification {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1000; /* Ensure it's on top */
    padding: 0.75rem 1.25rem; border-radius: 0.5rem; color: white; font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0; transform: translateY(20px); pointer-events: none;
}
#toast-notification.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Scroll Animations */
.scroll-fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-fade-up.visible { opacity: 1; transform: translateY(0); }
.scroll-fade-up.visible .stagger-child { animation: fade-in-up 0.6s ease-out forwards; animation-delay: var(--stagger-delay, 0s); opacity: 0; }
@keyframes fade-in-up { to { opacity: 1; transform: translateY(0); } }

/* --- PRODUCT PAGE SPECIFIC STYLES --- */
.breadcrumb { font-size: 0.875rem; color: #4b5563; }
.breadcrumb a { color: var(--brand-action); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.separator { margin: 0 0.5rem; color: #9ca3af; }

.product-details-section .product-container { display: grid; grid-template-columns: 1fr; gap: 2rem; background-color: #fff; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 1.5rem; border: 1px solid var(--border-color); }
@media (min-width: 768px) { .product-details-section .product-container { grid-template-columns: 1fr 1.2fr; padding: 2.5rem; } }
.main-product-image { width: 100%; height: auto; max-height: 450px; object-fit: contain; border-radius: 0.5rem; border: 1px solid var(--border-color); }
.product-content { display: flex; flex-direction: column; gap: 1rem; }
.category-tag { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; color: var(--brand-action); background-color: var(--brand-lightest); border-radius: 999px; text-decoration: none; align-self: flex-start; }
.product-title { font-size: 1.75rem; font-weight: 600; color: var(--brand-primary); }
.price-container { display: flex; align-items: baseline; gap: 0.75rem; }
.discounted-price { font-size: 1.75rem; font-weight: 600; color: var(--brand-primary); }
.original-price { font-size: 1.125rem; color: #9ca3af; text-decoration: line-through; }
.product-description { font-size: 0.9rem; color: #4b5563; line-height: 1.7; }
.product-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #f3f4f6; }
.quantity-selector { display: flex; align-items: center; gap: 0.5rem; }
.quantity-btn { width: 44px; height: 44px; background-color: #f3f4f6; border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 1.25rem; cursor: pointer; transition: background-color 0.2s; }
.quantity-btn:hover { background-color: #e5e7eb; }
.quantity-input { width: 60px; height: 44px; border: 1px solid var(--border-color); border-radius: 0.5rem; text-align: center; font-size: 1rem; font-weight: 500; -moz-appearance: textfield; }
.quantity-input::-webkit-outer-spin-button, .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.related-products-section { padding-top: 2rem; }
.related-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }

/* --- Styles for the "Packaging" Field --- */
.card-packaging { font-size: 0.8rem; font-weight: 500; color: #6b7280; background-color: #f3f4f6; padding: 0.2rem 0.5rem; border-radius: 0.25rem; display: inline-block; margin: 0 auto 0.75rem auto; }
.product-packaging-detail { font-size: 1rem; font-weight: 500; color: #4b5563; margin-top: -0.5rem; margin-bottom: 0.5rem; }

/* --- CART PAGE SPECIFIC STYLES --- */
.cart-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .cart-container { grid-template-columns: 2fr 1fr; } }
.cart-items-container, .cart-summary { background-color: #ffffff; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 1.5rem; border: 1px solid var(--border-color); }
.cart-header { display: none; }
@media (min-width: 768px) {
    .cart-header {
        display: grid; grid-template-columns: 1fr 120px 100px 40px; gap: 1.5rem;
        padding: 0 1rem 0.75rem 96px; border-bottom: 2px solid var(--border-color);
        font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase;
    }
    .header-quantity, .header-total { text-align: center; }
}
.cart-item {
    display: grid; align-items: center; gap: 1rem; padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
        "image details remove"
        "image quantity total";
}
@media (min-width: 480px) { .cart-item { grid-template-columns: 80px 1fr auto; } .cart-item-image { width: 80px; height: 80px; } }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { grid-area: image; width: 60px; height: 60px; object-fit: contain; border-radius: 0.5rem; border: 1px solid var(--border-color); }
.item-details { grid-area: details; display: flex; flex-direction: column; align-self: start; }
.cart-item-name { font-weight: 600; color: var(--brand-primary); text-decoration: none; line-height: 1.3; }
.cart-item-name:hover { text-decoration: underline; }
.cart-item-price { font-size: 0.85rem; color: #4b5563; margin-top: 0.25rem; }
/* .quantity-selector defined under product page, can be reused or made more specific */
.cart-item .quantity-selector { grid-area: quantity; justify-self: start; }
.cart-item-total { grid-area: total; justify-self: end; font-weight: 600; font-size: 1.1rem; }
.remove-btn { grid-area: remove; justify-self: end; background: none; border: none; color: #9ca3af; cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: color 0.2s, background-color 0.2s; }
.remove-btn:hover { color: #ef4444; background-color: #fee2e2; }

@media (min-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr 120px 100px 40px;
        grid-template-areas: "image details quantity total remove";
    }
    .remove-btn { align-self: center; }
    .cart-item .quantity-selector { justify-self: center; }
    .cart-item-total { text-align: center; }
}
.cart-summary { height: fit-content; position: sticky; top: 88px; /* Adjust based on header + category nav height */ }
.summary-item { display: flex; justify-content: space-between; padding: 0.75rem 0; color: #4b5563; border-bottom: 1px solid #f3f4f6; }
.shipping-note { font-size: 0.8rem; color: #4b5563; text-align: center; padding: 1rem; background-color: #f9fafb; border-radius: 0.25rem; margin: 1rem 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 600; color: var(--brand-primary); margin-top: 1rem; padding-top: 1rem; }
.checkout-btn { display: block; text-align: center; width: 100%; padding: 0.75rem; background-color: var(--brand-action); color: #ffffff; font-size: 1rem; font-weight: 500; border: none; border-radius: 0.5rem; cursor: pointer; transition: background-color 0.3s ease; margin-top: 1.5rem; text-decoration: none; }
.checkout-btn.disabled { background-color: #9ca3af; cursor: not-allowed; }
.checkout-btn:not(.disabled):hover { background-color: var(--brand-action-hover); }

.continue-shopping { display: block; text-align: center; font-size: 0.875rem; color: var(--brand-action); text-decoration: none; margin-top: 1rem; }
.continue-shopping:hover { text-decoration: underline; }

.empty-cart { text-align: center; padding: 3rem; background-color: #ffffff; border-radius: 0.75rem; grid-column: 1 / -1; }
.shop-now-btn { display: inline-block; padding: 0.75rem 1.5rem; background-color: var(--brand-action); color: #ffffff; font-size: 1rem; font-weight: 500; border: none; border-radius: 0.5rem; text-decoration: none; }


/* Pagination Links */
.pagination-link { padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; text-decoration: none; transition: all 0.2s; color: var(--brand-action); }
.pagination-link.disabled { background-color: #f9fafb; color: #9ca3af; cursor: not-allowed; pointer-events: none; }
.pagination-link.active { background-color: var(--brand-action); color: #ffffff; border-color: var(--brand-action); }
.pagination-link:not(.active):not(.disabled):hover { background-color: var(--brand-lightest); }

/* CHECKOUT PAGE SPECIFIC STYLES */
.checkout-input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 0.375rem; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.checkout-input:focus { outline: none; border-color: var(--brand-action); box-shadow: 0 0 0 3px rgba(212, 162, 95, 0.2); }
.payment-method-label { display: flex; align-items: center; padding: 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; cursor: pointer; transition: all 0.2s; }
.payment-method-label:has(:checked) { background-color: var(--brand-lightest); border-color: var(--brand-action); }
.order-items-summary { max-height: 300px; overflow-y: auto; padding-right: 0.5rem; margin-right: -0.5rem; border-bottom: 1px solid #f3f4f6; padding-bottom: 1rem; margin-bottom: 1rem; }
.summary-product-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.summary-product-image { width: 50px; height: 50px; border-radius: 0.25rem; object-fit: contain; border: 1px solid var(--border-color); }
.summary-product-details { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.summary-product-name { font-size: 0.9rem; color: #4b5563; }
.summary-product-price { font-weight: 500; }



/* CHECKOUT PROGRESS BAR - CORRECTED */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 600px;
    margin: 2rem auto 3rem auto;
}

/* This is the grey background line. It now connects the centers of the end circles perfectly. */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 14px; /* Aligns with middle of 32px circle */
    left: 16px;  /* Half the width of the 32px circle */
    right: 16px; /* Half the width of the 32px circle */
    height: 4px;
    background-color: var(--border-color);
    z-index: 0;
}

/* This is the colored fill line. */
.progress-line-fill {
    position: absolute;
    top: 14px; /* Match above */
    left: 16px; /* Match above */
    /* This constrains the total possible width, so 100% fill works as expected. */
    width: calc(100% - 32px); 
    height: 4px;
    background-color: var(--brand-action);
    z-index: 1;
    /* We now use transform for the animation, which is smoother and solves the overflow. */
    transform-origin: left;
    transform: scaleX(0); /* Default state is 0% */
    transition: transform 0.5s ease-out;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    flex-shrink: 0;
}

.progress-circle {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    color: #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.progress-circle.active {
    background-color: #ffffff;      /* White background */
    color: var(--brand-action);   /* Gold number */
    border-color: var(--brand-action);
    border-width: 3px; /* Slightly thicker border to stand out */
}


.progress-circle.completed {
    background-color: var(--brand-action); /* Use the theme's gold color */
    border-color: var(--brand-action);     /* Use the theme's gold color */
    color: #ffffff;
}
.progress-circle.completed svg {
    width: 20px;
    height: 20px;
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    max-width: 80px;
}

.progress-label.active {
    color: var(--brand-primary);
}

/* Responsive adjustments for larger circles */
@media (min-width: 640px) {
    .progress-bar::before {
        top: 18px; /* Aligns with middle of 40px circle */
        left: 20px;
        right: 20px;
    }
    .progress-line-fill {
        top: 18px;
        left: 20px;
        width: calc(100% - 40px);
    }
    .progress-circle {
        width: 40px;
        height: 40px;
    }
    .progress-label {
        font-size: 0.8rem;
    }
}

/* ORDER RECEIVED PAGE SPECIFIC STYLES */
.order-summary-list {
    list-style: none; padding: 0; display: grid; grid-template-columns: 1fr;
    gap: 1rem; background-color: #f9fafb; border: 1px solid var(--border-color);
    padding: 1rem; border-radius: 0.5rem;
}
@media (min-width: 640px) { .order-summary-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .order-summary-list { grid-template-columns: repeat(4, 1fr); text-align: center; } }
.order-summary-list li { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--text-secondary); }
.order-summary-list li strong { font-weight: 600; color: #1f2937; font-size: 1rem; }
.bank-details-box { margin: 2rem 0; padding: 1rem; background-color: var(--brand-lightest); border: 1px solid var(--brand-light); border-radius: 0.5rem; }
.order-details-table-wrapper { overflow-x: auto; }
.order-details-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; }
.order-details-table th, .order-details-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); }
.order-details-table thead th { background-color: #f9fafb; font-weight: 600; color: var(--text-secondary); }
.order-details-table tfoot th { text-align: right; font-weight: normal; color: var(--text-secondary); }
.order-details-table tfoot .total-row th,
.order-details-table tfoot .total-row td { font-weight: 600; font-size: 1.125rem; color: var(--brand-primary); border-top: 2px solid var(--border-color); }

/* CONTENT PAGE STYLES (e.g., About Us, Privacy Policy) */
.content-page h1 { font-size: 2.25rem; font-weight: 700; color: var(--brand-primary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--brand-light); }
.content-page h2 { font-size: 1.5rem; font-weight: 600; color: var(--brand-primary); margin-top: 2rem; margin-bottom: 1rem; }
.content-page h3 { font-size: 1.125rem; font-weight: 600; color: var(--brand-dark); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-page p, .content-page li { color: #374151; /* Standard text color */ line-height: 1.75; margin-bottom: 1rem; }
.content-page ul { list-style-type: disc; list-style-position: inside; padding-left: 1rem; margin-bottom: 1rem; }
.content-page a { color: var(--brand-action); text-decoration: underline; }
.content-page a:hover { color: var(--brand-action-hover); }
.content-page strong { color: var(--brand-dark); font-weight: 600; }


/* =================================================== */
/*  FINAL & CORRECTED CSS for Dynamic Reviews Section  */
/* =================================================== */

/* Main Section Container */
.new-reviews-display-section {
    background-color: #f9fafb; /* Light gray background, matching your theme */
    padding: 3rem 1rem;
}
.new-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Title and Underline */
.new-reviews-main-title {
    font-size: 2rem; /* Matches your .section-heading */
    font-weight: 600;
    text-align: center;
    color: var(--brand-primary); /* Use your brand color */
    margin-bottom: 0.75rem;
}
.new-reviews-title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--brand-light); /* Matches your .heading-line */
    margin: 0 auto 2.5rem auto;
    border-radius: 2px;
}

/* Summary Wrapper (holds left/right columns) */
.new-reviews-summary-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
@media (min-width: 1024px) {
    .new-reviews-summary-wrapper {
        grid-template-columns: 1.2fr 1fr; /* Give a bit more space to the breakdown */
        align-items: center;
    }
}

/* Left Side: Overall Rating Summary */
.new-overall-rating-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .new-overall-rating-summary {
        flex-direction: row;
        border-right: 1px solid var(--border-color);
        padding-right: 2rem;
    }
}

/* Left side -> Big number and stars */
.new-overall-rating-main {
    text-align: center;
    flex-shrink: 0;
}
.new-overall-rating-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}
.new-overall-rating-total {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Star Display (used everywhere) */
.review-stars-display {
    display: flex;
    justify-content: center;
    color: #facc15; /* Gold color for stars, matches your form */
    font-size: 1.5rem;
    margin: 0.25rem 0;
}
.review-stars-display .star {
    line-height: 1;
}
.review-stars-display .empty-star {
    color: #cbd5e0; /* Lighter gray for empty */
}
.review-stars-display .half-star {
    position: relative;
    display: inline-block;
    color: #cbd5e0; /* The empty half */
}
.review-stars-display .half-star::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #facc15; /* The full half */
}

/* Left side -> Rating distribution bars */
.new-rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}
.new-rating-bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}
.new-rating-bar-label {
    color: var(--text-secondary);
    width: 45px;
    text-align: right;
    flex-shrink: 0;
}
.new-rating-bar-bg {
    flex-grow: 1;
    background-color: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.new-rating-bar-fg {
    height: 100%;
    background-color: #facc15; /* Gold to match stars */
    border-radius: 4px;
}
.new-rating-bar-count {
    color: var(--text-secondary);
    width: 30px;
    text-align: left;
    flex-shrink: 0;
}

/* Right Side: User Satisfaction */
.new-user-satisfaction-summary {} /* Container styles handled by wrapper */

.new-user-satisfaction-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
}
.new-satisfaction-item {
    margin-bottom: 1rem;
}
.new-satisfaction-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.new-satisfaction-item-label {
    font-weight: 500;
    color: #374151;
}
.new-satisfaction-item-value {
    color: var(--text-secondary);
}
.new-satisfaction-bar-bg {
    background-color: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.new-satisfaction-bar-fg {
    height: 100%;
    background-color: var(--brand-action); /* Use your brand action color */
    border-radius: 4px;
}

/* Most Relevant Reviews Title */
.new-most-relevant-title {
    font-size: 1.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--brand-primary);
    margin-bottom: 2rem;
}

/* Grid for Individual Review Cards */
.new-relevant-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .new-relevant-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .new-relevant-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Review Card */
.new-review-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.new-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.new-review-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}
.new-review-author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--brand-light);
}
.new-review-author-info {
    flex-grow: 1;
}
.new-review-author-info .review-stars-display {
    justify-content: flex-start;
    font-size: 1.1rem; /* Smaller stars in cards */
}
.new-review-author-name {
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
}
.new-review-verified-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.75rem;
    color: #166534;
    display: inline-flex;
    align-items: center;
    background-color: #dcfce7;
    padding: 2px 6px;
    border-radius: 99px;
}
.new-review-verified-badge svg {
    fill: #22c55e;
    width: 0.8rem;
    height: 0.8rem;
    margin-left: 0.25rem;
}
.new-review-card-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.new-review-card-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: auto;
}

/* View More Button */
.new-view-more-reviews-container {
    text-align: center;
    margin-top: 2.5rem;
}
.new-view-more-reviews-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    border: 2px solid var(--brand-action);
    color: var(--brand-action);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.new-view-more-reviews-btn:hover {
    background-color: var(--brand-action);
    color: #fff;
}
