/* Picadoux Kids Boutique CSS Stylesheet */

/* --- Design Tokens & Variables --- */
:root {
    --bg-primary: #FDFCF7;      /* Warm boutique cream */
    --bg-secondary: #F5F2EA;    /* Soft beige */
    --text-primary: #2C2A29;    /* Rich organic charcoal */
    --text-muted: #726E6A;      /* Warm taupe */
    
    --accent-terracotta: #D37B62; /* Dusty terracotta */
    --accent-terracotta-dark: #C0644B;
    --accent-sage: #8A9D93;       /* Muted organic sage green */
    --accent-sage-dark: #74887D;
    --accent-gold: #D4B28C;       /* Soft gold wheat */
    
    --border-color: #E6E1D8;
    --shadow-sm: 0 2px 8px rgba(44, 42, 41, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 42, 41, 0.08);
    --shadow-lg: 0 16px 40px rgba(44, 42, 41, 0.12);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(253, 252, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(230, 225, 216, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1;
}

.logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-terracotta);
    font-weight: 700;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-link.font-accent {
    color: var(--accent-terracotta);
    font-weight: 600;
}

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

.action-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-terracotta);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-terracotta);
    color: white;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-heading);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-count.bounce {
    animation: bounce 0.3s ease;
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 42, 41, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-cart-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
}

.cart-empty-message i {
    font-size: 48px;
    color: var(--border-color);
}

.cart-drawer-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(230, 225, 216, 0.5);
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-position: center;
}

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

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: fit-content;
    padding: 2px;
    background-color: var(--bg-secondary);
}

.qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background-color: white;
    color: var(--text-primary);
}

.qty-num {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #DC3545;
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-subtotal span:last-child {
    font-size: 20px;
    color: var(--accent-terracotta);
}

.cart-delivery-note {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.cart-delivery-note i {
    color: var(--accent-sage);
}

/* --- Main Structure & Layout --- */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-terracotta);
    color: white;
    box-shadow: 0 4px 12px rgba(211, 123, 98, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 123, 98, 0.3);
}

.btn-secondary {
    background-color: var(--accent-sage);
    color: white;
    box-shadow: 0 4px 12px rgba(138, 157, 147, 0.2);
}

.btn-secondary:hover {
    background-color: var(--accent-sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 157, 147, 0.3);
}

.btn-outline {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at 10% 20%, rgba(253,252,247,1) 0%, rgba(245,242,234,1) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(211, 123, 98, 0.1);
    color: var(--accent-terracotta);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-content h1 span {
    color: var(--accent-terracotta);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-secondary);
}

.hero-image-wrapper img {
    width: 100%;
    height: 480px;
    object-position: center;
}

.hero-accent-shape {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--accent-gold);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper img {
        height: 320px;
    }
}

/* --- Features Section --- */
.features-section {
    padding: 60px 0;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    transition: var(--transition-smooth);
}

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

.feature-icon {
    font-size: 32px;
    color: var(--accent-terracotta);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Product Catalog --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-terracotta);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 8px;
}

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

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(230, 225, 216, 0.4);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(253, 252, 247, 0.9);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.product-card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(15px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-card-actions {
    transform: translateY(0);
    opacity: 1;
}

.card-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card-btn:hover {
    background-color: var(--accent-terracotta);
    color: white;
}

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

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-title a:hover {
    color: var(--accent-terracotta);
}

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

/* --- Product Detail Page --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrapper {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-detail-title {
    font-size: 32px;
    font-weight: 700;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.product-size-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.size-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-option {
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    background-color: white;
    transition: var(--transition-smooth);
}

.size-option:hover {
    border-color: var(--text-primary);
}

.size-option.selected {
    background-color: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
    color: white;
}

.add-to-cart-section {
    display: flex;
    gap: 16px;
}

.detail-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: var(--bg-secondary);
    padding: 4px;
}

.detail-qty-selector .qty-btn {
    width: 32px;
    height: 32px;
}

.detail-qty-selector .qty-num {
    font-size: 15px;
}

.product-description-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.product-description-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description-card p {
    font-size: 15px;
    color: var(--text-muted);
    white-space: pre-line;
}

.insta-badge-link {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-terracotta);
}

.insta-badge-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Checkout & Forms --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.form-card {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
    background-color: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 3px rgba(211, 123, 98, 0.15);
    background-color: white;
}

.checkout-summary-card {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.checkout-summary-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.summary-item-list {
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(230, 225, 216, 0.5);
    font-size: 14px;
}

.summary-item-title {
    font-weight: 600;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item-qty {
    color: var(--text-muted);
}

.summary-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-terracotta);
    margin-top: 12px;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Success / Message Page --- */
.message-card {
    text-align: center;
    max-width: 580px;
    margin: 60px auto;
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 48px 32px;
    box-shadow: var(--shadow-md);
}

.message-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(138, 157, 147, 0.15);
    color: var(--accent-sage);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.message-card h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.message-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.footer-socials a:hover {
    background-color: var(--accent-terracotta);
    color: white;
}

.footer-links h4, .footer-instagram h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-instagram p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-instagram a {
    color: var(--accent-terracotta);
    font-weight: 600;
}

.footer-instagram a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-tagline {
        margin: 0 auto;
    }
    .footer-socials {
        justify-content: center;
    }
}

