/* IBC — 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 .material-symbols-outlined{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 .material-symbols-outlined{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}
}


/* IBC — é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 IBC */
.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}}
