:root {
    --bg-primary: #FAF7F2;
    --bg-secondary: #F0EBE3;
    --bg-card: #F5F0E8;
    --white: #FFFFFF;
    --brown-dark: #3D2B1F;
    --brown: #6B4F36;
    --brown-mid: #8B7355;
    --brown-light: #A89279;
    --cream: #EDE8DF;
    --text-primary: #3D2B1F;
    --text-secondary: #8B7355;
    --text-muted: #B8A99A;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--brown);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(2.5);
    background: var(--brown);
    opacity: 0.2;
}

/* Loader */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 160px;
    height: 160px;
    animation: pulse 1.5s ease infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.loader-text {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--cream);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: var(--brown);
    width: 0%;
    animation: loadBar 2s ease forwards;
}

@keyframes loadBar {
    to { width: 100%; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cream);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brown);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cart {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-cart:hover {
    background: var(--cream);
}

.nav-cart svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--brown);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.cart-count.active {
    transform: scale(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
      linear-gradient(rgba(107,79,54,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107,79,54,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--brown-light);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown-mid);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 2.2s both;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 2.4s both;
    color: var(--text-primary);
}

.hero-title .my {
    color: var(--brown);
}

.hero-title .self {
    -webkit-text-stroke: 2px var(--brown);
    color: transparent;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 2.6s both;
}

.hero-tagline .highlight {
    color: var(--brown);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 2.8s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--brown);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
}

.btn-primary:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107,79,54,0.2);
}

.btn-outline {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--brown);
    border: 1.5px solid var(--brown);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
}

.btn-outline:hover {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-tryon {
    padding: 0.7rem 1.8rem;
    background: var(--brown);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
    margin-top: 1rem;
}

.btn-tryon:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,79,54,0.25);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease 3.2s both;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brown);
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Marquee */
.marquee {
    padding: 1.2rem 0;
    border-top: 1px solid var(--cream);
    border-bottom: 1px solid var(--cream);
    overflow: hidden;
    background: var(--bg-secondary);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0 3rem;
}

.marquee-item .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--brown-light);
    border-radius: 50%;
    margin-right: 3rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Common */
section {
    padding: 8rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Brand Statement */
.brand-statement {
    background: var(--brown-dark);
    color: var(--white);
    text-align: center;
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.brand-statement::before {
    content: 'MYSELF';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 25vw, 25rem);
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
    letter-spacing: -0.05em;
}

.brand-quote {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    letter-spacing: 0.02em;
}

.brand-quote .my {
    color: var(--brown-light);
    font-weight: 600;
}

.brand-quote .self {
    font-weight: 700;
    color: var(--white);
}

.brand-quote-author {
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brown-light);
    position: relative;
}

/* Products */
.products {
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card-inner {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-card:hover .product-card-inner {
    box-shadow: 0 20px 60px rgba(107,79,54,0.1);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brown);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    z-index: 2;
}

.product-info {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
}

.product-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown);
}

.product-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

/* Longsleeve Toggle */
.longsleeve-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.toggle-btn.active {
    background: var(--brown);
    border-color: var(--brown);
}

.toggle-btn.active svg {
    stroke: var(--white);
}

.toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--brown);
    fill: none;
    stroke-width: 2;
}

.product-front, .product-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.product-back {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Features */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107,79,54,0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    stroke: var(--brown);
    fill: none;
    stroke-width: 1;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Newsletter */
.newsletter {
    background: var(--bg-primary);
    text-align: center;
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: 'MYSELF';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 25vw, 25rem);
    font-weight: 900;
    color: rgba(107,79,54,0.03);
    pointer-events: none;
    letter-spacing: -0.05em;
}

.newsletter-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-primary);
}

.newsletter-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--cream);
    border-right: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 50px 0 0 50px;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--brown-light);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--brown);
    color: var(--white);
    border: 1px solid var(--brown);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 0 50px 50px 0;
}

.newsletter-form button:hover {
    background: var(--brown-dark);
}

/* Footer */
footer {
    background: var(--brown-dark);
    padding: 4rem 3rem 2rem;
    color: var(--white);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-wrapper {
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
}

.footer-logo-wrapper img {
    height: 55px;
    width: auto;
    margin: 0;
}

.footer-brand p {
    color: var(--brown-light);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--brown-light);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}

.footer-socials a:hover {
    color: var(--white);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0; right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--cream);
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(61,43,31,0.3);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: opacity 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-close:hover {
    background: var(--cream);
}

.cart-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}

.cart-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--cream);
    fill: none;
    stroke-width: 1;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    padding: 4px 0;
}

.cart-item-remove:hover {
    color: #cc4444;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--cream);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--brown);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.cart-checkout:hover {
    background: var(--brown-dark);
}