/* --- Sibling Matching Badge --- */
.sibling-matching-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(138, 157, 147, 0.1);
    color: var(--accent-sage-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    border: 1px solid rgba(138, 157, 147, 0.2);
    width: fit-content;
}

/* --- Playful Micro-Animations & Sparles --- */
@keyframes floatCloud {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

.cloud-decor {
    position: absolute;
    font-size: 24px;
    color: rgba(230, 225, 216, 0.5);
    pointer-events: none;
    z-index: 1;
    animation: floatCloud 6s ease-in-out infinite;
}

.sparkle-decor {
    position: absolute;
    font-size: 14px;
    color: var(--accent-gold);
    pointer-events: none;
    z-index: 1;
    animation: sparkle 3s ease-in-out infinite;
}

/* Playful Hover effects for cards */
.playful-hover-card {
    transition: var(--transition-smooth);
}

.playful-hover-card:hover {
    transform: translateY(-8px) rotate(1deg) !important;
    box-shadow: 0 16px 32px rgba(211, 123, 98, 0.12) !important;
}

.playful-hover-card:nth-child(even):hover {
    transform: translateY(-8px) rotate(-1deg) !important;
}

/* --- Occasions & Stories layout --- */
.occasion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.occasion-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.occasion-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--accent-terracotta);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-primary);
}

.occasion-icon {
    font-size: 28px;
    color: var(--accent-terracotta);
}

.occasion-card h4 {
    font-size: 14px;
    font-weight: 700;
}

/* Personality tabs */
.personality-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.personality-tab-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.personality-tab-btn:hover, .personality-tab-btn.active {
    background-color: var(--accent-terracotta);
    color: white;
    border-color: var(--accent-terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 123, 98, 0.2);
}

/* --- "My Little Closet" Wishlist System --- */
.closet-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 42, 41, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    transition: var(--transition-smooth);
}

.closet-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.closet-drawer {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #FAF6ED; /* Warm boutique pastel cream */
    background-image: radial-gradient(rgba(212, 178, 140, 0.1) 1px, transparent 0);
    background-size: 16px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-right: 4px solid #D4B28C; /* Rustic wood edge highlight */
}

.closet-drawer.open {
    left: 0;
}

.closet-drawer-header {
    padding: 24px;
    border-bottom: 2px dashed #E6E1D8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F3EBE0;
}

.closet-drawer-header h3 {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #5D544F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-closet-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-closet-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Closet Wardrobe Rod */
.closet-wardrobe-rod {
    height: 10px;
    background: linear-gradient(to bottom, #9C7E6A, #6E5343); /* Wooden rod style */
    border-radius: 4px;
    margin: 12px 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: relative;
}

.closet-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Closet hanging clothes effect */
.closet-item-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.closet-item-card::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 45px;
    width: 20px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c7160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a4 4 0 0 0-4 4v1m4-5a4 4 0 0 1 4 4v1M2 13h20L12 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.closet-item-card:hover {
    transform: translateY(2px) rotate(0.5deg);
    box-shadow: var(--shadow-md);
}

.closet-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.closet-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.closet-item-title {
    font-size: 13px;
    font-weight: 700;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.closet-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.closet-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-closet-add {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 12px;
}

.closet-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
}

.closet-item-remove:hover {
    color: #DC3545;
}

/* Hanger action button for product cards */
.hanger-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(253, 252, 247, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    z-index: 2;
}

.hanger-btn:hover, .hanger-btn.active {
    background-color: #D4B28C;
    color: white;
    transform: scale(1.1);
}

/* --- Growth Reminder Widget --- */
.growth-reminder-widget {
    background-color: #F1ECE2;
    border-radius: var(--border-radius);
    padding: 16px;
    margin-top: auto;
    border: 1px solid rgba(212, 178, 140, 0.3);
}

.growth-reminder-widget h4 {
    font-size: 13px;
    font-weight: 700;
    color: #5D544F;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.growth-profile-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.growth-input-group {
    display: flex;
    gap: 8px;
}

.growth-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    background-color: white;
}

.growth-select {
    width: 90px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    background-color: white;
}

.growth-status-msg {
    margin-top: 8px;
    font-size: 12px;
    background-color: white;
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-terracotta);
    color: var(--text-primary);
    line-height: 1.4;
}

