:root {
    --primary: #ff2d55;
    --primary-gradient-start: #ff2d55;
    --primary-gradient-end: #ff6b81;
    --secondary: #ff6b81;
    --bg-color: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-secondary: #888888;
    --success: #00c853;
    --border: #eeeeee;
    --shadow-color: rgba(0, 0, 0, 0.08);

    --radius-card: 16px;
    --radius-btn: 8px;
    /* Slightly squared as per image */
    --radius-img: 12px;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 80px;
    /* Space for bottom nav */
}

/* Header */
.app-header {
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background: black;
    color: gold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
}

.header-icon {
    font-size: 22px;
    cursor: pointer;
}

/* Categories */
.category-section {
    margin-top: 16px;
}

.category-scroller {
    display: flex;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.cat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 6px;
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}


/* Responsive Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile default: 2 columns */
    gap: 12px;
    padding: 16px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 columns */
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: 4 columns */
        max-width: 1200px;
        margin: 0 auto;
    }

    .category-section,
    .banner-section {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Bottom Nav - Center Pulse Button */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    color: #ccc;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary);
}

.nav-center-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-20px);
    /* Float up */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 45, 85, 0.4);
    animation: pulse 2s infinite;
}

.nav-center-btn ion-icon {
    font-size: 28px;
    color: white !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 45, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0);
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid #f0f0f0;
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-img);
    overflow: hidden;
    margin-bottom: 8px;
    background: #f0f0f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating-pill {
    background: var(--success);
    color: white;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Product Buttons */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-add {
    flex: 1;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.btn-buy-now {
    flex: 1;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px var(--shadow-color);
    z-index: 1000;
}

.nav-item {
    color: #ccc;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary);
}

.nav-label {
    font-size: 10px;
    margin-top: 2px;
}

/* Checkout Steps */
.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.step-circle.active {
    background: #2196F3;
}

/* Blue for shipping step as per img */
.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 4px;
}

.step-text {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    text-align: center;
}

.step-text.active {
    color: #2196F3;
    font-weight: 600;
}

/* Checkout Form Input */
.input-field {
    width: 100%;
    padding: 14px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.input-label {
    display: block;
    color: #2196F3;
    /* Blue labels */
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.4s ease forwards;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.current-price {
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
}