/* DS-BOUTIQUE4 — Boutique : reproduction de la référence fournie */
.shop-page{background:#fff}
.shop-layout{width:min(1360px,100%);margin:0 auto;padding:26px 45px 70px;display:block}
.shop-breadcrumb{display:flex;gap:10px;align-items:center;color:#666;font-size:13px;margin-bottom:20px}
.shop-breadcrumb .ibc-icon{font-size:16px;color:#aaa}
.shop-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;margin-bottom:32px}
.shop-heading h1{font-size:39px;line-height:1.05;letter-spacing:-1px;margin:0 0 9px;font-weight:700}
.shop-heading p{margin:0;color:#666;font-size:15px}
.shop-tools{display:flex;align-items:center;gap:10px;margin-top:8px}
.sort-control{height:46px;min-width:255px;border:1px solid #e2e2e2;border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#555;font-size:13px}
.sort-control strong{color:#222}
.view-toggle{height:46px;display:flex;border:1px solid #e2e2e2;border-radius:9px;overflow:hidden;background:#fff}
.view-toggle button{width:48px;border:0;background:#fff;display:grid;place-items:center;color:#555}.view-toggle button.active{background:var(--gold);color:#fff}.view-toggle .ibc-icon{font-size:21px}
.category-showcase-title{font-size:24px;margin:0 0 18px;font-weight:700}
.shop-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.shop-category-card{min-width:0;background:#fff;border:1px solid #e4e4e4;border-radius:9px;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.shop-category-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #00000010;border-color:#d9bd92}
.shop-category-card .cat-image{display:block;width:100%;height:205px;object-fit:cover;background:#f6f1eb}
.shop-category-card .cat-info{min-height:92px;padding:14px 16px 13px;display:flex;flex-direction:column;justify-content:center;position:relative}
.shop-category-card h3{font-size:14px;line-height:1.3;margin:0 30px 8px 0;font-weight:600}.shop-category-card p{margin:0;color:#777;font-size:12px}.shop-category-card .arrow{position:absolute;right:15px;bottom:23px;color:var(--gold);font-size:22px;line-height:1}
.shop-product-area{margin-top:42px}.shop-product-area .section-heading{margin-bottom:18px}.shop-product-area h2{font-size:23px}
#shop-products{grid-template-columns:repeat(5,minmax(0,1fr))}
/* Les anciens contrôles restent dans le DOM pour que app.js conserve toutes ses fonctions. */
.filters,.shop-toolbar,.active-filter{display:none!important}
.shop-search-hook{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:1100px){.shop-layout{padding-left:28px;padding-right:28px}.shop-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-category-card .cat-image{height:210px}}
@media(max-width:700px){.shop-layout{padding:22px 14px 45px}.shop-heading-row{display:block}.shop-tools{margin-top:18px}.sort-control{flex:1;min-width:0}.shop-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-category-card .cat-image{height:175px}.shop-category-card .cat-info{min-height:84px;padding:12px}.shop-category-card h3{font-size:12px}.shop-category-card p{font-size:10px}.shop-category-card .arrow{right:11px;bottom:20px}.shop-heading h1{font-size:32px}.shop-heading p{font-size:13px}.category-showcase-title{font-size:20px}}

/* Modifications demandées : navigation déplacée à la place des contrôles de tri. */
.shop-page .site-header .header-shop-nav{display:none}
.shop-nav-replacement{display:flex;align-items:center;gap:28px;min-height:46px;padding:0 4px;border-bottom:1px solid #e7e7e7}
.shop-nav-replacement a{height:46px;display:flex;align-items:center;font-size:13px;font-weight:500;border-bottom:2px solid transparent;white-space:nowrap}
.shop-nav-replacement a.active,.shop-nav-replacement a:hover{color:var(--gold);border-bottom-color:var(--gold)}
.shop-page .shop-tools{margin-top:0}
.shop-page .sort-control,.shop-page .view-toggle{display:none!important}
.shop-category-card .cat-info p{font-size:0}
.shop-category-card .cat-info p::after{content:'Découvrir';font-size:12px;color:#777}

@media(max-width:850px){
  /* Boutique uniquement : pas de menu hamburger ni de navigation dupliquée. */
  .shop-page .nav-toggle,
  .shop-page .header-icon,
  .shop-page .site-header .header-shop-nav{display:none!important}
  .shop-nav-replacement{overflow-x:auto;gap:22px;border-bottom:0;width:100%;scrollbar-width:none}
  .shop-nav-replacement::-webkit-scrollbar{display:none}
  .shop-nav-replacement a{height:42px}
}


/* DS-BOUTIQUE4 — état de chargement des catégories
   Évite l'affichage des anciennes catégories HTML avant la réponse Supabase. */
.shop-category-loading {
  display: contents;
}
.category-skeleton {
  display: block;
  min-height: 210px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eeeeee 25%, #f7f7f7 37%, #eeeeee 63%);
  background-size: 400% 100%;
  animation: ibc-category-loading 1.25s ease-in-out infinite;
}
@keyframes ibc-category-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (max-width: 700px) {
  .category-skeleton { min-height: 175px; }
}

/* Demandes clients DS-BOUTIQUE4 */
.ibc-demand-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 22px;padding:18px 20px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.ibc-demand-copy{display:flex;align-items:center;gap:14px}.ibc-demand-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#f3f4f6}.ibc-demand-copy h2{margin:0 0 4px;font-size:1.05rem}.ibc-demand-copy p{margin:0;color:#666;font-size:.92rem}.ibc-demand-button{white-space:nowrap}
.ibc-demand-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px}.ibc-demand-modal[hidden]{display:none}.ibc-demand-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}.ibc-demand-dialog{position:relative;width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.22)}.ibc-demand-close{position:absolute;right:12px;top:12px;border:0;background:transparent;cursor:pointer}.ibc-demand-dialog h2{margin:0 35px 6px 0}.ibc-demand-help{color:#666;margin:0 0 18px}.ibc-demand-form{display:grid;gap:13px}.ibc-demand-form label{display:grid;gap:6px;font-weight:600;font-size:.9rem}.ibc-demand-form input,.ibc-demand-form textarea{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:10px;padding:11px 12px;font:inherit;font-weight:400}.ibc-demand-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
body.demand-modal-open{overflow:hidden}
@media(max-width:650px){.ibc-demand-card{align-items:flex-start;flex-direction:column}.ibc-demand-button{width:100%}.ibc-demand-grid{grid-template-columns:1fr}.ibc-demand-dialog{padding:20px}}

/* DS-BOUTIQUE4 V21 — recherche vivante */
.search-form{position:relative}.search-form:focus-within{transform:translateY(-1px)}
.search-form input{transition:box-shadow .2s ease,border-color .2s ease,background .2s ease}
.search-form input:focus{box-shadow:0 0 0 4px rgba(0,0,0,.12);border-color:#111111;background:#fff}
.search-form .suggestions{animation:ibcSearchDrop .18s ease both;transform-origin:top center}
.search-suggestion{transition:background .16s ease,transform .16s ease}.search-suggestion:hover{transform:translateX(2px);background:#fff7ed}
.search-category-suggestion .suggestion-symbol{width:32px;height:32px;border-radius:10px;background:#fff0df;display:grid;place-items:center;color:#111111;font-weight:800}
@keyframes ibcSearchDrop{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}


/* Résultats de recherche : zone explicite et visible sur mobile comme desktop. */
.shop-results { margin: 1.5rem 0 2.5rem; scroll-margin-top: 1rem; }
.shop-results[hidden] { display: none !important; }
.shop-results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.shop-results-heading h2 { margin: 0 0 .35rem; }
#product-result-count { margin: 0; color: #666; font-size: .95rem; }
#active-filter { margin: 0; color: #555; font-size: .9rem; }
.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .shop-results-heading { display: block; } .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }


/* État vide de recherche : présentation claire, accessible et adaptée au mobile. */
.search-empty-state{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.65rem;min-height:230px;padding:2rem 1.25rem;border:1px solid #e8e8e8;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#fafafa 100%)}
.search-empty-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#f1f1f1;color:#222;font-size:2.2rem;line-height:1}
.search-empty-state h3{margin:.25rem 0 0;font-size:1.2rem;color:#171717}
.search-empty-state p{margin:0;max-width:420px;color:#666;line-height:1.55}
.search-empty-state .search-show-all{margin-top:.45rem;min-height:44px;padding:.8rem 1.2rem;border-radius:999px;font-weight:700}
@media(max-width:560px){.search-empty-state{min-height:210px;padding:1.5rem 1rem;border-radius:14px}.search-empty-state p{font-size:.92rem}}

/* Photo jointe au formulaire de demande */
.ibc-demand-photo-actions{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}.ibc-demand-photo-actions .button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.demand-image-preview{display:flex;align-items:center;gap:12px;margin-top:10px}.demand-image-preview img{width:96px;height:96px;object-fit:contain;border:1px solid #e5e5e5;border-radius:10px;background:#fff}.demand-image-preview button{border:0;background:transparent;color:#111;text-decoration:underline;cursor:pointer}
