/*
Theme Name: green
Description: A professional healthcare and pharmacy-inspired WordPress theme in a sophisticated lavender and mint palette.
Author: Gemini (based on Developer's original)
Version: 2.2
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideInDown 0.5s ease-in-out;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-top {
    background: #013320;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
    position: relative;
    z-index: 10;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #1D6F42;;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #1D6F42;;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.header-actions a:hover {
    color: #1D6F42;;
}

/* Navigation */
.main-navigation {
    background: #1D6F42;;
    padding: 0;
    position: relative;
    z-index: 10;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    padding: 20px;
    box-sizing: border-box;
}

.off-canvas-menu.open {
    transform: translateX(0);
}

.off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1D6F42;;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;
    transition: opacity 0.3s;
}

/* Slideshow */
.slideshow-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    margin: auto;
    max-width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 500px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Main Sections */
.product-section, .testimonials-section, .newsletter-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
    font-weight: bold;
}

/* Trust Badges Section */
.trust-badges-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.trust-badge i {
    font-size: 2em;
    color: #1D6F42;;
}

.trust-badge span {
    font-size: 16px;
    font-weight: 500;
    color: #555;
}

/* Product Card and Grid Styles */
.products-grid, .product-slider .slick-list {
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    min-height: 48px;
    line-height: 1.5;
}
.product-title a {
    text-decoration: none;
    color: inherit;
}

.product-card .woocommerce-loop-product__link img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #1D6F42;;
    margin-bottom: 15px;
    min-height: 30px;
}

/* Newsletter */
.newsletter-section {
    background: #1D6F42;;
    color: white;
    text-align: center;
}
.newsletter-section h3 { font-size: 28px; margin-bottom: 10px; }
.newsletter-section p { font-size: 16px; margin-bottom: 30px; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; }
.newsletter-form input { width: 100%; max-width: 350px; padding: 15px 20px; border-radius: 30px; border: none; outline: none; }
.newsletter-form button { padding: 15px 30px; border-radius: 30px; border: none; background: #9A68C8; color: white; cursor: pointer; font-weight: bold; transition: background 0.3s; }
.newsletter-form button:hover { background: #7F53AC; }


/* Footer Styles */
.site-footer {
    background: #333;
    color: #eee;
    padding: 60px 0 20px;
    clear: both;
    position: relative;
    z-index: 20;
    width: 100%;
}
main#primary {
    position: relative;
    z-index: 1;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-section p {
    color: #bbb;
    line-height: 1.7;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links a {
    color: #bbb;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    .main-navigation { display: none; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .products-grid { grid-template-columns: 1fr; }
    .slide { height: 300px; }
}

/* ----------------------------------------- */
/* -- STYLES FOR PHOTO CATEGORIES SECTION -- */
/* ----------------------------------------- */
.photo-categories-section {
    padding: 60px 0;
    background-color: #fff;
}
.photo-categories-section .section-title-container {
    text-align: left;
    margin-bottom: 30px;
}
.photo-categories-section .section-title {
    text-align: left;
    font-size: 24px;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.photo-categories-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #A2D9CE;
}
.category-photo-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
}
.category-photo-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.category-photo-item.tall-item {
    grid-row: span 2;
    grid-column: 2 / 3;
    grid-row-start: 1;
    grid-row-end: 3;
}
.category-photo-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
.category-photo-item:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.category-photo-item:nth-child(4) { grid-column: 1 / 2; grid-row: 2 / 3; }
.category-photo-item:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
.category-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}
.category-item-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
@media (max-width: 992px) {
    .category-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
    }
    .category-photo-item, .category-photo-item.tall-item, .category-photo-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
    .category-photo-item:nth-child(1) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .category-photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .category-photo-item { min-height: 200px; }
    .category-photo-item:nth-child(1) { grid-column: auto; }
}

/* ----------------------------------------- */
/* -- STYLES FOR POLISHED TESTIMONIALS -- */
/* ----------------------------------------- */
/* --- Testimonial Slider Section --- */

/* --- Testimonial Slider Section --- */

.testimonial-slider-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.testimonial-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Left Side: Rating Summary */
.rating-summary {
    flex-basis: 250px;
    flex-shrink: 0;
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
}

.rating-summary .rating-value {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

/* UPDATED: Ensuring all stars are golden */
.rating-summary .stars,
.testimonial-card .stars {
    color: #f5b50a;
}

.rating-summary .reviews-count {
    font-size: 1rem;
    color: #555;
}

.rating-summary .see-all-reviews {
    font-size: 0.9rem;
    color: #0073aa;
    text-decoration: none;
}

/* Right Side: Slider */
.testimonial-slider-wrapper {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.testimonial-slider-wrapper .section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 33.333%;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Individual Testimonial Card */
.testimonial-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #8DC89C;
    padding: 20px;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.testimonial-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.testimonial-card .reviewer-name {
    font-weight: bold;
    color: #8DC89C;
}

.testimonial-card .testimonial-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 5px 0 15px;
    color: #444;
}

/* UPDATED: More creative font for testimonial message */
.testimonial-card .testimonial-content {
    color: #555;
    font-family: Georgia, serif; /* Elegant serif font */
    font-style: italic; /* Italicized for quotes */
    line-height: 1.6;
    flex-grow: 1;
}

/* UPDATED: More creative style for the date */
.testimonial-card .testimonial-date {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 15px;
    text-align: right; /* Aligned to the right */
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-weight: 600;
    text-transform: uppercase; /* STYLIZED TEXT */
    letter-spacing: 0.5px;
}


/* Arrow Styles */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #555;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.slider-arrow.prev-arrow {
    left: 10px;
}

.slider-arrow.next-arrow {
    right: 10px;
}

