/* ==========================================================================
   BasKula CSS Stylesheet
   Theme: Cozy Wabi-Sabi, Mustard Accents, Vintage Shop Feel
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
    --color-mustard: #E2A727;
    --color-mustard-dark: #C28B17;
    --color-mustard-light: #F4D381;
    --color-bg-cream: #FAF8F5;
    --color-bg-card: #FFFFFF;
    --color-charcoal: #222222;
    --color-charcoal-light: #444444;
    --color-terracotta: #C66B4E;
    --color-olive: #6E8058;
    --color-olive-light: #8E9F79;
    --color-avena: #E5D5C5;
    --color-wood: #8B5A2B;
    --color-wood-dark: #5C3A21;
    --color-wood-light: #A06D3B;
    
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-cream);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-charcoal);
}

p {
    font-weight: 300;
    color: var(--color-charcoal-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-quick);
}

/* --- Reusable Components & Buttons --- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-mustard);
    color: var(--color-bg-cream);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(226, 167, 39, 0.3);
    transition: var(--transition-smooth);
}

.btn-cta:hover {
    background-color: var(--color-mustard-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 167, 39, 0.4);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta:disabled {
    background-color: #cccccc;
    color: #888888;
    box-shadow: none;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-charcoal);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-bg-cream);
}

.text-mustard {
    color: var(--color-mustard);
}

.text-center {
    text-align: center;
}

/* --- Section Layout --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    margin-bottom: 50px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--color-mustard-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-charcoal-light);
}

/* --- Top Awning Accent Border --- */
.awning-border {
    height: 16px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-charcoal) 0px,
        var(--color-charcoal) 30px,
        var(--color-bg-cream) 30px,
        var(--color-bg-cream) 60px
    );
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

/* --- Header / Nav --- */
.main-header {
    background-color: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-mustard-dark);
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-charcoal-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-mustard);
    transition: var(--transition-quick);
}

.nav-link:hover {
    color: var(--color-charcoal);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-header {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-charcoal);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg-cream);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    gap: 24px;
    transition: var(--transition-smooth);
}

.mobile-nav.open {
    right: 0;
}

.mobile-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-charcoal);
    margin-bottom: 20px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 100px 24px 140px 24px;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(250, 248, 245, 0.95) 40%,
        rgba(250, 248, 245, 0.7) 100%
    );
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

/* Simulated Storefront Window Frame */
.storefront-window {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border: 8px solid var(--color-mustard);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), inset 0 0 40px rgba(0,0,0,0.05);
    position: relative;
    padding: 80px 60px 60px 60px;
    max-width: 850px;
    animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 3D Scalloped Awning */
.storefront-awning {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: 60px;
    display: flex;
    overflow: visible;
    z-index: 5;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    animation: awningSway 6s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes awningSway {
    0%, 100% { transform: rotateX(0deg); }
    50% { transform: rotateX(3deg); }
}

.awning-stripe {
    flex: 1;
    height: 100%;
    position: relative;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.awning-stripe::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: inherit;
    border-radius: 50%;
}

.awning-stripe:nth-child(odd) {
    background-color: var(--color-charcoal);
}

.awning-stripe:nth-child(even) {
    background-color: #FAF8F5;
}

/* Storefront Window Content */
.storefront-content {
    max-width: 600px;
}

.badge-store {
    display: inline-block;
    background-color: rgba(110, 128, 88, 0.15);
    color: var(--color-olive);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.storefront-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-charcoal-light);
    margin-bottom: 36px;
}

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

/* Ivy Swaying Animation */
.hanging-plant {
    position: absolute;
    width: 150px;
    height: 250px;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 3;
    pointer-events: none;
    transform-origin: top center;
    animation: plantSway 8s ease-in-out infinite;
}

@keyframes plantSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.left-plant {
    top: 0;
    left: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"><path d="M50 0 Q50 60 40 100 T50 200" fill="none" stroke="%236E8058" stroke-width="2"/><circle cx="50" cy="30" r="10" fill="%236E8058" opacity="0.8"/><circle cx="35" cy="60" r="12" fill="%238E9F79" opacity="0.9"/><circle cx="58" cy="90" r="8" fill="%236E8058" opacity="0.85"/><circle cx="32" cy="120" r="14" fill="%238E9F79" opacity="0.95"/><circle cx="52" cy="150" r="10" fill="%236E8058" opacity="0.8"/></svg>');
}

