:root {
    --purple-950: #1b0d32;
    --purple-900: #281044;
    --purple-850: #35145a;
    --purple-800: #461b74;
    --purple-750: #592493;
    --purple-700: #6d2fb0;
    --purple-650: #803bc8;
    --purple-600: #934bdc;
    --purple-550: #a75deb;
    --purple-500: #b970f5;
    --purple-400: #ca92fb;
    --purple-300: #d9b3ff;
    --purple-200: #e7d0ff;
    --purple-100: #f2e5ff;
    --purple-50: #faf6ff;

    --magenta: #d24cc5;
    --pink: #ee77cc;

    --white: #ffffff;
    --black: #110d17;

    --gray-950: #18141d;
    --gray-900: #27212d;
    --gray-800: #3d3545;
    --gray-700: #554d5e;
    --gray-600: #6d6576;
    --gray-500: #8c8493;
    --gray-400: #aaa3b0;
    --gray-300: #d1cad8;
    --gray-200: #e7e1ec;
    --gray-100: #f4f0f7;
    --gray-50: #fbf9fd;

    --success: #19875f;
    --success-soft: #edf9f4;

    --danger: #d84a66;
    --danger-soft: #fff2f5;

    --warning: #bd7f15;
    --warning-soft: #fff8e9;

    --info: #5362c8;
    --info-soft: #f0f2ff;

    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 34px;

    --shadow-xs:
        0 2px 8px rgba(51, 23, 82, 0.04);

    --shadow-sm:
        0 7px 22px rgba(51, 23, 82, 0.07);

    --shadow-md:
        0 16px 42px rgba(49, 20, 90, 0.11);

    --shadow-lg:
        0 28px 78px rgba(43, 17, 82, 0.16);

    --shadow-purple:
        0 18px 46px rgba(124, 54, 216, 0.25);

    --container: 1320px;

    --font:
        "Lato",
        Arial,
        sans-serif;
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background:
        radial-gradient(
            circle at 6% 0%,
            rgba(186, 116, 255, 0.09),
            transparent 25%
        ),
        radial-gradient(
            circle at 98% 13%,
            rgba(219, 76, 194, 0.06),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #fffefe 0%,
            #fbf8fd 42%,
            #f8f5fb 100%
        );
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: var(--font);
    font-size: inherit;
}

button {
    cursor: pointer;
}

::selection {
    color: white;
    background: var(--purple-650);
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.site-main {
    min-height: 62vh;
}

.section {
    padding: 70px 0;
}

.section-sm {
    padding: 44px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    color: var(--gray-950);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 9px 0 0;
    color: var(--gray-600);
    font-size: 15px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: var(--purple-650);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 23px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--purple-600),
            var(--magenta)
        );
}

/* =========================================================
   TOP STRIP
========================================================= */

.top-strip {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(
            110deg,
            #1d0d34,
            #38155f 50%,
            #531c80
        );
    font-size: 12px;
}

.top-strip-inner {
    min-height: 38px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-strip p {
    margin: 0;
    font-weight: 400;
}

.top-strip-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-strip-links a {
    color: rgba(255, 255, 255, 0.74);
    transition: 0.2s ease;
}

.top-strip-links a:hover {
    color: white;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(93, 53, 125, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow:
        0 8px 32px rgba(58, 29, 91, 0.035);
}

.header-main {
    min-height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.brand {
    min-width: 155px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    max-width: 155px;
    max-height: 46px;
    object-fit: contain;
}

.brand-mark {
    position: relative;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            var(--purple-500),
            var(--purple-750) 58%,
            var(--purple-950)
        );
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.28),
        0 10px 25px rgba(108, 44, 183, 0.3);
    font-size: 20px;
    font-weight: 900;
}

.brand-mark::after {
    position: absolute;
    top: -16px;
    left: -12px;
    width: 62px;
    height: 32px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(-15deg);
}

.brand-name {
    color: var(--purple-950);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.desktop-nav a {
    position: relative;
    padding: 10px 15px;
    color: var(--gray-700);
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--purple-750);
    background:
        linear-gradient(
            180deg,
            rgba(247, 239, 255, 0.92),
            rgba(253, 249, 255, 0.96)
        );
}

.desktop-nav a.active::after {
    position: absolute;
    right: 15px;
    bottom: 5px;
    left: 15px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--purple-600),
            var(--magenta)
        );
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.header-icon-btn,
.mobile-menu-btn {
    min-width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    color: var(--gray-800);
    border: 1px solid rgba(98, 68, 125, 0.12);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            white,
            #fcf9ff
        );
    box-shadow: var(--shadow-xs);
    transition: 0.2s ease;
}

