@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Colors */
    --primary-violet: #8a2be2;
    --primary-violet-dark: #6a1b9a;
    --secondary-pink: #ff1493;
    --secondary-pink-dark: #c71585;
    --white: #ffffff;
    --light-bg: #f9f4ff;
    --text-dark: #2d134d;
    --text-muted: #7d6b91;
    --border-color: #e6d5f7;
    --primary-green: #2ecc71;
    --primary-green-dark: #27ae60;
    --glow-green: 0 0 15px rgba(46, 204, 113, 0.5);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 10px rgba(138, 43, 226, 0.1);
    --shadow-md: 0 4px 20px rgba(138, 43, 226, 0.15);
    --shadow-lg: 0 10px 30px rgba(138, 43, 226, 0.2);
    --glow-violet: 0 0 15px rgba(138, 43, 226, 0.5);
    --glow-pink: 0 0 15px rgba(255, 20, 147, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-violet);
    border-radius: 10px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-violet-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow-violet);
}

.btn-secondary {
    background: var(--secondary-pink);
    color: var(--white);
    box-shadow: var(--glow-pink);
}

.btn-secondary:hover {
    background: var(--secondary-pink-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow-pink);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-violet);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-violet);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-violet);
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary-pink);
    color: var(--white);
    box-shadow: var(--glow-pink);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 19, 77, 0.7), rgba(45, 19, 77, 0.7)), url('../images/banner/products-banner-v2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-violet);
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    position: relative;
}

/* If hero image is missing, a backup gradient with traditional feel */
.hero-backup {
    position: relative;
    overflow: hidden;
}

.hero-backup::before {
    content: "🌿";
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    bottom: -50px;
    right: -20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
}

/* Purity Section */
.purity-highlight {
    padding: 80px 0;
    background: var(--white);
}

.purity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.purity-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.purity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.purity-card i {
    font-size: 50px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.purity-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.purity-card p {
    color: var(--text-muted);
}

/* Section Headings */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-violet);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-pink);
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Product Card */
.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-category.cat-cosmetics {
    color: var(--secondary-pink);
    background: rgba(255, 20, 147, 0.1);
}

.product-category.cat-natural {
    color: var(--primary-green);
    background: rgba(46, 204, 113, 0.1);
}

.product-category.cat-foods {
    color: var(--primary-violet);
    background: rgba(138, 43, 226, 0.1);
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-violet);
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.2);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 16px;
    margin-right: 10px;
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-pink);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--glow-pink);
    z-index: 10;
}

.product-feats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0;
}

.feat-item {
    font-size: 11px;
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feat-item i {
    font-size: 12px;
}

.delivery-info {
    font-size: 12px;
    color: var(--primary-violet);
    font-weight: 700;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
footer {
    background: var(--light-bg);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--primary-violet);
    font-size: 18px;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-pink);
    padding-left: 5px;
}

/* Admin Dashboard Elements */
.admin-sidebar {
    width: 250px;
    background: var(--primary-violet);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    color: var(--white);
    padding: 20px;
    box-shadow: 4px 0 15px rgba(138, 43, 226, 0.3);
}

.admin-main {
    margin-left: 250px;
    padding: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-violet);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--glow-violet);
    transform: translateY(-5px);
}

/* Responsive Updates */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    #cartContent, .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    
    #productDetails {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    nav {
        height: 70px;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .nav-icons {
        order: 3;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        height: 60vh;
        background-position: left center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

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

    .card-img {
        height: 180px;
    }

    .card-body {
        padding: 15px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }
    
    .logo {
        justify-content: center;
    }
}
