/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */

:root {
    /* Color Palette - Vibrant & Cool Pastel Streetwear */
    --bg-canvas: #FAF8F5;          /* Warm Milk / Soft Cream */
    --color-dark: #121212;         /* Heavy Black Outlines */
    
    /* Clay Colors */
    --clay-lavender: #D3C5FF;
    --clay-mint: #B5EAD7;
    --clay-peach: #FFDAC1;
    --clay-pink: #FFB7B2;
    --clay-yellow: #FFF2B2;
    --clay-blue: #BFF0FF;
    --card-bg: #FFFFFF;
    
    /* Claymorphic Bevel Shadows (Outlines + Dual Insets) */
    --clay-shadow-sm: 4px 4px 0px var(--color-dark), 
                      inset 3px 3px 6px rgba(255, 255, 255, 0.75), 
                      inset -3px -3px 6px rgba(0, 0, 0, 0.08);
                      
    --clay-shadow-md: 8px 8px 0px var(--color-dark), 
                      12px 12px 24px rgba(18, 18, 18, 0.04), 
                      inset 5px 5px 10px rgba(255, 255, 255, 0.8), 
                      inset -5px -5px 10px rgba(0, 0, 0, 0.1);

    --clay-shadow-well: inset 4px 4px 8px rgba(0, 0, 0, 0.08), 
                        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
                        
    --clay-shadow-active: inset 4px 4px 8px rgba(0, 0, 0, 0.15), 
                          inset -4px -4px 8px rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-snappy: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-canvas);
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    cursor: none; /* Hide default mouse cursor to enable custom clay bubble cursor */
}

a, button, input, select, textarea, .size-btn {
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-dark);
    border: 3px solid var(--bg-canvas);
    border-radius: 10px;
}

/* ==========================================================================
   SQUISHY CLAY PRELOADER
   ========================================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-canvas);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-clay-blob {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--clay-pink);
    border: 3.5px solid var(--color-dark);
    box-shadow: var(--clay-shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: squish 2.2s ease-in-out infinite;
}

.blob-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-dark);
}

.loading-shadow {
    position: absolute;
    bottom: -15px;
    width: 90px;
    height: 12px;
    background-color: rgba(18, 18, 18, 0.08);
    border-radius: 50%;
    animation: shadowScale 2.2s ease-in-out infinite;
    z-index: -1;
}

/* ==========================================================================
   CUSTOM CLAY BUBBLE CURSOR
   ========================================================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--clay-lavender);
    border: 2px solid var(--color-dark);
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.7), inset -2px -2px 4px rgba(0,0,0,0.1), 3px 3px 0px var(--color-dark);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.1s ease, background-color 0.3s ease;
    opacity: 0;
}

/* Hover scales custom cursor - desktop only */
@media (min-width: 769px) {
    .custom-cursor.hovered {
        transform: translate(-50%, -50%) scale(1.6);
        background-color: var(--clay-pink);
    }
}

/* Hide custom cursor on touch devices to avoid lagging indicator boxes */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .custom-cursor {
        display: none !important;
    }
    a, button, input, select, textarea, .size-btn {
        cursor: auto;
    }
}

/* ==========================================================================
   CLAY-BRUTALIST CARD STRUCTURAL TEMPLATES
   ========================================================================== */

.clay-card {
    background-color: var(--card-bg);
    border: 3px solid var(--color-dark);
    border-radius: 32px;
    box-shadow: var(--clay-shadow-md);
    transition: var(--transition-bounce);
}

.clay-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2.5px solid var(--color-dark);
    padding: 6px 14px;
    border-radius: 40px;
    box-shadow: var(--clay-shadow-sm);
    margin-bottom: 25px;
}

.badge-lavender { background-color: var(--clay-lavender); }
.badge-mint      { background-color: var(--clay-mint); }
.badge-peach     { background-color: var(--clay-peach); }
.badge-pink      { background-color: var(--clay-pink); }
.badge-yellow    { background-color: var(--clay-yellow); }
.badge-blue      { background-color: var(--clay-blue); }

/* ==========================================================================
   FLOATING HEADER & NAV BAR
   ========================================================================== */

.clay-header {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 40px;
    transition: var(--transition-snappy);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
}