.header-icon-btn:hover,
.mobile-menu-btn:hover {
    color: var(--purple-700);
    border-color: rgba(129, 64, 200, 0.25);
    background: var(--purple-50);
    transform: translateY(-1px);
}

.header-icon-btn svg,
.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

.cart-button {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
    border-radius: 999px;
    background:
        linear-gradient(
            135deg,
            var(--purple-600),
            var(--magenta)
        );
    box-shadow:
        0 5px 14px rgba(166, 62, 196, 0.3);
    font-size: 10px;
    font-weight: 900;
}

.header-login {
    position: relative;
    overflow: hidden;
    height: 43px;
    display: inline-flex;
    align-items: center;
    padding: 0 19px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--purple-600),
            var(--purple-750) 62%,
            #4d1879
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 9px 21px rgba(109, 43, 185, 0.22);
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.header-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.mobile-menu-btn {
    display: none;
    padding: 0;
}

/* =========================================================
   MOBILE DRAWER
========================================================= */

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 110;
    visibility: hidden;
    opacity: 0;
    transition: 0.25s ease;
}

.mobile-drawer.open {
    visibility: visible;
    opacity: 1;
}

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 10, 38, 0.58);
    backdrop-filter: blur(6px);
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 370px);
    height: 100%;
    padding: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(249, 244, 254, 0.99)
        );
    transform: translateX(100%);
    transition: 0.25s ease;
    box-shadow:
        -20px 0 60px rgba(39, 18, 71, 0.2);
}

.mobile-drawer.open .mobile-drawer-panel {
    transform: translateX(0);
}

.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-drawer-close {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: var(--purple-800);
    border: 0;
    border-radius: 10px;
    background: var(--purple-50);
    font-size: 21px;
}

.mobile-nav {
    display: grid;
    gap: 7px;
    margin-top: 19px;
}

.mobile-nav a {
    padding: 14px 15px;
    color: var(--gray-800);
    border-radius: 11px;
    font-size: 16px;
    font-weight: 700;
    transition: 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--purple-750);
    background: var(--purple-50);
}

/* =========================================================
   PREMIUM TOP RIGHT TOAST NOTIFICATIONS
========================================================= */

.toast-container {
    position: fixed;
    top: 96px;
    right: 22px;
    z-index: 9999;
    width: min(390px, calc(100vw - 44px));
    display: flex;
    flex-direction: column;
    gap: 11px;
    pointer-events: none;
}

.toast {
    --toast-color: var(--purple-650);
    --toast-soft: rgba(248, 241, 255, 0.94);
    --toast-border: rgba(132, 67, 204, 0.20);
    --toast-shadow: rgba(80, 30, 132, 0.15);

    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    align-items: start;
    gap: 12px;
    padding: 14px 13px 17px 14px;

    border:
        1px solid
        var(--toast-border);

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 5% 0%,
            rgba(255, 255, 255, 0.95),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.95),
            var(--toast-soft)
        );

    backdrop-filter:
        blur(22px)
        saturate(155%);

    box-shadow:
        0 18px 48px var(--toast-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);

    opacity: 0;
    pointer-events: auto;

    transform:
        translateX(34px)
        translateY(-8px)
        scale(0.97);

    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(.2,.75,.25,1),
        box-shadow 0.2s ease;
}

.toast::before {
    position: absolute;
    top: -38px;
    left: -32px;
    width: 110px;
    height: 110px;
    content: "";
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--toast-color) 14%,
                transparent
            ),
            transparent 68%
        );
    pointer-events: none;
}

.toast::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    content: "";
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.6),
            var(--toast-color)
        );
}

.toast-visible {
    opacity: 1;
    transform:
        translateX(0)
        translateY(0)
        scale(1);
}

.toast-removing {
    opacity: 0;
    transform:
        translateX(34px)
        scale(0.97);
}