/* Product Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(61,43,31,0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--cream);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.modal-images {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 20px 0 0 20px;
}

.modal-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.modal-image-front, .modal-image-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.modal-image-back {
    opacity: 0;
}

.modal-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.modal-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brown);
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-sizes {
    margin-bottom: 2rem;
}

.modal-sizes label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.8rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
}

.size-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--cream);
    background: transparent;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.size-btn:hover, .size-btn.active {
    border-color: var(--brown);
    background: var(--brown);
    color: var(--white);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-add-cart {
    flex: 1;
    padding: 1rem;
    background: var(--brown);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.modal-add-cart:hover {
    background: var(--brown-dark);
}

.modal-wishlist {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--cream);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.modal-wishlist:hover {
    border-color: var(--brown);
    color: var(--brown);
}

.modal-wishlist svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Modal Longsleeve Toggle */
.modal-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    width: fit-content;
}

.modal-toggle label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    letter-spacing: 0.05em;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--cream);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--brown);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--brown);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s var(--transition-smooth);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(107,79,54,0.2);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .modal {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }
    .modal-images {
        aspect-ratio: 16/9;
        max-height: 300px;
        border-radius: 20px 20px 0 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    section {
        padding: 5rem 1.5rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        border-right: 1px solid var(--cream);
        border-radius: 50px;
    }
    .newsletter-form button {
        border-radius: 50px;
    }
    .cursor {
        display: none;
    }
    .modal-details {
        padding: 2rem;
    }
    .nav-logo img {
        height: 45px;
    }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--brown-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brown);
}


/* ==================== CLOZLY IFRAME INTEGRATION ==================== */
#clozly-preview-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 4500; /* Поверх всего */
    height: 80vh;  /* Ровно 40% от высоты экрана на ПК */
    aspect-ratio: 420 / 740; /* Железные пропорции из твоего примера */
    display: none; /* Контролируется через JS (flex / none) */
    flex-direction: column;
    align-items: flex-end; /* Выравнивает кнопку по правому краю фрейма */
}

#preview-container {
    border-radius: 40px; 
    width: 105%;
    height: 100%;
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    background: #000;
}

#tryon-preview-iframe {
    width: 100%; 
    height: 100%; 
    border: none;
    display: block;
}

#clozly-mobile-close {
    display: flex;
    position: static; /* Кнопка идет в потоке над виджетом */
    margin-bottom: 12px; /* Отступ от крестика до фрейма */
    
    width: 44px;
    height: 44px;
    background: #5a5a5a; /* Белый круг для максимальной заметности */
    border: none;
    color: #d3d3d3; /* Сочный красный цвет бренда */
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(121, 121, 121, 0.4); /* Красное неоновое свечение */
    z-index: 2600;
    transition: transform 0.2s ease, opacity 0.2s ease;
    line-height: 0;            /* Сбрасываем базовую высоту строки браузера */
    padding-bottom: 4px;
}

#clozly-mobile-close:hover {
    transform: scale(1.08);
}

#clozly-mobile-close:active {
    transform: scale(0.95);
}
/* ==================== НАСТРОЙКИ ДЛЯ МОБИЛКИ ==================== */
@media (max-width: 500px) {
    #clozly-preview-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        aspect-ratio: auto;
        
        background: rgba(0, 0, 0, 0.85); 
        backdrop-filter: blur(5px);
        
        display: none; /* Управляется через JS (flex / none) */
        flex-direction: column;
        justify-content: center;
        
        /* МЕНЯЕМ ТУТ: Выравниваем всё содержимое (кнопку и виджет) по правому краю */
        align-items: flex-end; 
        
        /* Отступы по бокам, чтобы виджет и кнопка не прижимались вплотную к краям экрана */
        padding: 20px;
    }

    /* Стиль яркого вынесенного крестика (теперь он справа сверху виджета) */
    #clozly-mobile-close {
        display: flex;
        position: static; /* Кнопка по-прежнему над виджетом в потоке */
        margin-bottom: 15px; /* Отступ от крестика до фрейма */
        
        /* Смещаем кнопку чуть правее, чтобы она идеально встала по одной линии с правым краем телефона */
        margin-right: 5%; 
        
        width: 46px;
        height: 46px;
        background: #5a5a5a; 
        border: none;
        color: #d3d3d3; 
        font-size: 2rem; 
        font-weight: 700;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(121, 121, 121, 0.4); 
        z-index: 2600;
        transition: transform 0.2s ease;
        line-height: 0;            /* Сбрасываем базовую высоту строки браузера */
        padding-bottom: 4px;
    }
    
    #clozly-mobile-close:active {
        transform: scale(0.9);
    }

    #preview-container {
        /* Центрируем сам телефон на экране, делая автоматические отступы слева и справа */
        margin-left: auto;
        margin-right: auto;
        
        width: 90%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 420 / 720;
        border-width: 6px;
        border-radius: 32px;
    }
}

@media (max-width: 500px) and (max-aspect-ratio: 9/18) {
    #preview-container {
        /* Центрируем сам телефон на экране, делая автоматические отступы слева и справа */
        margin-left: auto;
        margin-right: auto;
        
        width: 90%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 420 / 720;
        border-width: 6px;
        border-radius: 32px;
    }
}
