/* ==================== GLAMUPRAW DESIGN SYSTEM ==================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* GlamupRaw Palette */
    --primary-pink: #F5A6C6;
    --medium-rose: #E26AA7;
    --deep-pink: #D84490;
    /* Primary CTA */

    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --satin-silver: #CBBFC5;
    --deep-charcoal: #4B3A41;

    --soft-gold: #D4AF37;
    --warm-gold: #B8860B;

    /* Semantic Mappings */
    --bg-body: var(--off-white);
    --bg-card: var(--white);

    --text-main: var(--deep-charcoal);
    --text-muted: #7a6b72;
    /* Softened charcoal */
    --text-light: #a09096;
    --text-white: var(--white);

    --primary-color: var(--deep-pink);
    --accent-color: var(--soft-gold);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Shadows & Glass */
    --shadow-sm: 0 4px 12px rgba(216, 68, 144, 0.08);
    --shadow-md: 0 8px 16px -2px rgba(216, 68, 144, 0.12);
    --shadow-lg: 0 16px 32px -5px rgba(216, 68, 144, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-blur: blur(12px);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-width: 1280px;
    --header-height: 80px;
    --bottom-nav-height: 70px;

    /* Fonts */
    --font-header: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ==================== RESET & BASE ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(var(--bottom-nav-height) + 20px + env(safe-area-inset-bottom));
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    color: var(--deep-charcoal);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== LAYOUT UTILITIES ==================== */

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 769px) {
    .container {
        max-width: var(--container-width);
    }
}

.section {
    padding: 3rem 0;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
    color: var(--deep-charcoal);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--soft-gold);
    margin: 0.5rem auto 0;
}

/* ==================== HEADER ==================== */

header {
    background: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    padding-top: max(1rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    /* Soft gold border */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-family: var(--font-header);
    font-size: 1.8rem !important;
    font-weight: 700;
    color: var(--deep-charcoal) !important;
    letter-spacing: -0.02em;
}

/* Sticky Search Bar */
.sticky-search {
    background: var(--white);
    border: 1px solid var(--satin-silver);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.sticky-search:active {
    transform: scale(0.98);
}

.sticky-search input {
    background: transparent;
    border: none;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.sticky-search input::placeholder {
    color: var(--text-light);
}

/* ==================== BOTTOM NAVIGATION ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    gap: 4px;
    width: 100%;
    height: 100%;
    position: relative;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: var(--deep-pink);
}

.bottom-nav-item.active svg {
    fill: rgba(216, 68, 144, 0.1);
    stroke: var(--deep-pink);
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: 10px;
    right: 25%;
    background: var(--deep-pink);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--white);
}

/* ==================== HOME PAGE ==================== */

.hero-banner {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #FCE4EC 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--medium-rose) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
}

.hero-banner h1 {
    font-size: 2.5rem;
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
}

.hero-banner p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.category-pills {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--satin-silver);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pill.active {
    background: var(--deep-pink);
    color: white;
    border-color: var(--deep-pink);
    box-shadow: var(--shadow-md);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    padding-top: 120%;
    /* Taller aspect ratio for fashion/jewelry */
    background: var(--off-white);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-pink);
    margin-top: 0.25rem;
}

.btn-add {
    background: var(--deep-pink);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(216, 68, 144, 0.3);
    position: relative;
}

.sticky-checkout {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 560px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.btn-checkout:active {
    transform: scale(0.98);
}

/* ==================== PROFILE & ORDERS ==================== */

.profile-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--off-white);
}

.profile-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 2rem;
    width: 4px;
    background: var(--soft-gold);
    border-radius: 0 4px 4px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--off-white);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-pink);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-processing {
    background: var(--soft-gold);
    color: white;
}

.status-shipped {
    background: var(--medium-rose);
    color: white;
}

.status-delivered {
    background: var(--success);
    color: white;
}

/* ==================== UTILITIES ==================== */

.desktop-only {
    display: none;
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* ==================== HEADER ICONS & BADGES ==================== */

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-charcoal);
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: var(--deep-pink);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--deep-pink);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(216, 68, 144, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--deep-charcoal);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--deep-pink);
}

/* Footer */
footer {
    background: linear-gradient(to bottom, var(--off-white), #FCE4EC);
}

.footer-section h3 {
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.call-btn {
    background: var(--deep-pink);
    color: white;
}

.email-btn {
    background: var(--deep-charcoal);
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.floating-whatsapp {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@media (min-width: 769px) {
    .floating-whatsapp {
        bottom: 30px;
        right: 30px;
    }
}