.brand-logo {
    color: var(--color-dark);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-snappy);
    padding: 5px 10px;
    border-radius: 12px;
}

.bag-btn {
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.85rem;
    background-color: var(--clay-mint);
    border-color: var(--color-dark);
}

.bag-count {
    background-color: var(--color-dark);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 0.75rem;
}

/* ==========================================================================
   LANDING HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Squishy graphic decoration doodles */
.hero-doodle {
    position: absolute;
    border: 3px solid var(--color-dark);
    box-shadow: var(--clay-shadow-sm);
    z-index: 1;
}

.doodle-1 {
    width: 60px;
    height: 60px;
    border-radius: 40% 60% 70% 30% / 40% 50% 65% 55%;
    background-color: var(--clay-mint);
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
}

.doodle-2 {
    width: 80px;
    height: 80px;
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
    background-color: var(--clay-yellow);
    bottom: 15%;
    right: 10%;
    transform: rotate(-25deg);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: var(--transition-snappy);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 4.2rem;
    line-height: 0.95;
    letter-spacing: -1.5px;
    color: var(--color-dark);
    margin-bottom: 25px;
}

.highlight-pink {
    color: var(--clay-pink);
    text-shadow: 2px 2px 0px var(--color-dark);
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4A4A4F;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.hero-primary-btn {
    background-color: var(--clay-pink);
    color: var(--color-dark);
    padding: 18px 36px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 24px;
    text-decoration: none;
}

.hero-secondary-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 2.5px solid var(--color-dark);
    padding-bottom: 4px;
    transition: var(--transition-snappy);
}

/* Image Showcase card */
.showcase-clay-frame {
    background-color: #FFFFFF;
    padding: 30px;
    position: relative;
    transform: rotate(2deg);
}

.showcase-well {
    height: 380px;
    background-color: var(--bg-canvas);
    border: 3px solid var(--color-dark);
    border-radius: 24px;
    box-shadow: var(--clay-shadow-well);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.showcase-img {
    max-height: 95%;
    max-width: 95%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes visual white background boxes */
    transition: var(--transition-smooth);
}

.showcase-tag {
    position: absolute;
    bottom: -15px;
    left: -15px;
    padding: 8px 16px;
    border-radius: 16px;
}

/* ==========================================================================
   PRODUCT CATALOG (BENTO GRID WITH COLLAPSE SUPPORT)
   ========================================================================== */

.catalog-section {
    padding: 120px 0;
    background-color: var(--bg-canvas);
}

.section-header {
    max-width: 600px;
    margin: 0 auto 70px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.8rem;
    letter-spacing: -0.5px;
    color: var(--color-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #55555A;
    margin-top: 15px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    background-color: #FFFFFF;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hides products 4-7 initially */
.product-card.collapsible-card.collapsed {
    display: none !important;
}

.product-well {
    height: 280px;
    border: 3px solid var(--color-dark);
    border-radius: 24px;
    box-shadow: var(--clay-shadow-well);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.well-pink     { background-color: var(--clay-pink); }
.well-lavender { background-color: var(--clay-lavender); }
.well-mint     { background-color: var(--clay-mint); }
.well-peach    { background-color: var(--clay-peach); }
.well-yellow   { background-color: var(--clay-yellow); }
.well-blue     { background-color: var(--clay-blue); }

.product-img {
    max-height: 95%;
    max-width: 95%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white photo background cards */
    transition: var(--transition-bounce);
}

.product-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.info-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #8C8C90;
}

.product-price {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-dark);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 18px;
}

/* Size Pill Selectors */
.size-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-top: 1.5px dashed rgba(18,18,18,0.1);
    padding-top: 15px;
}

.size-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    color: #8C8C90;
}

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

.size-btn {
    border: 2px solid var(--color-dark);
    background-color: var(--bg-canvas);
    border-radius: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: var(--clay-shadow-sm);
}

.size-btn.active {
    background-color: var(--clay-lavender);
    box-shadow: var(--clay-shadow-active);
    transform: translateY(1px);
}

.add-btn-bag {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    font-size: 0.85rem;
    background-color: var(--clay-peach);
    border-color: var(--color-dark);
    font-weight: 700;
}

.catalog-toggle-container {
    margin-top: 55px;
}

