:root {
    --color-pink: #FF69B4;
    --color-pink-light: #FFB6C1;
    --color-pink-dark: #FF1493;
    --color-rose: #FF007F;
    --color-green: #2ECC71;
    --color-green-dark: #27AE60;
    --color-white: #FFFFFF;
    --color-orange: #FFA500;
    --color-orange-dark: #FF8C00;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F9F9F9;
    --color-border: #EAEAEA;
    
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.6;
    padding-bottom: 0; /* Adjusted dynamically for mobile nav */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    margin-bottom: 15px;
}

/* Common Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-pink-dark);
}

.btn-secondary {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-orange-dark);
}

/* Header - Glassmorphic */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-pink);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.logo span {
    color: var(--color-green);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--color-pink);
    background: rgba(255,105,180,0.1);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Cart Icon Animation */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}
.cart-icon-wrapper:hover {
    transform: scale(1.1);
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-rose);
    color: var(--color-white);
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bottom Navigation (Mobile App View) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-light);
    font-size: 12px;
    transition: var(--transition);
    position: relative;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.active {
    color: var(--color-pink);
}

.bottom-nav-item.active i {
    transform: translateY(-3px) scale(1.1);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-pink);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-price {
    color: var(--color-rose);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Main content padding */
main {
    min-height: 70vh;
    padding: 40px 0;
}

/* Responsive Logic */
@media screen and (max-width: 1249px) {
    /* Mobile App View */
    .nav-links {
        display: none; /* Hide desktop nav */
    }
    
    .bottom-nav {
        display: flex; /* Show mobile bottom nav */
    }
    
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .header-actions .desktop-only {
        display: none;
    }

    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 20px 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media screen and (min-width: 1250px) {
    /* Desktop E-commerce View */
    .mobile-only {
        display: none;
    }
}

/* Tracking Progress Animation */
.tracking-container {
    margin: 40px 0;
    position: relative;
    display: none; /* Hidden by default until track is clicked */
}
.tracking-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.tracking-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    z-index: 1;
}
.tracking-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: var(--color-green);
    z-index: 1;
    width: 0%;
    transition: width 0.5s ease;
}
.tracking-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}
.tracking-icon {
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: 4px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
    color: var(--color-text-light);
    transition: var(--transition);
}
.tracking-step.active .tracking-icon {
    border-color: var(--color-green);
    color: var(--color-green);
    background: #e8f8f5;
    animation: pulse 1s infinite;
}
.tracking-step.completed .tracking-icon {
    border-color: var(--color-green);
    background: var(--color-green);
    color: var(--color-white);
}
.tracking-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
}
.tracking-step.active .tracking-text, .tracking-step.completed .tracking-text {
    color: var(--color-text);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Horizontal Scroll */
.scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: none;
    color: var(--color-pink);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.scroll-btn:hover {
    background: var(--color-pink);
    color: var(--color-white);
}
.scroll-left { left: -15px; }
.scroll-right { right: -15px; }

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    width: 100%;
}
.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.horizontal-scroll > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 280px;
}

@media screen and (max-width: 1249px) {
    .horizontal-scroll > * {
        width: 220px;
    }
    .scroll-btn {
        display: flex; /* Keep arrows visible on mobile as requested */
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .scroll-left { left: -5px; }
    .scroll-right { right: -5px; }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-pink-light);
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 40px;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

@media screen and (max-width: 768px) {
    .hero-carousel {
        height: auto;
        min-height: 350px;
    }
    .hero-slide {
        padding: 20px;
        justify-content: center;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2em !important;
    }
    .hero-content p {
        font-size: 1em !important;
    }
}

/* Reviews */
.review-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.stars {
    color: var(--color-orange);
    margin-bottom: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-light);
}

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 10px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-img { height: 200px; width: 100%; border-radius: 15px 15px 0 0; }
.skeleton-title { height: 20px; width: 70%; margin: 15px; }
.skeleton-price { height: 20px; width: 40%; margin: 0 15px 15px; }
.skeleton-btn { height: 40px; width: calc(100% - 30px); margin: 0 15px 15px; border-radius: 20px; }
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    background: var(--color-bg-light);
}
.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumbnail.active {
    border-color: var(--color-pink);
}