.toast:hover {
    box-shadow:
        0 22px 58px var(--toast-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.toast-success {
    --toast-color: #19875f;
    --toast-soft: rgba(237, 250, 245, 0.95);
    --toast-border: rgba(25, 135, 95, 0.20);
    --toast-shadow: rgba(25, 135, 95, 0.13);
}

.toast-error {
    --toast-color: #d84a66;
    --toast-soft: rgba(255, 241, 245, 0.96);
    --toast-border: rgba(216, 74, 102, 0.20);
    --toast-shadow: rgba(177, 49, 75, 0.14);
}

.toast-warning {
    --toast-color: #c78619;
    --toast-soft: rgba(255, 248, 232, 0.97);
    --toast-border: rgba(199, 134, 25, 0.22);
    --toast-shadow: rgba(170, 111, 13, 0.13);
}

.toast-info {
    --toast-color: #6653d5;
    --toast-soft: rgba(244, 241, 255, 0.97);
    --toast-border: rgba(102, 83, 213, 0.20);
    --toast-shadow: rgba(85, 67, 180, 0.13);
}

.toast-icon {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: white;
    border:
        1px solid
        rgba(255, 255, 255, 0.36);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            color-mix(
                in srgb,
                var(--toast-color) 70%,
                white
            ),
            var(--toast-color)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 18px
        color-mix(
            in srgb,
            var(--toast-color) 22%,
            transparent
        );
}

.toast-icon svg {
    width: 21px;
    height: 21px;
}

.toast-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-top: 1px;
}

.toast-title {
    display: block;
    margin: 0;
    color: var(--gray-950);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.toast-message {
    margin-top: 3px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

.toast-close {
    position: relative;
    z-index: 4;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-top: -2px;
    padding: 0;
    color: var(--gray-500);
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.52);
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.toast-close:hover {
    color: var(--gray-950);
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(3deg);
}

.toast-close svg {
    width: 17px;
    height: 17px;
}

.toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background:
        color-mix(
            in srgb,
            var(--toast-color) 8%,
            transparent
        );
}

.toast-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    background:
        linear-gradient(
            90deg,
            color-mix(
                in srgb,
                var(--toast-color) 66%,
                white
            ),
            var(--toast-color)
        );
    animation:
        toastProgress
        5s
        linear
        forwards;
}

.toast-error-list {
    margin: 4px 0 0;
    padding-left: 17px;
}

.toast-error-list li + li {
    margin-top: 3px;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 30px 0 0;
}

.hero-card {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(36px, 6vw, 82px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(242, 136, 220, 0.25),
            transparent 25%
        ),
        radial-gradient(
            circle at 76% 85%,
            rgba(166, 100, 255, 0.22),
            transparent 27%
        ),
        linear-gradient(
            125deg,
            #1c0f34 0%,
            #37135f 35%,
            #5c1f91 67%,
            #7f39bb 100%
        );
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.14),
        0 28px 72px rgba(52, 19, 90, 0.2);
}

.hero-card.has-image {
    background-size: cover;
    background-position: center;
}

.hero-card::before {
    position: absolute;
    top: -130px;
    right: -95px;
    width: 430px;
    height: 430px;
    content: "";
    border: 70px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}

.hero-card::after {
    position: absolute;
    right: 24%;
    bottom: -180px;
    width: 320px;
    height: 320px;
    content: "";
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(234, 136, 231, 0.18),
            transparent 68%
        );
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 690px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    margin-bottom: 19px;
    color: #f4e4ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 5.8vw, 74px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-shadow:
        0 6px 20px rgba(25, 10, 46, 0.22);
}

.hero p {
    max-width: 570px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 31px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 46px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            135deg,
            var(--purple-600),
            var(--purple-750) 62%,
            #512080
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.17),
        0 10px 25px rgba(113, 48, 193, 0.22);
}

.btn-primary:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 15px 33px rgba(109, 43, 184, 0.3);
}

.btn-light {
    color: var(--purple-900);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(
            180deg,
            white,
            #f9f3ff
        );
    box-shadow:
        0 10px 25px rgba(32, 12, 58, 0.16);
}

.btn-outline {
    color: var(--gray-800);
    border-color: var(--gray-300);
    background: rgba(255, 255, 255, 0.86);
}

.btn-outline:hover {
    color: var(--purple-750);
    border-color: rgba(133, 65, 206, 0.3);
    background: var(--purple-50);
}

.btn-danger {
    color: white;
    background:
        linear-gradient(
            135deg,
            #e35d78,
            #c83855
        );
}

