/*
Theme Name: MAXWAY Pro
Author: MAXWAY
Description: Présentation indépendante marine et sable pour la boutique professionnelle MAXWAY.
Version: 0.2.4
Requires at least: 6.8
Requires PHP: 8.2
License: GPL-2.0-or-later
*/
:root{--ink:#152536;--sand:#c6a477;--paper:#f7f5f1;--line:#dddcd7}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:white;font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit;text-underline-offset:4px}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}button,.button,.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--ink);color:white;border:1px solid var(--ink);padding:14px 22px;border-radius:0;font-weight:500;cursor:pointer;text-decoration:none;display:inline-block}.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--ink)}button:hover,.button:hover{background:#294158;color:white}input,select,textarea{padding:12px;border:1px solid #b6bdc4;max-width:100%;background:white;color:var(--ink)}input[type=checkbox]{width:auto}input:focus,select:focus,textarea:focus,a:focus-visible,button:focus-visible{outline:3px solid var(--sand);outline-offset:3px}.wrap{max-width:1320px;margin:auto;padding:0 4vw}.eyebrow{font-size:12px;letter-spacing:.19em;text-transform:uppercase}.service{background:var(--ink);color:white;text-align:center;font-size:11px;letter-spacing:.14em;padding:9px}.demo{background:#eee4d6;text-align:center;font-size:12px;padding:6px}.site-header{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:104px}.site-header nav{display:flex;gap:22px;font-size:13px}.brand{text-align:center;text-decoration:none;line-height:1}.brand strong{display:block;letter-spacing:.1em;font-family:Georgia,serif;font-size:34px;font-weight:400}.brand span{display:block;letter-spacing:.4em;font-size:9px;margin-top:10px}.categories{display:flex;justify-content:center;gap:36px;padding:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px}.categories a{text-decoration:none}.hero{display:grid;grid-template-columns:1fr 1fr;background:var(--paper);min-height:590px}.hero-copy{padding:65px 7vw;align-self:center}.hero h1{font:clamp(36px,4.2vw,64px)/1.13 Georgia,serif;max-width:600px;margin:20px 0}.hero p{max-width:410px;color:#536070}.hero figure{margin:0;position:relative;overflow:hidden}.hero img{width:100%;height:100%;object-fit:cover;object-position:center 25%;position:absolute}.hero .button{margin-top:18px}.section{padding-top:70px;padding-bottom:70px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}h2{font:34px/1.2 Georgia,serif}h3{font:24px/1.2 Georgia,serif}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.category-card{text-decoration:none}.category-card img{width:100%;height:310px;object-fit:cover;background:var(--paper)}.category-card span{display:flex;justify-content:space-between;padding-top:16px}.promise{background:var(--ink);color:white;display:grid;grid-template-columns:repeat(3,1fr);gap:36px;padding:48px 6vw}.promise strong{font:24px Georgia,serif;display:block}.promise p{font-size:14px;color:#e3e8ee}.editorial{display:grid;grid-template-columns:1fr 1fr;background:var(--paper)}.editorial img{width:100%;height:430px;object-fit:cover}.editorial>div{padding:50px;align-self:center}.page-content{padding-top:45px;padding-bottom:75px;min-height:500px}.page-content>h1{font:42px Georgia,serif}.mw-pack{border:1px solid var(--line);background:var(--paper);padding:20px;margin:24px 0}.mw-pack p{margin:5px 0}.mw-pack small{color:#536070}.woocommerce ul.products li.product .woocommerce-loop-product__title{font:21px Georgia,serif}.woocommerce ul.products li.product .price{color:var(--ink)}.woocommerce ul.products li.product img{background:var(--paper);aspect-ratio:3/4;object-fit:cover}.woocommerce div.product .product_title{font:38px/1.15 Georgia,serif}.woocommerce div.product p.price{color:var(--ink)}.woocommerce table.shop_table{border-radius:0}.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border-radius:0}.woocommerce-info,.woocommerce-message{border-color:var(--sand)}.woocommerce-info::before,.woocommerce-message::before{color:var(--ink)}.woocommerce form .form-row input.input-text{min-height:44px}.woocommerce div.product form.cart .variations select{min-width:180px}.woocommerce .quantity .qty{width:80px}.woocommerce .woocommerce-breadcrumb{font-size:12px}.site-footer{background:var(--paper);border-top:1px solid var(--line);padding:50px 4vw 25px}.footer-grid{max-width:1200px;margin:auto;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}.site-footer a{display:block;margin:8px 0;font-size:13px}.site-footer .brand{display:inline-block}.footer-bottom{margin:40px auto 0;max-width:1200px;border-top:1px solid var(--line);padding-top:20px;font-size:11px;color:#607080}.skip{position:absolute;left:-9999px}.skip:focus{left:20px;top:20px;background:white;padding:15px;z-index:999}.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{min-width:0}table{max-width:100%}.woocommerce form .form-row label{white-space:normal}@media(max-width:800px){.site-header{min-height:120px;flex-wrap:wrap;justify-content:center;padding:20px}.brand{order:-1;width:100%}.brand strong{font-size:30px}.site-header nav{gap:18px;font-size:12px}.categories{gap:22px;overflow:auto;justify-content:flex-start;padding:14px 5vw;white-space:nowrap}.hero{grid-template-columns:1fr}.hero-copy{padding:38px 7vw}.hero figure{height:380px}.hero h1{font-size:42px}.category-grid{grid-template-columns:1fr 1fr;gap:15px}.category-card img{height:240px}.section{padding-top:40px;padding-bottom:40px}.section-head{align-items:start}.section-head h2{font-size:28px}.promise{grid-template-columns:1fr;gap:18px;padding:35px 7vw}.editorial{grid-template-columns:1fr}.editorial>div{padding:32px}.editorial img{height:300px}.footer-grid{grid-template-columns:1fr}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:48%}.page-content>h1{font-size:32px}}@media(max-width:400px){.category-card img{height:190px}.hero h1{font-size:36px}.site-header nav{gap:12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:18px}}



/* MAXWAY catalogue 0.2.0 */
:root{--ink:#182b3a;--paper:#f6f4ef;--line:#e4e2dc}
body{background:#fff;color:var(--ink)}
.site-header{min-height:96px}
.site-header nav a{text-decoration:none;font-size:14px}
.site-header nav a:hover{text-decoration:underline}
.categories{font-size:14px}
.hero img{object-position:center top}
.mw-catalogue-intro{display:flex;justify-content:space-between;align-items:center;gap:32px;padding:36px 0 32px;border-bottom:1px solid var(--line)}
.mw-catalogue-intro .eyebrow{color:#776548;font-size:11px;font-weight:600;letter-spacing:.16em;margin:0 0 12px}
.mw-catalogue-intro h1{font:clamp(38px,4.4vw,58px)/1.1 Georgia,serif;letter-spacing:-.025em;margin:0 0 14px}
.mw-catalogue-lead{color:#53616c;margin:0;font-size:16px}
.mw-catalogue-note{border-left:2px solid #b79a72;padding:10px 0 10px 24px;flex-shrink:0}
.mw-catalogue-note strong{display:block;font:24px/1.3 Georgia,serif;margin-bottom:8px}
.mw-catalogue-note span{display:block;font-size:13px;line-height:1.7;color:#53616c}
.mw-catalogue-nav{display:flex;flex-wrap:wrap;gap:8px;padding:24px 0 28px}
.mw-catalogue-nav a{border:1px solid var(--line);padding:10px 18px;min-height:44px;text-decoration:none;border-radius:24px;font-size:14px}
.mw-catalogue-nav a[aria-current],.mw-catalogue-nav a:hover{background:var(--ink);border-color:var(--ink);color:white}
.woocommerce .woocommerce-result-count{font-size:13px;color:#65717b;margin-top:12px}
.woocommerce .woocommerce-ordering select{font-size:13px;min-height:44px;border:1px solid var(--line);padding:10px 16px;border-radius:3px}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px;clear:both;padding:18px 0 0;margin:0 0 40px}
.woocommerce ul.products::before,.woocommerce ul.products::after,.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none;width:auto!important;margin:0!important;padding:0;min-width:0;border:0;background:#fff;display:flex;flex-direction:column}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;text-decoration:none}
.woocommerce ul.products li.product a img{display:block;width:100%;height:290px;aspect-ratio:auto;object-fit:contain;object-position:center;background:var(--paper);padding:20px;margin:0 0 18px;border-radius:3px}
.woocommerce ul.products li.product .mw-card-reference{font:11px/1.5 Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#67747e;margin:0 0 7px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font:500 20px/1.3 Georgia,serif;min-height:52px;padding:0;margin:0 0 10px;color:var(--ink)}
.mw-card-pack{margin:0 0 8px}
.mw-card-pack strong{display:block;font-size:13px;font-weight:600}
.mw-card-pack span{display:block;color:#65717b;font-size:12px;line-height:1.6;margin-top:3px}
.woocommerce ul.products li.product .mw-card-colors{font-size:12px;color:#65717b;margin:0 0 12px;min-height:20px}
.woocommerce ul.products li.product .price{font-size:18px;font-weight:600;line-height:1.5;color:var(--ink);margin:0 0 16px}
.woocommerce ul.products li.product .price small{font-size:12px;font-weight:400}
.woocommerce ul.products li.product .button{margin-top:auto;width:100%;text-align:center;min-height:46px;padding:12px 14px;font-size:14px;line-height:1.5;border:1px solid #a7afb4;background:white;color:var(--ink);border-radius:3px;transition:background .15s,color .15s}
.woocommerce ul.products li.product .button:hover{background:var(--ink);color:white;border-color:var(--ink)}
.woocommerce ul.products li.product .added_to_cart{text-align:center;padding-top:10px}
.woocommerce ul.products li.product .star-rating{margin-bottom:10px}
@media(min-width:1200px){.woocommerce ul.products li.product a img{height:330px}}
@media(max-width:800px){.mw-catalogue-intro{padding-top:12px}.mw-catalogue-note{display:none}.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px}.woocommerce ul.products li.product a img{height:250px;padding:16px}.mw-catalogue-nav{gap:6px}.mw-catalogue-nav a{font-size:13px;padding:10px 14px}}
@media(max-width:480px){.page-content{padding-top:24px}.mw-catalogue-intro h1{font-size:38px}.mw-catalogue-lead{font-size:14px}.woocommerce ul.products,.woocommerce-page ul.products{gap:28px 14px}.woocommerce ul.products li.product a img{height:195px;padding:10px;margin-bottom:14px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:18px;min-height:70px}.woocommerce ul.products li.product .price{font-size:16px}.mw-card-pack span{font-size:11px}.woocommerce .woocommerce-ordering{float:none}.site-header nav{gap:14px}}
@media(max-width:340px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr}.woocommerce ul.products li.product a img{height:260px}}
@media(prefers-reduced-motion:reduce){.woocommerce ul.products li.product .button{transition:none}}
.category-card img.mw-home-sweat{object-fit:contain;background:#fff}
/* Full landscape on desktop; mobile uses a right-aligned 4:3 crop around the clothes rail. */
.hero.hero-landscape{grid-template-columns:minmax(0,2fr) minmax(0,3fr);min-height:0;align-items:center}
.hero-landscape .hero-copy{padding:48px 4vw}
.hero-landscape h1{font-size:clamp(32px,3.2vw,52px)}
.hero.hero-landscape figure{height:auto;min-width:0;overflow:visible;margin:0}
.hero.hero-landscape figure img{position:static;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
@media(max-width:800px){.hero.hero-landscape{grid-template-columns:minmax(0,1fr)}.hero-landscape .hero-copy{padding:32px 7vw}.hero-landscape h1{font-size:38px}.hero.hero-landscape figure img{aspect-ratio:4/3;object-fit:cover;object-position:right center}}
/* Mobile: image first and compact, touch-friendly navigation. */
@media(max-width:800px){
  body.home .hero.hero-landscape>figure{order:-1}
  .site-header.wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;padding:10px 16px 12px}
  .site-header.wrap .brand.mw-logo{grid-column:1/-1;justify-self:center;width:280px;max-width:80vw;height:84px;margin:0 0 2px}
  .site-header.wrap nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  .site-header.wrap nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 10px;border:1px solid #e4d9ca;border-radius:9px;background:#f5eee5;color:#182b3a;font-size:13px;font-weight:500;line-height:1.3;text-align:center;text-decoration:none}
  .site-header.wrap nav[aria-label="Votre espace"] a:first-child{background:#182b3a;border-color:#182b3a;color:#fff}
  .site-header.wrap nav[aria-label="Votre espace"] a:last-child{background:#fff}
  .site-header.wrap nav a:hover{border-color:#a78d6a}
  nav.categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.45fr);gap:6px;padding:10px 14px;background:#faf8f4;border-top:1px solid #ece5db;border-bottom:1px solid #ece5db;overflow:visible}
  nav.categories a{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 4px;border:1px solid #e4d9ca;border-radius:22px;background:#fff;font-size:12px;font-weight:500;line-height:1.25;text-align:center;white-space:normal}
  nav.categories a:hover{background:#f3eadf;border-color:#c6a477}
}
/* Preserve the complete portrait photograph in the editorial section. */
.editorial>img.mw-editorial-selection{display:block;width:100%;height:auto;object-fit:contain;align-self:center}

/* Responsive catalogue: readable cards on homepage, category pages and shop. */
@media(max-width:1000px){
  body.home .woocommerce ul.products,
  body.woocommerce ul.products,
  body.woocommerce-page ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:32px 18px!important;
    width:100%!important;
  }
  body.home .woocommerce ul.products li.product,
  body.woocommerce ul.products li.product,
  body.woocommerce-page ul.products li.product,
  body.post-type-archive-product ul.products li.product,
  body.tax-product_cat ul.products li.product{
    float:none!important;
    clear:none!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    min-width:0!important;
  }
  body.home .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.woocommerce ul.products li.product .woocommerce-loop-product__title{
    min-height:0!important;
    font-size:20px!important;
    line-height:1.25!important;
  }
}
@media(max-width:700px){
  body.woocommerce:not(.home) ul.products,
  body.woocommerce-page:not(.home) ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products{
    grid-template-columns:1fr!important;
    gap:42px!important;
  }
  body.woocommerce:not(.home) ul.products li.product{
    padding-bottom:34px!important;
    border-bottom:1px solid var(--line)!important;
  }
  body.woocommerce:not(.home) ul.products li.product a img{
    height:auto!important;
    max-height:430px!important;
    object-fit:contain!important;
    padding:8px!important;
    margin-bottom:18px!important;
  }
  body.woocommerce:not(.home) ul.products li.product .woocommerce-loop-product__title{
    font-size:24px!important;
    line-height:1.22!important;
    min-height:0!important;
  }
  body.woocommerce:not(.home) ul.products li.product .button{
    width:100%!important;
    min-height:52px!important;
    font-size:16px!important;
    padding:14px 18px!important;
  }
  body.home .mw-home-products .woocommerce ul.products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:30px 16px!important;
    width:100%!important;
  }
  body.home .mw-home-products .woocommerce ul.products li.product{
    display:flex!important;
    flex-direction:column!important;
    float:none!important;
    clear:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  body.home .mw-home-products .woocommerce ul.products li.product>a.woocommerce-LoopProduct-link{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    text-decoration:none!important;
  }
  body.home .mw-home-products .woocommerce ul.products li.product .mw-card-reference,
  body.home .mw-home-products .woocommerce ul.products li.product .mw-card-pack,
  body.home .mw-home-products .woocommerce ul.products li.product .mw-card-colors,
  body.home .mw-home-products .woocommerce ul.products li.product .price{
    display:none!important;
  }
  body.home .mw-home-products .woocommerce ul.products li.product a img{
    width:100%!important;
    height:220px!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    background:#fff!important;
    padding:8px!important;
    margin:0 0 14px!important;
  }
  body.home .mw-home-products .woocommerce ul.products li.product .woocommerce-loop-product__title{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    font-size:18px!important;
    line-height:1.25!important;
    min-height:2.5em!important;
    margin:0 0 14px!important;
    padding:0!important;
  }
  body.home .mw-home-products .woocommerce ul.products li.product .button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:48px!important;
    font-size:14px!important;
    line-height:1.2!important;
    padding:12px 8px!important;
    margin-top:auto!important;
    text-align:center!important;
  }
  .mw-card-pack strong{font-size:15px!important}
  .mw-card-pack span,.woocommerce ul.products li.product .mw-card-colors{font-size:14px!important;line-height:1.55!important}
}

/* Homepage product grid: independent from WooCommerce catalogue CSS. */
.mw-home-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 24px}
.mw-home-product-card{display:flex;flex-direction:column;min-width:0}
.mw-home-product-visual{display:block;background:#fff;text-decoration:none}
.mw-home-product-image{display:block;width:100%;height:300px;object-fit:contain;object-position:center;background:#fff}
.mw-home-product-title{font:22px/1.25 Georgia,serif;margin:14px 0 16px;min-height:2.5em}
.mw-home-product-title a{text-decoration:none}
.mw-home-product-button{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:auto;border:1px solid #d7c5aa;background:#f3eadf;color:var(--ink);text-decoration:none;font-size:14px;padding:12px 10px;text-align:center}
.mw-home-product-button:hover{background:#e8dac8;border-color:var(--sand);color:var(--ink)}
@media(max-width:700px){
  .mw-home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
  .mw-home-product-image{height:210px}
  .mw-home-product-title{font-size:18px;line-height:1.25;min-height:2.5em;margin:12px 0 12px}
  .mw-home-product-button{min-height:48px;font-size:14px;padding:10px 6px}
}
@media(max-width:360px){
  .mw-home-products-grid{gap:24px 10px}
  .mw-home-product-image{height:190px}
  .mw-home-product-title{font-size:17px}
}

/* Uniformise tous les boutons « Voir le modèle » du site. */
a.maxway-voir-modele,
.woocommerce a.maxway-voir-modele,
.mw-home-product-button{
  background:#f3eadf!important;
  border-color:#d7c5aa!important;
  color:var(--ink)!important;
}
a.maxway-voir-modele:hover,
.woocommerce a.maxway-voir-modele:hover,
.mw-home-product-button:hover{
  background:#e8dac8!important;
  border-color:var(--sand)!important;
  color:var(--ink)!important;
}

/* Accueil : showroom dans le pied de page. */
body.home .footer-grid{
  grid-template-columns:minmax(0,1fr) minmax(250px,330px);
  grid-template-areas:
    "brand brand"
    "pro photo"
    "info photo";
  column-gap:48px;
  row-gap:26px;
  align-items:start;
}
body.home .footer-grid>div:nth-child(1){grid-area:brand}
body.home .footer-grid>div:nth-child(2){grid-area:pro}
body.home .footer-grid>div:nth-child(3){grid-area:info}
body.home .footer-showroom-photo{
  grid-area:photo;
  width:100%;
  max-width:320px;
  aspect-ratio:1/1;
  justify-self:end;
  align-self:start;
  overflow:hidden;
  border-radius:18px;
}
body.home .footer-showroom-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
}
.footer-showroom-address{
  margin-top:16px;
  font-size:13px;
  line-height:1.55;
  color:#536070;
}
.footer-showroom-address strong,
.footer-showroom-address span{display:block}
.footer-showroom-address strong{
  margin-bottom:2px;
  color:var(--ink);
  font-weight:600;
}
@media(max-width:600px){
  body.home .footer-grid{
    grid-template-columns:1fr;
    grid-template-areas:"brand" "pro" "photo" "info";
    row-gap:24px;
  }
  body.home .footer-showroom-photo{
    width:min(100%,280px);
    justify-self:start;
  }
}
