/* KindPrice PetCare 4.5 - final navigation, account and importer presentation. */

/* The catalogue belongs in the Shop mega menu, never as duplicate header links. */
.kppc-menu-category{display:none!important}
.kppc-header{overflow:visible}
.kppc-header__row{overflow:visible}
.kppc-nav{min-width:0;overflow:visible}
.kppc-brand{position:relative;z-index:4;flex:0 0 auto;overflow:hidden}
.kppc-brand img{width:100%;height:100%;display:block;object-fit:contain}
.kppc-menu,.kppc-nav .menu{min-width:0}
.kppc-menu>li,.kppc-nav .menu>li{flex:0 0 auto}

@media (min-width:1101px){
  .kppc-header__row{min-height:112px;grid-template-columns:96px minmax(390px,1fr) minmax(210px,242px) auto;gap:20px}
  .kppc-brand{width:90px;height:90px}
  .kppc-menu,.kppc-nav .menu{justify-content:flex-start;gap:clamp(18px,1.55vw,28px)}
  .kppc-menu>li>a,.kppc-nav .menu>li>a{padding:28px 0 26px;font-size:clamp(12px,.82vw,13.5px);line-height:1.2}
  .kppc-menu>.menu-item-has-children>a{padding-right:14px}
  .kppc-menu>.menu-item-has-children>a::before{top:28px}
  .kppc-header-search{height:48px}.kppc-header-search input{height:46px;font-size:13px}
  .kppc-account-links a,.kppc-language-switcher{font-size:12px}
}

@media (min-width:761px) and (max-width:1100px){
  .kppc-header__row{min-height:158px;grid-template-columns:90px minmax(0,1fr) 220px auto;grid-template-rows:88px 66px;gap:4px 14px}
  .kppc-brand{width:84px;height:84px;grid-column:1;grid-row:1}
  .kppc-header-search-wrap{grid-column:2/4;grid-row:1}
  .kppc-header__actions{grid-column:4;grid-row:1;gap:9px}
  .kppc-nav{grid-column:1/-1;grid-row:2;align-self:stretch}
  .kppc-menu,.kppc-nav .menu{height:100%;justify-content:center;flex-wrap:nowrap;gap:clamp(16px,3vw,34px)}
  .kppc-menu>li>a,.kppc-nav .menu>li>a{padding:18px 0;font-size:12px}
  .kppc-header-search{height:46px}.kppc-header-search input{height:44px;padding-left:15px;font-size:12px}
  .kppc-account-links a,.kppc-language-switcher{font-size:10.5px}
  .kppc-action-icon .kppc-icon{width:21px;height:21px}
}

/* Nested WooCommerce wrappers inside My Account must not inherit the account grid. */
.woocommerce-account .woocommerce-MyAccount-content>.woocommerce,
.woocommerce-account .woocommerce-MyAccount-content .kppc-wishlist-products>.woocommerce{
  width:100%!important;display:block!important;grid-template-columns:none!important
}
.kppc-wishlist-head{margin:0 0 18px;display:flex;align-items:end;justify-content:space-between;gap:20px;border-bottom:1px solid #dfe7db}
.kppc-wishlist-head h2{margin:0 0 10px!important}.kppc-wishlist-head p{margin:0 0 12px!important;color:#64736b;font-size:13px}
.kppc-wishlist-products{width:100%;min-width:0}
.kppc-wishlist-products .woocommerce ul.products,
.kppc-wishlist-products ul.products{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:15px!important}
.kppc-wishlist-products ul.products li.product{width:auto!important;min-width:0!important}

@media (max-width:1100px){.kppc-wishlist-products .woocommerce ul.products,.kppc-wishlist-products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:760px){
  .kppc-wishlist-products .woocommerce ul.products,.kppc-wishlist-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .kppc-wishlist-head{align-items:flex-start;flex-direction:column;gap:0}
}
@media (max-width:420px){.kppc-wishlist-products .woocommerce ul.products,.kppc-wishlist-products ul.products{grid-template-columns:1fr!important}}

/* Admin catalogue workflow. */
.kppc-import-hero{max-width:1180px;margin:18px 0;padding:22px 24px;color:#fff;background:linear-gradient(120deg,#0b3f2d,#1d704e);border-radius:14px;box-shadow:0 14px 36px rgba(9,55,39,.16)}
.kppc-import-hero h2{margin:0 0 8px;color:#fff}.kppc-import-hero p{margin:0;color:rgba(255,255,255,.86)}
.kppc-import-preview{max-width:1180px;margin:18px 0;padding:20px;background:#fff;border:1px solid #dcdcda;border-radius:14px}
.kppc-import-preview__stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.kppc-import-preview__stats div{padding:14px;background:#f2f6ef;border-radius:10px}
.kppc-import-preview__stats strong{display:block;color:#174d37;font-size:22px}
.kppc-danger-card{border-color:#e1b3ad!important;background:#fffafa!important}.kppc-danger-card h2{color:#8e2e25!important}
@media(max-width:782px){.kppc-import-preview__stats{grid-template-columns:1fr 1fr}}
