/* AYATOP shop layer: shop/category/search, product page, cart, checkout, account, wishlist.
   Loaded after style.css; WooCommerce's own layout sheets are disabled (inc/woocommerce.php). */

/* ---------- shared bits ---------- */
.ay-ic--xl{width:48px;height:48px;stroke-width:1.3}
.ay-bc{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--ay-mu);margin:4px 0 14px}
.ay-bc a{color:var(--ay-mu)}.ay-bc a:hover{color:var(--ay-g)}
[dir=ltr] .ay-bcs{transform:scaleX(-1);display:inline-block}
.ay-empty{padding:44px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--ay-mu)}
.ay-empty h2{margin:6px 0 0;color:var(--ay-ink);font-size:20px}.ay-empty p{margin:0 0 14px}
.ay-grid--c4{grid-template-columns:repeat(4,1fr)}.ay-grid--c3{grid-template-columns:repeat(3,1fr)}
@media (max-width:760px){.ay-grid--c4,.ay-grid--c3{grid-template-columns:1fr 1fr}}
.ay-pag ul{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;list-style:none;margin:26px 0 0;padding:0}
.ay-pag a,.ay-pag span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--ay-ln);border-radius:10px;font-weight:600;background:var(--ay-card)}
.ay-pag a:hover{border-color:var(--ay-g);color:var(--ay-g)}
.ay-pag .current{background:var(--ay-g);border-color:var(--ay-g);color:#fff}
.ay-pag .dots{border:0;background:none}

/* buttons */
body a.button,body button.button,body input.button,body #respond input#submit,.ay-pdp .single_add_to_cart_button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 24px;border:0;border-radius:999px;background:var(--ay-g);color:#fff;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;transition:background .15s}
body a.button:hover,body button.button:hover,body input.button:hover,body #respond input#submit:hover,.ay-pdp .single_add_to_cart_button:hover{background:var(--ay-or);color:#fff}
body .button.alt,body .button.checkout-button{background:var(--ay-or)}
body .button.alt:hover,body .button.checkout-button:hover{background:var(--ay-g)}
body .button:disabled,body .button.disabled,.single_add_to_cart_button.disabled{opacity:.5;pointer-events:none}
body .button.loading{opacity:.6}

/* forms */
:is(div.woocommerce,.ay-pdp,.ay-sa) :is(input.input-text,textarea,select,input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=url]):not(.qty){width:100%;min-height:44px;padding:9px 14px;border:1px solid var(--ay-ln);border-radius:10px;background:var(--ay-bg);color:var(--ay-ink);font:inherit}
:is(div.woocommerce,.ay-pdp,.ay-sa) textarea{min-height:110px}
:is(div.woocommerce,.ay-pdp,.ay-sa) :is(input,textarea,select):focus{border-color:var(--ay-g);outline:2px solid var(--ay-gl);outline-offset:0}
div.woocommerce label,.ay-pdp label{font-weight:500;font-size:14px}
div.woocommerce .required{color:#E5484D;text-decoration:none}
.form-row{margin:0 0 14px}
.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-address-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.woocommerce-billing-fields__field-wrapper .form-row-wide,.woocommerce-shipping-fields__field-wrapper .form-row-wide,.woocommerce-address-fields__field-wrapper .form-row-wide,.woocommerce-additional-fields .form-row{grid-column:1/-1}
.woocommerce-EditAccountForm{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.woocommerce-EditAccountForm>*{grid-column:1/-1}.woocommerce-EditAccountForm>.form-row-first,.woocommerce-EditAccountForm>.form-row-last{grid-column:auto}
.woocommerce-EditAccountForm .clear,.woocommerce-checkout .clear,.woocommerce-address-fields .clear{display:none}
.select2-container{width:100%!important}
.select2-container--default .select2-selection--single{height:44px;border:1px solid var(--ay-ln);border-radius:10px;display:flex;align-items:center}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:42px;padding-inline:14px;color:var(--ay-ink)}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;inset-inline-end:8px;inset-inline-start:auto}
.select2-dropdown{border-color:var(--ay-ln);border-radius:10px;overflow:hidden}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--ay-g)}