.right-plant {
    top: 0;
    right: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"><path d="M50 0 Q50 70 60 110 T50 200" fill="none" stroke="%236E8058" stroke-width="2"/><circle cx="50" cy="40" r="11" fill="%236E8058" opacity="0.85"/><circle cx="62" cy="75" r="9" fill="%238E9F79" opacity="0.9"/><circle cx="38" cy="105" r="13" fill="%236E8058" opacity="0.8"/><circle cx="60" cy="140" r="11" fill="%238E9F79" opacity="0.95"/><circle cx="48" cy="170" r="7" fill="%236E8058" opacity="0.75"/></svg>');
}

/* --- Marquee --- */
.marquee-container {
    background-color: var(--color-charcoal);
    color: var(--color-bg-cream);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
}

.marquee-content span {
    padding: 0 40px;
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Concept Section --- */
.concept-section {
    background-color: var(--color-bg-cream);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.concept-card {
    background-color: var(--color-bg-card);
    padding: 48px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-quick);
}

.concept-card:hover::before {
    background-color: var(--color-mustard);
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.concept-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: rgba(226, 167, 39, 0.1);
    color: var(--color-mustard-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.concept-icon {
    width: 28px;
    height: 28px;
}

.concept-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.concept-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Interactive Simulator Section --- */
.simulator-section-wrapper {
    background-color: #FAF8F5;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 50px;
}

/* Shelf Cabinet Styling */
.shelf-cabinet-container {
    background-color: #C28B17; /* Mustard Yellow Cabinet Border */
    border: 10px solid #C28B17;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.shelf-header {
    background-color: var(--color-charcoal);
    padding: 16px;
    color: var(--color-bg-cream);
    text-align: center;
    position: relative;
}

.shelf-awning {
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 15px,
        #fff 15px,
        #fff 30px
    );
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.shelf-wood-top {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.shelf-rack {
    background-color: #f7eedb; /* Warm Mustard Inside Background */
    background-image: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.02) 0px,
        rgba(0,0,0,0.02) 20px,
        transparent 20px,
        transparent 40px
    );
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.shelf-row {
    position: relative;
    padding-bottom: 15px;
}

.shelf-wood-plank {
    height: 16px;
    background-color: var(--color-wood);
    border-bottom: 4px solid var(--color-wood-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.shelf-items {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 1;
    min-height: 130px;
}

/* Ceramic Item Card (Shelf Item) */
.ceramic-item-card {
    background-color: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius-md);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.ceramic-item-card:hover {
    transform: translateY(-15px) scale(1.03);
    background-color: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 10;
}

/* CSS Ceramics Visuals */
.ceramic-image-placeholder {
    height: 70px;
    position: relative;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

/* Clay colors */
.plate-terracotta {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    border: 4px dashed rgba(255,255,255,0.15);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.1);
}
.plate-terracotta .plate-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #B4573B;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.plate-olive {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background-color: var(--color-olive);
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.25), 0 4px 6px rgba(0,0,0,0.1);
}
.plate-olive .plate-inner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #5C6E48;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.bowl-beige {
    width: 75px;
    height: 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    background-color: var(--color-avena);
    border-top: 3px solid rgba(255,255,255,0.4);
    box-shadow: inset 0 -4px 10px rgba(0,0,0,0.15), 0 4px 6px rgba(0,0,0,0.1);
}

.mug-mustard {
    width: 45px;
    height: 55px;
    border-radius: 6px;
    background-color: var(--color-mustard);
    box-shadow: inset -4px 0 10px rgba(0,0,0,0.15), 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}
.mug-mustard .mug-handle {
    width: 15px;
    height: 30px;
    border: 4px solid var(--color-mustard);
    border-left: none;
    border-radius: 0 15px 15px 0;
    position: absolute;
    right: -13px;
    top: 12px;
}

.jug-speckled {
    width: 55px;
    height: 80px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #D6C2B0;
    background-image: radial-gradient(rgba(0,0,0,0.15) 1px, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.15), 0 5px 8px rgba(0,0,0,0.1);
    position: relative;
}
.jug-speckled .jug-handle {
    width: 20px;
    height: 45px;
    border: 5px solid #C4AE9D;
    border-right: none;
    border-radius: 20px 0 0 20px;
    position: absolute;
    left: -18px;
    top: 20px;
}
.jug-speckled .jug-spout {
    width: 12px;
    height: 10px;
    background-color: #D6C2B0;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    position: absolute;
    right: -4px;
    top: 0;
}

/* Card details */
.item-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2px;
}

.item-meta {
    font-size: 0.75rem;
    color: var(--color-charcoal-light);
    margin-bottom: 10px;
}

.btn-add-item {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--color-mustard-dark);
    color: var(--color-mustard-dark);
    background-color: transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-quick);
}

.btn-add-item:hover {
    background-color: var(--color-mustard);
    color: var(--color-bg-cream);
    border-color: var(--color-mustard);
}

