:root {
    --brand: #0d6efd;
    --dark: #152238;
}
body { color: #243044; background: #fff; padding-top: 108px; }
.pre-header { height: 36px; line-height: 36px; background: var(--dark); color: #fff; position: fixed; top: 0; left: 0; right: 0; z-index: 1040; }
.main-navbar { top: 36px; min-height: 72px; z-index: 1039; }
.brand-logo { width: 44px; height: 44px; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--dark); }
.navbar .nav-link { font-weight: 600; }
.cart-link { padding-right: 1.2rem !important; }
.cart-badge { position: absolute; top: 3px; right: 0; font-size: .65rem; }
.hero-carousel .carousel-item { background: #f4f7fb; }
.hero-carousel img { width: 100%; height: auto; display: block; }
.hero-carousel .carousel-caption { text-shadow: 0 2px 6px rgba(0,0,0,.75); }
.section-title { font-weight: 800; color: var(--dark); }
.product-card { border: 0; border-radius: 14px; overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 6px 25px rgba(20,35,60,.08); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,35,60,.14); }
.product-image-wrap { position: relative; background: #f7f8fa; overflow: hidden; }
.product-image { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; transition: transform .25s ease; }
.product-card:hover .product-image { transform: scale(1.03); }
.discount-badge { position: absolute; top: 12px; left: 12px; background: #ff1744; color: #fff; font-weight: 800; padding: .45rem .65rem; border-radius: 8px; z-index: 2; box-shadow: 0 4px 12px rgba(255,23,68,.35); }
.price-old { color: #8b95a5; text-decoration: line-through; }
.price-new { color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.site-footer { background: #f6f8fb; }
.site-footer h5 { font-weight: 800; color: var(--dark); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #536174; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.product-detail-image { width: 100%; max-height: 520px; object-fit: contain; background: #f7f8fa; border-radius: 14px; }
.quantity-input { max-width: 220px; }
.quantity-input .qty-display { width: 120px; text-align: center; }
@media (max-width: 991.98px) {
    body { padding-top: 108px; }
    .navbar-collapse { background: #fff; padding: .75rem 0; }
    .navbar .dropdown-menu { border: 0; }
}
@media (max-width: 575.98px) {
    .pre-header span:first-child { font-size: .72rem; }
    .brand-name { font-size: 1.15rem; }
    .hero-carousel .carousel-caption { display: none; }
}


/* Product detail hover zoom */
.product-detail-zoom {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.product-detail-zoom-image {
    display: block;
    transition: transform .18s ease;
    will-change: transform;
}


/* Product image gallery */
.product-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}
.product-gallery-thumb {
    display: block;
    flex: 0 0 96px;
    width: 96px !important;
    height: 96px !important;
    min-width: 96px;
    min-height: 96px;
    margin: 0;
    padding: 4px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px;
    background: #fff !important;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}
.product-gallery-thumb img {
    display: block !important;
    width: 86px !important;
    height: 86px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    object-fit: contain !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.product-gallery-thumb.active {
    border: 2px solid var(--brand) !important;
}
@media (max-width: 767.98px) {
    .product-gallery-thumb {
        flex-basis: 78px;
        width: 78px !important;
        height: 78px !important;
        min-width: 78px;
        min-height: 78px;
    }
    .product-gallery-thumb img {
        width: 68px !important;
        height: 68px !important;
    }
}


/* Footer look & feel: natural green / earthy palette inspired by the store imagery. */
.site-footer,
footer.site-footer {
  background: linear-gradient(135deg, #163b12 0%, #234f17 55%, #315f1d 100%);
  color: #f4f0df;
  border-top: 1px solid #6b7f4b;
}
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .footer-title {
  color: #fff8df;
}
.site-footer p,
.site-footer span,
.site-footer li {
  color: #e8e6d5;
}
.site-footer a {
  color: #f1d98a;
}
.site-footer a:hover {
  color: #fff3c4;
}
.site-footer hr {
  border-color: rgba(244, 240, 223, .25);
}


/* Fixed header look & feel: matching the natural green footer palette. */
.pre-header {
    background: #123b12 !important;
    color: #e8ecd9 !important;
    border-bottom: 1px solid rgba(255,248,223,.18);
}
.main-navbar {
    background: linear-gradient(135deg, #f8f4df 0%, #fffdf4 55%, #f2efd9 100%) !important;
    border-bottom: 2px solid #a4b86b;
}
.brand-name {
    color: #234f17 !important;
}
.navbar .nav-link {
    color: #234f17 !important;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #6f5510 !important;
}
.navbar .navbar-toggler {
    border-color: #6b7f4b;
}
.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(49,95,29,.18);
}
.navbar .navbar-toggler-icon {
    filter: sepia(1) saturate(.8) hue-rotate(55deg) brightness(.65);
}
.navbar .dropdown-menu {
    border: 1px solid #c8d2a9;
    box-shadow: 0 10px 28px rgba(25,55,20,.14);
}
.navbar .dropdown-item {
    color: #234f17;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: #edf2df;
    color: #163b12;
}
.cart-link {
    color: #234f17 !important;
}
.cart-link:hover {
    color: #6f5510 !important;
}
