/* ===== v20: FINAL FIX — Based on yin-yang-paradise.com reference ===== */

/* ================================================================
   GLOBAL RESETS
   ================================================================ */
* { box-sizing: border-box !important; }

body {
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif !important;
    color: #333 !important;
    line-height: 1.6 !important;
    background: #fff !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ================================================================
   HERO BANNER
   ================================================================ */
.hero-banner {
    position: relative !important;
    width: 100% !important;
    height: 580px !important;
    max-height: 580px !important;
    overflow: hidden !important;
    background: #111 !important;
}
.hero-banner > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}
.hero-banner-content {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
}
.hero-banner-text { text-align: center; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 13px; letter-spacing: 4px; margin-bottom: 12px; text-transform: uppercase; opacity: 0.9; }
.hero-banner-text h2 { font-size: 48px; font-weight: 300; letter-spacing: 3px; margin-bottom: 28px; }
.btn-hero {
    display: inline-block; padding: 14px 44px; background: #fff; color: #111 !important;
    font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    border: none; cursor: pointer; text-decoration: none !important;
}
.btn-hero:hover { background: #111; color: #fff !important; }

@media (max-width:768px) {
    .hero-banner { height: 400px !important; max-height: 400px !important; }
    .hero-banner-text h2 { font-size: 32px; }
}

/* ================================================================
   BRAND INTRO
   ================================================================ */
.brand-intro {
    text-align: center !important;
    padding: 50px 20px !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}
.brand-intro-title {
    font-size: 30px; letter-spacing: 3px; margin-bottom: 8px;
    font-weight: 300; color: #222;
}
.brand-intro-tagline { color: #999; font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.brand-intro-desc { color: #555; font-size: 14px; margin-bottom: 10px; line-height: 1.8; }

/* ================================================================
   SECTION BASE
   ================================================================ */
.section { padding: 60px 0 !important; margin: 0 !important; }

.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 24px; letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 400; color: #222; }
.section-header .section-subtitle { color: #777; font-size: 14px; max-width: 600px; margin: 0 auto; }

/* Override inline container styles from twig */
.section .container[style],
.section > div[style] {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ================================================================
   CATEGORY GRID — 5 columns
   ================================================================ */
.category-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
}
@media (max-width:1024px) { .category-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width:768px) { .category-grid { grid-template-columns: repeat(2, 1fr) !important; } }

.category-card { position: relative; display: block; overflow: hidden; aspect-ratio: 1/1; background: #f5f5f5; text-decoration: none !important; }
.category-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.category-card:hover img { transform: scale(1.06); }
.category-card-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,0.55)); color: #fff;
}
.category-card-content h3 { font-size: 13px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }

/* ================================================================
   PRODUCT GRID — 4 columns
   ================================================================ */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 22px !important;
}
@media (max-width:768px) { .product-grid { grid-template-columns: repeat(2, 1fr) !important; } }

