/* Additional catalog and checkout styles; retains existing Future Intro water/glass visual system */
.store-shell{max-width:1160px;margin:auto;padding:18px 18px 64px;position:relative;z-index:5;color:white}.store-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 22px;border-radius:28px;margin-bottom:24px}.store-nav a{text-decoration:none;color:#fff;font-weight:700}.store-nav .store-links{display:flex;gap:20px;align-items:center}.store-nav .store-links a{white-space:nowrap}.store-heading{text-align:center;margin:30px auto 20px;max-width:850px}.store-heading h1{font-size:clamp(34px,6vw,58px);margin:8px 0}.store-heading p{font-size:17px;line-height:1.6}.store-filters{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:22px auto 26px}.store-filters button{border:1px solid rgba(255,255,255,.75);color:#fff;border-radius:999px;padding:12px 19px;background:rgba(17,124,197,.42);font:inherit;cursor:pointer;box-shadow:inset 0 1px 4px #ffffff55}.store-filters button.active{background:rgba(236,251,255,.38);box-shadow:0 0 14px #ddffff88}.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.store-product{padding:15px;min-width:0;border-radius:28px;display:flex;flex-direction:column;gap:9px}.store-product h2{font-size:21px;line-height:1.25;margin:3px 0}.store-product p{margin:0;line-height:1.5;flex:1}.store-image{height:195px;display:flex;align-items:center;justify-content:center}.store-image img{max-width:100%;max-height:100%;object-fit:contain}.category-chip{font-size:12px;align-self:flex-start;border:1px solid #ffffffaa;padding:5px 11px;border-radius:22px}.price-row{display:flex;flex-wrap:wrap;gap:13px;align-items:baseline}.price-row strong{font-size:23px}.price-row s{opacity:.8}.store-primary{display:block;text-align:center;text-decoration:none;border:1px solid #fff;color:#fff;background:linear-gradient(115deg,rgba(237,253,255,.29),rgba(20,147,229,.57));border-radius:18px;padding:13px;font:inherit;font-weight:700;cursor:pointer;margin-top:7px}.empty-category{grid-column:1/-1;padding:32px;text-align:center}.empty-category a{color:white;font-weight:bold}.cart-bubble{border-radius:50%;background:#fff;color:#096ebc;padding:2px 7px;font-weight:800}.checkout-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.9fr);gap:20px;align-items:start}.checkout-card{border-radius:26px;padding:23px}.checkout-card h2{margin:0 0 20px;font-size:24px}.checkout-form{display:grid;gap:15px}.checkout-form label{display:grid;gap:7px;font-weight:600}.checkout-form input:not([type="radio"]),.checkout-form textarea{width:100%;box-sizing:border-box;padding:13px 14px;background:rgba(255,255,255,.89);border:1px solid #d9f7ff;border-radius:12px;color:#133f5d;font:inherit}.checkout-form input:focus,.checkout-form textarea:focus{outline:3px solid #83ecff}.checkout-form textarea{min-height:90px;resize:vertical}.location-actions{display:flex;gap:10px;flex-wrap:wrap}.location-actions a,.location-actions button{border-radius:12px;color:white;background:#106eab;border:1px solid #fff;padding:10px 13px;font:inherit;text-decoration:none;cursor:pointer}.form-hint{font-size:13px;line-height:1.5;opacity:.9}.payment-options{display:grid;gap:10px}.payment-options label{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #ffffff8c;border-radius:13px;background:#ffffff17}.payment-options label:has(input:disabled){opacity:.65}.order-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ffffff66}.order-line div{white-space:nowrap}.order-line small{opacity:.9}.order-line button{color:#fff;background:#125f99;border:1px solid #fff;border-radius:9px;padding:3px 9px;cursor:pointer}.summary-total{display:flex;justify-content:space-between;gap:10px;font-size:22px;font-weight:700;margin:20px 0}.store-primary:disabled{opacity:.5;cursor:not-allowed}.notice{font-size:14px;line-height:1.5}.store-footer{text-align:center;margin-top:50px;opacity:.85}@media(max-width:800px){.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkout-layout{grid-template-columns:1fr}.store-nav{padding:12px 16px}.store-nav .store-links{gap:11px;font-size:13px}}@media(max-width:550px){.store-grid{grid-template-columns:1fr}.store-shell{padding:10px 12px 35px}.store-nav{flex-wrap:wrap}.store-nav .store-links{width:100%;justify-content:space-between}.store-heading{margin-top:16px}.store-product{padding:14px}.store-image{height:210px}.checkout-card{padding:16px}.order-line{flex-wrap:wrap}}

/* Confirmation is only displayed after the API returns a successful saved order. */
.order-success[hidden],.checkout-layout[hidden],.store-heading[hidden]{display:none!important}
.order-success{max-width:660px;margin:40px auto 60px;padding:clamp(24px,5vw,48px);border-radius:30px;text-align:center;outline:none;box-shadow:0 10px 38px rgba(3,65,114,.22)}
.order-success-icon{width:76px;height:76px;display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;border:2px solid #fff;background:rgba(255,255,255,.28);font-size:46px;font-weight:800}
.order-success h2{font-size:clamp(26px,4vw,38px);margin:0 0 14px;color:#fff}
.order-success p{line-height:1.65;margin:14px auto;max-width:540px}
.order-success-lead{font-size:18px;font-weight:600}
.order-success-number{display:flex;flex-direction:column;align-items:center;gap:6px;margin:26px auto;padding:21px 12px;border:1px solid rgba(255,255,255,.78);border-radius:20px;background:rgba(255,255,255,.19)}
.order-success-number span{font-size:15px}.order-success-number strong{font-size:clamp(30px,6vw,48px);letter-spacing:1px;overflow-wrap:anywhere}
.order-success-note{font-size:14px;opacity:.93}.order-success .store-primary{max-width:260px;margin:22px auto 0}
.order-success-footer{font-weight:700;font-size:16px}

/* Moyasar widget is integrated into the existing glass checkout design. */
#gatewaySection[hidden],#checkoutForm[hidden],#resultNumber[hidden]{display:none!important}
#gatewaySection{margin-top:20px}#gatewaySection .mysr-form{color:#17344b;background:rgba(255,255,255,.96);border-radius:17px;padding:18px;margin:18px 0}#gatewaySection .mysr-form *{box-sizing:border-box}#gatewaySection .mysr-form label{color:#17344b}#gatewayError{color:#fff;font-weight:600}

/* Payment method tiles: one-page selection with Moyasar-hosted card details below. */
.payment-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.payment-method-grid .payment-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:92px;padding:10px 5px;text-align:center;border:1px solid rgba(255,255,255,.68);border-radius:16px;background:rgba(255,255,255,.17);box-shadow:inset 0 1px 3px #ffffff55;cursor:pointer;gap:4px;font-weight:700;position:relative}
.payment-tile input{position:absolute;top:8px;left:8px;accent-color:#fff;width:15px;height:15px;margin:0}
.payment-tile.is-active{background:rgba(235,253,255,.4);border:2px solid #fff;box-shadow:0 0 16px rgba(220,254,255,.5)}
.payment-tile[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.payment-tile .pay-icon{display:flex;align-items:center;justify-content:center;width:68px;height:42px}
.payment-tile .pay-icon svg{width:64px;height:40px;display:block}
.payment-tile .pay-name{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.payment-tile small{font-size:10px;line-height:1.2;font-weight:400}
.payment-tile[data-brand="visa"] .pay-icon svg text{font-style:italic}
.payment-tile[data-brand="apple"] .pay-icon svg text:first-of-type{font-size:18px}
.payment-tile[data-brand="cod"] .pay-icon svg text{letter-spacing:.6px}
#gatewaySection .mysr-form{min-height:130px}
@media(max-width:430px){.payment-method-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Premium cream + gold payment choices, using uploaded payment-icon assets.
   These are display-only; Moyasar creates card/wallet fields and validates actual payments. */
.fi-premium-payment{background:linear-gradient(145deg,#fffaf2,#fff 60%,#fbf1e4);color:#25211d;border:1px solid #ead7b3;border-radius:26px;padding:clamp(14px,3vw,24px);box-shadow:0 14px 30px rgba(83,46,6,.13);display:grid;gap:15px;margin-top:8px}
.fi-pay-header{display:flex;gap:13px;align-items:center;margin-bottom:2px}.fi-pay-header h2{font-size:clamp(23px,3.4vw,29px);margin:0 0 4px;color:#25211d}.fi-pay-header p{margin:0;color:#756d60;font-size:14px}.fi-header-icon{display:grid;place-items:center;border:1px solid #e5bd6d;color:#af7a17;width:43px;height:43px;border-radius:12px;font-size:29px;background:#fff4df}
.fi-premium-payment .payment-method-grid{display:grid;grid-template-columns:1fr;gap:11px}
.fi-premium-payment .payment-tile{min-height:92px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px;padding:10px 16px;position:relative;text-align:left;background:#fff;border:1px solid #e6dfd3;border-radius:21px;box-shadow:0 3px 10px rgba(84,57,24,.08);color:#282420;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.fi-premium-payment .payment-tile.is-active{background:linear-gradient(90deg,#fff7e7,#fffdf8);border:2px solid #d49a29;box-shadow:0 4px 13px rgba(170,120,31,.16)}
.fi-premium-payment .payment-tile:has(input:focus-visible){outline:3px solid #7c5b00;outline-offset:2px}
.fi-premium-payment .payment-tile[aria-disabled="true"]{opacity:.52;cursor:not-allowed}
.fi-premium-payment .payment-tile .payment-symbol{width:78px;height:68px;display:flex;align-items:center;justify-content:center;flex:none;padding:8px;border-radius:15px;background:linear-gradient(140deg,#fffdfa,#f9efdd);border:1px solid #f3dec1;box-shadow:0 2px 7px rgba(129,88,26,.09);overflow:hidden}
.fi-premium-payment .payment-symbol img{display:block;width:100%;height:100%;object-fit:contain}
.fi-premium-payment .payment-tile[data-brand="cod"] .payment-symbol img{transform:scale(1.14)}
.fi-premium-payment .pay-name{font-size:clamp(17px,3vw,21px);line-height:1.25;font-weight:750;color:#24211e;flex:1;overflow-wrap:anywhere}
.fi-premium-payment .payment-tile input[type="radio"]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.fi-premium-payment .fi-radio-dot{flex:none;margin-left:auto;border-radius:50%;width:24px;height:24px;background:#fff;border:2px solid #c4bdaf;box-shadow:0 0 0 1px #fff}
.fi-premium-payment .payment-tile.is-active .fi-radio-dot{border:2px solid #d39a27;box-shadow:inset 0 0 0 5px #fff;background:#ca9124}
.fi-mastercard-mark{position:relative;display:block;width:60px;height:40px;background:#fff;border-radius:9px}.fi-mastercard-mark i{position:absolute;top:9px;left:9px;width:30px;height:30px;border-radius:50%;background:#eb001b}.fi-mastercard-mark i+i{left:25px;background:#f79e1b;opacity:.91}
.fi-premium-payment .fi-pay-notice{color:#6b6254;font-size:13px;line-height:1.5;margin:0}.fi-premium-payment .fi-pay-status{color:#804100;margin:0}
.fi-premium-payment .fi-gold-pay-button{margin:0;min-height:57px;background:linear-gradient(115deg,#e8ba60,#c58a13 74%,#ac780e);color:#fff;border:1px solid #e1b757;border-radius:18px;box-shadow:0 5px 12px rgba(155,95,14,.2);font-size:17px;font-weight:800}
@media(max-width:550px){.fi-premium-payment{padding:14px;gap:11px}.fi-premium-payment .payment-tile{min-height:77px;padding:8px 11px;gap:12px}.fi-premium-payment .payment-tile .payment-symbol{width:65px;height:58px;padding:5px}.fi-premium-payment .pay-name{font-size:17px}.fi-premium-payment .fi-radio-dot{width:21px;height:21px}}


/* Future Intro blue water-glass payment panel, preserving all existing button positions. */
.fi-premium-payment {
  background:linear-gradient(130deg,rgba(216,252,255,.23),rgba(30,157,223,.25) 55%,rgba(232,253,255,.18));
  color:#fff;
  border:1.5px solid rgba(255,255,255,.88);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.82),0 10px 26px rgba(0,71,131,.16);
  -webkit-backdrop-filter:blur(16px) saturate(1.45);
  backdrop-filter:blur(16px) saturate(1.45);
}
.fi-pay-header h2 {color:#fff;text-shadow:0 1px 2px rgba(0,78,130,.22)}
.fi-pay-header p {color:#f2fbff}
.fi-header-icon {background:rgba(255,255,255,.22);color:#fff;border:1px solid rgba(255,255,255,.8)}
.fi-premium-payment .payment-tile {
  color:#fff;
  background:linear-gradient(120deg,rgba(255,255,255,.23),rgba(228,251,255,.1));
  border:1px solid rgba(255,255,255,.7);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.5),0 3px 9px rgba(0,88,144,.12);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.fi-premium-payment .payment-tile.is-active {
  background:linear-gradient(120deg,rgba(221,253,255,.45),rgba(140,227,255,.19));
  border:2px solid #fff;
  box-shadow:inset 0 1px 4px rgba(255,255,255,.44),0 0 12px rgba(255,255,255,.3);
}
.fi-premium-payment .pay-name{color:#fff;text-shadow:0 1px 2px rgba(12,83,130,.22)}
.fi-premium-payment .payment-tile[aria-disabled="true"]{opacity:.63}
.fi-premium-payment .payment-tile .payment-symbol {
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.96);
  box-shadow:0 2px 6px rgba(2,80,141,.12);
}
.fi-premium-payment .payment-symbol img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.fi-premium-payment .payment-tile[data-brand="cod"] .payment-symbol img{transform:none}
.fi-premium-payment .fi-radio-dot{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.9)}
.fi-premium-payment .payment-tile.is-active .fi-radio-dot{border-color:white;background:#1c9dd8;box-shadow:inset 0 0 0 5px #e1faff}
.fi-premium-payment .fi-pay-notice{color:#f1fcff}
.fi-premium-payment .fi-pay-status{color:#fff}
.fi-premium-payment .fi-gold-pay-button{
  background:linear-gradient(115deg,rgba(225,252,255,.45),rgba(23,153,223,.8));
  border:1px solid #fff;
  color:#fff;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.4),0 5px 12px rgba(0,86,149,.15);
}
.fi-premium-payment .fi-gold-pay-button:hover:not(:disabled){background:linear-gradient(115deg,rgba(225,252,255,.55),rgba(17,128,207,.88))}
@media (max-width:550px){.fi-premium-payment{border-radius:20px}.fi-premium-payment .payment-tile{border-radius:16px}}


/* Apple Pay and STC Pay: fill every pixel of their icon boxes (no inset). */
.fi-premium-payment .payment-tile[data-brand="apple"] .payment-symbol,
.fi-premium-payment .payment-tile[data-brand="stc"] .payment-symbol{
  padding:0;
  overflow:hidden;
}
.fi-premium-payment .payment-tile[data-brand="apple"] .payment-symbol img,
.fi-premium-payment .payment-tile[data-brand="stc"] .payment-symbol img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:fill;
  object-position:center;
  border-radius:inherit;
}

/* Visa and Mastercard logos also stretch edge-to-edge like Apple Pay and STC Pay. */
.fi-premium-payment .payment-tile[data-brand="visa"] .payment-symbol,
.fi-premium-payment .payment-tile[data-brand="mastercard"] .payment-symbol{
  padding:0;
  overflow:hidden;
}
.fi-premium-payment .payment-tile[data-brand="visa"] .payment-symbol img,
.fi-premium-payment .payment-tile[data-brand="mastercard"] .payment-symbol img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:fill;
  object-position:center;
  border-radius:inherit;
}

/* Glassy transparent payment area: allow the water background to show through.
   Keep the existing payment order, icon sizing, and live payment code untouched. */
.fi-premium-payment {
  background:rgba(190,233,255,.065);
  border:1px solid rgba(255,255,255,.60);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.34),0 7px 20px rgba(4,72,119,.10);
  -webkit-backdrop-filter:blur(3px) saturate(1.12);
  backdrop-filter:blur(3px) saturate(1.12);
}
.fi-premium-payment .payment-tile {
  background:rgba(205,244,255,.095);
  border:1px solid rgba(255,255,255,.52);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.28),0 2px 8px rgba(0,70,133,.08);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
}
.fi-premium-payment .payment-tile.is-active {
  background:rgba(189,238,253,.23);
  border:2px solid rgba(255,255,255,.95);
  box-shadow:inset 0 1px 3px rgba(255,255,255,.28),0 0 10px rgba(255,255,255,.18);
}
/* Make image area clear enough for logos without making the whole payment card opaque. */
.fi-premium-payment .payment-tile .payment-symbol {
  background:rgba(255,255,255,.6);
  border-color:rgba(255,255,255,.75);
}

/* Unified Arabic language switch: translucent water-glass appearance */
.fi-language-button{font:inherit;font-weight:750;white-space:nowrap;min-height:38px;padding:8px 14px;border-radius:18px;color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.8);box-shadow:inset 0 1px 3px rgba(255,255,255,.35);cursor:pointer;backdrop-filter:blur(10px)}
.fi-language-button:hover,.fi-language-button:focus-visible{background:rgba(230,251,255,.34);outline-offset:2px}
html[lang="ar"] .store-shell :is(h1,h2,h3,p,label,small,.pay-name,.admin-order,.admin-product-info,.store-product,.store-heading,.form-hint){text-align:start}
html[lang="ar"] .checkout-form input:not([type="radio"]),html[lang="ar"] .checkout-form textarea,html[lang="ar"] .admin-card input,html[lang="ar"] .admin-card textarea{direction:rtl;text-align:right}
html[lang="ar"] .store-nav,html[lang="ar"] .store-links,html[lang="ar"] .payment-method-grid,html[lang="ar"] .checkout-layout{direction:ltr}
html[lang="ar"] .fi-premium-payment .payment-tile,html[lang="ar"] .fi-pay-header{direction:ltr}
@media(max-width:550px){.fi-language-button{padding:7px 10px;font-size:13px}}
