/* ==========================================================================
   Yanzi Organics - Front-End E-Commerce Stylesheet (shop.css)
   Clean Design System & Utility Classes
   ========================================================================== */

:root {
    --bg-warm: #faf8f5;
    --bg-card: #ffffff;
    --primary-green: #1c3b19;
    --primary-green-light: #264e21;
    --accent-gold: #c59b27;
    --accent-gold-light: #fef9c3;
    --accent-gold-dark: #a17917;
    --text-dark: #1c2819;
    --text-muted: #576554;
    --text-light: #899a85;
    --border-color: #e5e0d8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(28, 59, 25, 0.05);
    --shadow-md: 0 10px 25px rgba(28, 59, 25, 0.08);
    --shadow-lg: 0 20px 40px rgba(28, 59, 25, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container & Sections */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

.container-mid {
    max-width: 1000px;
}

.section-py {
    padding: 80px 0;
}

.section-py-lg {
    padding: 90px 0;
}

.bg-white {
    background-color: #ffffff;
}

.bg-warm {
    background-color: var(--bg-warm);
}

.bg-alt {
    background: #f4eee2;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-green);
    color: #f3ebd7;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 8px 16px;
    letter-spacing: 0.5px;
}

/* Header & Nav */
.header-main {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 60px;
    width: auto;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

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

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

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

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-green);
    cursor: pointer;
    position: relative;
    padding: 8px;
    transition: var(--transition);
}

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

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent-gold);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-green);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(28, 59, 25, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-green-light);
    border-color: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 59, 25, 0.25);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: #ffffff;
}

/* Page Header Banners */
.page-header-banner {
    background: #f4eee2;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header-banner-gradient {
    background: linear-gradient(135deg, #faf8f5 0%, #f4eee2 100%);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.92) 0%, rgba(240, 245, 238, 0.95) 100%), url('/shop/assets/images/hero_banner.jpg') center/cover no-repeat;
    overflow: hidden;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-green);
    border: 1px solid var(--border-color);
}

.hero-badge-item i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.hero-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid #ffffff;
}

.hero-image-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-card:hover img {
    transform: scale(1.03);
}

/* Category Cards Grid (Single-line on Large Screens) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-warm);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.category-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(28, 59, 25, 0.08);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.category-count-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.category-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.category-card-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* Woman-Owned Feature Section */
.woman-owned-section {
    padding: 90px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.woman-owned-card {
    background: linear-gradient(145deg, #fdfbf7 0%, #f4eee2 100%);
    border-radius: 28px;
    padding: 50px;
    border: 1px solid #ebdcb8;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: center;
}

.founder-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 5px solid #ffffff;
}

.founder-img-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.founder-badge-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(28, 59, 25, 0.9);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.woman-owned-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary-green);
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    margin: 20px 0;
    line-height: 1.5;
}

.founder-bio {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Product Cards & Grid */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f4f2ee;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-cert-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: var(--primary-green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-green);
    margin-bottom: 8px;
    font-weight: 700;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-card-add {
    flex: 1;
    background: var(--primary-green);
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-add:hover {
    background: var(--accent-gold);
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.blog-card-warm {
    background: var(--bg-warm);
}

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

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

/* Slide-over Shopping Cart Panel */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-warm);
}

.cart-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-green);
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
}

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

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-warm);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 16px;
}

/* Footer */
.footer-main {
    background: var(--primary-green);
    color: #e5ecd9;
    padding: 70px 0 30px;
    margin-top: 80px;
}

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

.footer-brand p {
    color: #b5c7ab;
    margin: 16px 0 24px;
    font-size: 0.92rem;
    max-width: 320px;
}

.footer-title {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #b5c7ab;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8fa883;
}

/* Card & Content Panels */
.card-panel {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

.rich-content-panel {
    background: #ffffff;
    padding: 45px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .woman-owned-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .founder-img-wrapper img {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}