/* PAYAYOO design polish v1 – loaded after the main stylesheets on every public page (home: inlined by tools/apply-design-polish.js).
 * 1) one brand colour for primary buttons   2) readable product cards on desktop   3) compact header nav (cart = icon)   4) tighter home spacing */
:root{--py-pink:#f05b88;--py-pink-dark:#e04676}

/* 1) brand CTA: the old blue-to-pink gradient is replaced by the brand pink (mobile product-card cart bubble is left alone) */
body .btn.primary:not(.product-buy-detail-btn){background-image:none!important;background-color:var(--py-pink)!important;color:#fff!important;box-shadow:0 6px 16px rgba(240,91,136,.26)}
body .btn.primary:not(.product-buy-detail-btn):hover{background-color:var(--py-pink-dark)!important}

/* 2) product cards (desktop / tablet). home.min.css sets the home rails with #id selectors + !important in several layers,
 *    so the home overrides below use the same ids (and come later). */
@media(min-width:781px){
  body .product-buy-detail-btn{background-image:none!important;background-color:var(--py-pink)!important;color:#fff!important;border-radius:10px!important;box-shadow:0 5px 14px rgba(240,91,136,.24)}
  body .product-buy-detail-btn:hover{background-color:var(--py-pink-dark)!important}
  body #latestProducts .product-card h3,body #bestSellerProducts .product-card h3{font-size:13.5px!important;line-height:1.7!important;min-height:40px!important;max-height:none!important;-webkit-line-clamp:2!important}
  body #latestProducts .product-card .price,body #bestSellerProducts .product-card .price,body #latestProducts .product-card .product-price,body #bestSellerProducts .product-card .product-price{font-size:14.5px!important;min-height:22px!important;line-height:1.5!important}
  body #latestProducts .product-card .product-category-line,body #latestProducts .product-card .product-category-line a,body #bestSellerProducts .product-card .product-category-line a{font-size:11.5px!important}
  body #latestProducts .product-card .product-card-actions .btn,body #bestSellerProducts .product-card .product-card-actions .btn{font-size:12.5px!important;min-height:36px!important;padding:8px 10px!important;border-radius:10px!important;background:var(--py-pink)!important;color:#fff!important}
}
@media(min-width:781px) and (max-width:1100px){
  body #latestProducts #products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
}
@media(min-width:1101px){
  body #latestProducts #products{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
}

/* 3) header nav: cart as an icon with badge; "ارتباط با ما" and "فروشنده شوید" live in the «راهنما» menu on desktop */
.cart-nav-link .cart-ico{display:block;flex:none}
@media(min-width:781px){
  body .cart-nav-link{padding:8px 12px!important}
  body .cart-nav-link .cart-ico{width:22px;height:22px}
  body .cart-nav-link .cart-nav-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:780px){
  body .cart-nav-link .cart-ico{width:18px;height:18px}
}

/* 4) tighter vertical rhythm on the home page */
@media(min-width:781px){
  body .home-latest-articles{margin-top:44px!important;margin-bottom:44px!important}
  body .home-rail-section{padding-top:10px!important;padding-bottom:10px!important}
  body .home-rail-section h2{font-size:clamp(1.35rem,2vw,1.65rem)!important}
  body .home-main-slider-section{margin-bottom:20px!important}
  body .home-category-section{margin-bottom:22px!important}
}
@media(max-width:780px){
  body .home-latest-articles{margin-top:36px!important;margin-bottom:36px!important}
  body .home-rail-section{padding-top:8px!important;padding-bottom:8px!important}
}

/* 5) mobile header «ورود»: SVG icon instead of the "◯" glyph (its size depended on the phone font and overlapped the label) */
@media(max-width:780px){body .mobile-header-auth{display:inline-flex!important;align-items:center;justify-content:center;gap:5px}}
body .mobile-header-auth .auth-ico{display:inline-flex;line-height:0}
body .mobile-header-auth .user-ico{width:18px;height:18px;flex:none}

/* home rails: keep the card borders / shadows from being clipped at the edges */
@media(min-width:781px){body #latestProducts #products{padding:2px 2px 8px!important}}
/* the seller link now lives in the second header row on desktop; keep it out of the «راهنما» menu everywhere */
body #navMount a.dd-desktop-only,body .dd-desktop-only{display:none!important}
