:root {
    --bg: #faf7f2;
    --text: #2c2416;
    --muted: #6b6254;
    --accent: #9c6b3c;
    --accent-dark: #7a522d;
    --card: #ffffff;
    --border: #e8dfd1;
    --success: #1f7a4d;
    --error: #b42318;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: var(--accent-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 3rem 0; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text);
}
.main-nav {
    display: flex;
    gap: 0.4rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    align-items: center;
}
.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: bold;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.main-nav a.active {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}
.main-nav a.active:hover { background: var(--bg); }
.cart-link svg { 
    width: 16px; height: 16px;
    flex-shrink: 0;
}
#cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
}

.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff7eb, #f3e6d4);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--muted);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.promo-banner {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border: 1px solid #fde047;
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    text-align: center;
    font-family: Arial, sans-serif;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card, .blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(44, 36, 22, 0.06);
}
.product-image img, .blog-card img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}
.product-info { padding: 0.75rem; }
.product-info h3, .blog-card h2, .blog-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
}
.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--accent); }
.product-card .btn { padding: 0.35rem 0.6rem; font-size: 0.78rem; }
.price {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: var(--accent-dark);
    margin: 0.3rem 0 0.5rem;
    font-size: 0.85rem;
}
.price.large { font-size: 1.5rem; }

.placeholder-image {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #efe7da;
    color: var(--muted);
}
.placeholder-image.large { min-height: 320px; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}
.gallery img {
    border-radius: 16px;
    margin-bottom: 1rem;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    cursor: grab;
    user-select: none;
}
.carousel-track:active { cursor: grabbing; }
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}
.carousel-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    color: var(--text);
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }
.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(0,0,0,0.15);
}
.carousel-dot.active { background: #fff; }
.add-form label { display: block; margin-bottom: 1rem; font-family: Arial, sans-serif; }
.add-form input[type=number] { width: 80px; padding: 0.5rem; }

.cart-layout, .checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: start;
    background: var(--card);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}
.cart-item-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-detail h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.cart-item-detail a { color: var(--text); }
.cart-item-detail a:hover { color: var(--accent); }
.cart-item-price { font-family: Arial, sans-serif; font-size: 0.9rem; color: var(--muted); margin: 0; }
.cart-qty-form { display: flex; flex-direction: column; align-items: end; gap: 0.4rem; }
.qty-group { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn {
    background: var(--bg); border: none; padding: 0.4rem 0.7rem;
    cursor: pointer; font-size: 1rem; line-height: 1; color: var(--text);
    font-family: Arial, sans-serif;
}
.qty-btn:hover { background: var(--border); }
.qty-input {
    width: 48px; text-align: center; border: none; border-left: 1px solid var(--border);
    border-right: 1px solid var(--border); padding: 0.4rem; font-size: 0.95rem;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-link { background: none; border: none; cursor: pointer; font-family: Arial, sans-serif; font-size: 0.85rem; padding: 0; text-decoration: underline; }
.btn-link:hover { text-decoration: none; }
.cart-actions-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}

.cart-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
}
.cart-summary p, .cart-summary hr {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.cart-summary .total {
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}
.checkout-form input, .checkout-form textarea, .checkout-form select {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.note { color: var(--muted); font-size: 0.9rem; font-family: Arial, sans-serif; }

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    font-family: Arial, sans-serif;
}
.alert-success { background: #e7f8ef; color: var(--success); }
.alert-error { background: #fdecec; color: var(--error); }

.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 2.5rem 0 1.5rem;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    margin-top: 3rem;
}
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-footer .footer-col { flex: 1; min-width: 180px; }
.site-footer .footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.site-footer .footer-col p { margin: 0.3rem 0; line-height: 1.6; }
.site-footer .footer-col a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
}
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-bottom {
    flex: 0 0 100%;
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 1.2rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: #6b7280;
}

/* ===== Blog ===== */
.blog-header { text-align: center; margin-bottom: 3rem; }
.blog-header h1 { font-size: 2.2rem; margin: 0.5rem 0; }
.blog-meta {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.blog-featured {
    margin-bottom: 3rem;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(44, 36, 22, 0.08);
    transition: box-shadow 0.3s;
}
.blog-featured:hover { box-shadow: 0 16px 48px rgba(44, 36, 22, 0.14); }
.featured-link { display: block; color: inherit; }
.featured-link:hover { color: inherit; }
.featured-image-wrap { max-height: 400px; overflow: hidden; }
.featured-image-wrap img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-featured:hover .featured-image-wrap img { transform: scale(1.03); }
.featured-body { padding: 1.5rem 2rem 2rem; }
.featured-body h2 { font-size: 1.5rem; margin: 0.5rem 0; }
.featured-body p { color: var(--muted); line-height: 1.7; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44, 36, 22, 0.1);
}
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-img-wrap { overflow: hidden; }
.card-img-wrap img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.1rem; margin: 0.4rem 0; }
.card-body p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent);
    display: inline-block;
    margin-top: 0.3rem;
}

