/* ==================== APP-STYLE DESIGN SYSTEM ==================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Teal Palette */
    --misty-blue: #cfe0ea;
    /* Light Background + Soft Sections */
    --teal-green: #01949a;
    /* Primary Accent + CTA */
    --slate: #578384;
    /* Secondary Accent */
    --teal: #016367;
    /* Dark Accent + Text */

    --bg-body: #f5f8fa;
    /* Very light neutral for main background */
    --bg-card: #ffffff;

    --text-main: #1a3a3d;
    /* Dark teal for text */
    --text-muted: #6b8587;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Shadows & Glass */
    --shadow-sm: 0 2px 4px rgba(1, 99, 103, 0.08);
    --shadow-md: 0 4px 8px -2px rgba(1, 99, 103, 0.12);
    --shadow-lg: 0 12px 20px -5px rgba(1, 99, 103, 0.18);

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-blur: blur(10px);

    /* Spacing & Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --container-width: 1280px;
    --header-height: 70px;
    --bottom-nav-height: 70px;
}

/* ==================== RESET & BASE ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    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 {
    color: var(--teal);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    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.25rem;
}

@media (min-width: 769px) {
    .container {
        max-width: var(--container-width);
    }
}

.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--teal-green);
}

/* ==================== 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));
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sticky Search Bar */
.sticky-search {
    background: var(--misty-blue);
    border: 2px solid var(--teal-green);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--teal);
    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(--teal);
    outline: none;
}

.sticky-search input::placeholder {
    color: rgba(1, 99, 103, 0.6);
}

/* ==================== 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(--teal-green);
}

.bottom-nav-item.active svg {
    fill: var(--misty-blue);
    stroke: var(--teal-green);
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: 10px;
    right: 25%;
    background: var(--teal-green);
    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(--teal);
}

/* ==================== HOME PAGE ==================== */

.hero-banner {
    background: var(--misty-blue);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(1, 148, 154, 0.1);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--teal-green);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(40px);
}

.hero-banner h1 {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.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(--bg-card);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-weight: 500;
    color: var(--teal-green);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.pill.active {
    background: var(--teal-green);
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--misty-blue);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--teal);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal-green);
    margin-top: 0.25rem;
}

.btn-add {
    background: linear-gradient(135deg, var(--teal-green), #018a8f);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(1, 148, 154, 0.3);
    position: relative;
    z-index: 2;
}

.btn-add:active {
    transform: scale(0.96);
    box-shadow: 0 2px 5px rgba(1, 148, 154, 0.2);
}

/* ==================== CART & CHECKOUT ==================== */

.cart-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--misty-blue);
}

.sticky-checkout {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 560px;
    z-index: 900;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--teal-green), #018a8f);
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--teal);
    box-shadow: 0 10px 25px -5px rgba(1, 148, 154, 0.4);
    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(--misty-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 4px;
    background: var(--teal-green);
    border-radius: 0 4px 4px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.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(--teal-green);
    color: white;
}

.status-shipped {
    background: var(--slate);
    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;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    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(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--teal);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.nav-link:hover {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(1, 148, 154, 0.3);
    position: relative;
    z-index: 2;
}

.btn-add:active {
    transform: scale(0.96);
    box-shadow: 0 2px 5px rgba(1, 148, 154, 0.2);
}

/* ==================== CART & CHECKOUT ==================== */

.cart-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--misty-blue);
}

.sticky-checkout {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 560px;
    z-index: 900;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--teal-green), #018a8f);
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--teal);
    box-shadow: 0 10px 25px -5px rgba(1, 148, 154, 0.4);
    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(--misty-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 4px;
    background: var(--teal-green);
    border-radius: 0 4px 4px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.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(--teal-green);
    color: white;
}

.status-shipped {
    background: var(--slate);
    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;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    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(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--teal);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.nav-link:hover {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(1, 148, 154, 0.3);
    position: relative;
    z-index: 2;
}

.btn-add:active {
    transform: scale(0.96);
    box-shadow: 0 2px 5px rgba(1, 148, 154, 0.2);
}

/* ==================== CART & CHECKOUT ==================== */

.cart-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--misty-blue);
}

.sticky-checkout {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 560px;
    z-index: 900;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--teal-green), #018a8f);
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--teal);
    box-shadow: 0 10px 25px -5px rgba(1, 148, 154, 0.4);
    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(--misty-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 4px;
    background: var(--teal-green);
    border-radius: 0 4px 4px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.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(--teal-green);
    color: white;
}

.status-shipped {
    background: var(--slate);
    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;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* ==================== HEADER ICONS & BADGES ==================== */

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    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(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--teal);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--teal-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}