/* ==========================================================================
   1. Base & General Styles (PREMIUM REDESIGN)
   ========================================================================== */

/* 1a. Font Import & Color Palette */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Font */
    --font-main: "Work Sans", system-ui, -apple-system, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, "Noto Sans",
                 "Liberation Sans", sans-serif;

    /* Premium Color Palette */
    --color-primary: #1D3557;         /* Deep, trustworthy navy blue */
    --color-primary-light: #F1FAEE;   /* Very light, complementary accent for backgrounds */
    --color-accent: #E63946;          /* Energetic red for highlights like "Sale" tags */
    --color-background: #F8F9FA;      /* Soft, clean off-white background */
    --color-surface: #FFFFFF;         /* Pure white for cards and interactive surfaces */
    --color-text-primary: #212529;    /* Dark charcoal for main text (better than pure black) */
    --color-text-secondary: #6c757d;  /* Muted grey for less important text */
    --color-border: #E9ECEF;          /* Subtle, light grey for borders */
    --color-success: #2a9d8f;         /* A pleasing green for success states */
    
    /* UI Sizing & Effects */
    --border-radius-main: 1rem;       /* 16px border radius for a modern, soft look */
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
    --promo-nav-h: 92px; /* MODIFIED: Increased height for larger content */
    
    /* --- IMPORTANT --- */
    /* ADJUST THIS VALUE to match the exact height of your main site navigation bar. 
       For example, if your main navbar is 75px tall, set this to 75px. */
    --main-navbar-height: 60px; 
    
    --scroll-offset: calc(var(--promo-nav-h, 92px) + var(--main-navbar-height, 60px) + 8px);
}

/* 1b. Global Styles */
html, body {
    height: 100%;
    background-color: var(--color-background);
    overflow-x: hidden;
    font-family: var(--font-main);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

h1, h2, h3, .product-title {
    font-weight: 700;
    color: var(--color-primary);
}

.logo {
    margin-left: 0px;
}
.cart-icon-wrapper{
  margin-right: 0px;
}

.price, .amount, .currency {
    font-variant-numeric: tabular-nums lining-nums;
}

.object-fit-contain {
    object-fit: contain;
}

section.anchor-target { 
    scroll-margin-top: var(--scroll-offset); 
}

/* ==========================================================================
   2. Breadcrumbs & Promo Nav Bar
   ========================================================================== */
/* Base styles provided */
/* Base styles provided */
.breadcrumbs-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    line-height: 1;
    padding: 0;
    margin: 0;
}
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1;
    padding: 0.5rem 0;
    margin: 0;
}
.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .sep {
    margin: 0 0.35rem;
}

.promo-nav-bar {
    position: sticky;
    top: var(--main-navbar-height); /* Sticks below the main navbar */
    z-index: 39; 
    background: linear-gradient(to bottom, #ffffff, #f1faee);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(2, 6, 23, .07), inset 0 -1px 0 rgba(0,0,0,0.02);
    padding: 8px 0;
}
.promo-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* MODIFIED: Converted promo-section into a flex container */
.promo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem; /* Space between heading and swiper */
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

/* NEW: Style for the new headings */
.promo-section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color:black;
    margin: 0;
    padding-left: 0.5rem;
}

.promo-divider {
    width: 1px;
    height: 40px;
    background-color: #d6e5e2;
    flex-shrink: 0;
}

/* MODIFIED: Made the swiper flexible to fill remaining space */
.swiper-promo-recent, .swiper-promo-new {
    flex: 1; /* Allows the swiper to grow */
    min-width: 0; /* Prevents overflow in flex container */
    width: 100%;
    height: 68px;
    margin: 0 auto;
}
.swiper-promo-recent .swiper-slide, .swiper-promo-new .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
}
.promo-product-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease-out;
    border: 1px solid transparent;
}
.promo-product-card:hover {
    background-color: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}
