/* StyleHub Clothing UX 7.2
   Clothing-first product cards, size selection, wishlist controls and cart size editing.
   Loaded after the stability sheets so these rules are intentionally authoritative. */

/* Homepage catalog: keep the existing 1 + 8 editorial layout while adding real controls. */
.stylehub-body .sh-catalog-feature,
.stylehub-body .sh-catalog-mini{position:relative}
.stylehub-body .sh-catalog-feature-link{position:relative;display:block;width:100%;height:100%;min-height:520px;color:inherit;overflow:hidden}
.stylehub-body .sh-catalog-feature-link>img{width:100%;height:100%;min-height:520px;display:block;object-fit:cover;object-position:center top;transition:transform .28s ease}
.stylehub-body .sh-catalog-mini-link{display:flex;flex-direction:column;min-width:0;height:100%;color:inherit}
.stylehub-body .sh-catalog-mini-link .sh-catalog-mini-media{flex:0 0 auto}
.stylehub-body .sh-catalog-mini-link .sh-catalog-mini-info{flex:1 1 auto;padding-right:48px}

.stylehub-body .sh-catalog-wish,
.stylehub-body .sh-catalog-cart{position:absolute;z-index:6;display:grid;place-items:center;border:1px solid rgba(45,30,60,.12);background:rgba(255,255,255,.96);color:#2b2332;box-shadow:0 8px 24px rgba(29,20,40,.10);transition:transform .16s ease,background .16s ease,color .16s ease,border-color .16s ease}
.stylehub-body .sh-catalog-wish{top:12px;left:12px;width:38px;height:38px;border-radius:50%;font-size:15px;cursor:pointer}
.stylehub-body .sh-catalog-wish--mini{top:8px;left:8px;width:31px;height:31px;font-size:13px}
.stylehub-body .sh-catalog-wish.active{background:#7b3fe4;color:#fff;border-color:#7b3fe4}
.stylehub-body .sh-catalog-cart{right:22px;bottom:24px;width:42px;height:42px;border-radius:12px;color:#fff;background:#7b3fe4;border-color:#7b3fe4;font-size:15px}
.stylehub-body .sh-catalog-cart--mini{right:9px;bottom:9px;width:34px;height:34px;border-radius:9px;font-size:12px}
.stylehub-body .sh-catalog-cart::after{content:'Select size';position:absolute;right:0;bottom:calc(100% + 7px);padding:5px 7px;border-radius:5px;background:#17131d;color:#fff;font-size:9px;font-weight:700;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(3px);transition:.16s}
.stylehub-body .sh-catalog-cart:hover::after{opacity:1;transform:none}
.stylehub-body .sh-catalog-mini-info>div{padding-right:1px}

@media(hover:hover) and (pointer:fine){
  .stylehub-body .sh-catalog-feature:hover .sh-catalog-feature-link>img,
  .stylehub-body .sh-catalog-mini:hover .sh-catalog-mini-link .sh-catalog-mini-media img{transform:scale(1.025)}
  .stylehub-body .sh-catalog-wish:hover{transform:translateY(-1px);border-color:#7b3fe4;color:#7b3fe4}
  .stylehub-body .sh-catalog-wish.active:hover{color:#fff}
  .stylehub-body .sh-catalog-cart:hover{transform:translateY(-1px);background:#6630c5}
}

/* PDP clothing-size selector. */
.stylehub-body .sh-pdp-size-block{margin-top:18px;padding:16px 17px;border:1px solid #e8e1ef;border-radius:12px;background:#fcfaff;scroll-margin-top:110px}
.stylehub-body .sh-pdp-size-block .sh-pdp-option-head{margin:0 0 12px}
.stylehub-body .sh-pdp-option-head>span{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#241d2b}
.stylehub-body .sh-pdp-option-head>span em{font-style:normal;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#7b3fe4;background:#f0e8ff;border-radius:999px;padding:4px 7px}
.stylehub-body .sh-pdp-size-block .sh-pdp-variants{display:flex;flex-wrap:wrap;gap:8px}
.stylehub-body .sh-pdp-size-block .sh-pdp-variant{min-width:50px;height:42px;padding:0 13px;border:1px solid #ddd3e8;border-radius:9px;background:#fff;color:#302738;font-size:12px;font-weight:750;cursor:pointer}
.stylehub-body .sh-pdp-size-block .sh-pdp-variant.active{background:#241d2b;color:#fff;border-color:#241d2b;box-shadow:0 5px 14px rgba(36,29,43,.13)}
.stylehub-body .sh-pdp-size-help{display:flex;align-items:center;gap:6px;margin-top:10px;color:#8a748f;font-size:10.5px;line-height:1.45}
.stylehub-body .sh-pdp-size-help.is-selected{color:#198754}
.stylehub-body .sh-pdp-single-size{margin-top:18px;padding:13px 15px;border:1px solid #e8e1ef;border-radius:10px;background:#fcfaff;display:flex;align-items:center;gap:10px;scroll-margin-top:110px}
.stylehub-body .sh-pdp-single-size>span{font-size:11px;font-weight:800;color:#6d6371;text-transform:uppercase;letter-spacing:.07em}
.stylehub-body .sh-pdp-single-size>strong{font-size:12px}
.stylehub-body .sh-pdp-single-size>a{margin-left:auto;font-size:10.5px;font-weight:700;color:#6b35c8}
.stylehub-body .sh-pdp-buybox button:disabled,
.stylehub-body .sh-pdp-mobile-buy button:disabled{opacity:.46;cursor:not-allowed;filter:saturate(.65)}

/* Cart drawer: expose the selected size and allow changing it without leaving the bag. */
.stylehub-body .cart-line{align-items:flex-start}
.stylehub-body .cart-line-main{min-width:0;flex:1}
.stylehub-body .cart-line-price{display:block;margin-top:7px}
.stylehub-body .cart-size-picker{display:flex;align-items:center;gap:7px;width:max-content;margin-top:7px;padding:4px 6px 4px 8px;border:1px solid #e7dfed;border-radius:8px;background:#faf8fc}
.stylehub-body .cart-size-picker>span{font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.07em;color:#7a7080;font-weight:800}
.stylehub-body .cart-size-picker select{height:27px;min-width:58px;padding:0 25px 0 8px;border:1px solid #d9cee5;border-radius:6px;background:#fff;color:#241d2b;font-size:11px;font-weight:750;outline:none}
.stylehub-body .cart-size-picker select:focus{border-color:#7b3fe4;box-shadow:0 0 0 2px rgba(123,63,228,.10)}
.stylehub-body .cart-size-badge{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:6px;background:#f5f0fb;color:#66586f;font-size:10px}
.stylehub-body .cart-size-badge strong{margin-left:3px;color:#251e2b}

@media(max-width:1100px){
  .stylehub-body .sh-catalog-feature-link,.stylehub-body .sh-catalog-feature-link>img{min-height:470px}
}
@media(max-width:880px){
  .stylehub-body .sh-catalog-feature-link{min-height:0;height:100%}
  .stylehub-body .sh-catalog-feature-link>img{min-height:0;height:100%}
  .stylehub-body .sh-catalog-feature:hover .sh-catalog-feature-link>img,
  .stylehub-body .sh-catalog-mini:hover .sh-catalog-mini-link .sh-catalog-mini-media img{transform:none}
  .stylehub-body .sh-catalog-cart::after{display:none}
}
@media(max-width:560px){
  .stylehub-body .sh-catalog-wish{top:8px;left:8px;width:33px;height:33px;font-size:13px}
  .stylehub-body .sh-catalog-wish--mini{width:28px;height:28px;font-size:11px;top:6px;left:6px}
  .stylehub-body .sh-catalog-cart{right:16px;bottom:18px;width:38px;height:38px;border-radius:10px}
  .stylehub-body .sh-catalog-cart--mini{right:7px;bottom:7px;width:30px;height:30px;border-radius:8px;font-size:11px}
  .stylehub-body .sh-catalog-mini-link .sh-catalog-mini-info{padding-right:40px}
  .stylehub-body .sh-pdp-size-block{margin-top:14px;padding:13px}
  .stylehub-body .sh-pdp-size-block .sh-pdp-variant{min-width:44px;height:39px;padding:0 11px}
}