.slider-arrow.is-hidden {
    display: none;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    .testimonial-container {
        flex-direction: column;
        gap: 20px;
    }
    .rating-summary {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .testimonial-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 767px) {
    .testimonial-slider-section {
        padding: 40px 10px;
    }
    .testimonial-slide {
        flex-basis: 100%;
        padding: 0 5px;
    }
    .slider-arrow.prev-arrow {
        left: 5px;
    }
    .slider-arrow.next-arrow {
        right: 5px;
    }
}

/* ----------------------------------------- */
/* -- STYLES FOR PRODUCT SLIDER -- */
/* ----------------------------------------- */
.product-slider .slick-slide {
    padding: 0 15px;
    height: auto;
}
.product-slider .slick-track {
    display: flex;
}
.product-slider .slick-slide > div {
    height: 100%;
}
.product-slider .product-card {
    margin: 0 auto;
}
.slick-prev, .slick-next {
    width: 45px; height: 45px; z-index: 10; background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.slick-prev:hover, .slick-next:hover { background-color: #fff; }
.slick-prev { left: -25px; }
.slick-next { right: -25px; }
.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 22px; color: #1D6F42;; opacity: 0.8;
}
.slick-prev:hover:before, .slick-next:hover:before { opacity: 1; }
.slick-prev:before { content: '\f053'; }
.slick-next:before { content: '\f054'; }
.slick-dots li button:before { font-size: 12px; color: #1D6F42;; opacity: 0.5; }
.slick-dots li.slick-active button:before { color: #1D6F42;; opacity: 1; }
@media (max-width: 1250px) {
  .slick-prev { left: 10px; }
  .slick-next { right: 10px; }
}

/* ----------------------------------------- */
/* -- CREATIVE BORDERS FOR PRODUCT CARDS -- */
/* ----------------------------------------- */
.product-card::before,
.product-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background-color: transparent;
    border-color: #A2D9CE;
    transition: all 0.4s ease;
    z-index: 1;
}
.product-card::before {
    top: 15px; left: 15px; border-top: 2px solid; border-left: 2px solid;
}
.product-card::after {
    bottom: 15px; right: 15px; border-bottom: 2px solid; border-right: 2px solid;
}
.product-card:hover::before,
.product-card:hover::after {
    width: 30px;
    height: 30px;
}
.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1), inset 0 0 10px rgba(0,0,0,0.04);
}

/* ----------------------------------------- */
/* -- STYLES FOR LOOP VARIATION FORM -- */
/* ----------------------------------------- */
.loop-variation-form-wrap {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.loop-variation-form .loop-variation-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}
.loop-variation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 5px;
}
.loop-variation-buttons .button {
    text-align: center;
    padding: 10px 5px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
}
.loop-add-to-cart-button {
    background-color: #1D6F42; !important;
    color: white !important;
    border-color: #1D6F42; !important;
}
.loop-add-to-cart-button:hover {
    background-color: #9A68C8 !important;
    border-color: #9A68C8 !important;
}
.loop-add-to-cart-button:disabled {
    background-color: #e9e9e9 !important;
    border-color: #e9e9e9 !important;
    color: #aaa !important;
    cursor: not-allowed;
}
.loop-view-detail-button {
    background-color: transparent !important;
    color: #555 !important;
    border-color: #ccc !important;
}
.loop-view-detail-button:hover {
    background-color: #f5f9ff !important;
    border-color: #aaa !important;
    color: #333 !important;
}
.loop-add-to-cart-button.loading {
    position: relative;
    color: transparent !important;
}
.loop-add-to-cart-button.loading::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loop-add-to-cart-message {
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    border: 1px solid;
}
.loop-add-to-cart-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}
.loop-add-to-cart-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}
/* ----------------------------------------- */
/* -- UI IMPROVEMENTS FOR LOOP VARIATION FORM -- */
/* ----------------------------------------- */
.loop-variation-form-wrap {
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}
.loop-variation-form .loop-variation-select {
    margin-bottom: 10px;
}
.loop-variation-buttons {
    margin-top: 10px;
}









/* ----------------------------------------- */
/* -- STYLING FOR SINGLE PRODUCT PAGE TABLE -- */
/* ----------------------------------------- */
.product-variation-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.product-variation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
    text-align: left;
}

.product-variation-table th,
.product-variation-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.product-variation-table tbody tr:last-child td {
    border-bottom: none;
}

.product-variation-table thead {
    background-color: #f9f9f9;
}

.product-variation-table th {
    font-weight: 600;
    color: #444;
}

.product-variation-table .quantity-add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.product-variation-table .quantity input.input-text {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.product-variation-table .button.alt {
    padding: 10px 20px !important;
    background-color: #1D6F42; !important;
    color: white !important;
    border: none;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.product-variation-table .button.alt:hover {
    background-color: #9A68C8 !important;
}

/* Responsive Table for Mobile */
@media (max-width: 768px) {
    .product-variation-table thead { display: none; }
    .product-variation-table, .product-variation-table tbody, .product-variation-table tr, .product-variation-table td { display: block; width: 100%; }
    .product-variation-table tr { margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; padding: 10px; }
    .product-variation-table td { text-align: right; padding-left: 50%; position: relative; border-bottom: 1px dashed #eee; padding-bottom: 10px; margin-bottom: 10px; }
    .product-variation-table td:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .product-variation-table td:before { content: attr(data-label); position: absolute; left: 10px; width: calc(50% - 20px); white-space: nowrap; text-align: left; font-weight: bold; color: #444; }
    .product-variation-table td:nth-of-type(1):before { content: "Pack Size"; }
    .product-variation-table td:nth-of-type(2):before { content: "Price Per Unit"; }
    .product-variation-table td:nth-of-type(3):before { content: "Total Price"; }
    .product-variation-table td:nth-of-type(4):before { content: "Add to Cart"; }
}




/* --- Live Search Main Container --- */
.search-bar {
    position: relative; /* This is the anchor for the absolute results */
    z-index: 9999;
}

/* --- The Dropdown Results Container --- */
#search-results-container {
    /* THIS IS THE KEY FIX: Takes the element out of the page flow to overlay content */
    position: absolute; 
    top: 100%; /* Positions it right below the search bar */
    left: 0;
    right: 0;
    
    /* General Styling */
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none; /* Initially hidden */
}

/* --- "PRODUCTS" Heading in Dropdown --- */
.results-heading {
    font-size: 0.8em;
    color: #555;
    text-transform: uppercase;
    margin: 0;
    padding: 10px 15px;
    letter-spacing: 1px;
    font-weight: bold;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
}

/* --- Container for the Scrollable Items --- */
.results-items-container {
    max-height: 350px;
    overflow-y: auto; /* Adds the scrollbar when needed */
}

/* --- Individual Product Item Styling --- */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0; /* Separator line */
    transition: background-color 0.2s ease;
}

/* Remove border from the last item for a clean look */
.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item .product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.search-result-item .product-details {
    display: flex;
    flex-direction: column;
}

.search-result-item .product-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.search-result-item .price {
    font-size: 0.9em;
    color: #2c7c59;
    font-weight: bold;
}

/* --- "SEE ALL" Footer --- */
.see-all-results {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}
.see-all-results:hover {
    background-color: #e9e9e9;
}

/* --- Message for No Results --- */
.no-results {
    padding: 20px;
    text-align: center;
    color: #777;
}



/* --- Blog Page Template Layout --- */
.blog-page-template .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between content and sidebar */
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-page-template .main-content-wrap {
    flex: 1; /* Main content takes up available space */
    min-width: 0; /* Prevents flexbox overflow */
}

.blog-page-template .widget-area {
    flex-basis: 300px; /* Sidebar width */
    flex-shrink: 0;
}

/* --- Individual Blog Post Styling --- */
.blog-post-item {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.blog-post-item .post-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.blog-post-item .entry-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.blog-post-item .entry-title a {
    text-decoration: none;
    color: #333;
}
.blog-post-item .entry-title a:hover {
    color: #0073aa; /* A classic WordPress blue */
}

.blog-post-item .entry-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.blog-post-item .entry-meta span {
    margin-right: 15px;
}

.blog-post-item .entry-content {
    line-height: 1.6;
}

.blog-post-item .read-more {
    font-weight: bold;
    text-decoration: none;
    color: #0073aa;
}

/* --- Sidebar Widget Styling --- */
.widget {
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.widget-title {
    background-color: #4CAF50; /* Green background like screenshot */
    color: #fff;
    padding: 12px 15px;
    margin: 0;
    font-size: 1.1em;
}

.widget ul {
    list-style: none;
    padding: 10px 15px;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: #555;
}
.widget ul li a:before {
    content: '> ';
    margin-right: 5px;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .blog-page-template .container {
        flex-direction: column;
    }
    .blog-page-template .widget-area {
        flex-basis: auto; /* Allow sidebar to be full width */
    }
}





/* Step 1: Give the parent list item a relative position */
.main-navigation .nav-menu li {
    position: relative;
}

/* Step 2: Style the submenu, and take it out of the normal flow */
.main-navigation .nav-menu li ul {
	padding: 1px 10px;
    display: none; /* Keep the display: none to hide it by default */
    
    /* This is the key change to make it float over the content */
    position: absolute;
    top: 100%; /* Positions the top of the dropdown just below the parent link */
    left: 110;
    
    /* Other styles for your multi-column layout */
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
   background-color: #592081;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 1100px; /* Adjust this width to fit all your columns */
    
    z-index: 999; /* Ensures the menu appears on top of other content */
}

/* Show the submenu on hover, as before */
.main-navigation .nav-menu li:hover > ul {
    display: grid;
}

/* --- Styles for submenu links to remove extra space --- */
.main-navigation .nav-menu li ul li a {
    /* Reduce padding for a more compact look */
    padding: 5px 5px; 
    
    /* Ensure the link is still a block element so padding works */
    display: block; 
}

















/* --- DEVELOPER FIX: Welcome Footer Bar (CSS Foundation) --- */
#welcome-popup-container.footer-signup-bar {
    /* Base styles that will be enforced by JavaScript */
    background: linear-gradient(to right, #A8D08D, #64A556);
    color: #fff;
    z-index: 10000;
    padding: 15px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow: hidden;

    /* These are !important to fight back, but JS is the final guarantee */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    transform: none !important;
}

/* This is a safeguard to remove any full-screen overlays */
#welcome-popup-container.footer-signup-bar::before,
#welcome-popup-container.footer-signup-bar::after {
    display: none !important;
    content: '' !important;
}

.footer-signup-bar .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.footer-signup-bar .popup-text-content {
    text-align: left;
}

.footer-signup-bar .popup-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.footer-signup-bar .popup-text {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

#welcome-popup-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-grow: 1;
    max-width: 550px;
}

#welcome-popup-form .form-inputs {
    display: flex;
    flex-grow: 1;
    gap: 10px;
}

#welcome-popup-form .input-group {
    position: relative;
    flex-grow: 1;
}

#welcome-popup-form .input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

#welcome-popup-form input[type="text"],
#welcome-popup-form input[type="email"] {
    height: 45px;
    padding: 10px 15px 10px 40px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

#popup-submit {
    height: 45px;
    padding: 0 25px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

#welcome-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .footer-signup-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-signup-bar .popup-text-content {
        text-align: center;
    }
    #welcome-popup-form {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 580px) {
    #welcome-popup-form {
        flex-direction: column;
    }
    #welcome-popup-form .form-inputs {
        flex-direction: column;
        width: 100%;
    }
}