/* notices */
.woocommerce-notices-wrapper{margin-bottom:6px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{display:flex;align-items:center;gap:12px;flex-wrap:wrap;list-style:none;margin:0 0 14px;padding:12px 16px;border:1px solid var(--ay-ln);border-inline-start:4px solid var(--ay-g);border-radius:10px;background:var(--ay-gl)}
.woocommerce-info{border-inline-start-color:#2F7FD1;background:#EEF5FC}
.woocommerce-error{border-inline-start-color:#E5484D;background:#FDEEEE;display:block}
.woocommerce-message .button,.woocommerce-info .button{order:2;margin-inline-start:auto;min-height:36px;padding:0 18px}
.woocommerce-error li{margin:2px 0}

/* star ratings */
.star-rating{display:block;position:relative;width:5.5em;height:1.1em;font-size:16px;overflow:hidden;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D9E0DD' d='M12 2l3.1 6.6 6.9.7-5.2 4.7 1.4 7-6.2-3.5L5.8 21l1.4-7L2 9.3l6.9-.7z'/%3E%3C/svg%3E") 0 50%/17.6px 17.6px repeat-x}
.star-rating span{position:absolute;inset-block:0;inset-inline-start:0;overflow:hidden;font-size:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFB400' d='M12 2l3.1 6.6 6.9.7-5.2 4.7 1.4 7-6.2-3.5L5.8 21l1.4-7L2 9.3l6.9-.7z'/%3E%3C/svg%3E") 0 50%/17.6px 17.6px repeat-x}
html[dir=rtl] .star-rating,html[dir=rtl] .star-rating span{background-position:100% 50%}
p.stars{margin:0}p.stars span{display:inline-flex;gap:2px}
p.stars a{position:relative;display:block;width:1.3em;height:1.3em;font-size:26px;text-indent:-999em;overflow:hidden}
p.stars a::before{content:"☆";position:absolute;inset:0;text-indent:0;line-height:1.3em;color:#FFB400}
p.stars:hover a::before{content:"★"}p.stars a:hover~a::before{content:"☆"}
p.stars.selected a.active::before,p.stars.selected a:not(.active)::before{content:"★"}p.stars.selected a.active~a::before{content:"☆"}

/* quantity stepper */
.quantity{display:inline-flex;align-items:center;border:1px solid var(--ay-ln);border-radius:999px;overflow:hidden;background:var(--ay-bg)}
.quantity input.qty{width:52px;min-height:42px;padding:0;border:0;border-radius:0;text-align:center;background:transparent;font:inherit;font-weight:600;-moz-appearance:textfield;appearance:textfield}
.quantity input.qty::-webkit-outer-spin-button,.quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ay-qb{width:40px;height:42px;border:0;background:transparent;color:var(--ay-g);font-size:20px;line-height:1;display:grid;place-items:center}
.ay-qb:hover{background:var(--ay-gl)}

/* ---------- shop / category / search ---------- */
.ay-sa-head{display:flex;align-items:flex-end;gap:14px;margin-bottom:14px}
.ay-sa-head>div{flex:1;min-width:0}
.ay-sa-head h1{margin:0;font-size:26px;line-height:1.3}
.ay-sa-count{margin:2px 0 0;color:var(--ay-mu);font-size:13.5px}
.ay-sa-head .woocommerce-ordering{margin:0}
.ay-sa-head .woocommerce-ordering select{min-height:42px;padding:0 14px;border:1px solid var(--ay-ln);border-radius:999px;background:var(--ay-bg);font:inherit;cursor:pointer}
.ay-fbtn{display:none;align-items:center;gap:6px;min-height:42px;padding:0 16px;border:1px solid var(--ay-ln);border-radius:999px;background:var(--ay-bg);font-weight:600}
.ay-sa-desc{padding:14px 18px;margin-bottom:14px;color:var(--ay-mu)}.ay-sa-desc>:first-child{margin-top:0}.ay-sa-desc>:last-child{margin-bottom:0}
.ay-sa{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}
.ay-sa-main{min-width:0}
.ay-sa-side{display:flex;flex-direction:column;gap:12px;position:sticky;top:150px}
.ay-fl{padding:14px 16px}
.ay-fl h2{margin:0 0 8px;font-size:15px;font-weight:700}
.ay-fl ul{list-style:none;margin:0;padding:0}
.ay-fl ul ul{margin-inline-start:12px;padding-inline-start:10px;border-inline-start:2px solid var(--ay-ln)}
.ay-fl li a{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px;font-size:14px}
.ay-fl li a:hover{background:var(--ay-gl);color:var(--ay-g)}
.ay-fl li a[aria-current]{background:var(--ay-gl);color:var(--ay-g);font-weight:600}
.ay-fl li a small{color:var(--ay-mu);font-size:12px}
.ay-pf{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.ay-pf input{min-width:0}
.ay-fl--price .ay-bt{width:100%;margin-top:0}
.ay-fl-clear{display:block;margin-top:8px;text-align:center;color:var(--ay-mu);font-size:13px}
.ay-grid--shop{grid-template-columns:repeat(4,1fr)}
@media (max-width:1100px){.ay-grid--shop{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){
  .ay-sa{grid-template-columns:1fr}
  .ay-sa-side{display:none;position:static}.ay-sa-side.is-open{display:flex}
  .ay-fbtn{display:inline-flex}
}
@media (max-width:760px){.ay-grid--shop{grid-template-columns:1fr 1fr}.ay-sa-head{flex-wrap:wrap}.ay-sa-head h1{font-size:22px}}

/* ---------- product page ---------- */
.ay-pdp-top{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:28px;align-items:start}
.ay-pdp-media{position:relative;padding:12px}
.ay-pdp-media .ay-tg{top:22px;inset-inline-start:22px;font-size:13px;padding:2px 12px;z-index:5}
.woocommerce-product-gallery{position:relative;margin:0}
.woocommerce-product-gallery__wrapper{margin:0}
.woocommerce-product-gallery__image img,.woocommerce-product-gallery__wrapper img{display:block;width:100%;height:auto;border-radius:10px}
.woocommerce-product-gallery__trigger{display:none}
.flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;list-style:none;margin:10px 0 0;padding:0}
.flex-control-thumbs li{margin:0}
.flex-control-thumbs img{display:block;width:100%;height:auto;border:2px solid transparent;border-radius:8px;opacity:.65;cursor:pointer}
.flex-control-thumbs img.flex-active,.flex-control-thumbs img:hover{opacity:1;border-color:var(--ay-g)}
.ay-pdp-info{min-width:0}
.ay-pdp .product_title{margin:0 0 8px;font-size:26px;line-height:1.35}
.ay-pdp .woocommerce-product-rating{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.ay-pdp .woocommerce-review-link{color:var(--ay-mu);font-size:13px}
.ay-pdp p.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:0 0 14px;padding:12px 16px;border-radius:12px;background:var(--ay-ph);font-size:28px;font-weight:700;line-height:1.3}
.ay-pdp p.price del{font-size:16px;font-weight:500;color:var(--ay-mu)}
.ay-pdp p.price ins{text-decoration:none;color:var(--ay-or)}
.ay-pdp .woocommerce-Price-currencySymbol{font-size:.55em;font-weight:500;color:var(--ay-mu);margin-inline-start:3px}
.ay-pdp .woocommerce-product-details__short-description{color:#3C4642;margin-bottom:16px}
.ay-pdp .woocommerce-product-details__short-description>:last-child{margin-bottom:0}
.ay-pdp form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 12px}
.ay-pdp form.cart .single_add_to_cart_button{flex:1;min-width:180px;min-height:48px;font-size:16px;background:var(--ay-or)}
.ay-pdp form.cart .single_add_to_cart_button:hover{background:var(--ay-g)}
.ay-pdp .stock{margin:0 0 10px;font-weight:600;color:var(--ay-g)}.ay-pdp .stock.out-of-stock{color:#E5484D}
.ay-hr--pdp{position:static;width:48px;height:48px;border:1px solid var(--ay-ln);box-shadow:none;background:var(--ay-bg)}
.ay-hr--pdp .ay-ic{width:22px;height:22px}
.ay-wab{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin-bottom:14px;border:1px solid #25D366;border-radius:999px;color:#128C4A;font-weight:600}
.ay-wab:hover{background:#25D366;color:#fff}
.ay-trust{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ay-trust li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--ay-ln);border-radius:12px;font-size:12px;color:var(--ay-mu)}
.ay-trust i{width:34px;height:34px;border-radius:50%;background:var(--ay-gl);color:var(--ay-g);display:grid;place-items:center;flex:none}
.ay-trust b{display:block;color:var(--ay-ink);font-size:13px}
.ay-pdp .product_meta{display:grid;gap:4px;font-size:13.5px;color:var(--ay-mu);padding-top:12px;border-top:1px solid var(--ay-ln)}
.ay-pdp .product_meta a{color:var(--ay-g)}
/* variations */
.ay-pdp table.variations{width:100%;border-collapse:collapse;margin-bottom:12px}
.ay-pdp table.variations tr{display:block;margin-bottom:10px}
.ay-pdp table.variations th,.ay-pdp table.variations td{display:block;padding:0;text-align:start}
.ay-pdp table.variations th{margin-bottom:4px;font-weight:600}
.ay-pdp .reset_variations{display:inline-block;margin-top:6px;color:var(--ay-mu);font-size:13px}
.ay-pdp form.variations_form .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%}
.ay-pdp .woocommerce-variation-price{margin-bottom:10px;font-size:22px;font-weight:700}
/* tabs */
.ay-pdp .woocommerce-tabs{margin-top:30px}
.ay-pdp .wc-tabs{display:flex;gap:6px;flex-wrap:wrap;list-style:none;margin:0 0 12px;padding:0}
.ay-pdp .wc-tabs li a{display:block;padding:8px 20px;border:1px solid var(--ay-ln);border-radius:999px;font-weight:600;color:var(--ay-mu)}
.ay-pdp .wc-tabs li.active a,.ay-pdp .wc-tabs li a:hover{background:var(--ay-g);border-color:var(--ay-g);color:#fff}
.ay-pdp .woocommerce-Tabs-panel{padding:20px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
.ay-pdp .woocommerce-Tabs-panel>h2:first-child{margin:0 0 12px;font-size:18px}
.ay-pdp .woocommerce-product-attributes{width:100%;border-collapse:collapse}
.ay-pdp .woocommerce-product-attributes th,.ay-pdp .woocommerce-product-attributes td{padding:10px 12px;border-bottom:1px solid var(--ay-ln);text-align:start}
.ay-pdp .woocommerce-product-attributes th{width:30%;color:var(--ay-mu);font-weight:600}
.ay-pdp .woocommerce-product-attributes p{margin:0}
/* reviews */
#reviews ol.commentlist{list-style:none;margin:0 0 20px;padding:0}
#reviews .commentlist li{padding:14px 0;border-bottom:1px solid var(--ay-ln)}
#reviews .comment_container{display:flex;gap:12px}
#reviews .comment_container img.avatar{width:44px;height:44px;border-radius:50%;flex:none}
#reviews .comment-text{flex:1;min-width:0}
#reviews .comment-text .star-rating{margin-bottom:4px}
#reviews .meta{margin:0 0 4px;color:var(--ay-mu);font-size:13px}#reviews .meta strong{color:var(--ay-ink)}
#reviews .comment-text .description p{margin:0}
#review_form #reply-title{display:block;margin-bottom:10px;font-size:17px;font-weight:700}
#review_form .comment-form-comment label,#review_form .comment-form-rating label{display:block;margin-bottom:4px}
#review_form .form-submit{margin:10px 0 0}
/* related / upsells */
.ay-pdp .related,.ay-pdp .upsells{margin-top:34px}
.ay-pdp .related>h2,.ay-pdp .upsells>h2{margin:0 0 14px;padding-inline-start:12px;border-inline-start:4px solid var(--ay-or);font-size:22px;line-height:1.2}
@media (max-width:900px){.ay-pdp-top{grid-template-columns:1fr}.ay-trust{grid-template-columns:1fr}.ay-pdp .product_title{font-size:22px}}

/* ---------- tables (cart, order details, account orders) ---------- */
table.shop_table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--ay-ln);border-radius:14px;overflow:hidden;background:var(--ay-card)}
table.shop_table th,table.shop_table td{padding:12px 14px;text-align:start;border-bottom:1px solid var(--ay-ln);vertical-align:middle}
table.shop_table thead th{background:var(--ay-ph);font-weight:600;font-size:13.5px}
table.shop_table tr:last-child>*{border-bottom:0}
table.shop_table .product-thumbnail img{width:68px;height:68px;object-fit:cover;border-radius:10px;display:block}
table.shop_table td.product-name a{font-weight:600}table.shop_table td.product-name a:hover{color:var(--ay-g)}
table.shop_table dl.variation{margin:4px 0 0;font-size:12.5px;color:var(--ay-mu)}table.shop_table dl.variation dt,table.shop_table dl.variation dd{display:inline;margin:0}table.shop_table dl.variation p{display:inline;margin:0}
table.shop_table a.remove{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--ay-ln);border-radius:50%;color:#E5484D;font-size:18px;line-height:1}
table.shop_table a.remove:hover{background:#E5484D;border-color:#E5484D;color:#fff}
table.shop_table td.actions{background:var(--ay-ph)}
table.shop_table .coupon{display:flex;gap:8px;float:inline-start}
table.shop_table .coupon input.input-text{width:170px!important}
table.shop_table td.actions>.button{float:inline-end}
table.shop_table td.actions::after{content:"";display:block;clear:both}
table.shop_table .order-total th,table.shop_table .order-total td{font-size:17px;font-weight:700}
table.shop_table .woocommerce-Price-currencySymbol{font-size:.8em;color:var(--ay-mu)}
@media (max-width:760px){
  .shop_table_responsive thead{display:none}
  .shop_table_responsive,.shop_table_responsive tbody,.shop_table_responsive tr,.shop_table_responsive td{display:block;width:100%}
  table.shop_table_responsive{border:0;background:none;border-radius:0}
  .shop_table_responsive tr{border:1px solid var(--ay-ln);border-radius:12px;margin-bottom:12px;padding:4px 12px;background:var(--ay-card)}
  .shop_table_responsive td{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0!important;padding:8px 0!important;text-align:end!important}
  .shop_table_responsive td::before{content:attr(data-title);font-weight:600;text-align:start;color:var(--ay-mu)}
  .shop_table_responsive td.product-remove::before,.shop_table_responsive td.product-thumbnail::before,.shop_table_responsive td.actions::before{content:none}
  .shop_table_responsive td.actions{display:block}
  table.shop_table .coupon{float:none;margin-bottom:10px}table.shop_table .coupon input.input-text{width:100%!important}
  table.shop_table td.actions>.button{float:none;width:100%}
}

/* ---------- cart (classic shortcode) ---------- */
body.woocommerce-cart div.woocommerce{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
body.woocommerce-cart div.woocommerce>.woocommerce-notices-wrapper,body.woocommerce-cart div.woocommerce>.cart-empty,body.woocommerce-cart div.woocommerce>.return-to-shop,body.woocommerce-cart div.woocommerce>.woocommerce-info{grid-column:1/-1}
.cart-collaterals{min-width:0}
.cart_totals{padding:16px 18px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
.cart_totals h2{margin:0 0 10px;font-size:18px}
.cart_totals table.shop_table{border:0;border-radius:0}
.wc-proceed-to-checkout .checkout-button{display:flex;width:100%;min-height:50px;font-size:16px}
.cart-empty{padding:40px 20px;text-align:center;border:1px dashed var(--ay-ln);border-radius:14px;color:var(--ay-mu);font-size:17px}
.return-to-shop{text-align:center}
.cross-sells{margin-top:20px}.cross-sells>h2{font-size:18px}
@media (max-width:900px){body.woocommerce-cart div.woocommerce{grid-template-columns:1fr}}

/* ---------- checkout (classic shortcode) ---------- */
form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:0 24px;align-items:start}
form.woocommerce-checkout>.woocommerce-NoticeGroup{grid-column:1/-1}
form.woocommerce-checkout #customer_details{grid-column:1;grid-row:1/3}
form.woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;margin:0 0 10px}
form.woocommerce-checkout #order_review{grid-column:2;grid-row:2;position:sticky;top:150px}
#customer_details .col-1,#customer_details .col-2{padding:16px 18px;margin-bottom:14px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card);float:none;width:auto}
#customer_details h3,#order_review_heading{margin:0 0 12px;font-size:18px}
.woocommerce-checkout-review-order-table{margin-bottom:14px}
#payment{border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card);padding:6px 16px 16px}
#payment ul.payment_methods{list-style:none;margin:0;padding:0}
#payment ul.payment_methods>li{padding:12px 0;border-bottom:1px solid var(--ay-ln)}
#payment ul.payment_methods>li:last-child{border-bottom:0}
#payment ul.payment_methods label{display:inline;font-weight:600;margin-inline-start:6px}
#payment .payment_box{margin-top:8px;padding:10px 14px;border-radius:10px;background:var(--ay-ph);color:var(--ay-mu);font-size:13.5px}
#payment .payment_box p{margin:0}
#place_order{display:flex;width:100%;min-height:52px;font-size:17px;background:var(--ay-or)!important}
#place_order:hover{background:var(--ay-g)!important}
.woocommerce-terms-and-conditions-wrapper{margin:10px 0;font-size:13px;color:var(--ay-mu)}
.woocommerce-form-coupon-toggle .woocommerce-info,.woocommerce-form-login-toggle .woocommerce-info{margin-bottom:12px}
form.checkout_coupon,form.woocommerce-form-login{padding:16px;border:1px solid var(--ay-ln);border-radius:14px;margin-bottom:14px;background:var(--ay-card)}
@media (max-width:900px){
  form.woocommerce-checkout{grid-template-columns:1fr;grid-template-rows:none}
  form.woocommerce-checkout #customer_details,form.woocommerce-checkout #order_review_heading,form.woocommerce-checkout #order_review{grid-column:1;grid-row:auto;position:static}
  .woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-address-fields__field-wrapper,.woocommerce-EditAccountForm{grid-template-columns:1fr}
  .woocommerce-EditAccountForm>.form-row-first,.woocommerce-EditAccountForm>.form-row-last{grid-column:1/-1}
}

/* ---------- WooCommerce Cart / Checkout blocks ---------- */
:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button:not(.is-link){border-radius:999px;background:var(--ay-g);color:#fff;font-family:inherit;font-weight:600;min-height:46px}
:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button:not(.is-link):hover{background:var(--ay-or);color:#fff}
:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button){background:var(--ay-or);min-height:52px;font-size:16px}
:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button):hover{background:var(--ay-g)}
:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout){font-family:var(--ay-f)}
:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-sidebar,:is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-checkout__sidebar{align-self:flex-start}
.wc-block-cart__sidebar>*,.wc-block-checkout__sidebar .wc-block-components-order-summary,.wc-block-checkout__sidebar .wc-block-components-totals-wrapper{border-color:var(--ay-ln)}
.wc-block-cart-items{border-collapse:separate}
.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img{border-radius:10px}
.wc-block-components-product-name{font-weight:600;color:var(--ay-ink)}.wc-block-components-product-name:hover{color:var(--ay-g)}
.wc-block-components-quantity-selector{border-radius:999px;border-color:var(--ay-ln)}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{color:var(--ay-g)}
.wc-block-components-checkout-step__title,.wc-block-components-title.wc-block-components-title{font-weight:700}
.wc-block-components-text-input input,.wc-block-components-combobox .components-combobox-control input,.wc-block-components-textarea{border-radius:10px!important;border-color:var(--ay-ln)!important}
.wc-block-components-text-input input:focus,.wc-block-components-textarea:focus{border-color:var(--ay-g)!important;box-shadow:0 0 0 2px var(--ay-gl)!important}
.wc-block-components-radio-control__option-checked,.wc-block-components-radio-control-accordion-option--checked-option-highlighted{border-radius:10px}
.wc-block-components-notice-banner.is-success{border-color:var(--ay-g);background:var(--ay-gl)}
.wc-block-components-notice-banner.is-success>svg{background:var(--ay-g)}

/* ---------- order received (thank you) ---------- */
.woocommerce-order .woocommerce-thankyou-order-received{padding:14px 18px;border-radius:12px;background:var(--ay-gl);color:var(--ay-gd);font-weight:600;font-size:17px}
ul.order_details{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0;list-style:none;margin:16px 0;padding:0;border:1px solid var(--ay-ln);border-radius:14px;overflow:hidden;background:var(--ay-card)}
ul.order_details li{padding:14px 16px;border-inline-start:1px solid var(--ay-ln);font-size:13px;color:var(--ay-mu)}
ul.order_details li:first-child{border:0}
ul.order_details li strong{display:block;margin-top:2px;color:var(--ay-ink);font-size:15px}
.woocommerce-order-details h2,.woocommerce-customer-details h2,.woocommerce-column__title{font-size:18px;margin:22px 0 10px}
.woocommerce-customer-details address{padding:14px 16px;border:1px solid var(--ay-ln);border-radius:12px;font-style:normal;background:var(--ay-card)}
.woocommerce-columns--addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:760px){.woocommerce-columns--addresses{grid-template-columns:1fr}ul.order_details li{border-inline-start:0;border-top:1px solid var(--ay-ln)}ul.order_details li:first-child{border-top:0}}

/* ---------- my account ---------- */
body.woocommerce-account.logged-in div.woocommerce{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}
body.woocommerce-account div.woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-MyAccount-navigation{padding:8px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.woocommerce-MyAccount-navigation li a{display:block;padding:10px 14px;border-radius:8px;font-weight:500}
.woocommerce-MyAccount-navigation li a:hover{background:var(--ay-gl);color:var(--ay-g)}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--ay-gl);color:var(--ay-g);font-weight:700}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{color:#E5484D}
.woocommerce-MyAccount-content{min-width:0;padding:20px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
.woocommerce-MyAccount-content>:first-child{margin-top:0}
.woocommerce-MyAccount-content h2,.woocommerce-MyAccount-content h3{font-size:18px}
.woocommerce-MyAccount-content table.shop_table{border-radius:12px}
.woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.woocommerce-Address{padding:14px 16px;border:1px solid var(--ay-ln);border-radius:12px}
.woocommerce-Address-title{display:flex;justify-content:space-between;align-items:center;gap:10px}
.woocommerce-Address-title h2,.woocommerce-Address-title h3{margin:0;font-size:16px}
.woocommerce-Address-title a.edit{color:var(--ay-g);font-weight:600;font-size:13px}
.woocommerce-Address address{margin-top:8px;font-style:normal;color:var(--ay-mu)}
.woocommerce-orders-table .button,.woocommerce-MyAccount-content td .button{min-height:34px;padding:0 16px;font-size:13px}
/* login / register */
.u-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.u-columns .u-column1,.u-columns .u-column2{padding:20px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
.u-columns h2,body.woocommerce-account:not(.logged-in) div.woocommerce>h2{margin:0 0 14px;font-size:20px}
body.woocommerce-account:not(.logged-in) div.woocommerce>form.login,body.woocommerce-account:not(.logged-in) div.woocommerce>form.lost_reset_password{max-width:480px;margin-inline:auto;padding:20px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
form.woocommerce-form-login,form.woocommerce-form-register{margin:0}
.woocommerce-form-login .woocommerce-form-login__rememberme{display:flex;align-items:center;gap:6px;margin:6px 0 12px}
.woocommerce-form-login .woocommerce-form-login__submit{width:100%}
.lost_password{margin:12px 0 0;font-size:13.5px}.lost_password a{color:var(--ay-g)}
.woocommerce-privacy-policy-text{font-size:12.5px;color:var(--ay-mu)}
/* order tracking */
form.track_order{max-width:560px;padding:20px;border:1px solid var(--ay-ln);border-radius:14px;background:var(--ay-card)}
form.track_order .form-row-first,form.track_order .form-row-last{float:none;width:auto}
@media (max-width:900px){body.woocommerce-account.logged-in div.woocommerce{grid-template-columns:1fr}.u-columns,.woocommerce-Addresses{grid-template-columns:1fr}}

/* ---------- wishlist page ---------- */
.ay-wl-load{color:var(--ay-mu);text-align:center;padding:30px 0}
.ay-wl-load[hidden],[data-ay-wl-grid][hidden],[data-ay-wl-empty][hidden]{display:none}
.ay-wl .ay-grid--shop{grid-template-columns:repeat(5,1fr)}
@media (max-width:1100px){.ay-wl .ay-grid--shop{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.ay-wl .ay-grid--shop{grid-template-columns:1fr 1fr}}


/* ---------- product page: Amazon-style 3 columns (overrides the 2-column block above) ---------- */
.ay-pdp-top{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 300px;gap:24px}
.ay-pdp-media{padding:14px}
.ay-pdp-media .ay-tg{display:none}
.woocommerce-product-gallery{display:flex;flex-direction:row-reverse;gap:12px;align-items:flex-start}
.woocommerce-product-gallery .flex-viewport{flex:1;min-width:0}
.woocommerce-product-gallery>.woocommerce-product-gallery__wrapper{flex:1;min-width:0}
.flex-control-thumbs{grid-template-columns:1fr;width:62px;flex:none;margin:0;gap:8px;align-content:start}
.ay-pdp .product_title{font-size:24px;font-weight:600}
.ay-pdp-pricebox{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:6px 0 4px;padding:10px 0;border-top:1px solid var(--ay-ln)}
.ay-pdp-off{color:#E5484D;font-size:26px;font-weight:300}
.ay-pdp-pricebox p.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0;padding:0;background:none;font-size:32px;font-weight:600;color:var(--ay-ink)}
.ay-pdp-pricebox p.price ins{color:var(--ay-ink)}
.ay-pdp-pricebox p.price del{order:2;font-size:15px;color:var(--ay-mu)}
.ay-pdp-about,.ay-pdp-specs{padding-top:12px;border-top:1px solid var(--ay-ln);margin-top:8px}
.ay-pdp-about h2,.ay-pdp-specs h2{margin:0 0 8px;font-size:18px}
.ay-pdp-about ul{margin:0;padding-inline-start:20px;color:#2E3834}.ay-pdp-about li{margin-bottom:6px}
.ay-pdp-about p{margin:0 0 8px}
.ay-pdp-specs .woocommerce-product-attributes th{width:36%;background:none;padding:6px 8px;font-weight:700;color:var(--ay-ink);border:0}
.ay-pdp-specs .woocommerce-product-attributes td{padding:6px 8px;border:0}
.ay-pdp-info .product_meta{margin-top:14px}
/* buy box */
.ay-buybox{padding:16px;display:flex;flex-direction:column;gap:12px;align-self:start}
.ay-buybox .stock{margin:0;font-size:18px}
.ay-buybox form.cart{margin:0}
.ay-buybox form.cart:not(.variations_form),.ay-buybox .woocommerce-variation-add-to-cart{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;width:100%}
.ay-buybox .quantity{grid-column:1;grid-row:1;justify-self:start;order:0}
.ay-buybox .ay-hr--pdp{grid-column:2;grid-row:1}
.ay-buybox .single_add_to_cart_button,.ay-buybox .ay-buynow{grid-column:1/-1;width:100%;min-width:0;flex:none}
.ay-buybox .single_add_to_cart_button{background:var(--ay-g);min-height:46px;font-size:15px}
.ay-buybox .single_add_to_cart_button:hover{background:var(--ay-or)}
.ay-buynow{display:flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:999px;background:var(--ay-or);color:#fff;font:inherit;font-weight:600;font-size:15px;cursor:pointer}
.ay-buynow:hover{background:var(--ay-g)}
.ay-buybox .ay-wab{margin:0}
.ay-buybox .ay-trust{grid-template-columns:1fr;gap:8px;margin:0}
.ay-buybox .ay-trust li{padding:8px 10px;border-radius:10px}
.ay-buybox .ay-trust i{width:30px;height:30px}
.ay-pdp form.variations_form{display:block}
@media (max-width:1100px){
  .ay-pdp-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ay-buybox{grid-column:1/-1}
}
@media (max-width:900px){
  .ay-pdp-top{display:flex;flex-direction:column;gap:0}
  .ay-pdp-info{display:contents}
  .ay-pdp-media{order:0;margin-bottom:14px}
  .ay-pdp-info .product_title{order:1}.ay-pdp-info .woocommerce-product-rating{order:2}.ay-pdp-pricebox{order:3}
  .ay-buybox{order:4;margin:6px 0 14px}
  .ay-pdp-about{order:5}.ay-pdp-specs{order:6}.ay-pdp-info .product_meta{order:7}
  .woocommerce-product-gallery{flex-direction:column}
  .flex-control-thumbs{grid-template-columns:repeat(5,1fr);width:100%}
}
.ay-pdp .ay-buybox form.cart .single_add_to_cart_button{background:var(--ay-g)}
.ay-pdp .ay-buybox form.cart .single_add_to_cart_button:hover{background:var(--ay-or)}

/* WooCommerce hides the gallery (opacity:0) until its script runs; never leave the photo invisible */
.woocommerce-product-gallery{opacity:1!important}

/* ---------- checkout header + block checkout polish ---------- */
.ay-ckh{background:var(--ay-g);color:#fff;border-bottom:3px solid var(--ay-gold)}
.ay-ckh-in{display:flex;align-items:center;gap:18px;min-height:68px}
.ay-ckh .ay-logo--img{flex:none}
/* the logo has direction:ltr, so the spacer lives on the label (inline-start = right side in Arabic) */
.ay-ckh-sec{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;color:#fff;font-weight:600;font-size:14px}
.ay-ckh-sec .ay-ic{width:18px;height:18px;color:var(--ay-gold)}
.ay-ckh-back{color:rgba(255,255,255,.85);font-size:14px}.ay-ckh-back:hover{color:var(--ay-gold-l);text-decoration:underline;text-underline-offset:3px}
@media (max-width:760px){.ay-ckh-back{display:none}}
/* shipping / payment option boxes: soft grey border, green when selected (WooCommerce draws them with box-shadow + currentColor) */
.wc-block-components-radio-control .wc-block-components-radio-control__option,.wc-block-components-radio-control-accordion-option{border-radius:10px;box-shadow:inset 0 0 0 1px var(--ay-ln)}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked,.wc-block-components-radio-control-accordion-option--checked-option-highlighted{box-shadow:inset 0 0 0 2px var(--ay-g)!important;border-radius:10px}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked{border-color:var(--ay-g)}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before{background:var(--ay-g)}
.wc-block-components-payment-method-label,.wc-block-components-radio-control__label{font-weight:600}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link),.wp-block-woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button:not(.is-link){background:var(--ay-or)}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link):hover,.wp-block-woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button:not(.is-link):hover{background:var(--ay-g)}
/* country / state selects in the block checkout */
.wc-blocks-components-select .wc-blocks-components-select__container{border-radius:10px}
.wc-blocks-components-select .wc-blocks-components-select__select{border:1px solid var(--ay-ln)!important;border-radius:10px!important;box-shadow:none!important;font-family:inherit}
.wc-blocks-components-select .wc-blocks-components-select__select:focus{border-color:var(--ay-g)!important;box-shadow:0 0 0 2px var(--ay-gl)!important;outline:0}

/* v1.0.0 fixes */
/* my-account login: the column is already the box, so the form inside must not draw a second one */
.u-columns form.woocommerce-form-login{padding:0;border:0;background:none;margin:0}
/* product gallery on phones: image takes the full width (flex column + flex-start shrank it) */
@media (max-width:900px){.woocommerce-product-gallery{align-items:stretch}.woocommerce-product-gallery__wrapper{width:100%}}

/* Cart + checkout: soft grey page, white cards (works for the classic and the block versions) */
body.woocommerce-cart,body.woocommerce-checkout{background:#F5F7F6}
.wp-block-woocommerce-checkout .wc-block-components-main,.wp-block-woocommerce-cart .wc-block-components-main{background:#fff;border:1px solid var(--ay-ln);border-radius:16px;padding:22px!important;box-sizing:border-box}
.wp-block-woocommerce-checkout .wc-block-components-sidebar,.wp-block-woocommerce-cart .wc-block-components-sidebar{background:#fff;border:1px solid var(--ay-ln);border-radius:16px;padding:18px!important;box-sizing:border-box}
.wc-block-components-sidebar-layout{gap:22px}
@media (max-width:760px){
  .wp-block-woocommerce-checkout .wc-block-components-main,.wp-block-woocommerce-cart .wc-block-components-main{padding:14px!important}
}

/* footer: link columns share the width, whatever number of them exist */
@media (min-width:1101px){.ay-ft>.ay-w:first-child{grid-template-columns:1.4fr repeat(var(--ay-fc,4),1fr)}}
/* checkout summary: no long descriptions under every product */
.wc-block-components-order-summary .wc-block-components-product-metadata__description{display:none}
/* checkout sidebar: the sidebar is already a card, so no second box around the summary */
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block{border:0!important;border-radius:0;padding:0;background:transparent}
