:root {
    --font-title: 'Oswald', sans-serif;
    --font-text: 'Jost', sans-serif;
    --color-text: #0f0f0f;
    --color-bg: #ecece9;
    --color-lines: rgba(0, 0, 0, 0.06);
    --padding-x: 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-text);
    position: relative;
    overflow-x: hidden;
}

/* Subtle noise background */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}


.container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* --- LEFT SECTION --- */
.left-section {
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem var(--padding-x);
    position: relative;
}

.header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.content-wrapper {
    margin-top: -5vh; /* adjust vertical alignment slightly */
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.subtitle span {
    color: #aaa;
}

.main-title {
    font-family: var(--font-title);
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.main-title .dots {
    letter-spacing: 0.1em;
}

.cta-button {
    font-family: var(--font-text);
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid var(--color-text);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    box-shadow: 4px 4px 0px 0px var(--color-text);
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px var(--color-text);
    background-color: rgba(0,0,0,0.03);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button.inverted {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.3);
}

.cta-button.inverted:hover {
    background-color: #222;
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,0.3);
}

.scroll-down {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

.scroll-icon-wrapper {
    display: flex;
    flex-direction: column;
}


/* --- MIDDLE SECTION (CAROUSELS) --- */
.middle-section {
    width: 45%;
    height: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 20px;
    height: 100%;
}

.carousel-col {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
    display: flex;
    flex-direction: column;
}

/* Animations will be applied via JS to ensure precise calculations, or pure CSS if height is known */
.col-down .carousel-track {
    animation: scroll-down 35s linear infinite;
}

.col-up .carousel-track {
    animation: scroll-up 35s linear infinite;
}

@keyframes scroll-down {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.art-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: padding 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    margin-bottom: 20px;
    opacity: 0.65;
}

.art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.art-item:hover {
    padding: 10px;
    padding-bottom: 50px; /* Space for label */
    opacity: 1;
}

.art-item:hover .art-img {
    transform: scale(1.03);
}

.art-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #fff;
}

.art-item:hover .art-label {
    opacity: 1;
    transition-delay: 0.1s;
}

.art-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.art-item:hover .art-hover-actions {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* --- RIGHT SECTION --- */
.right-section {
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-left: 1px solid var(--color-lines);
    overflow: hidden;
}

.vertical-text {
    position: absolute;
    white-space: nowrap;
    transform: rotate(-90deg);
    font-size: 8rem;
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    letter-spacing: 5px;
}

.vertical-text .asterisk {
    font-family: serif;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-title { font-size: 4.5rem; }
}

@media (max-width: 900px) {
    .container { flex-direction: column; height: auto; }
    .left-section, .right-section { width: 100%; }
    .left-section { height: 100vh; }
    .middle-section { display: none; }
    .right-section { display: none; }
}

/* --- STOREFRONT SECTION --- */
.storefront-section {
    padding: 8rem var(--padding-x);
    position: relative;
    z-index: 2;
    background: var(--color-bg);
}

.store-header {
    margin-bottom: 3rem;
    text-align: center;
}

.store-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 500;
}

.store-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--color-text);
    padding: 8px 0;
    width: 250px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--color-text);
    width: 100%;
}

.category-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-pill, .filter-btn {
    font-family: var(--font-text);
    background: transparent;
    border: 1px solid var(--color-text);
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 3px 3px 0px 0px var(--color-text);
    transition: all 0.2s ease;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill:hover, .filter-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px 0px var(--color-text);
}

