﻿/* Shared footer and storefront layout. */
body.storefront-page .footer-section { padding: 0 32px 24px; }
.footer-section > .container-fluid { max-width: 1440px; margin-inline: auto; }
.footer-main { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.footer-column { min-width: 0; }
.footer .footer-brand { display: inline-block; white-space: nowrap; overflow-wrap: normal; word-break: normal; font-size: 54px; line-height: 1; letter-spacing: -2px; }
.footer .footer-brand:hover { text-decoration: none; }
.footer-brand-description { font-size: 14px; line-height: 1.8; margin: 20px 0; }
.footer .heading-title { margin: 0 0 24px; font-size: 16px; line-height: 1.5; }
.footer-column a { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-contact p { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; font-size: 13px; line-height: 1.8; }
.footer-contact i { font-size: 18px; flex-shrink: 0; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(155, 98, 89, 0.3); border-radius: 50%; }
.footer .footer-socials svg { margin: 0; width: 18px; height: 18px; }
.footer-assurances p { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.8; margin-bottom: 14px; }
.footer-assurances i { font-size: 20px; }
.footer .footer-certified-title { margin: 26px 0 14px; font-size: 13px; }
.footer .certified-by { display: flex; align-items: center; gap: 16px; }
.footer .certified-by img { width: auto; max-width: 80px; height: 28px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid rgba(155, 98, 89, 0.3); padding-top: 22px; font-size: 12px; line-height: 1.8; }
.footer-bottom p { margin: 0; }
.footer-registration { font-size: 10px; margin-top: 6px !important; }
@media (max-width: 1199.98px) {
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
}
@media (max-width: 575.98px) {
    body.storefront-page .footer-section { padding: 0 12px 24px; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
    .footer .footer-brand { font-size: 46px; }
    .footer .heading-title { margin-bottom: 16px; }
    .footer-brand-description { margin: 14px 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Shared navbar and footer for every storefront page. */
html {
    overscroll-behavior-y: contain;
}

body.storefront-page {
    --bs-font-sans-serif: 'Doppio One', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    font-family: var(--bs-body-font-family);
    --home-accent: #c98f86;
    --home-accent-dark: #9b6259;
    --home-border: rgba(155, 98, 89, 0.16);
    overscroll-behavior-y: contain;
}

body.storefront-page header .nav-item.count .count-box {
    background-color: var(--home-accent);
    color: #fff;
}

body.storefront-page .navbar .nav-link:hover,
body.storefront-page .offcanvas .nav-link:hover {
    color: var(--home-accent-dark);
}

/* Keep one compact chevron on storefront dropdown links. */
body.storefront-page .nav-link-has-arrow::after { display: none; }
body.storefront-page .nav-link-has-arrow > span:last-child {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    font-size: 10px;
    line-height: 1;
}

body.storefront-page .footer-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 32px 22px;
    border-top: 3px solid #c99b5d;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(201, 155, 93, .14), transparent 36%),
        linear-gradient(135deg, #1e2b1d, #142015 72%);
}

body.storefront-page .footer-section::before {
    position: absolute;
    z-index: -1;
    top: -150px;
    right: -100px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(240, 220, 185, .08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 36px rgba(240, 220, 185, .025), 0 0 0 72px rgba(240, 220, 185, .02);
    pointer-events: none;
}

body.storefront-page .footer-main {
    grid-template-columns: minmax(250px, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 58px);
    padding: 64px 0 48px;
}

body.storefront-page .footer-column {
    position: relative;
}

body.storefront-page .footer .footer-brand {
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    padding: 8px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 12px;
    background: #fff;
}

body.storefront-page .footer .footer-brand img {
    display: block;
    width: auto;
    max-width: min(240px, 100%);
    max-height: 56px;
    object-fit: contain;
}

body.storefront-page .footer-brand-description {
    max-width: 360px;
    margin: 18px 0;
    color: #d4ddcf !important;
    font-size: 13px;
    line-height: 1.8;
}

body.storefront-page .footer .heading-title {
    position: relative;
    display: inline-block;
    margin: 4px 0 24px;
    padding-bottom: 11px;
    color: #f1d7ad;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.storefront-page .footer .heading-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: #c99b5d;
    content: "";
}

body.storefront-page .footer-column a {
    color: #e6e9e1;
    transition: color .2s ease, transform .2s ease;
}

body.storefront-page .footer-column a:hover {
    color: #f1d7ad;
}

body.storefront-page .footer-links {
    gap: 11px;
}

body.storefront-page .footer-contact p {
    gap: 12px;
    margin-bottom: 14px;
    color: #e6e9e1 !important;
}

body.storefront-page .footer-contact p > i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 155, 93, .3);
    border-radius: 10px;
    background: rgba(201, 155, 93, .1);
    color: #e5bf85;
    font-size: 15px;
}

body.storefront-page .footer-socials {
    gap: 9px;
    margin-top: 20px;
}

body.storefront-page .footer-socials a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(241, 215, 173, .25);
    background: rgba(255, 255, 255, .045);
    color: #f1d7ad;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

body.storefront-page .footer-socials a:hover {
    transform: translateY(-3px);
    border-color: #c99b5d;
    background: #c99b5d;
    color: #172317;
}

body.storefront-page .footer-assurances {
    display: grid;
    gap: 10px;
}

body.storefront-page .footer-assurances p {
    gap: 11px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: #e6e9e1 !important;
    font-size: 12px;
}

body.storefront-page .footer-assurances i {
    color: #e5bf85;
    font-size: 19px;
}

body.storefront-page .footer-bottom {
    min-height: 58px;
    border-top: 1px solid rgba(241, 215, 173, .18);
    padding: 18px 0 0;
    color: #bdc6b9 !important;
}

body.storefront-page .footer-bottom a {
    color: #f1d7ad !important;
}

@media (max-width: 1199.98px) {
    body.storefront-page .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 48px;
    }
}

@media (max-width: 575.98px) {
    body.storefront-page .footer-section {
        padding: 0 18px 18px;
    }

    body.storefront-page .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 38px 0 32px;
    }

    body.storefront-page .footer .footer-brand {
        min-height: 64px;
    }

    body.storefront-page .footer .footer-brand img {
        max-height: 48px;
    }

    body.storefront-page .footer .heading-title {
        margin-bottom: 18px;
    }

    body.storefront-page .footer-bottom {
        align-items: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.storefront-page .footer-column a,
    body.storefront-page .footer-socials a {
        transition: none;
    }
}

body.storefront-page header a:focus-visible,
body.storefront-page footer a:focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 3px;
}

body.storefront-page .footer .icon svg:hover {
    color: #f1d7ad;
}

body.storefront-page .footer .top {
    border-bottom-color: rgba(155, 98, 89, 0.3);
}

body.storefront-page header.sticky-top {
    background: linear-gradient(110deg, #fbf5f3, #f3e2de);
    border-bottom: 1px solid #f6cabc;
    box-shadow: 0 4px 24px rgba(97, 48, 32, 0.04);
}

body.storefront-page header .bg-light {
    background-color: transparent !important;
}

body.storefront-page header .navbar {
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 80px;
    padding: 6px clamp(12px, 2.5vw, 40px) !important;
}

body.storefront-page .navbar > .navbar-brand {
    order: 0;
    flex-shrink: 0;
    margin: 0;
}

body.storefront-page .navbar .navbar-brand img {
    width: 150px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

body.storefront-page .navbar > #main_nav {
    order: 1;
    flex: 1;
}

body.storefront-page #main_nav > .navbar-nav {
    margin-right: 0 !important;
    gap: 12px;
}

body.storefront-page .navbar > .action-icon {
    order: 2;
    flex: 0 0 auto;
}

body.storefront-page .action-icon > .navbar-nav {
    margin-right: 0 !important;
    gap: 8px;
}

body.storefront-page .navbar .action-icon .nav-link,
body.storefront-page .navbar .action-md-icon .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
}

body.storefront-page .navbar .action-icon .nav-link:hover,
body.storefront-page .navbar .action-md-icon .nav-link:hover {
    background: #fff;
}

body.storefront-page .navbar .nav-item.count .count-box {
    top: -3px;
    right: -3px;
}

body.storefront-page .navbar > .action-md-icon {
    order: 2;
    margin: 0 0 0 auto;
    gap: 8px;
}

body.storefront-page .navbar > .navbar-toggler {
    order: 3;
    border-color: rgba(185, 64, 34, 0.25);
    padding: 6px;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2344642f' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 575px) {
    body.storefront-page header .navbar {
        gap: 10px;
    }

    body.storefront-page .navbar .navbar-brand img {
        width: 118px;
        height: 52px;
    }
}

body.storefront-page header .dropdown-menu,
body.storefront-page .offcanvas .dropdown-menu {
    /* Override Bootstrap's background, border and shadow utilities. */
    background-color: #fbf5f3 !important;
    background-image: linear-gradient(135deg, #f6f8f3, #f3e2de);
    border: 1px solid rgba(155, 98, 89, 0.18) !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 32px rgba(97, 48, 32, 0.12) !important;
    color: #302724 !important;
}

@media (min-width: 992px) {
    body.storefront-page header .dropdown-menu {
        margin-top: 12px !important;
    }
    body.storefront-page header .dropdown-menu::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -14px;
        height: 14px;
    }
    body.storefront-page header .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
    }
    body.storefront-page header .dropdown.show > .dropdown-menu,
    body.storefront-page header .dropdown:hover > .dropdown-menu,
    body.storefront-page header .dropdown:focus-within > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }
}