/*
======================================================
STYLES FOR BLOG PAGE & RECENT POSTS
======================================================
*/

/* --- Recent Posts Section on Homepage --- */
.recent-posts-section {
    padding: 60px 0;
    background-color: #fff;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.recent-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-thumbnail-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 25px;
}

.post-card-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.post-card-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-card-title a {
    text-decoration: none;
    color: #333;
}

.post-card-title a:hover {
    color: #1D6F42;;
}

.post-card-excerpt p {
    margin: 0;
    color: #555;
}

.view-all-container {
    text-align: center;
}
.button.view-all-posts-button {
    background-color: #1D6F42;;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.button.view-all-posts-button:hover {
    background-color: #9A68C8;
}

/* --- Dedicated Blog Page Template --- */
.blog-post-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-post-summary .post-thumbnail {
    flex: 0 0 300px;
}
.blog-post-summary .post-thumbnail img {
    border-radius: 5px;
}

.blog-post-summary .entry-title {
    font-size: 28px;
    margin-top: 0;
}
.blog-post-summary .entry-title a {
    text-decoration: none;
    color: #333;
}
.blog-post-summary .entry-meta {
    color: #777;
    margin-bottom: 15px;
}
.read-more-link {
    font-weight: bold;
    color: #1D6F42;;
    text-decoration: none;
}
.pagination-container .pagination {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}
.pagination-container .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
    margin: 0 3px;
    border-radius: 4px;
}
.pagination-container .page-numbers.current,
.pagination-container .page-numbers:hover {
    background-color: #1D6F42;;
    color: #fff;
    border-color: #1D6F42;;
}

/* Responsive adjustments for blog page */
@media (max-width: 768px) {
    .blog-post-summary {
        flex-direction: column;
        gap: 20px;
    }
    .blog-post-summary .post-thumbnail {
        flex-basis: auto;
        max-width: 100%;
    }
}



/*
======================================================
STYLES FOR SINGLE POST PAGE (single.php)
======================================================
*/

.single-post-container .entry-meta span {
    margin: 0 10px;
}

.single-post-container .entry-meta a {
    color: #1D6F42;;
    text-decoration: none;
}

.single-post-container .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.single-post-container .entry-content p {
    margin-bottom: 1.5em;
}

.single-post-container .entry-content h2,
.single-post-container .entry-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #333;
}







/*
======================================================
STYLES FOR PROFESSIONAL SINGLE POST PAGE (single.php)
======================================================
*/

.single-post-page {
    padding: 50px 0;
    background-color: #fff;
}

.single-post-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- Main Content Area --- */
.main-content-area {
    flex: 1;
    min-width: 0; /* Prevents flexbox content from overflowing */
}

.blog-post-full .entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: #555;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #1D6F42;;
}
.breadcrumbs span {
    color: #333;
    font-weight: 500;
}

.blog-post-full .entry-title {
    font-size: 42px;
    line-height: 1.2;
    color: #222;
    margin-bottom: 15px;
}

.blog-post-full .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #777;
}
.entry-meta a {
    color: #1D6F42;;
    text-decoration: none;
    font-weight: 500;
}
.entry-meta i {
    margin-right: 6px;
}