.btn-block {
    width: 100%;
}

.btn-lg {
    min-height: 52px;
    padding-inline: 23px;
    font-size: 15px;
}

/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 275px;
    border: 1px solid rgba(92, 53, 121, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(251, 247, 255, 0.98)
        );
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: 0.25s ease;
}

.category-card:hover {
    border-color: rgba(139, 69, 215, 0.24);
    transform: translateY(-6px);
    box-shadow:
        0 18px 46px rgba(96, 37, 166, 0.14);
}

.category-image-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f2e8ff,
            #faf4ff
        );
}

.category-image-wrap::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            180deg,
            transparent 58%,
            rgba(29, 16, 56, 0.09)
        );
    pointer-events: none;
}

.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.category-card:hover .category-image-wrap img {
    transform: scale(1.05);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--purple-650);
    background:
        radial-gradient(
            circle,
            rgba(181, 111, 255, 0.13),
            transparent 56%
        );
    font-size: 42px;
    font-weight: 900;
}

.category-body {
    position: relative;
    z-index: 2;
    padding: 17px 18px 19px;
}

.category-body h3 {
    margin: 0;
    color: var(--gray-950);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 400;
}

.category-meta span:last-child {
    color: var(--purple-650);
    font-weight: 700;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(92, 52, 122, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(252, 249, 255, 0.99)
        );
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    border-color: rgba(144, 76, 216, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 20px 48px rgba(96, 37, 166, 0.14);
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.94;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f4edf9,
            #faf7fd
        );
}

.product-card-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            180deg,
            transparent 62%,
            rgba(33, 13, 58, 0.06)
        );
    pointer-events: none;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.045);
}

.product-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 3;
    padding: 7px 11px;
    color: var(--purple-850);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    font-size: 11px;
    font-weight: 700;
}

.product-card-body {
    padding: 18px 18px 19px;
}

.product-card-category {
    display: none;
}

