/* Storefront responsive — tablet 1024, phone 767, small phone 480.
   Loaded after page CSS so these rules win over stacked-nav leftovers. */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Storefront responsive
   1200 small laptop / large tablet
   1024 tablet landscape
   768 tablet portrait
   600 large phone
   480 phone
   360 small phone
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.SideDrawerToggle,
.SideDrawer,
.SideDrawerBackdrop,
.SideDrawerClose {
    display: none;
}

/* ---------- Nav + right side drawer: below 1200px ---------- */
@media (max-width: 1199px) {
    html,
    body {
        overflow-x: hidden;
    }

    body.is-side-drawer-open {
        overflow: hidden;
    }

    [data-storefront-nav],
    .prd-page .prd-nav,
    .cat-page .cat-nav,
    .about-page .about-nav,
    .contact-page .contact-nav,
    .soon-page .soon-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        float: none;
        width: 100%;
        margin: 0;
        padding: 8px 14px;
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 400;
        min-height: 64px;
        background: rgba(249, 248, 245, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid #e6e0d8;
    }

    .SideDrawerToggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
        z-index: 2;
    }

    .SideDrawerToggleBar {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #1a1816;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    body.is-side-drawer-open .SideDrawerToggleBar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.is-side-drawer-open .SideDrawerToggleBar:nth-child(2) {
        opacity: 0;
    }

    body.is-side-drawer-open .SideDrawerToggleBar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .RightNavContent,
    .prd-page .prd-nav .RightNavContent,
    .cat-page .cat-nav .RightNavContent,
    .about-page .about-nav .RightNavContent,
    .contact-page .contact-nav .RightNavContent,
    .soon-page .soon-nav .RightNavContent {
        float: none;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }

    .RightNavContent .MenuItem {
        display: none;
    }

    .MainLogo,
    .prd-page .prd-nav .MainLogo,
    .cat-page .cat-nav .MainLogo,
    .about-page .about-nav .MainLogo,
    .contact-page .contact-nav .MainLogo,
    .soon-page .soon-nav .MainLogo {
        float: none;
        width: 78px;
        margin: 0;
        font-size: 11px;
    }

    .LeftNavContent,
    .prd-page .prd-nav .LeftNavContent,
    .cat-page .cat-nav .LeftNavContent,
    .about-page .about-nav .LeftNavContent,
    .contact-page .contact-nav .LeftNavContent,
    .soon-page .soon-nav .LeftNavContent {
        float: none;
        margin: 0;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .LeftNavContent .SearchContauner,
    .LeftNavContent .MainHeaderDevider,
    .LeftNavContent > svg {
        display: none;
    }

    .AllMegaMenu {
        display: none !important;
    }

    .SideDrawerBackdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 500;
        background: rgba(17, 18, 18, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .SideDrawerBackdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .SideDrawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        height: 100vh;
        height: 100dvh;
        width: 32%;
        max-width: 360px;
        min-width: 280px;
        z-index: 510;
        padding: 20px 16px 24px;
        box-sizing: border-box;
        overflow-y: auto;
        background: #f9f8f5;
        border-left: 1px solid #e6e0d8;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, visibility 0.28s ease;
    }

    .SideDrawer.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .SideDrawerHead {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e6e0d8;
        font-size: 16px;
    }

    .SideDrawerClose {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        border: 1px solid #e6e0d8;
        border-radius: 8px;
        background: #fff;
        color: #1a1816;
        font: inherit;
        font-size: 13px;
        cursor: pointer;
    }

    .SideDrawerLink {
        display: block;
        padding: 14px 8px;
        border-bottom: 1px solid #efe8de;
        color: #1a1816;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .SideDrawerLink.is-active {
        color: #8c6533;
    }

    .SideDrawerSearch {
        margin-top: 16px;
    }

    .SideDrawerSearch input {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        border: 1px solid #dcd5cf;
        border-radius: 12px;
        background: #fff;
        font: inherit;
        font-size: 16px;
        outline: none;
        box-sizing: border-box;
    }

    .MainHeader nav,
    .MainHeader [data-storefront-nav] {
        position: fixed;
    }

    .MainHeader {
        padding-top: 64px;
        box-sizing: border-box;
        overflow: visible;
    }

    .prd-page {
        --prd-nav-h: 64px;
    }

    .cat-page,
    .about-page,
    .contact-page,
    .soon-page {
        padding-top: 64px;
    }

    .cat-empty-page {
        padding-top: 96px;
    }
}

