/* ==========================================================================
   Adaik Sport — COD order form (product page) + store categories
   ========================================================================== */
.cod { margin: 6px 0 10px; font-family: "Cairo", "Manrope", Tahoma, sans-serif; }
.cod-form { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); background: #fff; display: grid; gap: 16px; }
.cod-title { margin: 0; text-align: center; font-family: "Cairo", sans-serif; font-weight: 800; font-size: 26px; color: var(--ink); }
.cod-sub { margin: -10px 0 4px; text-align: center; color: #444; font-size: 15px; }
.cod-field { display: grid; gap: 7px; }
.cod-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.cod-label i { color: #c0392b; font-style: normal; }
.cod-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cod-opt { min-width: 54px; padding: 10px 14px; border: 1px solid #cfcfcf; background: #fff; font-weight: 700; font-size: 14px; transition: all .15s; }
.cod-opt:hover { border-color: var(--ink); }
.cod-opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cod-cart { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.cod-cart-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.cod-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cod-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--mist); }
.cod-item-info { display: grid; gap: 2px; font-size: 13px; color: #555; }
.cod-item-info strong { color: var(--ink); font-size: 14px; }
.cod-unit { font-weight: 700; color: var(--ink); }
.cod-qty { display: inline-flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 6px; overflow: hidden; }
.cod-qty button { width: 34px; height: 36px; background: var(--mist); font-size: 18px; }
.cod-qty span { min-width: 34px; text-align: center; font-weight: 700; }

.cod-totals { background: var(--mist); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; font-size: 15px; }
.cod-totals > div { display: flex; justify-content: space-between; }
.cod-totals .muted { color: #c0392b; }
.cod-total { border-top: 2px solid var(--ink); padding-top: 10px; font-weight: 800; font-size: 18px; }

.cod-input { display: flex; align-items: stretch; border: 1px solid #cfcfcf; border-radius: 8px; overflow: hidden; background: #fff; transition: border-color .15s; }
.cod-input:focus-within { border-color: var(--ink); }
.cod-input > .ico { box-sizing: content-box; padding: 0 14px; align-self: center; color: var(--ink); }
.cod-input input, .cod-input select { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px; font-size: 15px; background: transparent; font-family: inherit; border-right: 1px solid #e3e3e3; }
.cod-input input[dir="ltr"] { text-align: right; }

.cod-error { margin: 0; padding: 10px 14px; background: #fbeaea; color: var(--err); border-radius: 8px; font-weight: 700; font-size: 14px; }
.cod-submit { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 17px; border-radius: 10px; background: var(--ink); color: #fff; font-family: "Cairo", sans-serif; font-size: 18px; font-weight: 800; transition: background .2s, transform .2s; animation: codPulse 2.4s ease-in-out infinite; }
.cod-submit:hover { background: var(--ink-3); }
.cod-submit[disabled] { opacity: .7; animation: none; cursor: wait; }
@keyframes codPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.cod-note { margin: -6px 0 0; display: flex; justify-content: center; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }

.cod-done { border: 1px solid #b9dfc6; background: #eef8f1; color: #1d5a35; border-radius: 10px; padding: 28px 22px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.cod-done h3 { margin: 6px 0 4px; font-family: "Cairo", sans-serif; font-size: 20px; }
.cod-done p { margin: 0; }

.adaik-product-perks[dir="rtl"] { font-family: "Cairo", sans-serif; }

/* Store page categories */
.store-cats { margin-bottom: 46px; }
.store-cats .sec-title, .store-all { margin-bottom: 22px; }
.store-cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store-cat { position: relative; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; display: block; background: #111; }
.store-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8)); }
.store-cat:hover .cat-img { transform: scale(1.06); filter: brightness(.95); }
.store-cat-info { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.store-cat-count { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ddd; }
.store-all { clear: both; }

@media (max-width: 900px) {
	.store-cats-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Numbers inside the RTL form: keep "2 800 DA" in the right order */
.cod .num { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }

/* Delivery mode (home / stop desk) */
.cod-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cod-mode { display: grid; justify-items: center; gap: 4px; padding: 12px 10px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; text-align: center; transition: all .15s; }
.cod-mode .num { font-size: 15px; }
.cod-mode:hover { border-color: var(--ink); }
.cod-mode.on { border: 2px solid var(--ink); background: var(--mist); }
.cod-mode.off { opacity: .45; cursor: not-allowed; }

/* Sticky header: overflow hidden on html/body breaks position:sticky — use clip instead */
html, body { overflow-x: clip !important; overflow-y: visible !important; }
.site-header { position: -webkit-sticky !important; position: sticky !important; top: 0; z-index: 60; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (max-width: 520px) {
	.store-cats-grid { gap: 8px; }
	.store-cat { aspect-ratio: 1; }
	.store-cat-info { flex-direction: column; align-items: start; left: 12px; bottom: 12px; }
	.cod-title { font-size: 22px; }
}