.category-pill.active {
    background: var(--color-text);
    color: var(--color-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    position: relative;
    background: #fff;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    transition: padding 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.product-card:hover {
    padding: 10px;
    padding-bottom: 60px; /* Space for buttons */
}

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

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 40px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.action-buttons-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.product-card:hover .product-actions {
    opacity: 1;
    transition-delay: 0.1s;
}

.action-btn {
    font-family: var(--font-text);
    background: var(--color-bg);
    border: 1px solid var(--color-text);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 2px 2px 0px 0px var(--color-text);
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px 0px var(--color-text);
}
/* --- COURSE SECTION --- */
.course-section {
    position: relative;
    height: 100vh;
    padding: 0 var(--padding-x);
    background-color: var(--color-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

/* Layout */
.course-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* Left Column Visual */
.course-visual {
    display: flex;
    flex-direction: column;
}

.course-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: transparent;
    border: 1px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 0px 0px var(--color-text);
}

/* Right Column Content */
.course-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.course-title {
    font-family: var(--font-title);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.course-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #444;
}

.course-features {
    list-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--color-text);
}

.course-features svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .course-section {
        height: auto;
        min-height: 100vh;
        padding: 120px var(--padding-x) 80px;
    }

    .course-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .course-title { font-size: 3.5rem; }
}

/* --- ABOUT SECTION --- */
.about-section {
    position: relative;
    height: 100vh;
    padding: 0 var(--padding-x);
    background-color: var(--color-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 2;
}

/* Layout */
.about-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 120px;
    align-items: start;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-title {
    font-family: var(--font-title);
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #444;
    max-width: 80%;
}

/* Right Column Visual */
.about-visual {
    display: flex;
    flex-direction: column;
}

.about-photo-placeholder {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    aspect-ratio: 3/4;
    background: transparent;
    border: 1px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 0px 0px var(--color-text);
    margin-bottom: 3rem;
}

.placeholder-text {
    font-family: var(--font-text);
    color: var(--color-text);
    font-size: 1rem;
    letter-spacing: 1px;
}

.quote-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
}

.about-quote {
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--color-text);
}

.quote-author {
    font-style: normal;
    font-size: 0.9rem;
    color: #666;
    display: inline-block;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-section {
        height: auto;
        min-height: 100vh;
        padding: 120px var(--padding-x) 80px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-title { font-size: 3.5rem; }
    .about-text { max-width: 100%; }
}

/* --- DIVIDERS --- */
.divider {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    background-color: var(--color-bg);
}

.marquee-divider {
    border-top: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    user-select: none;
}

.marquee-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    gap: 3rem;
    padding-right: 3rem; /* Same as gap to keep distance seamless */
    animation: marquee 25s linear infinite;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.marquee-track span {
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.geometric-divider {
    padding: 4rem var(--padding-x);
    gap: 2rem;
}

.geometric-divider .line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--color-text);
}

.geometric-divider .shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-text);
    box-shadow: 4px 4px 0px 0px var(--color-text);
    background-color: var(--color-bg);
}

/* --- FLOATING NAVBAR --- */
.floating-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translate(-50%, -150%);
    background: rgba(236, 236, 233, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-text);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 100;
    box-shadow: 6px 6px 0px 0px var(--color-text);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-nav.visible {
    transform: translate(-50%, 0);
}