.product-card h3 {
    min-height: 48px;
    margin: 0;
    color: var(--gray-950);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.product-card h3:hover {
    color: var(--purple-700);
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 11px;
}

.price-current {
    color: var(--purple-750);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.price-old {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.product-card-actions .btn {
    width: 100%;
}

.icon-action {
    display: none;
}

/* =========================================================
   ROW PRODUCTS
========================================================= */

.row-product-list {
    display: grid;
    gap: 11px;
}

.row-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid rgba(101, 61, 132, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(252, 249, 255, 0.99)
        );
    box-shadow: var(--shadow-xs);
    transition: 0.2s ease;
}

.row-product:hover {
    border-color: rgba(139, 75, 210, 0.24);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.row-product-image {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--purple-50);
}

.row-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-product-main {
    min-width: 0;
}

.row-product-main h3 {
    overflow: hidden;
    margin: 0;
    color: var(--gray-950);
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-product-sku {
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 12px;
}

.row-product-price {
    min-width: 95px;
    text-align: right;
    color: var(--purple-750);
    font-size: 19px;
    font-weight: 900;
}

.row-product-actions {
    display: flex;
    gap: 8px;
}

/* =========================================================
   PAGE HEADING
========================================================= */

.page-top {
    padding: 31px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 400;
}

.breadcrumb a:hover {
    color: var(--purple-650);
}

.breadcrumb-sep {
    color: var(--gray-300);
}

.page-title {
    margin: 0;
    color: var(--gray-950);
    font-size: clamp(33px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -0.04em;
}

.page-description {
    max-width: 780px;
    margin: 11px 0 0;
    color: var(--gray-600);
    font-size: 16px;
}

/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    gap: 46px;
    padding: 42px 0 74px;
}

.product-gallery-main {
    overflow: hidden;
    aspect-ratio: 1 / 0.88;
    border: 1px solid rgba(94, 56, 125, 0.11);
    border-radius: 29px;
    background:
        linear-gradient(
            145deg,
            white,
            #f9f4ff
        );
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    align-self: start;
    padding: 10px 0;
}

.product-detail-category {
    color: var(--purple-650);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-detail-info h1 {
    margin: 11px 0 0;
    color: var(--gray-950);
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 22px;
}

.product-detail-price .price-current {
    font-size: 32px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
}

.product-stock::before {
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: #24a674;
    box-shadow:
        0 0 0 4px rgba(36, 166, 116, 0.1);
}

.product-description {
    margin-top: 21px;
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.75;
}

.product-purchase-box {
    padding: 20px;
    margin-top: 26px;
    border: 1px solid rgba(106, 68, 139, 0.11);
    border-radius: 20px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 244, 255, 0.98)
        );
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

/* =========================================================
   FORMS
========================================================= */

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 700;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
    outline: none;
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            white,
            #fefcff
        );
    font-size: 15px;
    font-weight: 400;
    transition: 0.2s ease;
}

.form-textarea {
    min-height: 115px;
    padding-block: 13px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(132, 67, 204, 0.56);
    box-shadow:
        0 0 0 3px rgba(151, 86, 220, 0.1);
}

.form-group {
    margin-bottom: 16px;
}

.form-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.purchase-row {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 11px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: white;
}

.quantity-control button {
    color: var(--purple-750);
    border: 0;
    background: var(--purple-50);
    font-weight: 900;
}

.quantity-control input {
    width: 100%;
    text-align: center;
    border: 0;
    outline: 0;
    background: white;
    font-size: 15px;
}

/* =========================================================
   CART
========================================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
    padding: 38px 0 74px;
}

.cart-items {
    display: grid;
    gap: 13px;
}

.cart-item {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) auto;
    gap: 17px;
    padding: 15px;
    border: 1px solid rgba(97, 58, 128, 0.11);
    border-radius: 19px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(251, 248, 254, 0.99)
        );
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 98px;
    height: 98px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--purple-50);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    margin: 2px 0 0;
    color: var(--gray-950);
    font-size: 17px;
    font-weight: 700;
}

.cart-item-meta {
    margin-top: 6px;
    color: var(--gray-500);
    font-size: 13px;
}

.cart-item-price {
    margin-top: 10px;
    color: var(--purple-750);
    font-size: 18px;
    font-weight: 900;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.cart-item-controls .form-control {
    width: 80px;
    min-height: 40px;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-line-total {
    color: var(--gray-950);
    font-size: 18px;
    font-weight: 900;
}

.link-danger {
    padding: 0;
    color: var(--danger);
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}

.summary-card {
    position: sticky;
    top: 105px;
    padding: 22px;
    border: 1px solid rgba(96, 57, 128, 0.11);
    border-radius: 21px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(248, 243, 253, 0.99)
        );
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.summary-card h2 {
    margin: 0 0 19px;
    color: var(--gray-950);
    font-size: 22px;
    font-weight: 900;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    color: var(--gray-600);
    font-size: 15px;
}

.summary-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-950);
    font-size: 18px;
    font-weight: 900;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 64px 22px;
    text-align: center;
    border: 1px dashed rgba(125, 77, 164, 0.23);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.95),
            rgba(248, 242, 254, 0.95)
        );
}

.empty-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    color: var(--purple-700);
    border: 1px solid rgba(144, 77, 216, 0.13);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            white,
            var(--purple-100)
        );
    box-shadow: var(--shadow-sm);
    font-size: 29px;
}

.empty-state h2 {
    margin: 0;
    color: var(--gray-950);
    font-size: 22px;
    font-weight: 900;
}

.empty-state p {
    max-width: 470px;
    margin: 9px auto 21px;
    color: var(--gray-600);
    font-size: 15px;
}

/* =========================================================
   CHECKOUT
========================================================= */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 29px;
    align-items: start;
    padding: 38px 0 74px;
}