/* Scale Visuals */
.scale-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.analog-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.scale-top-tray {
    width: 220px;
    height: 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tray-plate {
    width: 100%;
    height: 8px;
    background-color: #B0B0B0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tray-supports {
    width: 40px;
    height: 27px;
    background-color: #8C8C8C;
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.scale-body {
    width: 260px;
    height: 240px;
    background-color: #3A3A3A; /* Vintage Iron scale body */
    border: 10px solid #2B2B2B;
    border-radius: 30px;
    box-shadow: var(--shadow-lg), inset 0 4px 20px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.scale-dial {
    width: 170px;
    height: 170px;
    background-color: #FFFDF9;
    border: 8px solid #EFEAE2;
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dial-ticks {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.tick {
    position: absolute;
    font-size: 0.95rem;
    font-weight: 700;
    color: #444;
}

.tick-0 { top: 12px; left: 50%; transform: translateX(-50%); }
.tick-1 { right: 22px; top: 40px; }
.tick-2 { right: 28px; bottom: 35px; }
.tick-3 { left: 28px; bottom: 35px; }
.tick-4 { left: 22px; top: 40px; }

/* The Scale Needle */
.dial-needle {
    position: absolute;
    width: 4px;
    height: 70px;
    background-color: var(--color-terracotta);
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    transform: rotate(0deg);
    transition: transform 1.2s cubic-bezier(0.25, 1.5, 0.5, 1);
    border-radius: 2px;
}

.dial-needle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -4px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--color-terracotta);
}

.dial-center {
    width: 20px;
    height: 20px;
    background-color: #2B2B2B;
    border-radius: 50%;
    border: 3px solid #EFEAE2;
    position: relative;
    z-index: 3;
}

.scale-brand {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #8C8C8C;
    margin-top: 8px;
    letter-spacing: 2px;
}

.scale-base {
    width: 290px;
    height: 20px;
    background-color: #2B2B2B;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Basket Receipt Card (Like real receipt) */
.basket-receipt-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Receipt Zag Edges Effect */
.basket-receipt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(135deg, var(--color-bg-cream) 25%, transparent 25%), 
                      linear-gradient(225deg, var(--color-bg-cream) 25%, transparent 25%);
    background-size: 12px 24px;
    background-position: 0 0;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px dashed #E0E0E0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.receipt-header h3 {
    font-size: 1.3rem;
}

.price-per-kilo {
    font-size: 0.85rem;
    color: var(--color-charcoal-light);
}

.basket-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    border-bottom: 2px dashed #E0E0E0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.basket-item-info {
    display: flex;
    flex-direction: column;
}

.basket-item-name {
    font-weight: 500;
}

.basket-item-weight {
    font-size: 0.8rem;
    color: var(--color-charcoal-light);
}

.basket-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #d9534f;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-quick);
}

.btn-remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.empty-basket-message {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: auto 0;
    font-size: 0.9rem;
}

.receipt-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.receipt-row.highlight {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-mustard-dark);
}

.receipt-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-top: 10px;
}

.btn-reset-scale {
    background: none;
    border: 1px solid #CCC;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-quick);
}

.btn-reset-scale:hover {
    background-color: #EEE;
}

.btn-checkout {
    justify-content: center;
    width: 100%;
}

/* --- Atmosphere Gallery Section --- */
.gallery-section-wrapper {
    background-color: var(--color-bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
    margin-top: 50px;
}

.gallery-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--color-bg-card);
    transition: var(--transition-smooth);
}

.gallery-card.tall {
    grid-row: span 2;
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.fallback-gallery-img {
    width: 100%;
    height: 100%;
    background-color: #FFFDF9;
    position: relative;
}

/* Fallback Cabinet Drawing for Muebles con personalidad */
.vintage-cabinet-graphic {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 170px;
    background-color: var(--color-mustard-light);
    border: 4px solid var(--color-mustard);
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
}

.stripes-awning-mini {
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 10px,
        #fff 10px,
        #fff 20px
    );
    border-radius: 4px 4px 0 0;
}

.cabinet-wood {
    flex: 1;
    margin: 10px;
    border: 2px dashed var(--color-mustard-dark);
    display: flex;
    justify-content: space-around;
    background-color: rgba(255,255,255,0.4);
}

/* Info overlay sliding up on hover */
.gallery-info-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(34,34,34,0.9) 0%, rgba(34,34,34,0.4) 100%);
    padding: 30px 24px;
    color: var(--color-bg-cream);
    transition: var(--transition-smooth);
}