.post-thumbnail-wrapper {
    margin-bottom: 30px;
}
.post-thumbnail-wrapper img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Post Content Readability --- */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
}
.entry-content h2,
.entry-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
    color: #222;
}
.entry-content blockquote {
    border-left: 4px solid #1D6F42;;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* --- Social Sharing --- */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.social-share h3 {
    font-size: 16px;
    margin: 0 10px 0 0;
    font-weight: 600;
}
.social-share a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.social-share a:hover {
    transform: scale(1.1);
}
.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-email { background-color: #888; }


/* --- Author Box --- */
.author-box {
    margin: 50px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}
.author-avatar img {
    border-radius: 50%;
}
.author-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.author-description {
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}
.author-link {
    font-weight: bold;
    color: #1D6F42;;
    text-decoration: none;
    font-size: 14px;
}

/* --- Post Navigation --- */
.nav-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 40px 0;
}
.nav-links .nav-previous,
.nav-links .nav-next {
    padding: 20px;
    width: 50%;
}
.nav-links .nav-previous {
    border-right: 1px solid #eee;
    text-align: left;
}
.nav-links .nav-next {
    text-align: right;
}
.nav-links a {
    text-decoration: none;
    color: #444;
}
.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}
.nav-title {
    font-weight: 600;
}

/* --- Sidebar --- */
.blog-sidebar {
    flex: 0 0 300px; /* Sidebar will not grow, will not shrink, and has a base width */
}
.widget {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1D6F42;;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a {
    text-decoration: none;
    color: #555;
}
.widget ul li a:hover {
    color: #1D6F42;;
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
    .single-post-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        flex-basis: 100%;
        margin-top: 40px;
    }
    .blog-post-full .entry-title {
        font-size: 32px;
    }
}


/* --- Custom Product Page Layout: 30% Image / 70% Details --- */

/* This rule applies only to screens wider than 768px (tablets and desktops) */
@media (min-width: 769px) {

  .woocommerce div.product {
    /* Use modern Flexbox for clean alignment */
    display: flex;
    flex-wrap: wrap;
  }

  /* Target the product image gallery container */
  .woocommerce div.product div.images {
    /* Set the width to 30% */
    flex: 0 0 40%;
    max-width: 40%;
    padding-right: 30px; /* Optional: Adds some space between image and text */
    box-sizing: border-box; /* Ensures padding doesn't add to the width */
  }

  /* Target the product summary/details container */
  .woocommerce div.product div.summary {
    /* Set the width to 70% */
    flex: 0 0 60%;
    max-width: 60%;
  }

}













*
===================================================================
 PART 1: (UPDATED) - CHANGE PRODUCT PAGE LAYOUT TO 40% / 60%
===================================================================
*/

/* This media query ensures the layout only applies to larger screens */
@media (min-width: 768px) {

    /*
    This is the stronger rule. We target the specific body class for a single product page
    to make sure our styles win over the theme's styles.
    */
    body.single-product div.product .woocommerce-product-gallery {
        width: 40% !important; /* <<< CHANGED FROM 30% TO 40% */
        flex-basis: 40% !important;
        float: left !important;
    }

    body.single-product div.product .summary.entry-summary {
        width: 60% !important; /* <<< CHANGED FROM 70% TO 60% */
        flex-basis: 60% !important;
        float: left !important;
        padding-left: 35px !important;
        box-sizing: border-box;
    }
}







/*
--- Breadcrumb Styles for Product Page ---
*/

.breadcrumb-container-wrapper {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 30px; /* Adds space between breadcrumbs and product info */
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container-wrapper .woocommerce-breadcrumb {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0 20px; /* Adds spacing on the sides */
    max-width: 1200px; /* Aligns with a common container width */
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-breadcrumb a {
    text-decoration: none;
    color: #0073e6;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 10px;
    color: #999;
}

.woocommerce-breadcrumb span.breadcrumb-last {
    color: #111;
    font-weight: 500;
}




/* --- STYLING FOR CUSTOMIZED PRODUCT VARIATION TABLE --- */

/* Style for the new Quantity Dropdown */
.product-variation-table .quantity-dropdown {
    width: 70px; /* Adjust width as needed */
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    -webkit-appearance: none; /* Removes default OS styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
    padding-right: 30px; /* Space for the arrow */
}

/* Center the content of the "Add to Cart" cell */
.product-variation-table .add-to-cart-cell {
    text-align: center;
}

/* Center the "Add to Cart" header */
.product-variation-table .cart-column-header {
    text-align: center;
}

/* Style for the new Icon Button */
.product-variation-table .button.cart-icon-button {
    padding: 0 !important;
    width: 42px;  /* Make it square */
    height: 42px; /* Make it square */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-variation-table .button.cart-icon-button .fas.fa-shopping-cart {
    font-size: 16px; /* Adjust icon size */
    color: white;
}

/* On mobile, ensure dropdown and button align properly */
@media (max-width: 768px) {
    .product-variation-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #444;
    }
    
    .product-variation-table .add-to-cart-cell {
        text-align: right;
    }
}

/* --- STYLING FOR SALE PRICES & DISCOUNT PERCENTAGE (v3) --- */

/* The main price cell container */
.product-variation-table .price-cell {
    line-height: 1.3;
}

/* Styles the top line (the final sale price) */
.product-variation-table .sale-price-display {
    display: block; /* Ensures it takes up the full line */
    font-weight: bold;
    font-size: 1.1em;
    color: #DAA520; /* A gold-like color to make it stand out */
}

/* This new wrapper holds the second line (percentage and original price) */
.product-variation-table .sale-details-wrapper {
    display: flex;
    align-items: center; /* Vertically aligns the items in the middle */
    margin-top: 3px;
}

/* Styles the discount percentage */
.product-variation-table .you-save-percentage {
    color: #dc3545; /* Red */
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 8px; /* Adds space between percentage and original price */
}

/* Styles the strikethrough original price */
.product-variation-table del.original-price {
    font-size: 0.9em;
    font-weight: normal;
    color: #888; /* Lighter grey color */
}




/* Styling for Custom Product Info Below Price */
.product-attribute-table {
    margin: 20px 0; /* Adds space above and below the block */
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.attribute-row {
    display: flex;
    justify-content: flex-start;
    padding: 5px 0;
    font-size: 14px;
}

.attribute-label {
    font-weight: 600; /* Makes the label bold */
    color: #333;
    width: 150px; /* Aligns the values */
    flex-shrink: 0;
}

.attribute-value {
    color: #666;
}














/* --- New Product Review Summary Styling --- */

/* Main titles */
.reviews-title {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50; /* Green color from image */
    text-align: center;
    margin-bottom: 20px;
}

.top-product-reviews-title {
    font-size: 20px;
    color: #333;
    text-align: left;
    margin-top: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Summary container */
.reviews-summary-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    font-family: sans-serif;
}

.summary-left {
    text-align: center;
    flex-shrink: 0;
    width: 150px;
}

.average-rating-number {
    font-size: 4em;
    font-weight: 300;
    line-height: 1;
    color: #333;
}

.summary-left .star-rating {
    font-size: 1.5em;
    margin: 5px 0;
    color: #FFC107;
}

.summary-left .star-rating::before {
    color: #FFC107;
}

.total-reviews-count {
    color: #555;
    font-size: 1em;
}

.summary-right {
    width: 100%;
    flex: 1;
}

.rating-breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.star-label {
    width: 50px;
    flex-shrink: 0;
}

.rating-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background-color: #FFC107; /* Gold color */
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.star-percentage {
    width: 35px;
    text-align: right;
}

.star-count {
    width: 45px;
    text-align: left;
    color: #777;
}

/* Styling for individual review comments */
.woocommerce-Reviews #comments ol.commentlist li {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #4CAF50; /* Green highlight border */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.woocommerce-Reviews #comments ol.commentlist li .comment-text {
    border: none;
    padding: 0;
}

.woocommerce-Reviews #comments ol.commentlist li .meta {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .reviews-summary-container {
        flex-direction: column;
    }
    .summary-left {
        width: 100%;
        margin-bottom: 20px;
    }
}




