/* =========================================================
   PARIS PERFUMES — v5.3 PROFESSIONAL ALIGNMENT
   Header centering + fuller navigation + six-column catalog.
   Loaded after v5.2 and intentionally scoped to pp-v53.
========================================================= */

/* ---------- TRUE CENTERED DESKTOP HEADER ---------- */
@media (min-width:1280px){
  body.pp-v53 .pp52-header-row{
    height:72px!important;
    min-height:72px!important;
    grid-template-columns:250px minmax(480px,660px) 250px!important;
    justify-content:center!important;
    align-items:center!important;
    gap:24px!important;
  }
  body.pp-v53 .pp52-logo{justify-content:flex-start!important;align-self:center!important}
  body.pp-v53 .pp52-logo>a{justify-content:flex-start!important}
  body.pp-v53 .pp52-logo img,
  body.pp-v53 .pp52-logo .custom-logo{max-width:220px!important;max-height:58px!important}
  body.pp-v53 .pp52-search-wrap{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important}
  body.pp-v53 .pp52-search{max-width:650px!important;margin:0!important}
  body.pp-v53 .pp52-actions{width:250px!important;justify-content:flex-end!important;margin:0!important}
  body.pp-v53 .pp52-account,body.pp-v53 .pp52-cart{padding-inline:7px!important}

  body.pp-v53 .pp52-nav-inner{
    position:relative!important;
    justify-content:center!important;
    gap:8px!important;
  }
  body.pp-v53 .pp52-nav-list{
    flex:1 1 auto!important;
    justify-content:center!important;
    align-items:stretch!important;
    padding-right:176px!important;
    padding-left:0!important;
  }
  body.pp-v53 .pp52-nav-list>li>a,
  body.pp-v53 .pp52-nav-list>li:first-child>a{
    padding-inline:9px!important;
    font-size:10px!important;
    font-weight:800!important;
  }
  body.pp-v53 .pp52-wholesale-cta{
    position:absolute!important;
    right:0!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    min-width:166px!important;
  }
  body.pp-v53 .pp52-wholesale-cta:hover{transform:translateY(calc(-50% - 1px))!important}
}

/* Mid-sized desktop: preserve all core links, hide two filler links before mobile. */
@media (min-width:1081px) and (max-width:1320px){
  body.pp-v53 .pp53-nav-fill{display:none!important}
  body.pp-v53 .pp52-nav-list{justify-content:center!important}
  body.pp-v53 .pp52-nav-list>li>a,
  body.pp-v53 .pp52-nav-list>li:first-child>a{padding-inline:8px!important}
}

/* ---------- PROFESSIONAL SIX-COLUMN HOME MERCHANDISING ---------- */
@media (min-width:1280px){
  body.pp-v53 .pp52-product-grid,
  body.pp-v53 .pp52-product-grid-compact{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:11px!important;
  }
  body.pp-v53 .pp52-product-grid .pp-ref-product-media{height:190px!important;padding:14px!important}
  body.pp-v53 .pp52-product-grid .pp-ref-product-media img{max-height:164px!important}
  body.pp-v53 .pp52-product-grid .pp-ref-product-copy{padding:12px 11px 13px!important}
  body.pp-v53 .pp52-product-grid .pp-ref-product-copy h3{font-size:11px!important;min-height:34px!important;line-height:1.45!important}
  body.pp-v53 .pp52-product-grid .pp-ref-product-price{font-size:14px!important}
  body.pp-v53 .pp52-product-grid .pp-ref-buy-row{grid-template-columns:76px minmax(0,1fr)!important;gap:6px!important}
  body.pp-v53 .pp52-product-grid .pp-ref-qty{grid-template-columns:23px 1fr 23px!important;height:32px!important}
  body.pp-v53 .pp52-product-grid .pp-ref-add{min-height:32px!important;padding-inline:7px!important;font-size:8.3px!important}
  body.pp-v53 .pp52-quick-view{top:154px!important;left:9px!important;min-height:28px!important}
}
@media (min-width:1081px) and (max-width:1279px){
  body.pp-v53 .pp52-product-grid,
  body.pp-v53 .pp52-product-grid-compact{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:11px!important}
}

/* ---------- WOOCOMMERCE SHOP / CATEGORY / SEARCH GRIDS ---------- */
@media (min-width:1280px){
  body.pp-v53.woocommerce ul.products,
  body.pp-v53.woocommerce-page ul.products,
  body.pp-v53.single-product .related.products ul.products,
  body.pp-v53.single-product .up-sells.upsells ul.products{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:18px 12px!important;
  }
  body.pp-v53.woocommerce ul.products li.product,
  body.pp-v53.woocommerce-page ul.products li.product{padding:9px 9px 14px!important}
  body.pp-v53.woocommerce ul.products li.product a img,
  body.pp-v53.woocommerce-page ul.products li.product a img{padding:16px!important;margin-bottom:12px!important}
  body.pp-v53.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.pp-v53.woocommerce-page ul.products li.product .woocommerce-loop-product__title{
    font-size:15px!important;line-height:1.25!important;min-height:38px!important;margin-bottom:6px!important;
  }
  body.pp-v53.woocommerce ul.products li.product .price,
  body.pp-v53.woocommerce-page ul.products li.product .price{font-size:12px!important;margin-bottom:10px!important}
  body.pp-v53.woocommerce ul.products li.product .button,
  body.pp-v53.woocommerce-page ul.products li.product .button{padding:11px 8px!important;font-size:8px!important}
}

/* ---------- EXTRA POLISH ---------- */
body.pp-v53 .pp52-nav-list>li>a{position:relative}
body.pp-v53 .pp52-nav-list>li>a::after{
  content:"";position:absolute;left:9px;right:9px;bottom:7px;height:2px;border-radius:9px;background:var(--pp52-pink);
  transform:scaleX(0);transform-origin:center;transition:transform .18s ease;
}
body.pp-v53 .pp52-nav-list>li:hover>a::after,
body.pp-v53 .pp52-nav-list>li>a:focus-visible::after{transform:scaleX(1)}
body.pp-v53 .pp52-nav-list .pp-nav-special::after{transform:scaleX(.36)}
body.pp-v53 .pp52-header-action:focus-visible,
body.pp-v53 .pp52-nav-list a:focus-visible,
body.pp-v53 .pp52-wholesale-cta:focus-visible{
  outline:2px solid var(--pp52-pink)!important;outline-offset:2px!important;
}
body.pp-v53 .pp52-product-grid .pp-ref-product-card{border-color:#e5e5ea!important}
body.pp-v53 .pp52-product-grid .pp-ref-product-card:hover{box-shadow:0 18px 42px rgba(20,20,24,.10)!important}

/* Keep the existing mobile system untouched and reliable. */
@media (max-width:1080px){
  body.pp-v53 .pp53-nav-fill{display:block!important}
}