/* ===== Blog Post Page ===== */
.blog-article-container { max-width: 760px; }
.back-link {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent); }
.article-hero {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(44, 36, 22, 0.08);
}
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; line-height: 1.25; margin: 0.5rem 0 0; }
.article-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}
.article-content p { margin: 1.2rem 0; }
.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.share-links {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.share-links a {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
}
.share-links a:hover { border-color: var(--accent); color: var(--accent); }

.blog-home-section { background: var(--card); }
.blog-home-section .section-head { margin-bottom: 2rem; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: #fff; border-radius: 20px; padding: 2rem;
    max-width: 560px; width: 94%; position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute; top: 0.75rem; right: 1rem;
    background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--muted);
}
.modal-body { display: flex; flex-direction: column; gap: 1rem; }
.modal-body img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; cursor: pointer; }
.modal-info h3 { margin: 0; }
.modal-info .price { font-size: 1.2rem; }
.modal-info label { display: block; font-family: Arial, sans-serif; margin-bottom: 1rem; }
.modal-info input[type=number] { width: 80px; padding: 0.5rem; border: 1px solid var(--border); border-radius: 8px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.modal-actions .btn { text-align: center; }
.btn-outline { background: none; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.sale-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}
/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay img {
    max-width: 92vw; max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
}

.product-card { position: relative; }
.product-card .sale-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1;
}
.old-price { text-decoration: line-through; color: var(--muted); margin-right: 0.3rem; }
.sale-price { color: #dc2626; font-weight: 700; }
.sold-count { font-size: 0.72rem; color: #6b7280; font-weight: 400; font-family: Arial, sans-serif; margin-left: 0.4rem; }

#whatsapp-link {
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    z-index: 9999;
    line-height: 0;
}
#whatsapp-img {
    width: 60px;
    height: auto;
    border: none;
    outline: none;
}

@media (max-width: 768px) {
    .product-detail-grid, .cart-layout, .checkout-layout, .grid-2 {
        grid-template-columns: 1fr;
    }
    .main-nav { gap: 0.3rem; font-size: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
    .main-nav a { padding: 0.3rem 0.6rem; gap: 0.2rem; }
    .cart-link svg { width: 14px; height: 14px; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .product-card { border-radius: 10px; }
    .product-image img, .product-card .placeholder-image { aspect-ratio: 3/4; }
    .product-info { padding: 0.35rem 0.4rem; }
    .product-info h3 { font-size: 0.72rem; margin-bottom: 0.15rem; }
    .price { font-size: 0.7rem; margin: 0.15rem 0 0.3rem; }
    .product-card .btn { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
    .sale-badge { font-size: 0.6rem; padding: 0.1rem 0.35rem; top: 0.3rem; left: 0.3rem; }
    .old-price { margin-right: 0.15rem; }
    .sold-count { font-size: 0.65rem; }
    .hero { padding: 2rem 0; }
    .hero h1 { font-size: 1.3rem; }
    .section { padding: 1.5rem 0; }
}

@media (max-width: 400px) {
    .product-grid { gap: 0.3rem; }
    .product-info { padding: 0.25rem 0.3rem; }
    .product-info h3 { font-size: 0.65rem; }
    .price { font-size: 0.62rem; }
    .product-card .btn { font-size: 0.58rem; padding: 0.15rem 0.3rem; }
}