/* --- New Centered Product Review Styling --- */

/* Main titles */
.reviews-title {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50; /* Green color from image */
    text-align: center;
    margin-bottom: 20px;
}

/* New Centered Summary Container */
.reviews-summary-container-centered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    font-family: sans-serif;
}

.summary-middle {
    text-align: center;
    flex-shrink: 0;
}

.summary-middle .average-rating-number {
    font-size: 4em;
    font-weight: 300;
    line-height: 1;
    color: #333;
}

.summary-middle .star-rating {
    font-size: 1.5em;
    margin: 5px 0;
    color: #FFC107;
}

.summary-middle .star-rating::before {
    color: #FFC107;
}

.summary-middle .total-reviews-count {
    color: #555;
    font-size: 1em;
}

.summary-right-bars {
    width: 100%;
    max-width: 350px; /* Control max width of the bars section */
    flex-grow: 1;
}

.rating-breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.rating-breakdown-row .star-label {
    width: 45px;
    flex-shrink: 0;
}

.rating-breakdown-row .rating-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.rating-breakdown-row .rating-bar {
    height: 100%;
    background-color: #FFC107;
    border-radius: 4px;
}

.rating-breakdown-row .star-percentage {
    width: 35px;
    text-align: right;
}

.rating-breakdown-row .star-count {
    width: 45px;
    text-align: left;
    color: #777;
}

/* Styling for individual review comments */
#reviews .commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-Reviews #comments ol.commentlist li {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #4CAF50;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}



/*
======================================================
STYLES FOR SHOP SIDEBAR & SUGGESTION BOX
======================================================
*/
.shop-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.shop-sidebar {
    flex: 0 0 300px;
}
.woocommerce-products-area {
    flex: 1;
    min-width: 0;
}
.shop-sidebar .widget {
    border: 1px solid #e0e0e0;
    padding: 25px;
    background-color: #fff;
}
.shop-sidebar .widget .widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.suggestion-box-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.suggestion-box-form .form-group {
    margin-bottom: 20px;
}
.suggestion-box-form input[type="text"],
.suggestion-box-form input[type="email"],
.suggestion-box-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.suggestion-box-form textarea {
    min-height: 120px;
}
.suggestion-box-form .g-recaptcha {
    margin-bottom: 20px;
}
.suggestion-box-form input[type="submit"] {
    background-color: #93c021;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}
.suggestion-box-form input[type="submit"]:hover {
    background-color: #7a9f1b;
}
@media (max-width: 992px) {
    .shop-layout-wrapper {
        flex-direction: column;
    }
    .shop-sidebar {
        flex-basis: auto;
        width: 100%;
    }
}







/*
======================================================
STYLES FOR CUSTOM PRODUCT INFO BLOCK (SKU, etc.)
======================================================
*/

/* Main container for the info block */
.product-attribute-table {
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #e5e5e5;
    border-top: 3px solid #1D6F42;; /* Branded top border using your theme's purple */
    border-radius: 5px;
    padding: 10px 20px; /* Vertical and horizontal padding */
    margin: 25px 0; /* Space above and below the block */
}

/* Each row (e.g., SKU and its value) */
.attribute-row {
    display: flex;
    align-items: center; /* Vertically align label and value */
    padding: 12px 0; /* Space inside each row */
    border-bottom: 1px dashed #ddd; /* Separator line between rows */
    font-size: 15px;
}

/* Remove the bottom border from the very last row for a clean look */
.attribute-row:last-child {
    border-bottom: none;
}

/* The label (e.g., "SKU", "Manufacturer") */
.attribute-label {
    font-weight: 600; /* Make the label bold */
    color: #333;
    width: 150px; /* Fixed width to align all values */
    flex-shrink: 0;
}

/* The value (e.g., "560", "Cipla, India") */
.attribute-value {
    color: #555; /* Slightly lighter text color for the value */
    flex-grow: 1;
}



.entry-content {
    max-width: 100% !important; /* change value */
    margin: 0 auto !important;
    line-height: 1.6 !important;
    color: #333 !important;
}



/* --- Custom Medical History Form Styles --- */
#medical-history-form-container {
    background-color: #fdfdfa;
    border: 1px solid #e0e0e0;
    padding: 2em;
    border-radius: 8px;
}
#medical-history-form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: left;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5em;
}
.form-row-flex {
    display: flex;
    gap: 4%;
    width: 100%;
    flex-wrap: wrap;
}
.form-row-flex .form-row-first { 
    width: 100%;
    margin-bottom: 1em;
}
.form-row-flex .form-row-last { 
    width: 100%;
}
@media (min-width: 768px) {
    .form-row-flex .form-row-first,
    .form-row-flex .form-row-last {
        width: 48%;
        margin-bottom: 0;
    }
}

/* Checkbox and Textarea Group */
.checkbox-textarea-group {
    margin-bottom: 1.5em;
}
.checkbox-textarea-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.checkbox-textarea-group .checkbox-inline {
    display: inline-block;
    font-weight: normal;
    margin-bottom: 0.5em;
}
.checkbox-textarea-group textarea {
    width: 100%;
}

/* Radio Button Styling */
.radio-group-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5em;
    padding: 1em;
    border: 1px solid #eee;
    border-radius: 4px;
}
.radio-group-container fieldset {
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 150px;
}
.radio-group-container legend {
    font-weight: bold;
    margin-bottom: 0.5em;
    padding: 0;
    font-size: 1em;
}
.radio-group-container label {
    margin-right: 15px;
    font-weight: normal;
}
.radio-group-container input[type="radio"] {
    margin-right: 5px;
}

/* Informational Notes Styling */
.medical-form-notes {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
}
.medical-form-notes p { 
    margin-bottom: 0.8em; 
}
.medical-form-notes .medical-history-added {
    font-weight: bold;
    color: #697a6a;
}
.medical-form-notes .delivery-warning {
    color: #0073e6;
    font-weight: bold;
}
.medical-form-notes a { 
    color: #BF5700; 
}




