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

:root {
    --primary-cream: #FAF8F3;
    --secondary-beige: #F5F1E8;
    --accent-rose: #E8D5D1;
    --accent-sage: #C8D5C3;
    --warm-taupe: #D4C5B9;
    --text-dark: #2C2C2C;
    --text-medium: #6B6B6B;
    --text-light: #9B9B9B;
    --border-light: #E8E5E0;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--secondary-beige);
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-cream);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px;
}

.header-text {
    text-align: center;
    padding: 20px 40px;
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    max-width: 700px;
}

.header-text h1 {
    font-size: 3.5em;
    font-weight: 600;
    color: #C85A3F;
    line-height: 1.1;
    margin-bottom: 20px;
}

.header-subtitle {
    font-size: 1.2em;
    color: #B8856A;
    line-height: 1.6;
}

/* Welcome Section */
.welcome-section {
    padding: 50px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.welcome-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Order Info */
.order-info {
    padding: 20px 30px;
    background: var(--primary-cream);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.order-total {
    font-size: 1.3em;
    font-weight: 700;
}

/* Store Section */
.store-section {
    padding: 30px;
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent-rose);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.store-header:hover {
    background-color: var(--primary-cream);
}

.store-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-logo {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.product-count {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 500;
}

.store-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.store-total {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-dark);
}

.toggle-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-medium);
    transition: transform 0.3s ease;
}

.toggle-arrow.rotated {
    transform: rotate(-180deg);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.products-list.collapsed {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

/* Product Card */
.product-card {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--accent-rose);
}

.product-image {
    width: 120px;
    height: 120px;
    background: var(--primary-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-brand {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.product-name {
    font-size: 1.05em;
    font-weight: 500;
    margin: 4px 0 6px;
}

.product-description {
    font-size: 0.9em;
    color: var(--text-light);
    font-style: italic;
    margin: 4px 0;
}

.product-quantity {
    font-size: 0.9em;
    color: var(--text-medium);
}

.product-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding: 15px;
    min-width: 120px;
}

.product-price {
    font-size: 1.4em;
    font-weight: 600;
}

.add-to-cart {
    background: var(--accent-sage);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    gap: 8px;
}

.add-to-cart:hover {
    background: #B8C5B3;
    transform: scale(1.05);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

footer {
    background: var(--text-dark);
    color: var(--primary-cream);
    text-align: center;
    padding: 30px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    header {
        min-height: 400px;
    }
    .header-text {
        padding: 40px 30px;
    }
    .header-text h1 {
        font-size: 2.5em;
    }
    .header-subtitle {
        font-size: 1em;
    }
    .store-section {
        padding: 20px;
    }
    .store-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .store-logo {
        max-height: 50px;
        max-width: 150px;
    }
    .product-count {
        font-size: 0.85em;
        white-space: nowrap;
    }
    .store-right {
        gap: 10px;
    }
    .store-total {
        font-size: 1.2em;
    }
    .toggle-arrow {
        width: 20px;
        height: 20px;
    }
    .product-card {
        flex-direction: column;
    }
    .product-image {
        width: 100%;
        height: 150px;
    }
    .product-price-section {
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    header {
        min-height: 350px;
    }
    .header-text {
        padding: 30px 20px;
    }
    .header-text h1 {
        font-size: 2em;
    }
    .welcome-section {
        padding: 35px 20px;
    }
    .store-right {
        gap: 8px;
    }
    .store-total {
        font-size: 1em;
    }
    .toggle-arrow {
        width: 18px;
        height: 18px;
    }
    .product-price {
        font-size: 1.2em;
    }
}