.checkout-card,
.auth-card {
    padding: 26px;
    border: 1px solid rgba(100, 62, 132, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(251, 248, 254, 0.99)
        );
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.checkout-card h2 {
    margin: 0 0 22px;
    color: var(--gray-950);
    font-size: 23px;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.required {
    color: var(--danger);
}

/* =========================================================
   AUTH
========================================================= */

.auth-section {
    min-height: calc(100vh - 116px);
    display: grid;
    align-items: center;
    padding: 52px 0;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(181, 111, 255, 0.14),
            transparent 31%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(224, 93, 192, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fcf9ff,
            #f7f2fc
        );
}

.auth-wrap {
    width: min(100%, 1050px);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(104, 64, 137, 0.11);
    border-radius: 31px;
    background: white;
    box-shadow:
        0 30px 90px rgba(46, 18, 82, 0.16);
}

.auth-promo {
    position: relative;
    min-height: 625px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px;
    color: white;
    background:
        radial-gradient(
            circle at 85% 17%,
            rgba(255, 255, 255, 0.18),
            transparent 22%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(239, 111, 213, 0.15),
            transparent 26%
        ),
        linear-gradient(
            145deg,
            #1d1037,
            #3a155f 42%,
            #7027a7
        );
}

.auth-promo h1 {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin: 18px 0 0;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.auth-promo p {
    position: relative;
    z-index: 2;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.auth-points {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 13px;
}

.auth-point {
    display: flex;
    gap: 11px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 400;
}

.auth-point span:first-child {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--purple-900);
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            white,
            #ead6ff
        );
    font-size: 11px;
    font-weight: 900;
}

.auth-form-side {
    padding: clamp(32px, 5vw, 62px);
    background:
        linear-gradient(
            180deg,
            white,
            #fdfaff
        );
}

.auth-form-side h2 {
    margin: 0;
    color: var(--gray-950);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.auth-subtitle {
    margin: 9px 0 28px;
    color: var(--gray-600);
    font-size: 15px;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    color: var(--gray-600);
    font-size: 14px;
}

.auth-switch a {
    color: var(--purple-650);
    font-weight: 700;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
}

.checkbox-row input {
    accent-color: var(--purple-650);
}

.auth-forgot {
    color: var(--purple-650);
    font-size: 14px;
    font-weight: 700;
}

.auth-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 9, 40, 0.6);
    backdrop-filter: blur(7px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            white,
            #fbf7ff
        );
    box-shadow:
        0 34px 90px rgba(31, 12, 55, 0.27);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--purple-750);
    border: 0;
    border-radius: 10px;
    background: var(--purple-50);
    font-size: 20px;
}

.modal-product {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 19px;
}

.modal-product-image {
    width: 135px;
    height: 135px;
    overflow: hidden;
    border-radius: 17px;
    background: var(--purple-50);
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product h3 {
    margin: 3px 0 8px;
    padding-right: 35px;
    color: var(--gray-950);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.18;
}

.modal-description {
    margin-top: 19px;
    color: var(--gray-600);
    font-size: 15px;
}

/* =========================================================
   ORDER SUCCESS
========================================================= */

.order-success {
    padding: 74px 0;
}

.success-card {
    max-width: 740px;
    padding: clamp(31px, 5vw, 56px);
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(97, 58, 128, 0.11);
    border-radius: 29px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(177, 110, 245, 0.1),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            white,
            #fbf7ff
        );
    box-shadow:
        0 28px 75px rgba(51, 22, 88, 0.13);
}

.success-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: white;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            var(--purple-500),
            var(--purple-750)
        );
    box-shadow:
        0 14px 32px rgba(113, 46, 191, 0.27);
    font-size: 31px;
    font-weight: 900;
}

.success-card h1 {
    margin: 0;
    color: var(--gray-950);
    font-size: clamp(31px, 4vw, 43px);
    font-weight: 900;
}

.success-card p {
    margin: 11px auto 0;
    color: var(--gray-600);
    font-size: 16px;
}

.order-number-box {
    margin: 26px 0;
    padding: 18px;
    border: 1px dashed rgba(134, 73, 198, 0.3);
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            white,
            var(--purple-50)
        );
}

.order-number-box small {
    display: block;
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-number-box strong {
    display: block;
    margin-top: 5px;
    color: var(--purple-800);
    font-size: 20px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 74px;
    border-top: 1px solid rgba(104, 62, 138, 0.1);
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(180, 110, 246, 0.06),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            white,
            #faf6fd
        );
}

.footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding: 62px 0 46px;
}