.gallery-info-overlay h3 {
    color: var(--color-bg-cream);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.gallery-info-overlay p {
    color: rgba(250,248,245,0.8);
    font-size: 0.85rem;
    line-height: 1.5;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover .gallery-info-overlay {
    bottom: 0;
}

/* Static Accent Box */
.gallery-info-overlay-static {
    width: 100%;
    height: 100%;
    background-color: var(--color-mustard);
    padding: 40px 30px;
    color: var(--color-bg-cream);
    display: flex;
    align-items: center;
}

.mustard-accent-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mustard-accent-box .accent-icon {
    width: 40px;
    height: 40px;
    color: var(--color-bg-cream);
}

.mustard-accent-box h4 {
    font-size: 1.4rem;
    color: var(--color-bg-cream);
}

.mustard-accent-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Testimonial Quote Section --- */
.testimonial-quote-section {
    background-color: var(--color-charcoal);
    color: var(--color-bg-cream);
    text-align: center;
    padding: 100px 24px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-icon {
    width: 50px;
    height: 50px;
    color: var(--color-mustard);
    margin-bottom: 24px;
    opacity: 0.7;
}

.testimonial-quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-quote-section cite {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-mustard);
    font-weight: 600;
}

/* --- Contact Postcard Section --- */
.contact-section-wrapper {
    background-color: #FAF8F5;
    display: flex;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.postcard-container {
    background-color: #FFFDFC;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 2px 4px rgba(0,0,0,0.02);
    width: 100%;
    max-width: 950px;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    overflow: hidden;
    position: relative;
}

/* Postcard Vertical Divider */
.postcard-container::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 44.5%;
    width: 1px;
    height: 80%;
    background-color: #E6E6E6;
}

.postcard-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.postcard-info h3 {
    font-size: 1.8rem;
    margin-top: 10px;
}

.postcard-info p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
}

.detail-item i {
    width: 20px;
    height: 20px;
    color: var(--color-mustard);
}

/* Postcard Form */
.postcard-form-wrapper {
    padding: 50px 40px;
    position: relative;
}

.form-stamp {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 65px;
    height: 75px;
    border: 3px dashed var(--color-mustard-dark);
    background-color: #FAF6F0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(5deg);
    z-index: 5;
}

.stamp-icon {
    width: 24px;
    height: 24px;
    color: var(--color-terracotta);
}

.postcard-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.form-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-charcoal-light);
}

.form-row input, .form-row textarea {
    flex: 1;
    border: none;
    border-bottom: 1px dashed #B0B0B0;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 4px 8px;
    background: transparent;
    color: var(--color-charcoal);
    outline: none;
    transition: var(--transition-quick);
}

.form-row input::placeholder, .form-row textarea::placeholder {
    color: #BBB;
    font-style: italic;
}

.form-row input:focus, .form-row textarea:focus {
    border-bottom-color: var(--color-mustard);
}

.form-row.message-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.form-row textarea {
    height: 100px;
    resize: none;
    border: 1px dashed #B0B0B0;
    border-radius: var(--border-radius-sm);
    padding: 10px;
}

.btn-postcard {
    align-self: flex-end;
    margin-top: 10px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-charcoal);
    color: rgba(250, 248, 245, 0.7);
    padding: 60px 24px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    align-items: center;
    gap: 40px;
}

.footer-brand .logo-text {
    color: var(--color-bg-cream);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--color-mustard);
}

.footer-copy {
    text-align: right;
}

/* --- Selection Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34,34,34,0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-charcoal-light);
}

.modal-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(226, 167, 39, 0.1);
    color: var(--color-mustard-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.modal-heart {
    width: 32px;
    height: 32px;
    fill: var(--color-mustard);
    stroke: var(--color-mustard-dark);
    animation: heartPulse 1.5s infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal-receipt-summary {
    background-color: #FAF8F5;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.modal-receipt-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-charcoal-light);
    border-bottom: 1px dashed #CCC;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.modal-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.modal-item-row {
    display: flex;
    justify-content: space-between;
}

.modal-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px dashed #CCC;
    padding-top: 10px;
    color: var(--color-mustard-dark);
}

.modal-closing-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
}

.btn-modal-done {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    .simulator-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    
    .gallery-card.tall {
        grid-row: span 1;
    }
    
    .postcard-container {
        grid-template-columns: 1fr;
    }
    
    .postcard-container::after {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-copy {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .storefront-window {
        padding: 50px 24px 30px 24px;
        border-width: 4px;
    }
    
    .storefront-awning {
        height: 40px;
        top: -4px;
        left: -4px;
        width: calc(100% + 8px);
    }
    
    .storefront-awning .awning-stripe::after {
        display: none;
    }
    
    .storefront-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .shelf-cabinet-container {
        border-width: 5px;
    }
    
    .shelf-rack {
        gap: 30px;
    }
    
    .shelf-items {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .ceramic-item-card {
        width: 100%;
        max-width: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
