/* ==========================================
   1. GLOBAL SYSTEM VARIABLES & RESETS
   ========================================== */
:root {
    --primary-color: #D35400;    /* Vibrant Ground Cinnamon */
    --secondary-color: #C0392B;  /* Spicy Chili Red */
    --accent-color: #F1C40F;     /* Sun-dried Turmeric Yellow */
    --dark-color: #2C3E50;       /* Fine Cast-Iron Skillet Charcoal */
    --light-bg: #FDF9F5;         /* Elegant Warm Cardamom Cream */
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-color);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ==========================================
   2. NAVBAR COMPONENT
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

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

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

.icon-btn {
    font-size: 1.2rem;
    color: var(--dark-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* ==========================================
   3. HERO BANNER
   ========================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8% 100px 8%;
    gap: 40px;
}

.hero-content {
    max-width: 550px;
    animation: fadeInUp 1s ease-out;
}

.tagline {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.25);
    transition: var(--transition);
}

.btn-primary i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(211, 84, 0, 0.35);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1.2s ease-out;
}

.hero-image img {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow);
    animation: morphing 8s ease-in-out infinite alternate;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* ==========================================
   4. PRODUCT GRID & STOREFRONT
   ========================================== */
.shop-section {
    padding: 80px 8%;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.product-card {
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    z-index: 10;
}

.product-badge.discount { background-color: var(--secondary-color); }

.product-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img { transform: scale(1.08); }

.overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .overlay-actions {
    bottom: 20px;
    opacity: 1;
}

.action-btn {
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.product-info { padding: 25px; }

.rating {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.rating span { color: #888; margin-left: 5px; }

.product-info h3 { font-size: 1.25rem; margin-bottom: 10px; }

.description { font-size: 0.88rem; color: #666; margin-bottom: 20px; line-height: 1.5; }

.product-footer { display: flex; justify-content: space-between; align-items: center; }

.price { font-size: 1.3rem; font-weight: 700; color: var(--secondary-color); }

.price del { font-size: 0.9rem; color: #999; font-weight: 400; margin-left: 5px; }

.add-to-cart-btn {
    background: var(--dark-color);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.add-to-cart-btn:hover { background: var(--primary-color); }

/* ==========================================
   5. INTERACTIVE SLIDE CART DRAWER
   ========================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.cart-drawer.open { right: 0; }

.cart-header { padding: 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }

.close-drawer { background: none; border: none; font-size: 1.4rem; cursor: pointer; transition: var(--transition); }

.close-drawer:hover { color: var(--secondary-color); transform: rotate(90deg); }

.cart-body { flex: 1; overflow-y: auto; padding: 25px; }

.cart-item { display: flex; gap: 15px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed #eee; }

.cart-item img { width: 75px; height: 75px; object-fit: cover; border-radius: 12px; }

.item-details { flex: 1; }

.item-price { font-weight: 700; color: var(--secondary-color); display: block; margin-bottom: 8px; }

.quantity-selector { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 20px; width: fit-content; background: var(--light-bg); }

.qty-btn { background: none; border: none; padding: 5px 12px; cursor: pointer; color: #666; }

.quantity-selector input { width: 30px; text-align: center; border: none; background: none; font-weight: 600; }

.remove-item { background: none; border: none; color: #bbb; cursor: pointer; transition: var(--transition); }

.remove-item:hover { color: var(--secondary-color); }

.cart-footer { padding: 25px; border-top: 1px solid #eee; background: var(--light-bg); }

.subtotal-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

.subtotal-amount { color: var(--primary-color); }

.shipping-note { font-size: 0.8rem; color: #27ae60; margin-bottom: 15px; text-align: center; font-weight: 600; }

.checkout-btn { width: 100%; border: none; text-align: center; cursor: pointer; }

/* ==========================================
   6. CHECKOUT PAGE COMPONENT
   ========================================== */
.checkout-section {
    background: var(--light-bg);
    padding: 40px 8%;
    animation: fadeIn 0.4s ease;
}

.back-to-shop { background: none; border: none; font-weight: 600; cursor: pointer; color: var(--primary-color); margin-bottom: 30px; font-size: 1rem; transition: var(--transition); }

.back-to-shop:hover { transform: translateX(-5px); }

.checkout-layout { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 50px; align-items: start; }

.checkout-form-container { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }

.checkout-form-container h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 25px; border-left: 4px solid var(--primary-color); padding-left: 12px; }

.payment-title { margin-top: 40px; }

.form-group-row { display: flex; gap: 20px; }

.form-group { flex: 1; margin-bottom: 20px; }

.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }

.form-group input { width: 100%; padding: 12px 18px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; transition: var(--transition); }

.form-group input:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(213, 84, 0, 0.1); }

.input-with-icon { position: relative; }

.input-with-icon i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #aaa; }

.place-order-btn { width: 100%; border: none; padding: 16px; font-size: 1.1rem; margin-top: 20px; cursor: pointer; }

.order-summary-card { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: var(--shadow); position: sticky; top: 100px; }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: #666; }

.summary-row.total { font-size: 1.3rem; font-weight: 700; color: var(--dark-color); margin-top: 15px; }

.order-summary-card hr { border: none; border-top: 1px solid #eee; margin: 15px 0; }

.trust-badges { display: flex; justify-content: space-around; margin-top: 30px; background: var(--light-bg); padding: 15px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; }

.trust-badges i { color: #27ae60; margin-right: 4px; }

/* ==========================================
   7. KEYFRAME ANIMATION ENGINE
   ========================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morphing { 
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; } 
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 
}

/* ==========================================
   8. DYNAMIC STATE STYLES (loading / empty / disabled)
   ========================================== */
.skeleton-card { pointer-events: none; }

.skeleton-block {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeletonShine 1.4s ease-in-out infinite;
    height: 250px;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeletonShine 1.4s ease-in-out infinite;
}

@keyframes skeletonShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.add-to-cart-btn:disabled,
.place-order-btn:disabled,
.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

/* ==========================================
   9. ABOUT US PAGE
   ========================================== */
.about-section {
    padding: 60px 8% 100px;
    animation: fadeIn 0.4s ease;
}

.about-hero {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-hero-text { max-width: 550px; }

.about-hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-hero-text p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
}

.about-hero-image {
    flex-shrink: 0;
}

.about-hero-image img {
    width: 420px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    margin-bottom: 80px;
}

.stat-card {
    text-align: center;
    padding: 10px;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover { transform: translateY(-8px); }

.value-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.value-card h3 { margin-bottom: 12px; font-size: 1.2rem; }

.value-card p { color: #666; font-size: 0.92rem; line-height: 1.6; }

/* ==========================================
   10. CONTACT US PAGE
   ========================================== */
.contact-section {
    padding: 60px 8% 100px;
    background: var(--light-bg);
    animation: fadeIn 0.4s ease;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form-container textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.contact-form-container textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(213, 84, 0, 0.1);
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.2em;
}

.form-status.status-success { color: #27ae60; }
.form-status.status-error { color: var(--secondary-color); }

.contact-info-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.contact-info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-info-row i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
}

.contact-info-row strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }

.contact-info-row p { color: #666; font-size: 0.88rem; line-height: 1.5; }

/* ==========================================
   11. MEDIA QUERY RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .hero { flex-direction: column-reverse; text-align: center; }
    .hero-image img { width: 320px; height: 320px; }
    .floating-badge { left: 50%; transform: translateX(-50%); }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary-card { position: static; }
    .about-hero { flex-direction: column-reverse; text-align: center; }
    .about-hero-image img { width: 100%; max-width: 420px; height: 260px; }
    .contact-layout { grid-template-columns: 1fr; }
}