.toggle-catalog-btn {
    padding: 16px 36px;
    border-radius: 24px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    background-color: var(--clay-yellow);
    border-color: var(--color-dark);
    cursor: pointer;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */

.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    padding: 60px;
    background-color: #FFFFFF;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    background-color: var(--bg-canvas);
    border: 3px solid var(--color-dark);
    border-radius: 24px;
    box-shadow: var(--clay-shadow-well);
    position: relative;
    overflow: hidden;
}

.visual-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: rotate(-5deg);
}

.stacked-bubble {
    padding: 12px 30px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
}

.bubble-pink     { background-color: var(--clay-pink); }
.bubble-lavender { background-color: var(--clay-lavender); }
.bubble-mint     { background-color: var(--clay-mint); }

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4A4A4F;
    margin-bottom: 20px;
}

/* ==========================================================================
   REVIEWS (HORIZONTAL CARDS TRACK)
   ========================================================================== */

.reviews-section {
    padding: 100px 0;
    background-color: var(--bg-canvas);
}

.reviews-container {
    margin-top: 60px;
    overflow-x: auto;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
}

.reviews-container::-webkit-scrollbar {
    height: 8px;
}
.reviews-container::-webkit-scrollbar-thumb {
    background-color: var(--color-dark);
    border-radius: 8px;
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 10px;
}

.review-item {
    width: 380px;
    background-color: #FFFFFF;
    padding: 30px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-rating {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-body {
    font-size: 1rem;
    line-height: 1.5;
    color: #4A4A4F;
    margin-bottom: 25px;
}

.reviewer-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1.5px dashed rgba(18,18,18,0.1);
    padding-top: 15px;
}

.reviewer-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: var(--clay-shadow-sm);
}

.pic-lavender { background-color: var(--clay-lavender); }
.pic-mint      { background-color: var(--clay-mint); }
.pic-pink      { background-color: var(--clay-pink); }
.pic-yellow    { background-color: var(--clay-yellow); }

.reviewer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.reviewer-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #8C8C90;
}

/* ==========================================================================
   BAG DRAWER (SHOPPING CART)
   ========================================================================== */

.bag-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.4s;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100%;
    background-color: var(--bg-canvas);
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px;
}

.bag-drawer.open {
    visibility: visible;
}

.bag-drawer.open .drawer-overlay {
    opacity: 1;
}

.bag-drawer.open .drawer-panel {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-dark);
    padding-bottom: 20px;
    margin-bottom: 25px;
    position: relative;
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

/* Premium circular close button instead of block shape */
.close-drawer-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark);
    background-color: var(--clay-pink);
    border: 2px solid var(--color-dark);
    box-shadow: var(--clay-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    padding-bottom: 3px;
    cursor: pointer;
}

.close-drawer-btn:active {
    box-shadow: var(--clay-shadow-active);
    transform: translateY(1px);
}

.bag-items-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bag-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8C8C90;
    gap: 15px;
}

.empty-icon {
    font-size: 2.5rem;
}

.empty-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Individual Cart Line Card */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 15px;
    background-color: #FFFFFF;
}

.cart-item-well {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-dark);
    border-radius: 16px;
    box-shadow: var(--clay-shadow-well);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: var(--bg-canvas);
}

.cart-item-img {
    max-height: 95%;
    max-width: 95%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-dark);
}

.qty-controls {
    display: flex;
    border: 2px solid var(--color-dark);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background-color: transparent;
    padding: 2px 8px;
    font-weight: bold;
    cursor: pointer;
}

