
/* =========================================================
   LINGERIE MAROC — COMPLETE RESPONSIVE STYLES
========================================================= */

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;background:#eee;color:#000;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;width:100%}

/* HEADER */
.header{width:100%;background:#eee;border-bottom:1px solid #ddd;position:relative;z-index:20}
.header-inner{max-width:1500px;margin:auto;padding:20px 5%;display:flex;align-items:center;justify-content:space-between}
.logo{font-size:18px;font-weight:700;letter-spacing:2px}
.desktop-nav{display:flex;gap:35px}
.desktop-nav a{font-size:12px;letter-spacing:1px;text-transform:uppercase}
.menu-button{display:none;background:none;border:0}
.mobile-nav{display:none}

/* HERO */
.hero{display:grid;grid-template-columns:1.15fr .85fr;background:#eee}
.hero-image{min-height:700px;overflow:hidden}
.hero-image img{height:100%;object-fit:cover}
.hero-content{display:flex;flex-direction:column;justify-content:center;padding:8%}
.eyebrow{color:#cb2957;font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin-bottom:20px}
.hero h1{font-size:clamp(48px,6vw,90px);line-height:.95;font-weight:500;letter-spacing:-3px;margin-bottom:30px}
.hero-text{max-width:430px;color:#333;font-size:15px;line-height:1.7;margin-bottom:35px}

/* BUTTONS */
.button,.banner-button{display:inline-flex;align-items:center;justify-content:center;background:#000;color:#eee;padding:16px 25px;font-size:11px;font-weight:700;letter-spacing:1.3px;transition:.2s}
.button:hover,.banner-button:hover{background:#cb2957}

/* COLLECTIONS */
.collection-section{padding:75px 5%;background:#eee}
.collection-banner{position:relative;max-width:1500px;margin:0 auto 45px;height:min(48vw,620px);min-height:380px;overflow:hidden}
.collection-banner>img{height:100%;object-fit:cover}
.banner-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(#0002,#0003);color:#fff}
.banner-overlay .eyebrow{color:#fff;margin-bottom:12px}
.banner-overlay h2{font-size:clamp(45px,7vw,90px);font-weight:500;letter-spacing:-3px;margin-bottom:22px}
.banner-button{background:#fff;color:#000}
.banner-button:hover{color:#fff}

.section-heading{max-width:1500px;margin:0 auto 28px;display:flex;align-items:flex-end;justify-content:space-between}
.section-heading .eyebrow{margin-bottom:8px}
.section-heading h2{font-size:clamp(32px,4vw,52px);font-weight:500;letter-spacing:-2px}
.view-all{font-size:12px;border-bottom:1px solid #000;padding-bottom:4px}

.products-grid{max-width:1500px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.product-card{min-width:0}
.product-image{aspect-ratio:.78;background:#ddd;overflow:hidden}
.product-image img{height:100%;object-fit:cover;transition:transform .4s}
.product-card:hover .product-image img{transform:scale(1.03)}
.product-info{padding:14px 2px 28px;display:flex;justify-content:space-between;gap:10px}
.product-info h3,.product-info p{font-size:13px;font-weight:500}
.product-info h3{line-height:1.35}

/* BRAND */
.brand-section{min-height:600px;background:#cb2957;color:#eee;display:flex;align-items:center;justify-content:center;text-align:center;padding:70px 5%}
.brand-content{max-width:650px}
.brand-content .eyebrow{color:#eee}
.brand-content h2{font-size:clamp(45px,6vw,85px);font-weight:500;line-height:.95;letter-spacing:-3px;margin-bottom:28px}
.brand-content>p:not(.eyebrow){max-width:450px;margin:0 auto 30px;font-size:15px;line-height:1.7}
.button-light{background:#eee;color:#000}

/* BENEFITS */
.benefits{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #ddd}
.benefit{padding:55px 7%;border-right:1px solid #ddd}
.benefit:last-child{border-right:0}
.benefit span{display:block;color:#cb2957;font-size:11px;margin-bottom:20px}
.benefit h3{font-size:17px;font-weight:500;margin-bottom:10px}
.benefit p{color:#555;font-size:13px;line-height:1.6}

/* FOOTER */
.footer{background:#000;color:#eee;padding:65px 5% 25px;text-align:center}
.footer-logo{font-size:20px;font-weight:700;letter-spacing:3px;margin-bottom:35px}
.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:28px;margin-bottom:45px}
.footer-links a{font-size:11px;text-transform:uppercase;letter-spacing:1px}
.copyright{color:#888;font-size:11px}
.whatsapp-float{position:fixed;right:18px;bottom:18px;width:52px;height:52px;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;z-index:50;box-shadow:0 5px 20px #0003}

/* MOBILE */
@media(max-width:768px){
  .header-inner{padding:15px 16px}
  .logo{font-size:14px}
  .desktop-nav{display:none}
  .menu-button{display:flex;flex-direction:column;gap:5px;cursor:pointer}
  .menu-button span{display:block;width:22px;height:1px;background:#000}
  .mobile-nav{display:none;padding:5px 16px 15px;border-top:1px solid #ddd}
  .menu-open .mobile-nav{display:grid;grid-template-columns:1fr 1fr;gap:0}
  .mobile-nav a{padding:12px 0;font-size:11px;text-transform:uppercase;letter-spacing:1px}

  .hero{display:flex;flex-direction:column}
  .hero-image{height:72vw;min-height:330px;max-height:520px}
  .hero-image img{object-position:center}
  .hero-content{padding:38px 18px 45px}
  .hero h1{font-size:clamp(42px,13vw,58px);letter-spacing:-2px;margin-bottom:20px}
  .hero-text{font-size:13px;line-height:1.55;margin-bottom:24px}
  .button{width:100%;min-height:48px}

  .collection-section{padding:42px 10px 48px}
  .collection-banner{height:58vw;min-height:180px;max-height:290px;margin-bottom:28px}
  .collection-banner>img{object-position:center}
  .banner-overlay{padding:15px}
  .banner-overlay h2{font-size:clamp(38px,12vw,58px);letter-spacing:-2px;margin-bottom:16px}
  .banner-button{padding:13px 17px;font-size:9px}

  .section-heading{margin:0 2px 16px;align-items:flex-start;gap:7px}
  .section-heading h2{font-size:29px;letter-spacing:-1px}
  .section-heading .eyebrow{font-size:9px;margin-bottom:6px}
  .view-all{font-size:10px}

  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .product-image{aspect-ratio:.76}
  .product-info{display:block;padding:9px 1px 18px}
  .product-info h3{font-size:10.5px;margin-bottom:5px}
  .product-info p{font-size:10.5px}

  .brand-section{min-height:440px;padding:55px 18px}
  .brand-content h2{font-size:clamp(43px,13vw,55px);letter-spacing:-2px}
  .brand-content>p:not(.eyebrow){font-size:13px;line-height:1.55}

  .benefits{grid-template-columns:1fr}
  .benefit{border-right:0;border-bottom:1px solid #ddd;padding:35px 22px}
  .benefit:last-child{border-bottom:0}
  .footer{padding:45px 18px 25px}
}

@media(max-width:420px){
  .collection-section{padding-left:9px;padding-right:9px}
  .collection-banner{height:60vw;min-height:170px;margin-bottom:24px}
  .products-grid{gap:6px}
}


/* PRODUCT CAROUSELS — swipe on mobile, horizontal scroll on desktop */
.product-carousel{
  display:flex;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  max-width:1500px;
  margin:0 auto;
  padding:2px 2px 16px;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#cb2957 #ddd;
}
.product-carousel .product-card{
  flex:0 0 calc((100% - 42px)/4);
  min-width:0;
  scroll-snap-align:start;
}
.product-carousel::-webkit-scrollbar{height:5px}
.product-carousel::-webkit-scrollbar-track{background:#ddd}
.product-carousel::-webkit-scrollbar-thumb{background:#cb2957;border-radius:10px}
.carousel-hint{
  max-width:1500px;
  margin:-12px auto 14px;
  text-align:right;
  color:#777;
  font-size:11px;
}
@media(max-width:768px){
  .product-carousel{gap:10px;padding-bottom:13px}
  .product-carousel .product-card{flex-basis:calc((100% - 10px)/2.15)}
  .carousel-hint{margin:-5px 2px 12px;font-size:10px}
}
@media(max-width:420px){
  .product-carousel .product-card{flex-basis:72%}
}


/* COLLECTION PAGES */
.collection-page{background:#eee;min-height:65vh}
.collection-page .collection-hero{position:relative;min-height:260px;background:#252020;display:flex;align-items:flex-end;overflow:hidden}
.collection-page .collection-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}
.collection-page .collection-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.08))}
.collection-page .collection-hero-content{position:relative;z-index:1;padding:clamp(28px,6vw,72px) 5%;color:#fff;max-width:850px}
.collection-page .collection-hero .eyebrow{color:#f4b6c8;margin-bottom:12px}
.collection-page .collection-hero h1{font-size:clamp(36px,6vw,68px);line-height:1.02;font-weight:500;letter-spacing:-1.5px;margin-bottom:12px}
.collection-page .collection-hero p:not(.eyebrow){max-width:600px;font-size:14px;line-height:1.7;color:#f7f3f3}
.collection-page .collection-wrap{max-width:1500px;margin:0 auto;padding:24px 5% 75px}
.collection-page .breadcrumbs{font-size:12px;color:#666;margin-bottom:24px;display:flex;gap:8px;flex-wrap:wrap}
.collection-page .breadcrumbs a:hover{color:#cb2957}
.collection-page .collection-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px;flex-wrap:wrap}
.collection-page .collection-toolbar h2{font-size:clamp(24px,3vw,34px);font-weight:500;letter-spacing:-.6px}
.collection-page .collection-count{color:#666;font-size:12px;margin-top:7px}
.collection-page .sort-control{display:flex;align-items:center;gap:10px;font-size:12px;color:#555}
.collection-page .sort-control select{padding:11px 35px 11px 12px;border:1px solid #d5d5d5;background:#fff;font:inherit;color:#111;border-radius:0;max-width:220px}
.collection-page .collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 16px}
.collection-page .collection-product{display:block;min-width:0;color:#111}
.collection-page .collection-product-image{position:relative;background:#e3e0de;overflow:hidden;aspect-ratio:3/4}
.collection-page .collection-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.collection-page .collection-product:hover .collection-product-image img{transform:scale(1.035)}
.collection-page .collection-product-info{padding:12px 2px 0}
.collection-page .collection-product-info h3{font-size:14px;font-weight:500;line-height:1.45;margin-bottom:7px}
.collection-page .collection-price{font-size:13px;font-weight:700}
.collection-page .product-stock-badge{position:absolute;left:10px;top:10px;background:#fff;padding:7px 9px;font-size:10px;letter-spacing:.04em;text-transform:uppercase}
.collection-page .product-stock-badge.sold{background:#252525;color:#fff}
.collection-page .collection-empty{padding:55px 15px;text-align:center;background:#f7f6f5;color:#555;grid-column:1/-1}
.collection-page .collection-empty h3{color:#111;font-size:20px;font-weight:500;margin-bottom:8px}
.collection-page .collection-empty p{font-size:13px}
.collection-page .collection-back{display:inline-flex;margin-top:24px;padding:13px 18px;background:#111;color:#fff;font-size:11px;letter-spacing:.1em;text-transform:uppercase}
@media(max-width:1000px){.collection-page .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 13px}}
@media(max-width:650px){.collection-page .collection-hero{min-height:210px}.collection-page .collection-wrap{padding:20px 4% 50px}.collection-page .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}.collection-page .collection-product-info h3{font-size:12px}.collection-page .collection-toolbar{align-items:start}.collection-page .sort-control{width:100%;justify-content:space-between}.collection-page .sort-control select{flex:1;max-width:none}.collection-page .collection-product-info{padding-top:9px}}

/* Stock status badge on homepage cards, driven by Stock Admin */
.home-stock-badge{position:absolute;left:10px;top:10px;z-index:2;background:#252525;color:#fff;padding:7px 9px;font-size:10px;letter-spacing:.04em;text-transform:uppercase;line-height:1.2}


/* HOMEPAGE CAROUSEL CONTROLS — preserves existing section design */
.section-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.carousel-controls{display:flex;gap:7px}
.carousel-controls button{width:36px;height:36px;border:1px solid #cfcfcf;background:transparent;color:#111;border-radius:50%;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.carousel-controls button:hover{background:#111;color:#fff;border-color:#111}
.home-empty{flex:0 0 100%;padding:24px 0;color:#777;font-size:13px}
.product-carousel .product-info{min-height:58px}
@media(max-width:768px){.section-actions{gap:10px}.carousel-controls{gap:5px}.carousel-controls button{width:30px;height:30px;font-size:21px}.product-carousel .product-info{min-height:55px}.product-carousel .product-info h3{font-size:11px}.product-carousel .product-info p{font-size:11px}}
@media(max-width:420px){.section-actions{gap:8px}.carousel-controls button{width:28px;height:28px}.product-carousel .product-card{flex-basis:72%}}