@media (max-width: 1024px) {
    .SideDrawer {
        width: 42%;
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .SideDrawer {
        width: 56%;
        max-width: 320px;
        min-width: 240px;
    }
}

@media (max-width: 600px) {
    .SideDrawer {
        width: 68%;
        max-width: 300px;
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .SideDrawer {
        width: 76%;
        max-width: 280px;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .SideDrawer {
        width: 80%;
    }
}

/* ---------- Page layout: tablet landscape and down ---------- */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden;
    }

    /* Home hero */
    .MainHeader {
        position: relative;
        float: none;
        height: auto;
        min-height: 100svh;
        padding: 72px 0 0;
        box-sizing: border-box;
        background-attachment: scroll;
        background-position: 25% center;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .MainHeaderSpace {
        display: none;
    }

    .HeaderMainContent {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 20px 5% 0;
        padding: 18px 16px 12px;
        box-sizing: border-box;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 18px 18px 0 0;
        background:
            linear-gradient(
                180deg,
                rgba(249, 248, 245, 0.6) 0%,
                rgba(249, 248, 245, 0.45) 55%,
                rgba(249, 248, 245, 0.3) 100%
            );
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 28px rgba(26, 24, 22, 0.08);
    }

    .MainContentBigText {
        font-size: clamp(32px, 7vw, 56px);
        line-height: 1.35;
    }

    .MainContentDesc {
        font-size: 15px;
    }

    .MainContentFeatures {
        order: 1;
        margin-top: 16px;
    }

    .MainContentActions {
        order: 2;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        margin-top: auto;
        padding: 16px 0 calc(12px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        box-sizing: border-box;
    }

    .MainContentBtn {
        float: none;
        margin: 0;
        flex: 0 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .fashion-text,
    .fashion-text-bottom,
    .more-info {
        display: none;
    }

    .AllHeaderFeature {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        float: none;
        width: 100%;
        margin-top: 8px;
        padding: 12px 0 0;
        box-sizing: border-box;
        gap: 4px;
        border-top: solid 1px rgba(219, 213, 207, 0.9);
    }

    .HeaderFeature {
        float: none;
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 4px 2px;
    }

    .HeaderFeature svg {
        width: 28px;
        height: 28px;
        margin: 0 auto;
    }

    .HeaderFeature span {
        float: none;
        width: auto;
        height: auto;
        font-size: 11px;
        line-height: 1.35;
        text-align: center;
    }

    .HeaderFeature span b {
        display: block;
        font-size: 12px;
    }

    .HeaderFeatureDevider {
        display: none;
    }

    /* Home sections */
    .MainCategory {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 8px;
        padding: 24px 16px 32px;
        box-sizing: border-box;
    }

    .MainCategoryItem {
        float: none;
        width: calc(33.333% - 16px);
        min-width: 140px;
        margin: 0;
        order: 1;
    }

    .MainCategoryItemImg {
        height: 240px;
    }

    .MainCategoryDesc {
        float: none;
        order: 0;
        width: 100%;
        max-width: 520px;
        margin: 0 auto 8px;
        text-align: center;
    }

    .MainCategoryDesc .CategoryDescBig {
        float: none;
        text-align: center;
    }

    .MainCategoryDesc .CategoryDescTitle {
        float: none;
        justify-content: center;
        text-align: center;
    }

    .MainCategoryDescBtn {
        float: none;
        margin: 16px auto 0;
    }

    .MainQualityInfo {
        flex-direction: column;
    }

    .QualityInfoBGCtn,
    .MainQualityInfoDesc {
        float: none;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .QualityInfoBG {
        border-radius: 0;
        display: block;
        max-width: 100%;
        height: auto;
    }

    .MainQualityInfoDesc {
        padding: 28px 20px 36px;
    }

    .MainComments {
        background-attachment: scroll;
        padding: 0 16px 36px;
        box-sizing: border-box;
    }

    .MCommentBig {
        font-size: 2em;
    }

    .CommentContainer {
        flex-wrap: wrap;
        gap: 16px;
    }

    .CommentItem,
    .CommentItemCenter {
        width: min(100%, 320px);
        margin: 0;
    }

    .AllMainConten {
        float: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 48px 24px 40px;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .MainHeader {
        background-position: 25% center;
        background-size: cover;
    }

    .HeaderMainContent {
        margin: 12px 14px 0;
    }

    .MainContentBigText {
        font-size: 26px;
    }

    .MainContentShortDesc,
    .MainContentDesc:not(.MainContentActions):not(.MainContentFeatures) {
        font-size: 14px;
    }

    .MainContentActions {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    .MainContentDesc .MainContentBtn:first-child,
    .MainContentDesc .MainContentBtn:last-child {
        width: auto;
        flex: 1 1 0;
        max-width: 48%;
        min-width: 0;
        justify-content: center;
        box-sizing: border-box;
        padding: 10px 12px;
        font-size: 13px;
    }

    .MainContentDesc .MainContentBtn:first-child {
        padding-left: 8px;
        padding-right: 12px;
    }

    .MainContentDesc .MainContentBtn:last-child {
        padding-right: 8px;
        padding-left: 12px;
    }

    .MainContentDesc .MainContentBtn svg {
        width: 18px;
        height: 18px;
        margin: 0 6px;
        flex-shrink: 0;
    }

    .MainContentDesc .MainContentBtn:first-child svg {
        margin-left: -4px;
        margin-right: 6px;
    }

    .MainContentDesc .MainContentBtn:last-child svg {
        margin-right: 6px;
        margin-left: 4px;
    }

    .AllHeaderFeature {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 2px;
    }

    .HeaderFeature {
        flex: 1 1 0;
        min-width: 0;
    }

    .HeaderFeature span {
        font-size: 10px;
    }

    .HeaderFeature span b {
        font-size: 11px;
    }

    .MainCategoryItem {
        width: calc(50% - 8px);
        min-width: 0;
    }

    .MainCategoryItemImg {
        height: 200px;
        border-radius: 120px;
    }

    .QualityItems {
        flex-direction: column;
    }

    .QualityItem {
        width: 100%;
    }

    .CommentContainer {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
        padding: 40px 20px 32px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .footer-copyright {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-trust {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .cat-hero-center {
        width: auto;
        max-width: calc(100% - 24px);
    }

    .cat-hero-title {
        font-size: 28px;
    }

    .cat-breadcrumb {
        flex-wrap: wrap;
        white-space: normal;
        justify-content: center;
    }

    .cat-shell {
        padding: 0 12px;
    }

    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 10px;
    }

    .cat-card {
        max-width: none;
        width: 100%;
    }

    .cat-sidebar {
        grid-template-columns: 1fr;
    }

    .prd-shell {
        padding: 16px 12px 0;
    }

    .prd-title {
        font-size: 22px;
    }

    .about-hero {
        min-height: 70vh;
        padding: 24px 16px;
    }

    .about-hero-copy {
        margin: 0;
        padding: 0;
    }

    .contact-main {
        padding: 32px 16px 64px;
    }

    .contact-aside,
    .contact-form-panel {
        padding: 22px 16px;
    }

    .contact-input,
    .contact-form textarea {
        font-size: 16px;
    }

    .about-hero-cta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .about-btn {
        justify-content: center;
    }
}

/* Narrow phones: stack trust features, keep CTAs side-by-side when possible */
@media (max-width: 420px) {
    .MainHeader {
        background-position: 25% center;
    }

    .AllHeaderFeature {
        align-items: center;
        gap: 10px;
    }

    .HeaderFeature {
        width: 100%;
        max-width: 220px;
        justify-content: center;
        text-align: right;
        gap: 10px;
    }

    .HeaderFeature svg {
        margin: 0;
        flex-shrink: 0;
    }

    .HeaderFeature span {
        text-align: right;
        font-size: 12px;
    }

    .HeaderFeature span b {
        display: inline;
        font-size: inherit;
    }

    .HeaderFeature span b::after {
        content: " ";
    }

    .MainContentDesc .MainContentBtn:first-child,
    .MainContentDesc .MainContentBtn:last-child {
        font-size: 12px;
        padding: 10px 8px;
    }
}

@media (max-width: 360px) {
    .MainHeader {
        background-position: 25% center;
    }

    .MainContentActions {
        flex-wrap: wrap;
    }

    .MainContentDesc .MainContentBtn:first-child,
    .MainContentDesc .MainContentBtn:last-child {
        max-width: none;
        flex: 1 1 100%;
    }
}

/* ---------- Small phone ---------- */
@media (max-width: 480px) {
    .MainContentBigText {
        font-size: 24px;
    }

    .MainCategoryItem {
        width: 100%;
        max-width: 220px;
    }

    .MainCategoryItemImg {
        height: 260px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }
}

.cat-empty-page {
    text-align: center;
}
