/* =============================================
   RESET & BASE (from external CSS)
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: linear-gradient(to right, #1a4d2e, #2d5f3f);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
}

/* =============================================
   HEADER
   ============================================= */
header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background: #1a4d2e;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #1a4d2e;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: color 0.3s;
}

.header-icons button:hover {
    color: #1a4d2e;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1a4d2e;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.mobile-nav.active {
    display: flex;
}

/* =============================================
   CONTAINER & SECTION TITLES
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ccc;
    margin-right: 6px;
}

.breadcrumb-item a {
    color: #1a4d2e;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* =============================================
   PRODUCT GALLERY
   ============================================= */
.product-gallery {
    position: sticky;
    top: 80px;
}

.main-product-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-product-image img:hover {
    transform: scale(1.02);
}

/* Gallery Navigation Arrows */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-nav-btn:hover {
    background: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 6px;
    scrollbar-width: none;
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #1a4d2e;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* =============================================
   PRODUCT BADGE
   ============================================= */
.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #27ae60;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* =============================================
   PRODUCT INFO
   ============================================= */
.product-info {
    padding-top: 5px;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    color: #111;
}

.product-sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

/* Price */
.price-box {
    margin-bottom: 14px;
}

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: #1a4d2e;
}

.price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.price-tax {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.stars {
    color: #ffc107;
    font-size: 17px;
    letter-spacing: 1px;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

/* Delivery Info */
.delivery-info {
    background: #f4fbf6;
    border: 1px solid #b2dfdb;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #2d6a4f;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pincode Input */
.pincode-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pincode-wrapper input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.pincode-wrapper input:focus {
    border-color: #1a4d2e;
}

.pincode-wrapper button {
    background: #1a4d2e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pincode-wrapper button:hover {
    background: #145222;
}

/* Product Features Box */
.product-features {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
    color: #111;
}

.feature-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.6;
}

.feature-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-images img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Offer Banner */
.offer-banner {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.offer-banner strong {
    color: #e65100;
    font-size: 14px;
}

.offer-price {
    color: #856404;
    font-size: 12px;
}

/* =============================================
   ACTION BUTTONS
   ============================================= */
.btn-add-cart {
    width: 100%;
    background: #1a4d2e;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background: #145222;
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.action-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-whatsapp {
    flex: 1;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20b858;
    color: white;
}

.btn-get-quote {
    flex: 1;
    background: white;
    color: #1a4d2e;
    padding: 12px;
    border: 2px solid #1a4d2e;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-get-quote:hover {
    background: #1a4d2e;
    color: white;
}

/* Trust Icons */
.trust-icons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.trust-item {
    flex: 1;
    text-align: center;
}

.trust-item img {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 11px;
    color: #555;
    line-height: 1.3;
    margin: 0;
}

/* =============================================
   PRODUCT TABS
   ============================================= */
.product-tabs {
    margin-top: 50px;
    border-top: 1px solid #e5e5e5;
    padding-top: 10px;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #1a4d2e;
}

.tab-btn.active {
    color: #1a4d2e;
    border-bottom-color: #1a4d2e;
}

.tab-pane {
    display: none;
    padding: 28px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    animation: fadeInTab 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background: #f8f8f8;
}

.specs-table td {
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
}

/* =============================================
   REVIEWS SECTION
   ============================================= */
.reviews-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.reviews-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Rating Overview */
.rating-overview {
    text-align: center;
    margin-bottom: 20px;
}

.rating-big {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #111;
}

.rating-big-stars {
    font-size: 22px;
    color: #ffc107;
    letter-spacing: 2px;
    margin: 6px 0;
}

.rating-based {
    font-size: 13px;
    color: #888;
}

/* Rating Bars */
.rating-bars {
    margin-top: 20px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-row-label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    min-width: 42px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.rating-bar-count {
    min-width: 26px;
    text-align: right;
    font-size: 12px;
    color: #888;
}

/* Write Review Buttons */
.review-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-write-review,
.btn-ask-question {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-write-review {
    background: #1a4d2e;
    color: white;
    border: none;
}

.btn-write-review:hover {
    background: #145222;
}

.btn-ask-question {
    background: white;
    color: #1a4d2e;
    border: 2px solid #1a4d2e;
}

.btn-ask-question:hover {
    background: #f4fbf6;
}

/* Review Cards */
.reviews-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a4d2e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.review-verified {
    display: inline-block;
    background: #27ae60;
    color: white;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.review-date {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

.review-card-stars {
    font-size: 13px;
    color: #ffc107;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.review-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222;
}

.review-text {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

/* =============================================
   RELATED PRODUCTS
   ============================================= */
.related-products-section {
    margin-top: 60px;
    padding: 40px 0 60px;
    border-top: 1px solid #e5e5e5;
}

.related-products-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-product-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.related-product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.07);
}

.related-product-info {
    padding: 14px;
}

.related-product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.related-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a4d2e;
}

/* =============================================
   STICKY CHAT BUTTON
   ============================================= */
.sticky-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}

.sticky-chat-btn:hover {
    background: #20b858;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

/* =============================================
   PROMISE SECTION
   ============================================= */
.promise-section {
    background: linear-gradient(to right, #e8f5e9, #c8e6c9);
    padding: 60px 20px;
}

.promise-card {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.promise-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.promise-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    text-align: center;
}

.promise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promise-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.promise-text {
    font-size: 14px;
    color: #555;
}

/* =============================================
   ZOOM MODAL
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.zoom-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zoom-stage img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    will-change: transform;
}

/* =============================================
   QUOTE OFFCANVAS (BOOTSTRAP)
   ============================================= */
.offcanvas-header {
    border-bottom: 1px solid #eee;
}

/* =============================================
   SKELETON LOADER
   ============================================= */
.skeleton-category {
    height: 220px;
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 37%,
        #f0f0f0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* =============================================
   RESPONSIVE — TABLET (max 991px)
   ============================================= */
@media (max-width: 991px) {
    .product-gallery {
        position: static;
        margin-bottom: 30px;
    }

    .product-title {
        font-size: 19px;
    }

    .product-price {
        font-size: 22px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid-2col {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .promise-card {
        padding: 30px 20px;
    }

    .promise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max 576px)
   ============================================= */
@media (max-width: 576px) {
    .container {
        padding: 20px 15px;
    }

    .breadcrumb-wrapper {
        padding: 10px 15px 0;
    }

    .product-title {
        font-size: 17px;
    }

    .product-price {
        font-size: 20px;
    }

    .main-product-image {
        border-radius: 8px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .action-buttons-row {
        flex-direction: column;
    }

    .trust-icons {
        gap: 6px;
        padding: 12px 8px;
    }

    .trust-item p {
        font-size: 10px;
    }

    .trust-item img {
        width: 30px;
        height: 30px;
    }

    .tab-btn {
        padding: 12px 14px;
        font-size: 13px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-product-name {
        font-size: 13px;
    }

    .related-product-price {
        font-size: 14px;
    }

    .review-card {
        padding: 14px;
    }

    .review-actions {
        flex-direction: column;
    }

    .sticky-chat-btn {
        bottom: 18px;
        right: 18px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .product-features {
        display: none; /* Hide on mobile to save space; enable if needed */
    }

    .promise-card {
        padding: 20px 15px;
    }

    .promise-title {
        font-size: 22px;
    }

    .reviews-grid-2col {
        grid-template-columns: 1fr;
    }
}