/* --- Size Helper Modal Overlay --- */
.size-helper-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 42, 41, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-helper-overlay.active {
    display: flex;
    opacity: 1;
}

.size-helper-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.size-helper-overlay.active .size-helper-card {
    transform: translateY(0);
}

.size-helper-result-box {
    display: none;
    margin-top: 20px;
    background-color: rgba(138, 157, 147, 0.15);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--accent-sage);
}

.size-helper-result-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-sage-dark);
    margin-top: 6px;
}

/* --- Catalog Filter Bar --- */
.catalog-filter-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

/* --- Global Responsive Media Queries --- */

/* Tablet & Smaller Screens (< 768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    /* Header & Navigation */
    .header {
        height: 70px;
    }
    .logo-main {
        font-size: 22px;
    }
    .logo-sub {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    .nav-container {
        padding: 0 16px;
    }
    .nav-menu {
        display: none; /* Hide header text nav on mobile/tablets */
    }
    .nav-actions {
        gap: 10px;
    }
    .action-btn {
        padding: 6px;
        font-size: 18px;
    }
    .main-content {
        margin-top: 70px;
        min-height: calc(100vh - 70px - 280px);
    }
    
    /* Dynamic Personality Horizontal Swiper */
    .personality-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px 20px;
        margin-left: -20px;
        margin-right: -20px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 20px;
    }
    .personality-tabs::-webkit-scrollbar {
        display: none; /* Invisible scrollbar for clean UI */
    }
    .personality-tab-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Catalog Filter bar on mobile */
    .catalog-filter-bar {
        padding: 12px 16px;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    .catalog-filter-bar > div {
        flex: 1;
        justify-content: space-between;
    }
    .catalog-filter-bar select {
        width: 100%;
    }
    
    /* Product Grid Layout */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    /* Detail Image Gallery */
    .product-gallery {
        max-width: 100%;
    }
    .thumbnail-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Sticky Summary on mobile checkout */
    .checkout-summary-card {
        position: static !important;
    }
}

/* Mobile Devices (< 576px) */
@media (max-width: 576px) {
    /* Occasions grid: Force 2-columns (visually balanced) */
    .occasion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .occasion-card {
        padding: 12px;
        gap: 6px;
    }
    .occasion-icon {
        font-size: 24px;
    }
    .occasion-card h4 {
        font-size: 13px;
    }
    
    /* Modal Popups sizing */
    .size-helper-card, .edit-modal-card, .order-modal-card {
        padding: 24px 20px;
        width: calc(100% - 32px);
        margin: 16px;
    }
    
    /* Order Detail Grid */
    .order-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    /* WhatsApp alignment inside modal */
    .order-modal-card .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    /* Tables horizontal scrolling rules */
    .admin-table-container {
        border-radius: 8px;
        border: 1px solid var(--border-color);
        box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
    }
    
    /* SweetAlert Dialog size adjustment */
    .swal2-popup {
        width: 90% !important;
        padding: 1.25rem !important;
    }
    .swal2-title {
        font-size: 1.5rem !important;
    }
}

/* Very Small Screen Mobile Phones (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 20px 14px;
    }
    
    /* Header */
    .nav-menu {
        display: none; /* Hide header text nav entirely - accessible via drawers/footer */
    }
    
    /* Hero Content scale down */
    .hero {
        padding: 48px 0;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Side Drawers full width (native feel) */
    .cart-drawer, .closet-drawer {
        width: 100%;
        right: -100%;
    }
    .closet-drawer {
        left: -100%;
    }
    .closet-drawer.open {
        left: 0;
    }
    
    /* Product Details - Add to Bag button stacking */
    .add-to-cart-section {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .detail-qty-selector {
        width: 100%;
        justify-content: space-between;
    }
    .add-to-cart-section .btn {
        width: 100% !important;
        padding: 14px 20px;
    }
    
    /* Product Card adjustments */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 products per row on mobile phones */
        gap: 12px;
    }
    
    .product-card-content {
        padding: 12px;
    }
    
    .product-card-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .product-card-price {
        font-size: 14px;
    }
    
    .product-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-card-bottom .btn {
        width: 100% !important;
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .hanger-btn {
        width: 30px !important;
        height: 30px !important;
        top: 8px !important;
        right: 8px !important;
    }
    
    .hanger-btn i {
        font-size: 12px !important;
    }
    
    .product-card-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    /* Sibling match badges */
    .sibling-matching-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    /* Footer elements stacking */
    .footer-container {
        gap: 24px;
    }
    .footer {
        padding: 40px 0 20px;
    }
}