.qty-val {
    border-left: 2px solid var(--color-dark);
    border-right: 2px solid var(--color-dark);
    padding: 2px 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.remove-btn {
    border: none;
    background-color: transparent;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #8C8C90;
    text-decoration: underline;
    cursor: pointer;
}

.remove-btn:hover {
    color: var(--clay-pink);
}

.drawer-footer {
    border-top: 2px solid var(--color-dark);
    padding-top: 25px;
    margin-top: 25px;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.subtotal-price {
    color: var(--color-dark);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: var(--clay-mint);
    border-color: var(--color-dark);
    font-weight: 700;
}

/* ==========================================================================
   SECURE CHECKOUT OVERLAY MODAL
   ========================================================================== */

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.checkout-panel {
    position: relative;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: var(--bg-canvas);
    border-radius: 40px;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-modal.open {
    visibility: visible;
}

.checkout-modal.open .checkout-overlay {
    opacity: 1;
}

.checkout-modal.open .checkout-panel {
    transform: scale(1);
    opacity: 1;
}

.close-checkout-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark);
    background-color: var(--clay-pink);
    border: 2px solid var(--color-dark);
    box-shadow: var(--clay-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    padding-bottom: 3px;
    cursor: pointer;
}

.checkout-header {
    margin-bottom: 30px;
    border-bottom: 2px dashed rgba(18,18,18,0.1);
    padding-bottom: 20px;
}

.checkout-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.checkout-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    color: #8C8C90;
    margin-top: 5px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.checkout-form-section {
    margin-bottom: 25px;
}

.section-form-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 18px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border-color: var(--color-dark);
    outline: none;
    box-shadow: var(--clay-shadow-sm);
}

.checkout-input:focus {
    background-color: #FFFFFF;
    box-shadow: var(--clay-shadow-active);
}

/* Custom Claymorphic Radio Toggles */
.payment-selection-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-opt {
    padding: 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #FFFFFF;
}

.payment-radio {
    position: absolute;
    opacity: 0;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-badge {
    font-size: 1.2rem;
}

.payment-opt-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
}

.payment-opt.active {
    background-color: var(--clay-lavender);
    box-shadow: var(--clay-shadow-active);
    transform: translateY(2px);
}

.submit-order-btn {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    background-color: var(--clay-mint);
    border-color: var(--color-dark);
    cursor: pointer;
    margin-top: 20px;
}

.submit-order-btn:active {
    box-shadow: var(--clay-shadow-active);
}

/* Order Summary Box */
.summary-card {
    background-color: #FFFFFF;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.summary-card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-dark);
    padding-bottom: 10px;
}

.checkout-summary-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 250px;
    margin-bottom: 20px;
}

.checkout-sum-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4A4A4F;
    border-bottom: 1px dashed rgba(18,18,18,0.1);
    padding-bottom: 10px;
}

.checkout-sum-name {
    font-weight: 600;
}

.checkout-sum-qty {
    font-family: var(--font-mono);
    color: #8C8C90;
    margin-left: 5px;
}

.checkout-sum-price {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--color-dark);
}

.checkout-pricing-stack {
    border-top: 2px solid var(--color-dark);
    padding-top: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.shipping-status {
    color: #008A5A;
}

.price-row.total-row {
    font-size: 1.1rem;
    border-top: 2px dashed rgba(18,18,18,0.2);
    padding-top: 15px;
    color: var(--color-dark);
}

/* ==========================================================================
   CURVED GRADIENT FOOTER
   ========================================================================== */

.clay-footer {
    position: relative;
    background-color: var(--bg-canvas);
    margin-top: 100px;
}

/* Top curved transition element */
.footer-curved-top {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin-bottom: -5px; /* Overlap slightly more to prevent rendering gaps */
}

.curve-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Eliminate inline-descent rendering gaps */
}

.footer-content {
    background: linear-gradient(to bottom, #D3C5FF 0%, #FFB7B2 50%, #FFDAC1 100%);
    padding: 60px 0 40px 0;
    /* Straight border line has been removed to preserve the curvy wavy outline on the SVG above */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 60px;
    border-bottom: 2px dashed rgba(18,18,18,0.15);
    padding-bottom: 50px;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #FFFFFF;
}

.brand-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4A4A4F;
    margin-bottom: 25px;
}

.social-tags {
    display: flex;
    gap: 12px;
}

.social-bubble {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--color-dark);
    background-color: #FFFFFF;
    border-color: var(--color-dark);
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: #4A4A4F;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-snappy);
}

.footer-list a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

/* Subscribe Clay Form */
.sub-desc {
    font-size: 0.9rem;
    color: #4A4A4F;
    line-height: 1.5;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 18px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border-color: var(--color-dark);
    outline: none;
    box-shadow: var(--clay-shadow-sm);
}

.subscribe-submit {
    padding: 12px;
    border-radius: 18px;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.85rem;
    background-color: var(--clay-yellow);
    border-color: var(--color-dark);
}