/* --- Multi-Step Checkout Tabs Styles --- */
.checkout-tabs-nav {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2em;
}
.checkout-tabs-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-around;
}
.checkout-tabs-nav li {
    padding: 1em;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    position: relative;
    flex: 1;
    text-align: center;
}
.checkout-tabs-nav li.active {
    color: #000;
}
.checkout-tabs-nav li.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8ac24a; /* Green accent color */
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navigation Buttons */
.tab-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}
.tab-navigation-buttons .button {
    font-size: 1.1em;
    padding: 0.8em 2em;
}





/* --- Custom Review Page Styling --- */

/* 1. Header Text */
.review-header-text {
    text-align: center;
    margin-bottom: 30px;
}
.review-header-text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.review-header-text h3 {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

/* 2. Star Rating Selector Styling */
.woocommerce-reviews .comment-form-rating {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.woocommerce-reviews .comment-form-rating label {
    display: none; /* Hide default label */
}
.woocommerce-reviews .stars a {
    color: #ffb800; /* Yellow stars */
}

/* 3. Form Layout */
#welcome-popup-form, #commentform {
    max-width: 800px;
    margin: 0 auto;
}

.review-form-row {
    margin-bottom: 20px;
}

.two-col {
    display: flex;
    gap: 20px;
}
.two-col .form-group {
    flex: 1;
}

input[type="text"], 
input[type="email"], 
textarea#comment {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px; /* Slightly square corners like image */
    font-size: 14px;
    background: #fff;
}

/* 4. Footer of Form (Photo & Recommend) */
.review-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.photo-btn-label {
    background: #e0e0e0;
    color: #333;
    padding: 6px 15px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
}

.recommend-section {
    font-size: 14px;
    color: #333;
}
.recommend-section input[type="checkbox"] {
    margin-left: 5px;
    transform: scale(1.2);
}

/* 5. Submit Button */
.submit-review-btn {
    background-color: #9abf15 !important; /* The Green color from image */
    color: white !important;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    width: auto;
    display: block;
    border-radius: 2px;
}
.submit-review-btn:hover {
    background-color: #89ab13 !important;
}

/* 6. Hiding default form elements we replaced */
.comment-form-author, .comment-form-email, .comment-form-comment {
    display: block !important; 
}

/* --- Review Summary Section (Bottom Part) --- */
.product-reviews-summary {
    max-width: 800px;
    margin: 60px auto 0;
    border-top: 1px solid #eee;
    padding-top: 40px;
}
.summary-title {
    text-align: center;
    color: #9abf15;
    font-size: 24px;
    margin-bottom: 30px;
}

.summary-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.summary-left {
    text-align: center;
}
.big-rating {
    font-size: 60px;
    line-height: 1;
    font-weight: 400;
    color: #333;
}
.stars-static {
    color: #ffb800;
    margin: 5px 0;
}
.total-count {
    font-size: 13px;
    color: #777;
}

.summary-right {
    flex: 1;
    max-width: 400px;
}
.rating-bar-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.star-label {
    width: 50px;
}
.bar-track {
    flex: 1;
    height: 8px;
    background: #eee;
    margin: 0 15px;
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background-color: #ffb800; /* Yellow bars */
}
.star-percent {
    width: 60px;
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .two-col { flex-direction: column; gap: 0; }
    .summary-container { flex-direction: column; gap: 20px; }
}

/* Hide the duplicate form that might appear below the list */
.existing-reviews-list #respond {
    display: none;
}




/* Container styling */
.trust-badges-section {
    padding: 20px 0;
    background-color: #fff; /* White background per screenshot */
    border-bottom: 1px solid #eee; /* Optional separator */
}

/* Grid layout for 3 items */
.trust-badges-grid {
    display: flex;
    justify-content: space-between; /* Spreads items out */
    flex-wrap: wrap;
    gap: 20px;
}

/* Individual Item styling */
.trust-badge-item {
    display: flex;
    align-items: center; /* Vertically center icon and text */
    flex: 1; /* Make items equal width */
    min-width: 250px;
}

/* Icon styling */
.badge-icon {
    font-size: 32px; /* Adjust icon size */
    color: #4CAF50;  /* The Green color from your screenshot */
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

/* Text styling */
.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-text strong {
    font-size: 16px;
    color: #000; /* Dark heading color */
    margin-bottom: 4px;
    line-height: 1.2;
}

.badge-text span {
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .trust-badges-grid {
        flex-direction: column;
    }
    .trust-badge-item {
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
}



















/* FAQ Styles */
.info-layout-section { padding: 50px 0; }

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f2f2f2; /* Light gray background like screenshot */
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover { background-color: #e6e6e6; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    padding: 0 20px;
}

.faq-answer p { margin: 15px 0; }

/* About and Why Choose Layout */
.about-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.about-col, .why-choose-col {
    flex: 1;
    min-width: 300px;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #000;
}

.about-content p, .why-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: justify;
}

/* Green Button */
.btn-read-more {
    display: inline-block;
    background-color: #4b6b23; /* Dark olive green from screenshot */
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 2px;
}

.btn-read-more:hover {
    background-color: #3a521b;
    color: #fff;
}

/* Features List (Two Columns) */
.features-list-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.features-list-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 48%;
}

