/* ============================================================
   MAM'S NATURAL FOODS - PRODUCT STYLES
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark-gold: #b8860b;
    --gold: #d4a017;
    --light-gold: #f5d78e;
    --dark-green: #1a3c2a;
    --forest-green: #2a5a3a;
    --white: #fafaf8;
    --off-white: #f0ede6;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* ----- BUTTONS ----- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--black);
    font-weight: 600;
    padding: 16px 44px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(212, 160, 23, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(212, 160, 23, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border: 2px solid var(--gold);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.3);
}

/* ----- HEADER / NAV ----- */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.15);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.1));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

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

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-gold);
    opacity: 0.7;
    display: block;
    margin-top: -2px;
}

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

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 8px;
}

.cart-icon:hover {
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.6rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--gold);
    color: var(--black) !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    background: var(--light-gold) !important;
    color: var(--black) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 4px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SHOPPING CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--black);
    border-left: 1px solid rgba(212, 160, 23, 0.1);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 0;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.08);
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
}

.cart-header h2 span {
    color: var(--gold);
}

.cart-close {
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 4rem;
    color: rgba(212, 160, 23, 0.2);
    margin-bottom: 16px;
}

.cart-empty p {
    color: var(--off-white);
    opacity: 0.5;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(212, 160, 23, 0.05);
    animation: slideInItem 0.3s ease-out;
}

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.cart-item-weight {
    font-size: 0.8rem;
    color: var(--off-white);
    opacity: 0.5;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--gold);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px 8px;
}

.cart-item-qty button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    color: var(--gold);
}

.cart-item-qty span {
    color: var(--white);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cart-item-remove:hover {
    color: #ff4444;
}

.cart-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(212, 160, 23, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total-label {
    font-size: 1rem;
    color: var(--off-white);
    opacity: 0.7;
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.3);
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-page {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.products-page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/products-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    filter: blur(2px);
}

.products-page .container {
    position: relative;
    z-index: 2;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-header .gold-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 12px auto 16px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
}

.page-title span {
    color: var(--gold);
}

.page-subtitle {
    color: var(--off-white);
    opacity: 0.6;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Back Button */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(212, 160, 23, 0.08);
    margin-bottom: 30px;
}

.back-to-home:hover {
    color: var(--gold);
    border-color: rgba(212, 160, 23, 0.2);
    transform: translateX(-5px);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

/* Product Card - Premium */
.jar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 160, 23, 0.08);
    border-radius: 24px;
    padding: 35px 28px 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.jar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.jar-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 160, 23, 0.25);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.jar-card:hover::before {
    opacity: 1;
}

/* Glow effect on hover */
.jar-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 160, 23, 0.03), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.jar-card:hover::after {
    opacity: 1;
}

.jar-product-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    border: 2px solid rgba(212, 160, 23, 0.12);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.jar-card:hover .jar-product-img {
    transform: scale(1.05);
    border-color: rgba(212, 160, 23, 0.3);
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.1);
}

.jar-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.jar-card .weight {
    color: var(--light-gold);
    opacity: 0.5;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.jar-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.jar-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--off-white);
    opacity: 0.4;
}

.jar-card .desc {
    font-size: 0.9rem;
    color: var(--off-white);
    opacity: 0.6;
    margin: 12px 0 20px;
    line-height: 1.6;
    min-height: 50px;
    position: relative;
    z-index: 1;
}

.jar-card .add-to-cart-btn {
    padding: 14px 38px;
    font-size: 0.8rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Badge */
.jar-card .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--dark-green);
    color: var(--light-gold);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(212, 160, 23, 0.15);
    z-index: 2;
    font-weight: 600;
}

.jar-card .badge.best-seller {
    background: linear-gradient(135deg, var(--dark-gold), var(--gold));
    color: var(--black);
}

.jar-card .badge.new {
    background: linear-gradient(135deg, var(--forest-green), var(--dark-green));
    color: var(--light-gold);
}

.jar-card .badge.limited {
    background: linear-gradient(135deg, #8b0000, #5a0000);
    color: var(--light-gold);
}

.jar-card .badge.premium {
    background: linear-gradient(135deg, #2a1a3a, #1a0a2a);
    color: var(--light-gold);
}

.jar-card .badge.popular {
    background: linear-gradient(135deg, #1a3a5a, #0a1a3a);
    color: var(--light-gold);
}

/* Product Features Mini Icons */
.product-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 12px 0 16px;
    position: relative;
    z-index: 1;
}

.product-features span {
    font-size: 0.7rem;
    color: var(--off-white);
    opacity: 0.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-features span i {
    color: var(--gold);
    font-size: 0.6rem;
}

/* Filter / Sort Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(212, 160, 23, 0.05);
}

.filter-bar .results-count {
    font-size: 0.85rem;
    color: var(--off-white);
    opacity: 0.5;
}

.filter-bar .results-count span {
    color: var(--gold);
    opacity: 1;
}

.filter-bar .sort-options {
    display: flex;
    gap: 8px;
}

.filter-bar .sort-options button {
    background: none;
    border: 1px solid rgba(212, 160, 23, 0.08);
    color: var(--off-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.filter-bar .sort-options button:hover,
.filter-bar .sort-options button.active {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--gold);
    opacity: 1;
    color: var(--gold);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(212, 160, 23, 0.06);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.4rem;
}

.footer-brand p {
    color: var(--off-white);
    opacity: 0.5;
    font-size: 0.9rem;
    max-width: 280px;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
}

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

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

.footer-col ul a {
    color: var(--off-white);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 160, 23, 0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--off-white);
    opacity: 0.3;
}

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

.social-links a {
    color: var(--off-white);
    opacity: 0.3;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .cart-sidebar {
        width: 380px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 340px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
        padding: 40px;
        border-left: 1px solid rgba(212, 160, 23, 0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-actions {
        gap: 12px;
    }

    .nav-cta {
        display: none;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .cart-sidebar {
        width: 320px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar .sort-options {
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .container {
        padding: 0 16px;
    }
    .nav-container {
        padding: 14px 16px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .logo-img {
        width: 40px;
        height: 40px;
    }
    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
    .products-page {
        padding: 100px 0 60px;
    }
    .jar-card {
        padding: 30px 20px 25px;
    }
    .jar-product-img {
        width: 110px;
        height: 110px;
    }
    .filter-bar .sort-options button {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}