@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette matching reference UI */
    --bg-primary: #ECE7F8;
    --bg-surface: #FFFFFF;
    --bg-surface-soft: #F6F4FC;
    --accent-purple-deep: #422675;
    --accent-purple-vivid: #6035A3;
    --accent-purple-light: #E5DCF9;
    --text-primary: #1C132E;
    --text-muted: #7E7694;
    --pill-bg: #EAE4F7;
    
    /* Typography */
    --font-serif: "Times New Roman", Times, Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Curves & Elevations */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --card-shadow: 0 12px 30px rgba(66, 38, 117, 0.06);
    --card-shadow-hover: 0 20px 40px rgba(66, 38, 117, 0.12);
}

body {
    background-color: var(--bg-primary);
    font-family: var(--font-sans);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
.font-serif {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

h1, h2, h3, .product-title {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-weight: 700;
}

/* Mobile Frame Container (Max width for luxury app feel on desktop) */
.store-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* App Header & Search */
.header-search {
    background: var(--bg-surface);
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-primary);
    width: 100%;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-purple-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Hero Promotion Banner */
.hero-promo-card {
    background: linear-gradient(145deg, #4A2885, #351C61);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(53, 28, 97, 0.25);
}

.hero-promo-card h1 {
    color: #fff;
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(66, 38, 117, 0.04);
}

.cat-pill.active, .cat-pill:hover {
    background: var(--text-primary);
    color: #fff;
}

/* Product Cards */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 24px 18px 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.product-img-wrapper {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-soft);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-btn.active, .wishlist-btn:hover {
    background: #FFEBEB;
    color: #E63946;
}

/* Glassmorphism Quick Order Modal */
.modal-glass .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 60px rgba(45, 18, 80, 0.2);
}

.btn-whatsapp-order {
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.25s ease;
}

.btn-whatsapp-order:hover {
    background: #1EBE5D;
    color: #fff;
    transform: translateY(-2px);
}