.nav-logo {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-family: var(--font-text);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-search-btn, .nav-user-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--color-text) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-search-btn:hover, .nav-user-btn:hover {
    opacity: 0.6;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #0f0f0f;
    color: var(--color-bg);
    padding: 4rem var(--padding-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

.footer-content {
    margin-bottom: 0;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: var(--font-text);
    font-size: 1rem;
    opacity: 0.7;
    max-width: 400px;
    margin: 0 auto;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(236, 236, 233, 0.2);
    padding-top: 2rem;
    font-family: var(--font-text);
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-legal {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .floating-nav {
        width: 90%;
        gap: 1rem;
        padding: 0.8rem 1rem;
        justify-content: space-between;
    }
    .nav-links {
        display: none; /* Hide on mobile for simplicity */
    }
}

/* --- PRODUCT PAGE --- */
.product-page-section {
    padding: 1rem var(--padding-x) 3rem;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.pd-image-col {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pd-main-img {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 2px solid var(--color-text);
    box-shadow: 10px 10px 0px 0px var(--color-text);
    background-color: #fff;
}

.pd-info-col {
    display: flex;
    flex-direction: column;
}

.pd-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.pd-price {
    font-family: var(--font-text);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pd-description {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #444;
}

.pd-description p {
    margin-bottom: 1rem;
}

.pd-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pd-cart-btn {
    padding: 1rem 1.8rem;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    cursor: pointer;
    box-shadow: 4px 4px 0px 0px var(--color-text);
    transition: all 0.2s ease;
}

.pd-cart-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px var(--color-text);
}

.pd-meta {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.2rem;
}

.pd-meta p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Related */
.related-section {
    padding: 4rem var(--padding-x) 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.related-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

@media (max-width: 900px) {
    .pd-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pd-title {
        font-size: 3rem;
    }
    
    .pd-actions {
        flex-direction: column;
        width: 100%;
    }

    .pd-actions .cta-button,
    .pd-actions .pd-cart-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* --- NAV ACTIONS & CART BADGE --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-cart-btn:hover,
.nav-cart-btn.active {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #0f0f0f;
    color: #fff;
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.cart-badge.active {
    opacity: 1;
    transform: scale(1);
}

/* --- CART PAGE STYLES (`cart.html`) --- */
.cart-main-container {
    max-width: 1300px;
    margin: 8.5rem auto 6rem;
    padding: 0 var(--padding-x);
    min-height: 60vh;
}

.qty-unique-badge {
    font-family: var(--font-text);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

.cart-header-section {
    margin-bottom: 2.5rem;
}

.cart-page-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Cart Items Column */
.cart-items-column {
    background: #fff;
    border: 1px solid var(--color-text);
    box-shadow: 6px 6px 0px 0px var(--color-text);
    padding: 2rem;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 1fr 120px 40px;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-text);
    font-family: var(--font-title);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr 120px 40px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--color-text);
    box-shadow: 2px 2px 0px 0px var(--color-text);
}

.cart-item-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.cart-item-meta {
    font-size: 0.85rem;
    color: #666;
}

.cart-item-price,
.cart-item-subtotal {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 500;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-text);
    background: var(--color-bg);
}

.qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.qty-value {
    width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.remove-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #ff3b3b;
}

.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.continue-shopping-btn:hover {
    gap: 12px;
}

.clear-cart-btn {
    background: transparent;
    border: none;
    color: #777;
    font-family: var(--font-text);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.clear-cart-btn:hover {
    color: #ff3b3b;
}

/* Cart Summary Column */
.cart-summary-column {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: #fff;
    border: 1px solid var(--color-text);
    box-shadow: 6px 6px 0px 0px var(--color-text);
    padding: 2rem;
}

.summary-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-text);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
}

.summary-highlight {
    font-size: 0.85rem;
    background: var(--color-bg);
    padding: 2px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-divider {
    border: none;
    border-top: 1px dashed rgba(0, 0, 0, 0.2);
    margin: 1.5rem 0;
}

.summary-total {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text);
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-family: var(--font-text);
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--color-text);
    color: var(--color-bg);
    border: 2px solid var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.checkout-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.25);
    background: #222;
}

.summary-guarantees {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.2rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

/* Empty Cart State */
.empty-cart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    background: #fff;
    border: 1px solid var(--color-text);
    box-shadow: 6px 6px 0px 0px var(--color-text);
    text-align: center;
}

.empty-cart-content {
    max-width: 450px;
}

.empty-cart-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--color-text);
}

.empty-cart-content h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.empty-cart-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Toast Notification */
.stockar-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 0.9rem 1.4rem;
    border: 2px solid var(--color-text);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.3);
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.stockar-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Cart Media Queries */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-table-header {
        display: none;
    }

    .cart-item-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        position: relative;
    }

    .cart-item-info {
        grid-column: 1 / -1;
    }

    .cart-item-price {
        display: none;
    }

    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 0;
    }
}

/* ===================================================
   MERCADO PAGO CHILE (CLP) - STYLES & INFRASTRUCTURE
   =================================================== */

/* Mercado Pago Trust Badge */
.mp-trust-seal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mp-seal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.mp-logo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #009ee3;
    font-weight: 600;
}