.features-list-grid li {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.features-list-grid li i {
    color: #bfa048; /* Goldish color from screenshot */
    margin-right: 8px;
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-grid { flex-direction: column; }
    .features-list-grid { flex-direction: column; }
    .features-list-grid ul { width: 100%; }
}






/* ==========================================================================
   SECTION 1: CATEGORY TABS CONTAINER STYLING
   ========================================================================== */

/* Main container for the Info and FAQ section */
.cat-info-container {
    margin-top: 60px;       /* Space above the section */
    margin-bottom: 60px;    /* Space below the section */
    background: #ffffff;    /* White background */
    border-top: 1px solid #e5e5e5; /* Light grey separator line */
    padding-top: 20px;
}

/* Flex container to center the tab buttons */
.cat-tabs {
    display: flex;
    justify-content: center; /* Centers the tabs horizontally */
    border-bottom: 2px solid #f1f1f1; /* Line underneath tabs */
    margin-bottom: 30px;
}

/* ==========================================================================
   SECTION 2: TAB BUTTON STYLING
   ========================================================================== */

/* Default style for the tab buttons */
.cat-tab-link {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;        /* Bold text */
    text-transform: uppercase;
    color: #555555;          /* Dark grey text */
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent; /* Invisible border by default */
    margin: 0 5px;
}

/* Style for Hover state and Active state */
.cat-tab-link:hover, 
.cat-tab-link.active {
    color: #000000;          /* Black text when active */
    border-bottom: 3px solid #7FA928; /* Green Underline (Theme Color) */
}

/* ==========================================================================
   SECTION 3: TAB CONTENT AREA
   ========================================================================== */

/* Content wrapper styling */
.cat-tab-content {
    display: none;           /* Hidden by default */
    padding: 10px 20px;
    max-width: 1100px;       /* Limits width for readability */
    margin: 0 auto;          /* Centers the content block */
    animation: fadeEffect 0.8s; /* Smooth fade-in animation */
    color: #444;             /* Text color */
    line-height: 1.6;        /* Spacing between lines */
}

/* Class to show the content */
.cat-tab-content.active {
    display: block;
}

/* Heading styles inside the content */
.cat-tab-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* Fade animation definition */
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* ==========================================================================
   SECTION 4: FAQ ACCORDION STYLING
   ========================================================================== */

/* Individual FAQ item wrapper */
.faq-item {
    border-bottom: 1px solid #eeeeee; /* Light line between questions */
    margin-bottom: 0;
}

/* The clickable question button */
.faq-question {
    background-color: #ffffff;
    color: #444;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.4s;
    display: flex;
    justify-content: space-between; /* Pushes arrow to the right */
    align-items: center;
}

/* Hover effect for the question */
.faq-question:hover {
    background-color: #f9f9f9;
    color: #7FA928; /* Green text on hover */
}

/* The Active state (when open) */
.faq-question.active {
    background-color: #fcfcfc;
}

/* The Plus (+) Icon styling using CSS pseudo-elements */
.faq-question:after {
    content: '\002B'; /* Unicode for Plus sign */
    color: #777;
    font-size: 20px;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

/* The Minus (-) Icon when active */
.faq-question.active:after {
    content: "\2212"; /* Unicode for Minus sign */
}

/* The Answer container (hidden by default) */
.faq-answer {
    padding: 0 20px;
    background-color: white;
    max-height: 0;
    overflow: hidden; /* Hides content that overflows */
    transition: max-height 0.3s ease-out; /* Smooth slide animation */
}

/* Paragraph styling inside the answer */
.faq-answer p {
    margin: 20px 0;
    color: #666;
}

















/* =========================================
   MOBILE RESPONSIVE FIXES (ADD TO BOTTOM)
   ========================================= */

@media (max-width: 768px) {

    /* --- FIX 1: STOP ABOUT US / WHY CHOOSE FROM GOING OFF SCREEN --- */
    .about-col, 
    .why-choose-col {
        /* This overrides the 300px limit causing the overflow */
        min-width: 0 !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
    }
    
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- FIX 2: TESTIMONIAL SLIDER CUT-OFF FIX --- */
    .testimonial-slider-section {
        padding: 30px 10px !important; /* Reduces padding to give content room */
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevents the container from scrolling horizontally */
    }

    .testimonial-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .testimonial-slider-wrapper {
        width: 100% !important;
        padding: 0 !important;
    }

    .testimonial-slider {
        padding: 0 !important;
        width: 100% !important;
    }

    /* Ensure the individual card fits perfectly */
    .testimonial-slide {
        width: 100% !important;
        padding: 0 5px !important; /* Small gap only */
        box-sizing: border-box !important;
    }

    /* Fix Arrows on Mobile */
    .slider-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.5rem !important;
        background: rgba(255,255,255,0.8) !important; /* Add background so arrows are visible over text */
        border-radius: 50% !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }
    
    .slider-arrow.prev-arrow { left: 0 !important; }
    .slider-arrow.next-arrow { right: 0 !important; }
}




/* --- MOBILE MENU STYLES --- */

/* 1. Header Layout Fix: Keep Search Bar Visible */
@media (max-width: 992px) {
    .header-main .container {
        flex-direction: column; /* Stack items vertically */
        align-items: stretch;
        padding-bottom: 10px;
    }
    
    /* Center the logo */
    .logo {
        text-align: center;
        margin: 10px 0;
    }
    
    /* Make search bar full width and visible */
    .header-main .search-bar {
        display: block !important;
        width: 100%;
        margin: 10px 0;
        max-width: none;
    }
    
    /* Position the hamburger button absolutely to the top-left */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px; /* Adjust based on your logo height */
        left: 20px;
        z-index: 1002;
        font-size: 26px;
        color: #1D6F42;
    }
    
    /* Center the cart/account icons below search */
    .header-actions {
        justify-content: center;
        margin-top: 5px;
    }
}

/* 2. Off-Canvas Menu Design */
.off-canvas-menu { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 280px; 
    height: 100%; 
    background-color: #ffffff; 
    z-index: 2000; 
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out; 
    box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
}

.off-canvas-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 20px; 
    background: #1D6F42; /* Your Theme Green */
    color: #fff;
}
.off-canvas-header .menu-title { font-weight: bold; font-size: 18px; text-transform: uppercase; }
.close-menu-btn { color: #fff; background: none; border: none; font-size: 24px; cursor: pointer; }

/* 3. Overlay */
.off-canvas-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); z-index: 1999; 
    opacity: 0; visibility: hidden; transition: opacity 0.3s; 
}

/* 4. Open States */
body.mobile-menu-open .off-canvas-menu { transform: translateX(0); }
body.mobile-menu-open .off-canvas-overlay { opacity: 1; visibility: visible; }
body.mobile-menu-open { overflow: hidden; /* Prevent background scrolling */ }

