/* =========================================================
   ROOMSTYLE — page-products.css
   Styles propres à la page Products (hero, grille de cartes, badges).
   Les filtres STYLE/MOOD du prototype ont été retirés (décision client) :
   cette page n'a qu'une recherche dédiée aux produits, pas de filtres.
   ========================================================= */

.page-hero{background:#0a0a0a;padding:32px 40px;text-align:center;}
.page-hero-label{font-size:11px;letter-spacing:4px;color:#666;margin-bottom:10px;}
.page-hero-title{font-family:'Playfair Display',serif;font-size:36px;font-weight:700;color:#fff;margin-bottom:10px;}
.page-hero-sub{font-size:15px;color:#888;max-width:480px;margin:0 auto 28px;line-height:1.7;}

/* Recherche dédiée Products (distincte de la recherche globale du header) */
.products-search-bar{display:flex;justify-content:center;}
.products-search-form{position:relative;width:100%;max-width:420px;}
.products-search-input{width:100%;background:#1a1a1a;border:0.5px solid #333;border-radius:24px;padding:12px 20px;font-size:13px;font-family:'DM Sans',sans-serif;color:#fff;outline:none;}
.products-search-input::placeholder{color:#666;}
.products-search-submit{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:#fff;color:#000;border:none;border-radius:20px;padding:7px 16px;font-size:11px;font-family:'DM Sans',sans-serif;cursor:pointer;font-weight:500;}

.results-bar{padding:12px 40px;font-size:12px;color:#888;border-bottom:0.5px solid rgba(0,0,0,0.06);}

.section-wrap{padding:48px 40px;max-width:1400px;margin:0 auto;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}

.card{background:#fff;border:0.5px solid rgba(0,0,0,0.08);border-radius:12px;overflow:hidden;transition:transform 0.2s,border-color 0.2s;cursor:pointer;display:flex;flex-direction:column;}
.card:hover{transform:translateY(-3px);border-color:#aaa;}
.card-img-fixed{position:relative;display:block;overflow:hidden;height:198px;background-size:cover;background-position:center;background-color:#f0f0f0;}
.card-img-fixed img{width:100%;height:100%;object-fit:cover;transition:transform 0.4s;}
.card:hover .card-img-fixed img{transform:scale(1.05);}
.card-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,0.75) 0%,transparent 55%);opacity:0;transition:opacity 0.3s;}
.card:hover .card-overlay{opacity:1;}
.card-hover-btn{position:absolute;bottom:14px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;opacity:0;transition:opacity 0.3s;}
.card:hover .card-hover-btn{opacity:1;}
.card-hover-title{font-size:13px;font-weight:500;color:#fff;}
.card-shop-btn{background:#fff;color:#000;border:none;padding:7px 16px;border-radius:20px;font-size:11px;font-family:'DM Sans',sans-serif;cursor:pointer;font-weight:500;white-space:nowrap;}
.card-body{padding:14px 16px;display:flex;flex-direction:column;flex:1;}
.card-tag{font-size:10px;letter-spacing:2px;color:#888;margin-bottom:4px;text-transform:uppercase;}
.card-name{font-size:14px;font-weight:500;color:#0a0a0a;margin-bottom:8px;}
.card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:auto;}
.card-footer > div{min-width:0;}
.card-btn{flex-shrink:0;margin-left:auto;}
.card-price{font-size:15px;font-weight:500;color:#0a0a0a;display:flex;align-items:baseline;gap:6px;}
/* WooCommerce affiche par défaut l'ancien prix (del) AVANT le nouveau (ins) —
   on veut l'inverse visuellement (prix actuel d'abord, ancien prix barré
   après, plus petit et grisé). On inverse juste l'ordre visuel via flexbox,
   sans toucher à l'ordre réel du HTML (bon pour l'accessibilité). */
.card-price del{font-size:0.85em;color:#999;text-decoration:line-through;font-weight:400;}
.card-price ins{text-decoration:none;font-weight:500;color:#0a0a0a;}
.card-old{font-size:12px;color:#aaa;text-decoration:line-through;margin-left:6px;}
.card-btn{background:#0a0a0a;color:#fff;border:none;padding:7px 16px;border-radius:6px;font-size:11px;font-family:'DM Sans',sans-serif;cursor:pointer;letter-spacing:0.5px;text-decoration:none;display:inline-block;}

.badge{position:absolute;top:12px;left:12px;font-size:10px;font-weight:500;padding:4px 10px;border-radius:10px;letter-spacing:1px;z-index:2;text-transform:uppercase;}
.badge-new{background:#111;color:#fff;}
.badge-trending{background:#000;color:#fff;}
.badge-hot{background:#000;color:#fff;}
.badge-sale{background:#333;color:#fff;}

.wish{position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;background:#fff;border:0.5px solid rgba(0,0,0,0.1);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;z-index:2;}
.wish.active{color:#ff4444;}

.no-results{padding:60px 40px;text-align:center;color:#888;font-size:14px;}

@media(max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr);}}
@media(max-width:768px){
  .page-hero-title{font-size:36px;}
  .section-wrap{padding:32px 20px;}
  .results-bar{padding:12px 20px;}
  .grid-4{grid-template-columns:repeat(2,1fr);gap:12px;}
}
.card-footer > :first-child{flex-basis:100%;}
