
/* ================= UI FIX PACK v1.0.1 ================= */

/* --- archive: force square product images --- */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;overflow:hidden}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail{
  aspect-ratio:1/1!important;object-fit:cover!important;width:100%!important;
  height:auto!important;background:#FFF1E4;display:block}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:.98rem;font-weight:800;line-height:1.7;padding:4px 6px 0;min-height:3.4em}
.woocommerce ul.products li.product .star-rating{margin:4px auto;color:var(--amber)}
.woocommerce .star-rating{color:var(--amber)}
.woocommerce ul.products li.product .price{font-weight:900;font-size:1.12rem;color:var(--accent-dark)}
.woocommerce ul.products li.product .price del{color:var(--muted);font-weight:400;font-size:.85rem}
.woocommerce ul.products li.product .button{
  margin:10px 14px 18px;width:calc(100% - 28px);text-align:center;border-radius:999px}

/* --- archive toolbar: count + sorting in one tidy row --- */
.pash-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 24px}
.woocommerce .woocommerce-result-count{float:none;margin:0;color:var(--muted);font-size:.9rem}
.woocommerce .woocommerce-ordering{float:none;margin:0}
.woocommerce .woocommerce-ordering select{
  border:2px solid var(--line);border-radius:999px;padding:9px 18px;
  font-family:inherit;background:#fff;color:var(--text);cursor:pointer;max-width:70vw}
.woocommerce .woocommerce-breadcrumb{margin:0 0 8px;color:var(--muted);font-size:.88rem}
.woocommerce .woocommerce-breadcrumb a{color:var(--accent-dark);font-weight:700}

/* --- pagination --- */
.woocommerce nav.woocommerce-pagination{margin-top:34px}
.woocommerce nav.woocommerce-pagination ul{border:none;display:flex;gap:8px;justify-content:center;list-style:none;margin:0;padding:0}
.woocommerce nav.woocommerce-pagination ul::before,.woocommerce nav.woocommerce-pagination ul::after{display:none}
.woocommerce nav.woocommerce-pagination ul li{border:none;float:none;margin:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{
  border:2px solid var(--line);border-radius:12px;padding:8px 15px;background:#fff;display:inline-block;min-width:44px;text-align:center}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:800}
.woocommerce nav.woocommerce-pagination ul li a:hover{border-color:var(--accent)}

/* --- single product: proper two-column layout --- */
.woocommerce div.product{display:grid;grid-template-columns:1fr 1.05fr;gap:44px;align-items:start}
.woocommerce div.product div.images{float:none!important;width:100%!important;margin:0}
.woocommerce div.product div.summary{float:none!important;width:100%!important;margin:0}
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img{border-radius:24px;box-shadow:var(--shadow)}
.woocommerce div.product .product_title{font-size:1.65rem;font-weight:900;line-height:1.6;margin-bottom:10px}
.woocommerce div.product p.price{font-size:1.5rem;color:var(--accent-dark);font-weight:900;margin-bottom:12px}
.woocommerce div.product p.price del{color:var(--muted);font-size:1rem;font-weight:400}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--text);line-height:2}
.woocommerce div.product form.cart{display:flex;gap:12px;align-items:stretch;margin:22px 0;flex-wrap:wrap}
.woocommerce div.product form.cart div.quantity{float:none;margin:0}
.woocommerce div.product form.cart .qty{
  border:2px solid var(--line);border-radius:999px;padding:10px;width:74px;
  text-align:center;font-family:inherit;font-size:1rem;height:100%}
.woocommerce div.product form.cart .button.single_add_to_cart_button{
  background:var(--green)!important;color:#fff!important;border-radius:999px!important;
  padding:12px 34px!important;font-weight:800;font-size:1.02rem;flex:1;min-width:200px;
  box-shadow:0 4px 14px rgba(63,164,106,.3)}
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover{background:var(--green-dark)!important;transform:translateY(-2px)}
.woocommerce div.product .product_meta{
  border-top:2px dashed var(--line);padding-top:14px;color:var(--muted);
  font-size:.9rem;display:flex;flex-direction:column;gap:6px}
.woocommerce div.product .product_meta a{color:var(--accent-dark);font-weight:700}
.stock.in-stock{color:var(--green);font-weight:800}
.stock.out-of-stock{color:#C0392B;font-weight:800}

/* --- single product tabs --- */
.woocommerce div.product .woocommerce-tabs{grid-column:1/-1;margin-top:6px}
.woocommerce div.product .woocommerce-tabs ul.tabs{
  padding:0;display:flex;gap:8px;list-style:none;margin:0;flex-wrap:wrap}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  border:2px solid var(--line)!important;border-bottom:none!important;background:#FFF9F3!important;
  border-radius:16px 16px 0 0!important;padding:10px 26px!important;margin:0!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{
  background:#fff!important;border-color:var(--accent)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{font-weight:800;color:var(--text)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--accent-dark)}
.woocommerce div.product .woocommerce-tabs .panel{
  background:#fff;border:2px solid var(--line);border-radius:18px;
  padding:30px;line-height:2.1;margin:0}
.woocommerce div.product .woocommerce-tabs .panel h2.woocommerce-Reviews-title{display:none}
.woocommerce div.product .woocommerce-tabs .panel h3{color:var(--accent-dark);margin:20px 0 8px;font-size:1.12rem;font-weight:800}
.woocommerce div.product .woocommerce-tabs .panel h3:first-child{margin-top:0}
.woocommerce div.product .woocommerce-tabs .panel ul{padding-inline-start:20px;margin:8px 0}
.woocommerce div.product .woocommerce-tabs .panel li{margin-bottom:6px}

/* --- related / upsells --- */
.woocommerce .related.products,.woocommerce .upsells.products{grid-column:1/-1;margin-top:26px}
.woocommerce .related.products>h2,.woocommerce .upsells.products>h2{
  text-align:center;font-size:1.45rem;font-weight:900;margin-bottom:26px}
.woocommerce .related.products>h2::before{content:"🐾 "}

/* --- notices --- */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  border-radius:16px!important;border-top:none!important;background:#fff!important;
  box-shadow:var(--shadow);border:2px solid var(--line)!important}
.woocommerce-message{border-color:var(--green)!important}

/* --- cart / checkout polish --- */
.woocommerce table.shop_table{border:2px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}
.woocommerce table.shop_table th{background:#FFF1E4;font-weight:800}
.woocommerce table.shop_table td{border-top:1px solid var(--line)}
#add_payment_method #payment,.woocommerce-cart #payment,.woocommerce-checkout #payment{
  background:#fff;border-radius:20px;border:2px solid var(--line)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{
  border:2px solid var(--line);border-radius:14px;padding:11px 15px;font-family:inherit;background:#fff}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus{
  outline:none;border-color:var(--accent)}
.woocommerce a.remove{color:#C0392B!important;font-size:1.3rem}
.woocommerce a.remove:hover{background:#C0392B!important;color:#fff!important}
.woocommerce .cart-collaterals .cart_totals{background:#fff;border:2px solid var(--line);border-radius:20px;padding:24px}

/* --- my account --- */
.woocommerce-MyAccount-navigation ul{list-style:none;display:flex;flex-direction:column;gap:6px}
.woocommerce-MyAccount-navigation ul li a{
  display:block;background:#fff;border:2px solid var(--line);border-radius:14px;padding:10px 18px;font-weight:700}
.woocommerce-MyAccount-navigation ul li.is-active a{border-color:var(--accent);color:var(--accent-dark)}

/* --- 404 --- */
.notfound{text-align:center;padding:70px 20px;max-width:640px;margin:0 auto}
.notfound .big{font-size:5.5rem;line-height:1;animation:float 4s ease-in-out infinite;display:inline-block}
.notfound h1{font-size:1.6rem;font-weight:900;margin:18px 0 8px}
.notfound p{color:var(--muted);margin-bottom:24px}
.notfound .nf-search{max-width:420px;margin:0 auto 22px;display:flex;gap:8px}
.notfound .nf-search input{flex:1;border:2px solid var(--line);border-radius:999px;padding:10px 18px;font-family:inherit}
.notfound .nf-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}

/* --- responsive: single product stacks --- */
@media(max-width:860px){
  .woocommerce div.product{grid-template-columns:1fr;gap:26px}
  .woocommerce div.product .product_title{font-size:1.35rem}
  .woocommerce div.product .woocommerce-tabs .panel{padding:20px}
  .pash-toolbar{margin-bottom:18px}
}

/* ============ SINGLE PRODUCT REDESIGN v1.0.2 ============ */
.woocommerce div.product{grid-template-columns:.92fr 1.08fr;gap:48px}
/* gallery: contained, square, polished */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
  border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:3px solid #fff}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{
  aspect-ratio:1/1!important;object-fit:cover!important;width:100%!important;height:auto!important}
.woocommerce div.product div.images .flex-control-thumbs{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0 0;padding:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li{float:none!important;width:auto!important;margin:0!important}
.woocommerce div.product div.images .flex-control-thumbs img{border-radius:14px;border:2px solid var(--line)}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active{border-color:var(--accent)}
/* summary rhythm */
.woocommerce div.product div.summary>*{margin-bottom:14px}
.woocommerce div.product .product_title{font-size:1.5rem;line-height:1.7;margin-bottom:8px}
.woocommerce div.product .woocommerce-product-rating{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.woocommerce div.product .woocommerce-product-rating .star-rating{margin:0}
/* price: highlighted box */
.woocommerce div.product p.price{
  background:#FFF1E4;border:2px dashed var(--accent);border-radius:18px;
  padding:12px 22px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.woocommerce div.product p.price::before{content:"💰"}
.woocommerce div.product p.price .woocommerce-Price-amount{font-size:1.6rem}
/* stock: pill badge */
.stock.in-stock{
  display:inline-block;background:#E7F6EC;color:var(--green-dark);
  border-radius:999px;padding:6px 18px;font-size:.88rem;font-weight:800}
.stock.in-stock::before{content:"● ";font-size:.65rem}
.stock.out-of-stock{
  display:inline-block;background:#FDECEC;color:#C0392B;
  border-radius:999px;padding:6px 18px;font-size:.88rem;font-weight:800}
/* cart row: balanced, button not stretched */
.woocommerce div.product form.cart{display:flex;align-items:center;gap:12px;margin:20px 0}
.woocommerce div.product form.cart div.quantity{float:none;margin:0}
.woocommerce div.product form.cart .qty{
  height:54px;width:76px;border:2px solid var(--line);border-radius:16px;
  text-align:center;font-family:inherit;font-size:1.05rem;font-weight:800}
.woocommerce div.product form.cart .button.single_add_to_cart_button{
  flex:1 1 auto;max-width:340px;min-width:0;padding:14px 20px!important;font-size:1.05rem}
/* trust badges */
.pash-trust{display:flex;gap:10px;flex-wrap:wrap;margin:2px 0 6px}
.pash-trust span{
  background:#fff;border:2px solid var(--line);border-radius:999px;
  padding:7px 16px;font-size:.85rem;font-weight:700;color:var(--text)}
/* meta: tidy card */
.woocommerce div.product .product_meta{
  background:#fff;border:2px solid var(--line);border-radius:16px;padding:12px 18px}
/* short description */
.woocommerce div.product .woocommerce-product-details__short-description{
  background:#FFFDF9;border-inline-start:4px solid var(--amber);
  border-radius:12px;padding:12px 18px;line-height:2}
/* tabs polish */
.woocommerce div.product .woocommerce-tabs .panel{font-size:.98rem}
.woocommerce div.product .woocommerce-tabs .panel img{border-radius:16px;max-width:100%}
.woocommerce div.product .woocommerce-tabs .panel table{width:100%}

/* ============ SINGLE PRODUCT POLISH v1.0.3 ============ */
/* force the gallery viewport to a true square */
.woocommerce div.product div.images .flex-viewport{aspect-ratio:1/1!important}
.woocommerce div.product div.images .flex-viewport .slides,
.woocommerce div.product div.images .flex-viewport .slides .woocommerce-product-gallery__image{height:100%!important}
.woocommerce div.product div.images .flex-viewport .slides img{
  height:100%!important;aspect-ratio:1/1!important;object-fit:cover!important}

/* ============ BOXED WOO LAYOUT v1.1.0 ============ */
/* breathing room so the boxed shop content doesn't stick to header/footer */
.pash-woo-wrap{padding-top:26px;padding-bottom:34px}
/* keep the single-product grid comfortable inside the box */
.woocommerce div.product{grid-template-columns:1fr 1.02fr;gap:40px}

/* ============ MOBILE SINGLE PRODUCT v1.2.0 ============ */
@media(max-width:860px){
  /* BUGFIX: force single column — later desktop grid rules would otherwise win */
  .woocommerce div.product{grid-template-columns:1fr!important;gap:22px}
  /* tidy vertical stack, natural RTL alignment */
  .woocommerce div.product div.summary{display:flex;flex-direction:column;align-items:stretch}
  .woocommerce div.product div.summary>*{margin-bottom:12px}
  .woocommerce div.product .product_title{text-align:right;font-size:1.3rem;line-height:1.8}
  .woocommerce div.product p.price{justify-content:center;text-align:center;padding:12px 16px}
  .woocommerce div.product p.price .woocommerce-Price-amount{font-size:1.4rem}
  .woocommerce div.product p.stock{margin:0 auto 12px}
  .woocommerce div.product form.cart{margin:14px 0}
  .woocommerce div.product form.cart .button.single_add_to_cart_button{max-width:none}
  .pash-trust{justify-content:center}
  .pash-trust span{font-size:.8rem;padding:6px 14px}
  .woocommerce div.product .product_meta{text-align:right;font-size:.85rem}
  .woocommerce div.product .woocommerce-product-details__short-description{font-size:.92rem}
  /* breadcrumb wraps instead of overflowing */
  .woocommerce .woocommerce-breadcrumb{font-size:.8rem;line-height:2.1}
  /* tabs stay in one swipeable row */
  .woocommerce div.product .woocommerce-tabs ul.tabs{overflow-x:auto;scrollbar-width:none}
  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar{display:none}
  .woocommerce div.product .woocommerce-tabs ul.tabs li{white-space:nowrap}
}
