/* Al-Hidayah — WooCommerce styles: Shopify-style checkout, order confirmation, cart, account, notices. */

/* ---------------------------------------------------------------- shared form controls */
.ah-co .form-row,.woocommerce-form-row,.woocommerce form .form-row{margin:0;padding:0;display:flex;flex-direction:column;gap:6px;position:relative}
.ah-co .form-row label:not(.checkbox){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ah-co .input-text,.ah-co select,.woocommerce-page .ah-page .input-text,.woocommerce-page .ah-page select,.woocommerce-page .ah-page textarea{font:inherit;font-size:14px;color:var(--ink);width:100%;min-height:48px;border:1px solid #d9d8d4;border-radius:9px;padding:13px 14px;background:#fff;outline:none;transition:border-color .2s,box-shadow .2s;appearance:none;-webkit-appearance:none}
.ah-co select,.woocommerce-page .ah-page select{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23151513' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 15px center;padding-right:38px}
.ah-co textarea.input-text{min-height:96px;resize:vertical}
.ah-co .input-text:focus,.ah-co select:focus,.woocommerce-page .ah-page .input-text:focus,.woocommerce-page .ah-page select:focus{border-color:#151513;box-shadow:0 0 0 1px #151513}
.ah-co .woocommerce-invalid .input-text,.ah-co .woocommerce-invalid select{border-color:#c0392b;box-shadow:0 0 0 1px #c0392b}
.ah-co .required,.ah-co .optional{display:none}
.ah-co .checkbox,.woocommerce-form__label-for-checkbox{display:flex!important;align-items:center;gap:10px;font-size:13px;cursor:pointer;position:static!important;width:auto!important;height:auto!important;clip:auto!important}
.ah-co input[type=checkbox],.ah-co input[type=radio]{accent-color:#151513;width:17px;height:17px;margin:0;flex-shrink:0}

/* notices */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-error,.woocommerce-message,.woocommerce-info,.woocommerce-NoticeGroup .woocommerce-error{list-style:none;margin:0 0 18px;padding:14px 16px;border-radius:10px;font-size:13px;line-height:1.6;background:#f5f2ec;color:#3d3528;display:flex;flex-direction:column;gap:6px}
.woocommerce-error{background:#fbecea;color:#8c2518}
.woocommerce-error li{list-style:none}
.woocommerce-message,.woocommerce-info{flex-direction:row;justify-content:space-between;align-items:center;gap:16px}
.woocommerce-message .button,.woocommerce-info .button{order:2;min-height:36px;padding:9px 16px;font-size:11px;background:#151513;color:#fff}
.woocommerce-NoticeGroup{margin-bottom:6px}
.product-hero>.woocommerce-notices-wrapper{margin-bottom:20px}

/* ---------------------------------------------------------------- checkout layout */
body.ah-checkout{background:#fff}
.ah-co-header{border-bottom:1px solid #e6e5e1;background:#fff}
.ah-co-header-inner{max-width:1180px;margin:auto;height:76px;padding:0 28px;display:flex;align-items:center;justify-content:space-between}
.ah-co-header .logo-word{font-size:16px}
.ah-co-bag{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#151513;transition:background .2s}
.ah-co-bag:hover{background:#f3f1ec}
.ah-co-footer{display:none}
.ah-checkout .site-main{display:block}
.ah-co-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);min-height:calc(100vh - 77px)}
.ah-co-main{width:100%;max-width:640px;margin-left:auto;padding:38px 56px 56px 28px}
.ah-co-summary{background:#f5f5f3;border-left:1px solid #e6e5e1}
.ah-co-summary-inner{position:sticky;top:0;max-width:500px;padding:38px 28px 56px 44px}
.admin-bar .ah-co-summary-inner{top:32px}
.ah-summary-toggle{display:none}
.ah-co-section+.ah-co-section{margin-top:34px}
.ah-co-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}
.ah-co-head h2{font-size:20px;font-weight:500;letter-spacing:-.5px}
.ah-co-head a{font-size:13px;color:#a66926;text-decoration:underline;text-underline-offset:3px}
.ah-co-sub{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#76756f;margin:-6px 0 14px}
.ah-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ah-fields>.form-row-wide,.ah-fields>p:not(.form-row-first):not(.form-row-last),.ah-fields>.create-account,.ah-fields>div{grid-column:1/-1}
.ah-fields .form-row-first{grid-column:1}
.ah-fields .form-row-last{grid-column:2}
.ah-fields .form-row.hidden,.ah-fields .form-row[style*="display: none"]{display:none!important}
.woocommerce-account-fields{margin-top:14px}

/* shipping options */
.ah-options{list-style:none;margin:0;padding:0;border:1px solid #d9d8d4;border-radius:10px;overflow:hidden}
.ah-options li+li{border-top:1px solid #d9d8d4}
.ah-option{display:flex;align-items:center;gap:12px;padding:16px;font-size:14px;cursor:pointer;transition:background .2s}
.ah-option.is-checked,.ah-option:has(input:checked){background:#f7f4ee;box-shadow:inset 0 0 0 1px #151513}
.ah-options li:first-child .ah-option{border-radius:10px 10px 0 0}
.ah-options li:last-child .ah-option{border-radius:0 0 10px 10px}
.ah-options li:only-child .ah-option{border-radius:10px}
.ah-option-label{flex:1}
.ah-option-price{font-weight:500}
.ah-muted-box{background:#f5f5f3;border-radius:10px;padding:16px;font-size:13px;color:#76756f}

/* order note */
.ah-co-notes details{border:1px solid #e6e5e1;border-radius:10px;padding:0 16px}
.ah-co-notes summary{list-style:none;cursor:pointer;padding:15px 0;font-size:13.5px;display:flex;justify-content:space-between}
.ah-co-notes summary::-webkit-details-marker{display:none}
.ah-co-notes summary::after{content:'+';font-size:18px;line-height:1}
.ah-co-notes details[open] summary::after{content:'−'}
.ah-co-notes .ah-fields{padding-bottom:16px}

/* payment */
.ah-co #payment{background:none;border-radius:0}
.ah-co .wc_payment_methods{list-style:none;margin:0;padding:0;border:1px solid #d9d8d4;border-radius:10px;overflow:hidden}
.ah-co .wc_payment_method+.wc_payment_method{border-top:1px solid #d9d8d4}
.ah-co .wc_payment_method>label{display:flex;align-items:center;gap:10px;padding:16px 16px 16px 44px;margin-left:-44px;font-size:14px;cursor:pointer;width:calc(100% + 44px)}
.ah-co .wc_payment_method{position:relative;padding-left:44px}
.ah-co .wc_payment_method>input{position:absolute;left:16px;top:18px}
.ah-co .wc_payment_method:has(>input:checked)>label{background:#f7f4ee}
.ah-co .wc_payment_methods:has(.wc_payment_method+.wc_payment_method) .wc_payment_method:has(>input:checked)::after{content:'';position:absolute;inset:0;border:1px solid #151513;pointer-events:none}
.ah-co .wc_payment_method:first-child::after{border-radius:9px 9px 0 0}
.ah-co .wc_payment_method:last-child::after{border-radius:0 0 9px 9px}
/* a single gateway needs no radio: drop the space reserved for it */
.ah-co .wc_payment_method:only-child{padding-left:0}
.ah-co .wc_payment_method:only-child>label,.ah-co .wc_payment_method:only-child>.payment_box{margin-left:0;width:100%;padding-left:18px}
.ah-co .wc_payment_method img{max-height:22px;width:auto;margin-left:auto}
.ah-co .payment_box{margin:0 0 0 -44px;padding:16px 18px;background:#f5f5f3;border-top:1px solid #e6e5e1;font-size:13px;line-height:1.7;color:#55544f}
.ah-co .payment_box p{margin:0}
.ah-co .payment_box fieldset{margin:10px 0 0}
.ah-co .woocommerce-privacy-policy-text{font-size:11.5px;line-height:1.7;color:#8b8a84;margin:18px 0 0}
.ah-co .woocommerce-privacy-policy-text a{color:inherit;text-decoration:underline}
.ah-co #payment .place-order{margin:22px 0 0;display:block!important}
.ah-co .ah-pay,.ah-co #place_order{width:100%;min-height:56px;border-radius:12px;font-size:15px;justify-content:center;background:#151513;color:#fff;border:0}
.ah-co .ah-pay:hover,.ah-co #place_order:hover{background:#3b3227}
.ah-co-policies{display:flex;flex-wrap:wrap;gap:6px 18px;border-top:1px solid #e6e5e1;margin-top:40px;padding-top:18px}
.ah-co-policies a{font-size:12px;color:#a66926;text-decoration:underline;text-underline-offset:3px}

/* summary */
.ah-review-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.ah-review-items li{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center}
.ah-thumb{position:relative;width:64px;height:64px;border-radius:10px;border:1px solid #e1e0dc;background:#fff}
.ah-thumb .bottle{border-radius:9px;height:100%}
.ah-thumb-qty{position:absolute;top:-8px;right:-8px;min-width:21px;height:21px;border-radius:12px;background:#6f6e69;color:#fff;font-size:11px;font-weight:600;display:grid;place-items:center;padding:0 6px;z-index:2}
.ah-item-name{display:flex;flex-direction:column;gap:3px;font-size:14px}
.ah-item-name strong{font-weight:500}
.ah-item-name small{font-size:12px;color:#76756f}
.ah-item-price{font-size:14px;white-space:nowrap}
.ah-coupon{display:grid;grid-template-columns:1fr auto;gap:10px;margin:24px 0 4px}
.ah-coupon .button{min-height:48px;border-radius:9px;padding:0 20px;background:#e9e8e4;color:#55544f;border:1px solid #e9e8e4;font-size:13px}
.ah-coupon .button:hover{background:#dedcd6}
.ah-coupon.is-loading{opacity:.6;pointer-events:none}
.ah-coupon-message{grid-column:1/-1;font-size:12.5px;color:#3d6b3a;margin:0}
.ah-coupon-message.is-error{color:#b3321f}
.ah-totals{margin:20px 0 0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.ah-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.ah-totals dt{color:#3d3c38}
.ah-totals dd{margin:0;text-align:right}
.ah-totals .ah-total{margin-top:8px;font-size:19px;font-weight:600}
.ah-totals .ah-total dd small{font-size:12px;font-weight:400;color:#76756f;margin-right:4px}
.ah-totals .ah-total .includes_tax{display:block;font-size:11px;font-weight:400;color:#8b8a84}
.ah-code{display:inline-flex;align-items:center;gap:5px;background:#e9e8e4;border-radius:6px;padding:3px 8px;font-size:11px;margin-left:6px;color:#55544f}
.ah-code a{color:inherit;font-size:14px;line-height:1}
.blockUI.blockOverlay{background:rgba(255,255,255,.6)!important;opacity:1!important}

/* thank you */
.ah-ty-head{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.ah-ty-order{font-size:13px;color:#76756f}
.ah-ty-title{font-size:28px;font-weight:500;letter-spacing:-1px;line-height:1.15}
.ah-co-box{border:1px solid #e1e0dc;border-radius:12px;padding:20px 22px}
.ah-co-box+.ah-co-box,.ah-co-box+section,section+.ah-co-box{margin-top:16px}
.ah-co-box h2{font-size:17px;font-weight:500;letter-spacing:-.3px;margin-bottom:8px}
.ah-co-box p{font-size:13.5px;line-height:1.7;color:#55544f}
.ah-ty-details dl{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:16px 0 0}
.ah-ty-details dt{font-size:12.5px;font-weight:500;margin-bottom:6px}
.ah-ty-details dd{margin:0;font-size:13px;line-height:1.7;color:#55544f}
.ah-ty-note>:first-child{margin-top:0}
.ah-ty-note>:last-child{margin-bottom:0}
.ah-totals .ah-row-discount dd{color:#a66926}
.ah-ty-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;font-size:13px}
.ah-ty-actions a:not(.button){color:#a66926;text-decoration:underline}
.woocommerce-bacs-bank-details,.wc-bacs-bank-details{margin-top:16px;font-size:13px}
.wc-bacs-bank-details-heading,.wc-bacs-bank-details-account-name{font-size:16px;font-weight:500;margin:16px 0 8px}
.wc-bacs-bank-details{list-style:none;padding:0}

/* ---------------------------------------------------------------- cart page */
.woocommerce-cart .ah-page-inner,.woocommerce-account .ah-page-inner{max-width:1100px}
.woocommerce-cart-form table.shop_table{width:100%;border-collapse:collapse;font-size:14px}
.woocommerce-cart-form th{font-size:11px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;text-align:left;color:#76756f;padding:0 10px 12px;border-bottom:1px solid #e6e5e1}
.woocommerce-cart-form td{padding:18px 10px;border-bottom:1px solid #e6e5e1;vertical-align:middle}
.woocommerce-cart-form .product-thumbnail img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:#f3efe9}
.woocommerce-cart-form .product-remove a{font-size:20px;color:#8a8172}
.woocommerce-cart-form .product-name a{font-weight:500}
.woocommerce-cart-form .quantity .qty{width:72px;min-height:40px;border:1px solid #d9d8d4;border-radius:8px;padding:8px;text-align:center;font:inherit}
.woocommerce-cart-form .actions{padding-top:22px}
.woocommerce-cart-form .coupon{display:inline-flex;gap:8px}
.woocommerce-cart-form .coupon label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.woocommerce-cart-form .coupon .input-text{min-height:44px;width:200px}
.woocommerce-cart-form .button,.cart_totals .button,.woocommerce-account .ah-page .button,.woocommerce-form .button,.return-to-shop .button,.track_order .button{background:#151513;color:#fff;border:0;border-radius:28px;min-height:44px;padding:12px 22px;font:inherit;font-size:12px;font-weight:500;cursor:pointer}
.woocommerce-cart-form .button[name=update_cart]{background:#f3f1ec;color:#151513;float:right}
.woocommerce-cart-form .button:disabled{opacity:.4}
.cart-collaterals{display:flex;justify-content:flex-end;margin-top:34px}
.cart_totals{width:min(420px,100%);background:#f5f5f3;border-radius:14px;padding:24px}
.cart_totals h2{font-size:20px;font-weight:500;margin-bottom:12px}
.cart_totals table{width:100%;font-size:14px;border-collapse:collapse}
.cart_totals th,.cart_totals td{padding:10px 0;text-align:left;border-bottom:1px solid #e6e5e1}
.cart_totals td{text-align:right}
.cart_totals .order-total{font-size:17px;font-weight:600}
.wc-proceed-to-checkout{margin-top:18px}
.wc-proceed-to-checkout .button{width:100%;display:flex;justify-content:center;min-height:52px;font-size:14px}
.woocommerce-shipping-calculator,.shipping-calculator-button{font-size:12px}
.cart-empty.woocommerce-info{font-size:15px}

/* ---------------------------------------------------------------- my account & forms */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:220px 1fr;gap:40px;align-items:start}
.woocommerce-account:not(.logged-in) .woocommerce{display:block}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.woocommerce-MyAccount-navigation a{display:block;padding:11px 14px;border-radius:10px;font-size:13.5px}
.woocommerce-MyAccount-navigation .is-active a,.woocommerce-MyAccount-navigation a:hover{background:#f3f1ec}
.woocommerce-MyAccount-content{font-size:14px;line-height:1.75;color:#55544f}
.woocommerce-MyAccount-content a:not(.button){color:#a66926;text-decoration:underline}
.woocommerce-orders-table,.woocommerce-table{width:100%;border-collapse:collapse;font-size:13.5px}
.woocommerce-orders-table th,.woocommerce-orders-table td,.woocommerce-table th,.woocommerce-table td{padding:12px 8px;border-bottom:1px solid #e6e5e1;text-align:left}
.woocommerce form .form-row{margin-bottom:14px}
.woocommerce form .form-row label{font-size:12px;color:#55544f}
.u-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.u-columns h2,.woocommerce-MyAccount-content h2,.woocommerce-order-details__title,.woocommerce-column__title{font-size:22px;font-weight:500;letter-spacing:-.6px;color:var(--ink);margin:0 0 16px}
.woocommerce-form-login,.woocommerce-form-register,.woocommerce-ResetPassword,.track_order{background:#f5f5f3;border-radius:14px;padding:26px}
.woocommerce-form-login__rememberme{margin:6px 0 14px}
.lost_password{font-size:12.5px;margin-top:12px}
.woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px}
.woocommerce-Address{background:#f5f5f3;border-radius:14px;padding:20px}
.woocommerce-Address-title{display:flex;justify-content:space-between;align-items:baseline}
.woocommerce-Address-title h2{font-size:17px}
mark{background:none;color:var(--ink);font-weight:600}

@media(max-width:1000px){
.ah-co-grid{display:flex;flex-direction:column;min-height:0}
.ah-summary-toggle{display:flex;order:-2;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:16px 20px;background:#f5f5f3;border-bottom:1px solid #e6e5e1;font-size:13.5px;color:#a66926}
.ah-summary-toggle>span:first-child{display:flex;align-items:center;gap:8px}
.ah-summary-toggle .ah-chevron{transition:transform .25s}
.ah-summary-toggle[aria-expanded=true] .ah-chevron{transform:rotate(180deg)}
.ah-summary-total{font-size:17px;font-weight:600;color:var(--ink)}
.ah-co-summary{order:-1;display:none;border-left:0;border-bottom:1px solid #e6e5e1}
.ah-co-summary.is-open{display:block}
.ah-thankyou .ah-co-summary{display:block;order:1;border-top:1px solid #e6e5e1}
.ah-co-summary-inner{position:static;max-width:640px;margin:auto;padding:24px 20px}
.ah-co-main{max-width:640px;margin:0 auto;padding:28px 20px 44px}
.woocommerce-account .woocommerce{grid-template-columns:1fr;gap:24px}
.woocommerce-MyAccount-navigation ul{flex-direction:row;overflow-x:auto;gap:6px}
.woocommerce-MyAccount-navigation a{white-space:nowrap;background:#f7f6f3}
}
@media(max-width:640px){
.ah-co-header-inner{height:64px;padding:0 18px}
.ah-fields{grid-template-columns:1fr}
.ah-fields .form-row-first,.ah-fields .form-row-last{grid-column:1/-1}
.ah-ty-details dl{grid-template-columns:1fr}
.ah-ty-actions{flex-direction:column-reverse;align-items:stretch;text-align:center}
.u-columns,.woocommerce-Addresses{grid-template-columns:1fr}
.woocommerce-cart-form thead{display:none}
.woocommerce-cart-form tr.cart_item{display:grid;grid-template-columns:72px 1fr auto;gap:4px 14px;padding:14px 0;border-bottom:1px solid #e6e5e1}
.woocommerce-cart-form tr.cart_item td{border:0;padding:0}
.woocommerce-cart-form td.product-thumbnail{grid-row:1/4}
.woocommerce-cart-form td.product-remove{grid-column:3;grid-row:1}
.woocommerce-cart-form td.product-price{display:none}
.woocommerce-cart-form .coupon{display:flex;width:100%}
.woocommerce-cart-form .coupon .input-text{width:100%}
.woocommerce-cart-form .button[name=update_cart]{float:none;width:100%;margin-top:10px}
.cart-collaterals{justify-content:stretch}
}