/* 5. Menu List Styling */
.mobile-nav-menu { list-style: none; padding: 0; margin: 0; }
.mobile-nav-menu li { border-bottom: 1px solid #f1f1f1; position: relative; }
.mobile-nav-menu li a { 
    display: block; padding: 15px 20px; text-decoration: none; 
    color: #333; font-weight: 500; font-size: 16px; 
}
.mobile-nav-menu li a:hover { background-color: #f9f9f9; color: #1D6F42; }

/* 6. Sub-Menu (Categories Dropdown) */
.mobile-nav-menu .sub-menu {
    display: none; /* Hidden by default */
    background-color: #f5f5f5; /* Light grey for inner menu */
    list-style: none; padding: 0;
}
.mobile-nav-menu .sub-menu li { border-bottom: 1px solid #e0e0e0; }
.mobile-nav-menu .sub-menu li a { 
    padding-left: 40px; /* Indent sub-items */
    font-size: 15px; 
    color: #555; 
}

/* Show sub-menu when the 'sub-menu-open' class is added by JS */
.mobile-nav-menu li.sub-menu-open > .sub-menu { display: block; }

/* 7. The Arrow Button */
.menu-arrow-btn {
    position: absolute; 
    top: 0; 
    right: 0;
    width: 54px; 
    height: 54px;
    background: transparent; 
    border: none;
    font-size: 16px; 
    color: #1D6F42; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-left: 1px solid #f1f1f1;
}





















/* --- Smart Sales Counter (Small & Visible) --- */
.sales-social-proof-small {
    font-size: 13px;          /* Small text */
    color: #ffffff;              /* Dark grey for readability */
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;      /* Space below title */
    display: inline-block;
    background-color: #ffca00; /* Very light grey background */
    padding: 3px 8px;         /* Compact padding */
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.sales-social-proof-small .sales-count {
    font-weight: 600;         /* Semi-bold text */
    color: #000000;
}






























/* -------------------------------------------------------------------
   AMAZON STYLE REVIEW CSS
------------------------------------------------------------------- */
.amazon-review-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    font-family: 'Inter', sans-serif;
    color: #333;
    align-items: flex-start;
}

/* LEFT COLUMN */
.ar-col-left {
    flex: 0 0 150px;
    text-align: center;
}
.ar-average-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #333;
}
.ar-stars {
    margin: 5px 0;
    color: #fea500; /* Amazon Orange/Yellow */
}
.ar-total-count {
    font-size: 13px;
    color: #767676;
}

/* MIDDLE COLUMN (BARS) */
.ar-col-middle {
    flex: 1;
    min-width: 250px;
}
.ar-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.ar-star-label {
    width: 50px;
    color: #007185;
    white-space: nowrap;
}
.ar-progress-bg {
    flex-grow: 1;
    height: 20px;
    background-color: #f0f2f2;
    border-radius: 4px;
    border: 1px solid #e3e6e6;
    margin: 0 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.ar-progress-fill {
    height: 100%;
    background-color: #ffce00; /* The Amazon Bar Yellow */
    border-right: 1px solid #ad8b00;
}
.ar-percent-label {
    width: 40px;
    text-align: right;
    color: #555;
}

/* RIGHT COLUMN (BUTTONS) */
.ar-col-right {
    flex: 0 0 220px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
}
.ar-col-right h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.ar-col-right p {
    font-size: 13px;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.4;
}
.ar-btn {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    margin-top: 5px;
    cursor: pointer;
}
/* Style for "Write Review" */
.ar-write-btn {
    background: #fff;
    border-color: #ccc;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.ar-write-btn:hover {
    background: #f7fafa;
}
/* Style for "Login to Review" */
.ar-login-btn {
    background: #1D6F42; /* Using your theme green */
    border-color: #1D6F42;
    color: #fff;
}
.ar-login-btn:hover {
    background: #155532;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .amazon-review-wrapper {
        flex-direction: column;
    }
    .ar-col-right {
        width: 100%;
        margin-top: 20px;
    }
}










@media (min-width: 769px) {
    /* 1. Keep the main container as Flexbox */
    .woocommerce div.product {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap to the next line */
        justify-content: space-between;
    }

    /* 2. Define width for Image and Description (Top Section) */
    .woocommerce-product-gallery {
        width: 48%; /* Takes up roughly half */
        float: none !important;
    }

    .summary.entry-summary {
        width: 48%; /* Takes up the other half */
        float: none !important;
    }

    /* 3. THE FIX: Force the Reviews/Tabs to take a full new row */
    .woocommerce-tabs, 
    #reviews, 
    .woocommerce-product-reviews,
    .reviews-detailed-summary {
        width: 100% !important;      /* Forces full width */
        flex-basis: 100% !important; /* Tells flexbox this item needs the whole line */
        max-width: 100% !important;
        margin-top: 40px;            /* Adds space between summary and reviews */
    }
}


















// -------------------------------------------------------------------
// 15. CUSTOMER REVIEW PHOTO UPLOAD (FORCE COMPATIBILITY)
// -------------------------------------------------------------------

/**
 * A. Add the File Input Field to the Review Form
 */
add_action( 'woocommerce_review_before_submit', 'add_review_photo_field_force' );
function add_review_photo_field_force() {
    echo '<p class="comment-form-photo">
            <label for="review_photo" style="font-weight:bold; display:block;">Upload a Photo with your review:</label>
            <input type="file" name="review_photo" id="review_photo" accept="image/*" style="margin-bottom:15px;">
          </p>';
}

/**
 * B. Force Form to Accept Files (Fixes "Nothing Happened" issue)
 */
add_action( 'wp_footer', 'force_review_form_multipart_script' );
function force_review_form_multipart_script() {
    if ( is_product() ) {
        ?>
        <script type="text/javascript">
        document.addEventListener("DOMContentLoaded", function(event) {
            var reviewForm = document.getElementById('commentform');
            if (reviewForm) {
                reviewForm.setAttribute('enctype', 'multipart/form-data');
            } else {
                // Fallback for themes that don't use the standard ID
                var forms = document.getElementsByTagName('form');
                for (var i = 0; i < forms.length; i++) {
                   if (forms[i].innerHTML.indexOf('review_photo') > -1) {
                       forms[i].setAttribute('enctype', 'multipart/form-data');
                   }
                }
            }
        });
        </script>
        <?php
    }
}

/**
 * C. Save the Uploaded Photo Securely
 */
add_action( 'comment_post', 'save_review_photo_data', 10, 2 );
function save_review_photo_data( $comment_id, $comment_approved ) {
    if ( ! isset( $_FILES['review_photo'] ) || empty( $_FILES['review_photo']['name'] ) ) {
        return;
    }

    require_once( ABSPATH . 'wp-admin/includes/image.php' );
    require_once( ABSPATH . 'wp-admin/includes/file.php' );
    require_once( ABSPATH . 'wp-admin/includes/media.php' );

    $attachment_id = media_handle_upload( 'review_photo', 0 );

    if ( ! is_wp_error( $attachment_id ) ) {
        update_comment_meta( $comment_id, 'review_photo_id', $attachment_id );
    }
}

/**
 * D. Display Photo on Product Page
 */
add_action( 'woocommerce_review_before_comment_meta', 'display_review_photo_visual' );
function display_review_photo_visual( $comment ) {
    $attachment_id = get_comment_meta( $comment->comment_ID, 'review_photo_id', true );
    if ( $attachment_id ) {
        $image_url = wp_get_attachment_image_url( $attachment_id, 'thumbnail' );
        $full_link = wp_get_attachment_url( $attachment_id );
        echo '<div style="margin: 10px 0;">';
        echo '<a href="' . esc_url( $full_link ) . '" target="_blank">';
        echo '<img src="' . esc_url( $image_url ) . '" style="max-width:100px; border:1px solid #ccc; padding:3px;" />';
        echo '</a>';
        echo '</div>';
    }
}

/**
 * E. Display Photo in Admin Dashboard
 */
add_filter( 'manage_edit-comments_columns', 'add_photo_column_admin_force' );
function add_photo_column_admin_force( $columns ) {
    $columns['review_photo'] = 'Photo';
    return $columns;
}

add_action( 'manage_comments_custom_column', 'show_photo_column_content', 10, 2 );
function show_photo_column_content( $column, $comment_id ) {
    if ( 'review_photo' === $column ) {
        $attachment_id = get_comment_meta( $comment_id, 'review_photo_id', true );
        if ( $attachment_id ) {
            echo wp_get_attachment_image( $attachment_id, array(50, 50) );
        }
    }
}