.subscribe-submit:active {
    box-shadow: var(--clay-shadow-active);
    transform: translateY(1px);
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    color: #4A4A4F;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: bold;
}

.agency-link {
    color: var(--color-dark);
    text-decoration: none;
}

.agency-link:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes squish {
    0%, 100% { border-radius: 50%; transform: scale(1); }
    30% { border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; transform: scaleY(0.9) scaleX(1.05); }
    65% { border-radius: 60% 40% 60% 40% / 40% 60% 50% 60%; transform: scaleX(0.9) scaleY(1.05); }
}

@keyframes shadowScale {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    30% { transform: scaleX(1.1) scaleY(0.95); opacity: 0.5; }
    65% { transform: scaleX(0.9) scaleY(1.05); opacity: 0.9; }
}

/* ==========================================================================
   INTERACTIVE HOVER STATES (STRICTLY ON PC & BIG SCREEN DEVICES)
   ========================================================================== */

@media (min-width: 769px) {
    .nav-link:hover {
        background-color: var(--clay-lavender);
        transform: translateY(-2px);
    }

    .bag-btn:hover {
        transform: translateY(-3px);
        box-shadow: 10px 10px 0px var(--color-dark);
    }

    .hero-primary-btn:hover {
        transform: translateY(-4px);
        box-shadow: 12px 12px 0px var(--color-dark);
    }

    .hero-secondary-btn:hover {
        color: var(--clay-lavender);
        border-color: var(--clay-lavender);
    }

    .showcase-clay-frame:hover {
        transform: rotate(0deg) scale(1.02);
    }

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 12px 12px 0px var(--color-dark);
    }

    .product-card:hover .product-img {
        transform: scale(1.08) rotate(-2deg);
    }

    .add-btn-bag:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 0px var(--color-dark);
    }

    .toggle-catalog-btn:hover {
        transform: translateY(-4px);
        box-shadow: 10px 10px 0px var(--color-dark);
    }

    .close-drawer-btn:hover {
        transform: rotate(90deg) scale(1.1);
        background-color: var(--clay-lavender);
    }

    .close-checkout-btn:hover {
        transform: rotate(90deg) scale(1.1);
        background-color: var(--clay-lavender);
    }

    .submit-order-btn:hover {
        transform: translateY(-3px);
        box-shadow: 8px 8px 0px var(--color-dark);
    }

    .social-bubble:hover {
        transform: translateY(-2px);
        box-shadow: 4px 4px 0px var(--color-dark);
        background-color: var(--clay-yellow);
    }

    .subscribe-submit:hover {
        transform: translateY(-3px);
        box-shadow: 6px 6px 0px var(--color-dark);
    }
}

