/* ===== v26: FIX spotlight height (was 480! causing image explosion), tighten all spacing ===== */

/* ================================================================
   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: 380px !important;
    max-height: 380px !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: 300px !important; max-height: 300px !important; }
    .hero-banner-text h2 { font-size: 32px; }
}

/* ================================================================
   BRAND INTRO
   ================================================================ */
.brand-intro {
    text-align: center !important;
    padding: 28px 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: 28px 0 !important; margin: 0 !important; }

.section-header { text-align: center; margin-bottom: 18px; }
.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: 10px !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: 16px !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: 12px !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: 340px !important;
    overflow: hidden !important;
}
.spotlight-grid.reverse { flex-direction: row-reverse !important; }

/* Image half — FIXED WIDTH 50%, FIXED HEIGHT 340px, OVERFLOW HIDDEN */
.spotlight-image {
    width: 50% !important;
    height: 340px !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: 340px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 28px 32px !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: 20px; font-weight: 600; letter-spacing: 1px;
    margin-bottom: 8px; 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: 12px; font-size: 13px; line-height: 1.6;
}
.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: 240px !important; }
    .spotlight-image > img { height: 240px !important; position: relative !important; }
    .spotlight-content { width: 100% !important; height: auto !important; min-height: 240px !important; padding: 24px 20px !important; }
}

/* ================================================================
   WALL ARTS
   ================================================================ */
.section-wallarts { background: #fafafa !important; }

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter {
    padding: 30px 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: 32px 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: 16px !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: 170px; 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 — v26: relaxed rules, new footer.twig manages own styles
   ==================================================== */
footer, .footer {
    background: #111;
    color: #999;
    padding: 20px 0 10px;
}
.footer a { color: #999; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 12px; text-transform: uppercase; }


/* =====================================================
   v33: PRODUCT CARD + CATEGORY PAGE FIX
   - card-image height constraint (was unlimited, showing full product+sofa image)
   - category page layout
   ===================================================== */

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* Product Card */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.10); }

/* Card Image: CRITICAL fix - constrain height to only show product photo, not sofa scene */
.product-card .card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #f9f9f9;
  flex-shrink: 0;
}
.product-card .card-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s;
}
.product-card:hover .card-image img { transform: scale(1.04); }

/* Sale Badge */
.product-card .product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* ADD TO CART button (hover slide up) */
.card-atc {
  position: absolute;
  bottom: -44px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.82);
  color: #fff;
  border: none;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: bottom 0.3s;
  z-index: 3;
}
.product-card:hover .card-atc { bottom: 0; }

/* Card Body */
.product-card .card-body {
  padding: 12px 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .card-title {
  font-size: 13px;
  color: #222;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .card-title:hover { color: #000; }
.product-card .card-price {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-top: auto;
}
.product-card .card-price .price-old {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
  margin-right: 5px;
  font-weight: 400;
}

/* Category Page Layout */
.ts-category-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}
.ts-category-page .breadcrumb {
  padding: 10px 0;
  margin-bottom: 14px;
  background: none;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ts-category-page .breadcrumb-item a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
}
.ts-category-page .breadcrumb-item + .breadcrumb-item::before {
  content: " / ";
  color: #bbb;
  margin-right: 6px;
}
.category-header { margin-bottom: 20px; }
.category-header h1 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 8px;
}
.category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.category-toolbar label { font-size: 12px; color: #666; margin-right: 6px; }
.category-toolbar select {
  border: 1px solid #ddd;
  padding: 5px 10px;
  font-size: 12px;
  background: #fff;
  outline: none;
}
.category-toolbar .toolbar-right { font-size: 12px; color: #999; }

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #999;
}

/* =====================================================
   v34 CRITICAL FIXES — cache-busted from v26
   Issues: 1) Product images show sofa scene (need crop)
           2) Header logo has transparent bg (checkerboard)
   ===================================================== */

/* ---- HEADER: Fix logo transparency ---- */
.header-logo {
  background: #fff !important;
}
.header-logo img {
  max-height: 60px !important;
  width: auto !important;
}
.header {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
.header-top {
  background: #111 !important;
  color: #ccc !important;
  font-size: 11px !important;
  padding: 6px 0 !important;
}

/* ---- PRODUCT CARD: Crop sofa from mockup image ---- */
.product-card .card-image {
  display: block !important;
  width: 100% !important;
  height: 220px !important;          /* Force fixed height */
  overflow: hidden !important;        /* Hide the sofa below */
  background: #f9f9f9 !important;
  position: relative !important;
}
.product-card .card-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.product-card .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;       /* Crop to fill */
  object-position: center top !important; /* Show only top (artwork), hide bottom (sofa) */
  display: block !important;
}

/* ---- CARD BODY ---- */
.product-card .card-body {
  padding: 12px 10px 14px !important;
  background: #fff !important;
}
.product-card .card-title {
  font-size: 13px !important;
  color: #222 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.product-card .card-price {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111 !important;
  margin-top: 6px !important;
}

/* ---- ADD TO CART hover button ---- */
.product-card .card-atc {
  position: absolute !important;
  bottom: -42px !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(0,0,0,0.85) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: bottom 0.3s ease !important;
  z-index: 3 !important;
}
.product-card:hover .card-atc {
  bottom: 0 !important;
}

/* ---- SALE BADGE ---- */
.product-card .product-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  background: #e74c3c !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  text-transform: uppercase !important;
  z-index: 2 !important;
}

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

/* ---- CATEGORY PAGE LAYOUT ---- */
.ts-category-page {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 20px 40px !important;
}
.ts-category-page h1 {
  font-size: 20px !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #111 !important;
  margin-bottom: 8px !important;
}
.category-toolbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #eee !important;
}


/* ============================================================
   V36 NUCLEAR FIX — Product Card Image Crop Sofa Scene
   Force all product images to fixed height, crop from top.
   Overrides EVERYTHING including aspect-ratio.  
   ============================================================ */

/* Kill any aspect-ratio on product image containers */
.product-card-image,
.card-image,
.product-grid .product-card-image,
.product-grid .card-image {
  aspect-ratio: unset !important;
  height: 220px !important;
  max-height: 220px !important;
  min-height: 220px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #f9f9f9 !important;
  flex-shrink: 0 !important;
}

/* Force image to fill container and crop from TOP (hide sofa bottom) */
.product-card-image img,
.card-image img,
.product-grid .product-card-image img,
.product-grid .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

/* Ensure product cards don't stretch images */
.product-card {
  aspect-ratio: unset !important;
  max-width: 100% !important;
}

/* Safety: any image inside product-grid */
.product-grid img[src*="main_1"] {
  object-fit: cover !important;
  object-position: center top !important;
  max-height: 220px !important;
}