/* Mercado Pago Spinner */
.mp-spinner {
    animation: mpRotate 1s linear infinite;
    display: inline-block;
}

@keyframes mpRotate {
    100% { transform: rotate(360deg); }
}

/* Mercado Pago Modal Overlay */
.mp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: mpFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mpFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.mp-modal-card {
    background: var(--color-bg);
    border: 2px solid var(--color-text);
    box-shadow: 12px 12px 0px 0px var(--color-text);
    width: 100%;
    max-width: 520px;
    padding: 2.5rem;
    position: relative;
    color: var(--color-text);
}

.mp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
}

.mp-modal-header {
    margin-bottom: 1.5rem;
}

.mp-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #009ee3;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.mp-modal-header h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.mp-modal-header p {
    color: #555;
    font-size: 0.95rem;
}

.mp-order-summary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.mp-summary-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: #333;
}

.mp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.mp-summary-total {
    border-top: 1px dashed rgba(0, 0, 0, 0.2);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.mp-clp-amount {
    color: #009ee3;
}

.mp-instructions-box {
    background: #fff9e6;
    border: 1px solid #ffe599;
    padding: 1.2rem;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.mp-instructions-box h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #8a6d3b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-instructions-box ol {
    margin-left: 1.2rem;
    color: #555;
    line-height: 1.5;
}

.mp-instructions-box code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
}

.mp-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-btn-primary {
    background: #009ee3;
    color: #fff;
    border: 2px solid #0081ba;
    padding: 1rem;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 4px 4px 0px 0px #005c85;
    transition: all 0.2s ease;
}

.mp-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #005c85;
}

.mp-btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 0.8rem;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
}

/* Status Page */
.status-page-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.status-card-container {
    background: var(--color-bg);
    border: 2px solid var(--color-text);
    box-shadow: 12px 12px 0px 0px var(--color-text);
    max-width: 580px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.status-icon.success {
    background: #e6f9ed;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.status-icon.pending {
    background: #fff8e6;
    color: #f39c12;
    border: 2px solid #f39c12;
}

.status-icon.failure {
    background: #fde8e8;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.status-badge-simulated {
    display: inline-block;
    background: #34495e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    margin-bottom: 1rem;
}

.status-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.status-subtitle {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.status-details-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.status-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.status-detail-row:last-child {
    margin-bottom: 0;
}

.text-success { color: #27ae60; }
.text-warning { color: #f39c12; }

/* Background static floating decorations */
.floating-deco {
    position: absolute;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* --- SHIPPING FORM IN CART --- */
.shipping-form-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.shipping-form-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.shipping-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.shipping-form .form-row {
    display: flex;
    gap: 10px;
}

.shipping-form .form-group.half {
    flex: 1;
}

.shipping-form label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 500;
}

.shipping-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.shipping-form input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.1);
}

.shipping-form input::placeholder {
    color: #999;
    font-size: 0.85rem;
}

/* --- LEGAL PAGES --- */
.legal-main-container {
    padding: 8rem var(--padding-x) 4rem var(--padding-x);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: var(--color-bg);
    min-height: calc(100vh - 100px);
}

.legal-header-section {
    margin-bottom: 4rem;
    text-align: center;
}

.legal-page-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 1rem;
}

.legal-content {
    background: #fff;
    padding: 4rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 8px 8px 0px 0px var(--color-text);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.legal-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #333;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.5rem;
}

.legal-last-updated {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem;
    }
    .legal-page-title {
        font-size: 3rem;
    }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 20px;
    max-width: 400px;
    background: var(--color-bg);
    border: 2px solid var(--color-text);
    box-shadow: 6px 6px 0px 0px var(--color-text);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    font-family: var(--font-text);
    background: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-text);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.cookie-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px 0px rgba(0,0,0,0.3);
}

.cookie-link {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    box-shadow: 2px 2px 0px 0px var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-link:hover {
    background: rgba(0,0,0,0.03);
}