.promo-product-img {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.promo-product-details {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.promo-product-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.promo-product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}
.promo-section .swiper-button-next, .promo-section .swiper-button-prev {
    position: absolute;
    top: 65%; /* Adjusted for better vertical centering */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    box-shadow: var(--shadow-subtle);
    color: var(--color-text-primary);
    transition: all 0.2s ease;
    z-index: 10;
    display: none;
}

.promo-section .swiper-button-next:hover, .promo-section .swiper-button-prev:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}
.swiper-btn-prev-recent { left: 8px; }
.swiper-btn-next-recent { right: 8px; }
.swiper-btn-prev-new { left: 8px; }
.swiper-btn-next-new { right: 8px; }
.promo-section .swiper-button-next::after, .promo-section .swiper-button-prev::after {
    font-family: "remixicon" !important;
    font-size: 20px;
    font-weight: bold;
}
.promo-section .swiper-button-prev::after { content: '\ea64'; }
.promo-section .swiper-button-next::after { content: '\ea6e'; }
.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (min-width: 992px) {
    /* MODIFIED: This rule brings back the hover effect on larger screens */
    .promo-section:hover .swiper-button-next,
    .promo-section:hover .swiper-button-prev {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* ==========================================================================
   3. Product Image Gallery & Zoom
   ========================================================================== */

.gallery-main {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-main);
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-main:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}
.gallery-main-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.gallery-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.icon-btn {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-btn i { 
    font-size: 1.2rem; 
    color: var(--color-text-primary);
    transition: transform 0.2s ease, color 0.2s ease;
}
.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.icon-btn:hover i {
    color: var(--color-primary);
}
.icon-btn.is-wishlisted i {
    color: var(--color-accent);
}
.icon-btn.is-wishlisted {
    transform: scale(1.1);
    animation: heart-pop 0.3s ease-out;
}
@keyframes heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}
#zoom-box {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9;
    border-radius: var(--border-radius-main);
}
.gallery-main:hover .gallery-main-img {
    opacity: 0;
}
.image-index {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(29, 53, 87, 0.8);
    color: var(--color-surface);
    z-index: 10;
}
.thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.scroll-btn {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.scroll-btn i { font-size: 1.25rem; color: var(--color-text-secondary); }
.scroll-btn:hover { 
    background-color: var(--color-primary-light); 
    border-color: var(--color-primary); 
    transform: scale(1.1);
}
.scroll-btn:hover i { color: var(--color-primary); }
.scroll-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; background-color: var(--color-surface); border-color: var(--color-border);}
.thumbs.scroller {
    display: flex;
    gap: 0.75rem;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 0.25rem;
    flex: 1 1 auto;
}
.thumbs.scroller::-webkit-scrollbar { display: none; }
.thumb-box {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid transparent;
    background-color: var(--color-surface);
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.thumb-box:hover { 
    border-color: var(--color-text-secondary); 
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle);
}
.thumb-box.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.25);
    transform: translateY(-2px) scale(1.05);
}
.gallery-lightbox {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: scale(0.95);
}
.gallery-lightbox.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.lightbox-backdrop {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}
.lightbox-close-btn {
    position: absolute; top: 1.5rem; right: 1.5rem;
    color: white;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
}
.lightbox-content {
    position: relative;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* ==========================================================================
   4. Product Details & Actions
   ========================================================================== */

.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-main);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    height: 100%;
}
.sticky-col {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--main-navbar-height) + var(--promo-nav-h) + 20px);
  align-self: flex-start;
  height: max-content;
  z-index: 10;
}
.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.qty-btn {
    background: var(--color-primary-light);
    border: none;
    padding: 8px 14px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--color-primary);
}
.qty-btn:hover { background: #dbebe6; }
.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.container-btn {
  border-radius: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  transition: all 0.2s ease-out;
  border: 2px solid transparent;
}
.container-btn.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(29, 53, 87, 0.2);
}
.container-btn.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(29, 53, 87, 0.3);
  background-color: #172a46;
  border-color: #172a46;
}
.container-btn.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.container-btn.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}
#shareMenuBtn::after { display: none !important; }
.dropdown-menu {
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    border-color: var(--color-border);
}
.info-box {
    background-color: var(--color-primary-light);
    border: 1px solid #d6e5e2;
    border-radius: 12px;
    padding: 1rem;
}
.info-box p { line-height: 1.7; color: var(--color-text-secondary); }
.info-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-trigger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   5. Highlights & Comparison Table
   ========================================================================== */

.section-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-main);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
}
.section-title {
    margin-bottom: 1.5rem;
}
.section-title .eyebrow {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.highlights-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}
.highlight-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}
.comparison-section {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-subtle);
}
.comparison-table {
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto;
}
.comparison-table thead th {
    vertical-align: top;
    padding: 1rem 0.75rem;
    border-top: none;
    border-bottom: 2px solid var(--color-primary);
    background-color: var(--color-surface);
    color: var(--color-primary);
    font-weight: 700;
}
.comparison-table tbody th {
    text-align: left;
    font-weight: 600;
    background-color: var(--color-primary-light);
}
.comparison-table tbody td { text-align: center; }
.comparison-table td, .comparison-table th {
    vertical-align: middle;
    border-width: 0;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.comparison-table tr th:first-child,
.comparison-table tr td:first-child { border-left: 1px solid var(--color-border); }
.comparison-table tr:first-child th,
.comparison-table tr:first-child td { border-top: 1px solid var(--color-border); }
.comparison-table th:last-child,
.comparison-table td:last-child { border-right: 1px solid var(--color-border); }
.compare-img-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}
.compare-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.comparison-table .product-name a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.comparison-table .product-name a:hover { text-decoration: underline; }
.comparison-table .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   6. Mobile Responsiveness
   ========================================================================== */

@media (max-width: 991.98px) {
    .sticky-col {
        position: static;
        top: auto;
    }
    section[class*="col-"] {
        margin-bottom: 1.5rem;
    }
    .product-card {
        margin-bottom: 1.5rem;
    }
    .row > *:last-child .product-card {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .promo-nav-bar { --promo-nav-h: 64px; padding: 4px 0; }
    .promo-nav-inner { gap: 0.5rem; }
    .promo-divider { display: none; }
    .swiper-promo-recent, .swiper-promo-new { height: 52px; }
    .promo-product-card { gap: 0.5rem; padding: 4px 6px; }
    .promo-product-img { width: 36px; height: 36px; }
    .promo-product-name { font-size: 0.8rem; max-width: 100px; }
    .promo-product-price { font-size: 0.85rem; }
    
    .gallery-main {
        height: 320px;
    }
    .gallery-main:hover {
        transform: none;
        box-shadow: none;
    }
    h2.mb-1 { font-size: 1.6rem !important; }
    h3.fw-bold { font-size: 1.8rem !important; }
    .product-card, .section-card {
        padding: 1.5rem !important;
    }
    .d-grid .btn {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .highlights-grid {
        grid-template-columns: 1fr; 
    }
    .highlight-item {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    .section-card {
        padding: 1rem !important;
    }
}