.product-card { position: relative; display: flex; flex-direction: column; background: #fff; }
.product-card-image { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f9f9f9; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-badge {
    position: absolute; top: 8px; left: 8px;
    background: #e74c3c; color: #fff; font-size: 10px; font-weight: 700;
    padding: 3px 9px; z-index: 2;
}
.product-card-overlay {
    position: absolute; bottom: -50px; left: 0; width: 100%;
    padding: 10px; background: rgba(255,255,255,0.95); transition: bottom 0.3s; text-align: center;
}
.product-card:hover .product-card-overlay { bottom: 0; }
.product-card-overlay button {
    background: none; border: 2px solid #111; padding: 8px 20px;
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.product-card-overlay button:hover { background: #111; color: #fff; }
.product-card-info { padding: 12px 0; flex: 1; }
.product-card-title { font-size: 13px; font-weight: 400; margin-bottom: 5px; line-height: 1.4; }
.product-card-title a { color: #111; text-decoration: none; }
.product-card-price { font-size: 14px; }
.price-old { text-decoration: line-through; color: #999; margin-right: 6px; font-size: 12px; }
.price-new { color: #e74c3c; font-weight: 700; }
.price-current { font-weight: 600; }

/* ================================================================
   COLLECTION GRID
   ================================================================ */
.collection-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
}
@media (max-width:768px) { .collection-grid { grid-template-columns: repeat(2, 1fr) !important; } }

.collection-card { display: block; text-align: center; padding: 14px; background: #fafafa; transition: all 0.3s; text-decoration: none !important; }
.collection-card:hover { background: #eee; transform: translateY(-2px); }
.collection-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; margin-bottom: 10px; }
.collection-card h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #333; }

/* ================================================================
   SPOTLIGHT — THE KEY FIX (matching yin-yang-paradise.com exactly)
   
   Reference site uses:
   - display: flex on container (NOT grid)
   - Each side is exactly 50% with fixed height:500px  
   - Image uses object-fit:cover to crop portrait images
   ================================================================ */

.section-spotlight {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.spotlight-grid {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 480px !important;
    overflow: hidden !important;
}
.spotlight-grid.reverse { flex-direction: row-reverse !important; }

/* Image half — FIXED WIDTH 50%, FIXED HEIGHT, OVERFLOW HIDDEN */
.spotlight-image {
    width: 50% !important;
    height: 480px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background: #000 !important;
}

/* IMAGE ITSELF — fill container completely, crop if needed */
.spotlight-image > img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* Content half */
.spotlight-content {
    width: 50% !important;
    height: 480px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 40px 48px !important;
    background: #f5f5f5 !important;
}

/* Second spotlight gets different bg */
.section-spotlight + .section-spotlight .spotlight-content { background: #efefef !important; }

/* Spotlight typography */
.spotlight-content h2 {
    font-size: 24px; font-weight: 600; letter-spacing: 1px;
    margin-bottom: 12px; color: #222; line-height: 1.3;
}
.spotlight-content p.spotlight-subtitle {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: #888; margin-bottom: 14px;
}
.spotlight-content p:not(.spotlight-subtitle) {
    color: #555; margin-bottom: 20px; font-size: 14px; line-height: 1.75;
}
.btn-spotlight {
    display: inline-block; padding: 11px 32px;
    border: 2px solid #222; color: #222 !important;
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; background: transparent;
    cursor: pointer; text-decoration: none !important;
}
.btn-spotlight:hover { background: #222; color: #fff !important; }

@media (max-width:768px) {
    .spotlight-grid { flex-direction: column !important; height: auto !important; }
    .spotlight-grid.reverse { flex-direction: column !important; }
    .spotlight-image { width: 100% !important; height: 280px !important; }
    .spotlight-image > img { height: 280px !important; position: relative !important; }
    .spotlight-content { width: 100% !important; height: auto !important; min-height: 280px !important; padding: 28px 24px !important; }
}

/* ================================================================
   WALL ARTS
   ================================================================ */
.section-wallarts { background: #fafafa !important; }

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter {
    padding: 55px 0 !important;
    background: #fff !important;
    text-align: center !important;
}
.newsletter h3 { font-size: 22px; letter-spacing: 2px; color: #111; margin-bottom: 8px; font-weight: 300; }
.newsletter-desc { color: #777; margin-bottom: 24px; font-size: 13px; }
.newsletter-form {
    display: flex !important;
    justify-content: center !important;
    gap: 0 !important;
    max-width: 480px; margin: 0 auto;
}
.newsletter-form input[type="email"] {
    flex: 1; padding: 13px 16px; border: 1px solid #ddd; border-right: none;
    font-size: 11px; letter-spacing: 1px; text-transform: uppercase; outline: none; border-radius: 2px 0 0 2px;
}
.newsletter-form input[type="email"]:focus { border-color: #111; }
.newsletter-form button {
    padding: 13px 30px; background: #111; color: #fff;
    border: 1px solid #111; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    border-radius: 0 2px 2px 0;
}
.newsletter-form button:hover { background: #333; }

@media (max-width:768px) {
    .newsletter-form { flex-direction: column !important; gap: 10px !important; }
    .newsletter-form input[type="email"] { border-radius: 2px; border-right: 1px solid #ddd; }
    .newsletter-form button { border-radius: 2px; }
}

/* ================================================================
   ABOUT US — Solid white background, no checkerboard
   ================================================================ */
.section-about {
    padding: 60px 0 !important;
    background: #f5f5f5 !important;
    overflow: hidden !important;
}

.about-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.about-image {
    width: 42% !important;
    flex-shrink: 0 !important;
    padding: 28px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.about-image > img {
    max-width: 100% !important;
    max-height: 300px !important;
    display: block !important;
    background: #ffffff !important;
}

.about-content {
    width: 58% !important;
    flex-shrink: 0 !important;
    padding: 0 36px !important;
}
.about-content h2 { font-size: 26px; letter-spacing: 2px; margin-bottom: 14px; color: #222; font-weight: 300; }
.about-content h3 { font-size: 17px; margin-top: 18px; margin-bottom: 8px; color: #333; font-weight: 400; }
.about-content p { color: #555; margin-bottom: 12px; line-height: 1.8; font-size: 14px; }
.about-cta {
    display: inline-block; margin-top: 6px; padding: 10px 28px;
    border: 2px solid #222; color: #222 !important;
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none !important;
}
.about-cta:hover { background: #222; color: #fff !important; }

@media (max-width:768px) {
    .about-grid { flex-direction: column !important; }
    .about-image { width: 100% !important; padding: 24px 16px !important; }
    .about-content { width: 100% !important; padding: 24px 20px !important; text-align: center !important; }
}

/* ================================================================
   BLOG GRID
   ================================================================ */
.section-blog { background: #fafafa !important; }
.blog-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 26px !important; }
@media (max-width:768px) { .blog-grid { grid-template-columns: 1fr !important; } }

.blog-card { display: block; background: #fff; overflow: hidden; text-decoration: none !important; transition: all 0.3s; }
.blog-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 20px; }
.blog-card h4 { font-size: 15px; margin-bottom: 8px; color: #111; line-height: 1.4; }
.blog-card p { font-size: 13px; color: #666; }

/* ====================================================
 FOOTER
 ==================================================== */
footer, .footer {
    background: #111 !important;
    color: #999 !important;
    padding: 45px 0 25px !important;
}
.footer a { color: #999 !important; text-decoration: none; }
.footer a:hover { color: #fff !important; }
.footer h4 { color: #fff !important; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 16px; text-transform: uppercase; }