/* ==========================================================================
   MOBILE & RESPONSIVE GRID LAYOUT OVERRIDES
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Responsive Floating Header adjustments to resolve overlap/squeeze */
    .clay-header {
        top: 10px;
        padding: 0 12px;
    }
    
    .nav-container {
        padding: 8px 15px;
        border-radius: 20px;
    }
    
    .brand-logo {
        font-size: 1.25rem;
    }
    
    .bag-btn {
        padding: 8px 14px;
        border-radius: 12px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .nav-links {
        display: none; /* Collapsed links on mobile screens */
    }

    /* Container pads */
    .container {
        padding: 0 16px;
    }

    /* Hero Text Adjustments */
    .hero-section {
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        letter-spacing: -0.5px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-primary-btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .hero-secondary-btn {
        width: max-content;
        text-align: center;
    }

    /* Doodles hidden on mobile to stop horizontal scroll overflow width */
    .hero-doodle {
        display: none !important;
    }

    .showcase-clay-frame {
        padding: 15px;
        transform: rotate(0deg);
    }

    .showcase-well {
        height: 280px;
    }

    /* Bento Catalog Layout */
    .catalog-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.0rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-well {
        height: 250px;
    }

    .about-grid {
        padding: 25px 15px;
        border-radius: 24px;
    }

    /* Review section mobile alignment */
    .reviews-section {
        padding: 60px 0;
    }

    .review-item {
        width: 300px;
        padding: 20px;
    }

    /* Cart Slider Mobile Sizing (Slide full screen) */
    .drawer-panel {
        width: 100%;
        right: -100%;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        padding: 20px;
    }

    /* Checkout Modal Mobile adaptation */
    .checkout-panel {
        padding: 20px;
        max-height: 95vh;
        border-radius: 24px;
        width: 96%;
    }

    .checkout-title {
        font-size: 1.6rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    /* Footer adaptation */
    .footer-content {
        padding: 40px 0 25px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-top: 25px;
    }
}

/* ===== CLAYWEAR CUSTOM THEME OVERRIDES & MOBILE FIXES ===== */

/* --- MOBILE LAYOUT SPACING ADJUSTMENTS --- */
@media (max-width: 768px) {
  .catalog-section,
  .about-section,
  .reviews-section {
    padding: 60px 0 !important;
  }
}

/* --- NEO-BRUTALISM OVERRIDES --- */
body.theme-brutal,
body.theme-brutal .catalog-section,
body.theme-brutal .about-section,
body.theme-brutal .about-grid,
body.theme-brutal .reviews-section {
  background-color: #FAF8F5 !important;
  color: #000000 !important;
}
body.theme-brutal .clay-card,
body.theme-brutal .product-card,
body.theme-brutal .about-grid,
body.theme-brutal .review-item,
body.theme-brutal .drawer-panel,
body.theme-brutal .checkout-panel,
body.theme-brutal .summary-card,
body.theme-brutal .nav-container,
body.theme-brutal .bag-btn,
body.theme-brutal .hero-primary-btn,
body.theme-brutal .add-btn-bag,
body.theme-brutal .size-btn,
body.theme-brutal .checkout-btn,
body.theme-brutal .submit-order-btn,
body.theme-brutal .social-bubble,
body.theme-brutal .subscribe-input,
body.theme-brutal .subscribe-submit,
body.theme-brutal .checkout-input,
body.theme-brutal .payment-opt,
body.theme-brutal .close-drawer-btn,
body.theme-brutal .close-checkout-btn {
  border: 3px solid #000000 !important;
  border-radius: 0px !important;
  box-shadow: 6px 6px 0px #000000 !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}
body.theme-brutal .hero-primary-btn,
body.theme-brutal .add-btn-bag,
body.theme-brutal .checkout-btn,
body.theme-brutal .submit-order-btn {
  background-color: #FFDE4D !important;
  color: #000000 !important;
  font-weight: 900 !important;
}
body.theme-brutal .highlight-pink {
  color: #000000 !important;
  background-color: #FFB7B2 !important;
  border: 2px solid #000000 !important;
  padding: 2px 8px !important;
}
body.theme-brutal h1,
body.theme-brutal h2,
body.theme-brutal h3,
body.theme-brutal h4,
body.theme-brutal p,
body.theme-brutal span,
body.theme-brutal a,
body.theme-brutal label {
  color: #000000 !important;
  font-family: 'Space Grotesk', 'Syne', sans-serif !important;
}
body.theme-brutal h1,
body.theme-brutal h2,
body.theme-brutal h3,
body.theme-brutal h4 {
  font-weight: 900 !important;
}
body.theme-brutal .clay-footer,
body.theme-brutal .footer-content {
  background-color: #000000 !important;
  border-top: 3px solid #000000 !important;
}
body.theme-brutal .clay-footer * {
  color: #ffffff !important;
}

/* --- MINIMALIST OVERRIDES --- */
body.theme-minimalist,
body.theme-minimalist .catalog-section,
body.theme-minimalist .about-section,
body.theme-minimalist .about-grid,
body.theme-minimalist .reviews-section {
  background-color: #ffffff !important;
  color: #111111 !important;
}
body.theme-minimalist .clay-card,
body.theme-minimalist .product-card,
body.theme-minimalist .about-grid,
body.theme-minimalist .review-item,
body.theme-minimalist .drawer-panel,
body.theme-minimalist .checkout-panel,
body.theme-minimalist .summary-card,
body.theme-minimalist .nav-container,
body.theme-minimalist .bag-btn,
body.theme-minimalist .hero-primary-btn,
body.theme-minimalist .add-btn-bag,
body.theme-minimalist .size-btn,
body.theme-minimalist .checkout-btn,
body.theme-minimalist .submit-order-btn,
body.theme-minimalist .social-bubble,
body.theme-minimalist .subscribe-input,
body.theme-minimalist .subscribe-submit,
body.theme-minimalist .checkout-input,
body.theme-minimalist .payment-opt,
body.theme-minimalist .close-drawer-btn,
body.theme-minimalist .close-checkout-btn {
  border: 1px solid #E2E2E2 !important;
  border-radius: 4px !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.02) !important;
  background-color: #FAFAFA !important;
  color: #111111 !important;
}
body.theme-minimalist .hero-primary-btn,
body.theme-minimalist .add-btn-bag,
body.theme-minimalist .checkout-btn,
body.theme-minimalist .submit-order-btn {
  background-color: #111111 !important;
  color: #ffffff !important;
}
body.theme-minimalist .highlight-pink {
  color: #111111 !important;
  background: none !important;
  text-decoration: underline !important;
  padding: 0 !important;
}
body.theme-minimalist h1,
body.theme-minimalist h2,
body.theme-minimalist h3,
body.theme-minimalist h4 {
  font-family: 'Instrument Serif', 'Cormorant Garamond', serif !important;
  font-weight: 400 !important;
  color: #111111 !important;
}
body.theme-minimalist p,
body.theme-minimalist span,
body.theme-minimalist a:not(.hero-primary-btn):not(.add-btn-bag):not(.checkout-btn):not(.submit-order-btn),
body.theme-minimalist label {
  color: #555555 !important;
}
body.theme-minimalist .clay-footer,
body.theme-minimalist .footer-content {
  background-color: #fafafa !important;
  border-top: 1px solid #e2e2e2 !important;
}
body.theme-minimalist .clay-footer * {
  color: #111111 !important;
}

/* --- CLAYMORPHISM (ORIGINAL) OVERRIDES --- */
body.theme-clay,
body.theme-clay .catalog-section,
body.theme-clay .about-section,
body.theme-clay .about-grid,
body.theme-clay .reviews-section {
  background-color: var(--bg-canvas) !important;
  color: var(--color-dark) !important;
}
body.theme-clay .about-grid {
  background-color: #ffffff !important;
}

/* --- GLASSMORPHISM OVERRIDES --- */
body.theme-glass,
body.theme-glass .catalog-section,
body.theme-glass .about-section,
body.theme-glass .about-grid,
body.theme-glass .reviews-section {
  background-color: #0E0A16 !important;
  color: #ffffff !important;
}
body.theme-glass .clay-card,
body.theme-glass .product-card,
body.theme-glass .about-grid,
body.theme-glass .review-item,
body.theme-glass .drawer-panel,
body.theme-glass .checkout-panel,
body.theme-glass .summary-card,
body.theme-glass .nav-container,
body.theme-glass .bag-btn,
body.theme-glass .hero-primary-btn,
body.theme-glass .add-btn-bag,
body.theme-glass .size-btn,
body.theme-glass .checkout-btn,
body.theme-glass .submit-order-btn,
body.theme-glass .social-bubble,
body.theme-glass .subscribe-input,
body.theme-glass .subscribe-submit,
body.theme-glass .checkout-input,
body.theme-glass .payment-opt,
body.theme-glass .close-drawer-btn,
body.theme-glass .close-checkout-btn {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
}
body.theme-glass .hero-primary-btn,
body.theme-glass .add-btn-bag,
body.theme-glass .checkout-btn,
body.theme-glass .submit-order-btn {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}
body.theme-glass .highlight-pink {
  color: #ffffff !important;
  background-color: rgba(124, 77, 255, 0.3) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
body.theme-glass h1,
body.theme-glass h2,
body.theme-glass h3,
body.theme-glass h4 {
  font-family: 'Space Grotesk', 'Syne', sans-serif !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
body.theme-glass p,
body.theme-glass span,
body.theme-glass a:not(.hero-primary-btn):not(.add-btn-bag):not(.checkout-btn):not(.submit-order-btn),
body.theme-glass label {
  color: rgba(255, 255, 255, 0.7) !important;
}
body.theme-glass .clay-footer,
body.theme-glass .footer-content {
  background-color: #0E0A16 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.theme-glass .clay-footer * {
  color: #ffffff !important;
}