.footer-brand-text {
    max-width: 370px;
    margin: 17px 0 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

.footer-column h4 {
    margin: 3px 0 16px;
    color: var(--gray-950);
    font-size: 16px;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 11px;
}

.footer-links a {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 400;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: var(--purple-650);
    transform: translateX(2px);
}

.footer-bottom {
    min-height: 70px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(105, 64, 137, 0.09);
    color: var(--gray-500);
    font-size: 13px;
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination-wrap {
    margin-top: 31px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 11px;
    color: var(--gray-700);
    border: 1px solid rgba(102, 63, 131, 0.11);
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-xs);
    font-size: 13px;
    font-weight: 700;
}

.pagination .active,
.pagination span[aria-current="page"] {
    color: white;
    border-color: var(--purple-650);
    background:
        linear-gradient(
            135deg,
            var(--purple-600),
            var(--purple-750)
        );
}

/* =========================================================
   HOME BENEFITS
========================================================= */

.home-benefit-grid > div {
    position: relative;
    overflow: hidden;
    border-color: rgba(99, 58, 130, 0.1) !important;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(250, 246, 253, 0.99)
        ) !important;
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.home-benefit-grid > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.home-benefit-grid strong {
    font-size: 17px !important;
}

.home-benefit-grid span {
    font-size: 14px !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .desktop-nav {
        display: none;
    }

    .header-main {
        grid-template-columns: 1fr auto;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .auth-wrap {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail,
    .checkout-layout,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-promo {
        min-height: 350px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    body {
        font-size: 15px;
    }

    .top-strip-links {
        display: none;
    }

    .top-strip-inner {
        justify-content: center;
        text-align: center;
    }

    .header-main {
        min-height: 69px;
        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .header-login {
        display: none;
    }

    .header-icon-btn {
        min-width: 39px;
        width: 39px;
        height: 39px;
        padding: 0;
    }

    .header-icon-btn .label {
        display: none;
    }

    .toast-container {
        top: 80px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .toast {
        grid-template-columns: 40px minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 12px 11px 15px 12px;
        border-radius: 15px;
    }

    .toast-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .toast-icon svg {
        width: 19px;
        height: 19px;
    }

    .toast-title {
        font-size: 14px;
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-close {
        width: 29px;
        height: 29px;
    }

    .hero {
        padding-top: 16px;
    }

    .hero-card {
        min-height: 420px;
        padding: 31px 24px;
        border-radius: 25px;
    }

    .hero h1 {
        font-size: clamp(39px, 11vw, 58px);
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .category-card {
        min-height: 0;
        border-radius: 18px;
    }

    .category-image-wrap {
        height: 145px;
    }

    .category-body {
        padding: 13px;
    }

    .category-body h3 {
        font-size: 16px;
    }

    .category-meta {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-card-body {
        padding: 13px;
    }

    .product-card h3 {
        min-height: 44px;
        font-size: 16px;
    }

    .price-current {
        font-size: 18px;
    }

    .price-old {
        font-size: 12px;
    }

    .product-card-actions {
        margin-top: 13px;
    }

    .product-card-actions .btn {
        min-height: 42px;
        padding-inline: 10px;
        font-size: 13px;
    }

    .row-product {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }

    .row-product-actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
    }

    .row-product-price {
        min-width: auto;
    }

    .product-detail {
        gap: 26px;
        padding-top: 25px;
    }

    .product-gallery-main {
        border-radius: 22px;
    }

    .purchase-row {
        grid-template-columns: 105px 1fr;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .cart-item-image {
        width: 76px;
        height: 76px;
    }

    .cart-item-side {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
    }

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

    .form-grid .full {
        grid-column: auto;
    }

    .checkout-card {
        padding: 20px;
    }

    .auth-section {
        padding: 21px 0;
    }

    .auth-wrap {
        border-radius: 22px;
    }

    .auth-promo {
        min-height: 300px;
        padding: 30px;
    }

    .auth-form-side {
        padding: 30px 23px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 31px;
        padding: 46px 0 34px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 19px 0;
    }

    .modal-product {
        grid-template-columns: 1fr;
    }

    .modal-product-image {
        width: 100%;
        height: 235px;
    }
}

@media (max-width: 480px) {
    .category-image-wrap {
        height: 125px;
    }

    .category-body h3 {
        font-size: 15px;
    }

    .category-meta {
        font-size: 11px;
    }

    .product-card-image {
        aspect-ratio: 1 / 0.95;
    }

    .product-card-body {
        padding: 11px;
    }

    .product-card h3 {
        min-height: 42px;
        font-size: 15px;
    }

    .price-current {
        font-size: 17px;
    }

    .product-card-actions .btn {
        min-height: 40px;
        font-size: 12px;
    }

    .btn {
        padding-inline: 14px;
    }

    .row-product {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .row-product-image {
        width: 50px;
        height: 50px;
    }

    .row-product-price {
        grid-column: 2;
        text-align: left;
    }

    .row-product-actions {
        grid-column: 1 / -1;
    }

    .purchase-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .toast-container {
        top: 74px;
        right: 10px;
        left: 10px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