body.storefront-page .mega-menu a {
    padding: 12px;
    border-radius: 14px;
    transition: background-color 180ms ease;
}

body.storefront-page .mega-menu a,
body.storefront-page .mega-menu a span {
    color: #302724 !important;
}

body.storefront-page .mega-menu a:hover,
body.storefront-page .mega-menu a:focus-visible {
    background-color: #f3e2de;
    transform: none;
}

body.storefront-page .mega-menu a:hover span,
body.storefront-page .mega-menu a:focus-visible span {
    color: var(--home-accent-dark) !important;
}


/* Shared navigation with a right-hand animated drawer. */
body.storefront-page header.sticky-top {
    background: rgba(255, 249, 246, .96);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(97, 48, 32, .06);
}
@media (min-width: 992px) {
    body.storefront-page .navbar > #main_nav {
        display: flex !important;
        justify-content: center;
        min-width: 0;
    }
    body.storefront-page #main_nav > .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: clamp(8px, 1.5vw, 24px);
        padding: 0 !important;
    }
    body.storefront-page .navbar > button.drawer-toggle { display: none !important; }
    body.storefront-page .navbar > .action-icon { margin-left: 0; }
}
@media (max-width: 991.98px) {
    body.storefront-page .navbar > #main_nav { display: none !important; }
    body.storefront-page .navbar > .action-icon { margin-left: auto; }
}
body.storefront-page .navbar > .drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 13px 20px;
    border: 1px solid #c98f86;
    border-radius: 50px;
    background: #c98f86;
    color: #fff;
    transition: background-color .2s ease, box-shadow .2s ease;
}
body.storefront-page .navbar > .drawer-toggle:hover { background: #9b6259; }
body.storefront-page .drawer-toggle:focus-visible { outline: 2px solid #9b6259; outline-offset: 4px; box-shadow: none; }
.drawer-toggle-label { font-size: 13px; }
.drawer-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.drawer-toggle-bars span { display: block; height: 2px; width: 22px; border-radius: 2px; background: currentColor; transition: width .25s ease; }
.drawer-toggle-bars span:nth-child(2) { width: 15px; margin-left: auto; }
.drawer-toggle:hover .drawer-toggle-bars span:nth-child(2) { width: 22px; }
body.storefront-page .storefront-drawer {
    --bs-offcanvas-width: min(460px, 100vw);
    --bs-offcanvas-transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    background: #fff9f6;
    color: #302724;
    border: 0;
    box-shadow: -20px 0 70px #30272420;
}
.storefront-drawer .offcanvas-header { padding: 30px 28px; border-bottom: 1px solid #c98f8626; }
.drawer-eyebrow { display: block; font-size: 10px; letter-spacing: 2px; color: #9b6259; margin-bottom: 10px; }
.storefront-drawer .offcanvas-title { font-size: 28px; }
.storefront-drawer .btn-close { padding: 14px; border-radius: 50%; background-color: #f3e2de; opacity: 1; }
.storefront-drawer .offcanvas-body { padding: 16px 28px 32px; }
body.storefront-page .storefront-drawer .offcanvas-body > .navbar-nav > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #c98f8620;
    color: #302724;
    font-size: 20px;
    transition: color .2s ease, padding-left .2s ease;
}
body.storefront-page .storefront-drawer .nav-link:hover { padding-left: 8px !important; color: #9b6259 !important; }
.storefront-drawer .nav-link.dropdown-toggle > span:last-child { margin-left: auto; font-size: 10px; }
body.storefront-page .storefront-drawer .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    margin-bottom: 12px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.storefront-drawer .mega-menu .row > div { width: 50%; }
.storefront-drawer .offcanvas-body > .navbar-nav > .nav-item { opacity: 0; transform: translateX(30px); transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.storefront-drawer.show .offcanvas-body > .navbar-nav > .nav-item { opacity: 1; transform: translateX(0); }
.storefront-drawer.show .nav-item:nth-child(1) { transition-delay: .08s; }
.storefront-drawer.show .nav-item:nth-child(2) { transition-delay: .12s; }
.storefront-drawer.show .nav-item:nth-child(3) { transition-delay: .16s; }
.storefront-drawer.show .nav-item:nth-child(4) { transition-delay: .20s; }
.storefront-drawer.show .nav-item:nth-child(5) { transition-delay: .24s; }
.storefront-drawer.show .nav-item:nth-child(6) { transition-delay: .28s; }
.storefront-drawer.show .nav-item:nth-child(7) { transition-delay: .32s; }
@media (max-width: 575px) {
    body.storefront-page .navbar > .drawer-toggle { padding: 12px; }
    .drawer-toggle-label { display: none; }
    .storefront-drawer .offcanvas-header { padding: 24px 20px; }
    .storefront-drawer .offcanvas-body { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    body.storefront-page .storefront-drawer { --bs-offcanvas-transition: none; }
    .storefront-drawer .offcanvas-body > .navbar-nav > .nav-item,
    .drawer-toggle-bars span { transition: none; }
}

/* Consistent product cards throughout the storefront. */
body.storefront-page main .product-item {
    padding: 20px;
    border: 1px solid #eeded7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(65, 36, 25, .05);
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.storefront-page main .product-item:hover {
    transform: none;
    background: #fff;
    border-color: #c98f86;
    box-shadow: 0 8px 24px rgba(65, 36, 25, .1);
}
body.storefront-page main .product-item .bg-svg { display: none; }
body.storefront-page main .product-item .product-img {
    padding: 12px;
    border-radius: 8px;
    background: #fff9f6;
}
body.storefront-page main .product-item .product-img img { object-fit: contain; }
body.storefront-page main .product-item .product-info,
body.storefront-page main .product-item .name-type,
body.storefront-page main .product-info-outer,
body.storefront-page main .product-info-outer .name-type {
    width: 100%;
    text-align: center;
    align-items: center !important;
}
body.storefront-page main .product-item .name-type {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}
body.storefront-page main .product-item .product-name { color: #302724; line-height: 1.5; }
body.storefront-page main .product-item .product-type { color: #81736d; line-height: 1.4; }
body.storefront-page main .product-item .product-info > .d-flex {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 12px;
}
body.storefront-page main .product-item .price { color: #9b6259; }
body.storefront-page main .product-item .add-to-cart {
    background: #c98f86;
    color: #fff;
    border: 0;
    border-radius: 10px;
    min-width: 44px;
    min-height: 44px;
}
body.storefront-page main .product-item .add-to-cart i { color: inherit; }
body.storefront-page main .product-item .add-to-cart:hover { background: #9b6259; color: #fff; }
body.storefront-page main .product-info-outer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
body.storefront-page main .product-info-outer > div { max-width: 100%; }
@media (max-width: 575px) {
    body.storefront-page main .product-item { padding: 12px; }
    body.storefront-page main .product-item .product-img { padding: 8px; }
    body.storefront-page main .product-item .product-name { font-size: 13px; }
    body.storefront-page main .product-item .product-type { font-size: 12px; }
    body.storefront-page main .product-item .price { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    body.storefront-page main .product-item { transition: none; }
}
