/* ===== كوليا — Inner Pages ===== */

/* ---------- مشترك ---------- */
.breadcrumb { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.breadcrumb .container, .breadcrumb { display: flex; align-items: center; }
.breadcrumb a { color: var(--muted-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted); }
.breadcrumb .container > * { margin-inline-end: 8px; }
.breadcrumb__current { color: var(--ink) !important; }
.breadcrumb--plain { border: none; padding: 0; margin-top: 10px; }
.breadcrumb--plain > * { margin-inline-end: 8px; }

.page-hero { background: var(--surface); padding-block: 44px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); }
.page-hero .breadcrumb--plain { justify-content: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.toast {
  position: fixed; inset-block-end: 28px; inset-inline-start: 50%; transform: translate(50%, 20px);
  background: var(--ink); color: #fff; padding: 14px 26px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(50%, 0); }

/* ---------- صفحة المنتج ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.pdp__thumbs { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pdp__thumb-nav { width: 84px; height: 26px; background: var(--surface); display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.pdp__thumb-nav:hover { background: var(--surface-2); }
.pdp__thumb-nav svg { width: 16px; height: 16px; }
.pdp__thumbs-view { height: 392px; overflow: hidden; }
.pdp__thumbs-track { display: flex; flex-direction: column; gap: 12px; transition: transform .4s var(--ease); }
.pdp__thumb { width: 84px; height: 90px; background: var(--surface); border: 1px solid transparent; padding: 8px; transition: border-color .2s; flex-shrink: 0; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb.is-active { border-color: var(--ink); }
.pdp__main { position: relative; background: var(--surface); aspect-ratio: 1/1; display: grid; place-items: center; }
.pdp__main img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: opacity .3s; }
.pdp__trust { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 16px; }
.pdp__trust > div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 13px; color: var(--muted-2); }
.pdp__trust > div:not(:last-child) { border-inline-end: 1px solid var(--line); }
.pdp__trust svg { width: 20px; height: 20px; color: var(--ink); }

.badge-inline { display: inline-block; background: var(--sale); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 9px; margin-bottom: 12px; }
.pdp__brand { font-size: 13px; color: var(--muted-2); margin-bottom: 8px; }
.pdp__brand a { color: var(--ink); }
.pdp__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; }
.pdp__meta { display: flex; align-items: center; gap: 12px; margin-block: 14px; flex-wrap: wrap; }
.pdp__price { font-weight: 700; font-size: 22px; }
.pdp__price .sep { color: var(--muted); }
.pdp__reviews { font-size: 13px; color: var(--muted); }
.pdp__hot { color: var(--sale); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.pdp__bullets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.pdp__bullets li { position: relative; padding-inline-start: 20px; font-size: 14px; color: var(--muted-2); }
.pdp__bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 6px; height: 6px; border-radius: 999px; background: var(--ink); }

.pdp__count { background: var(--surface); padding: 16px; margin-bottom: 22px; }
.pdp__count-label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 10px; }
.count-boxes { display: flex; gap: 10px; direction: ltr; justify-content: flex-start; }
.cbox { background: #fff; border: 1px solid var(--line); min-width: 58px; padding: 8px 4px; text-align: center; }
.cbox strong { display: block; font-size: 20px; font-weight: 700; color: var(--sale); line-height: 1; }
.cbox span { font-size: 10px; color: var(--muted); margin-top: 4px; display: block; }

.pdp__opt { margin-bottom: 18px; }
.pdp__opt-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.pdp__opt-vals { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); padding: 9px 16px; font-size: 13.5px; transition: all .2s; min-width: 48px; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.pdp__buy { display: flex; gap: 12px; margin-block: 22px 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
.qty button { width: 42px; height: 50px; font-size: 18px; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--surface); }
.qty input { width: 46px; height: 50px; text-align: center; border: none; border-inline: 1px solid var(--line-2); font-size: 15px; font-weight: 500; outline: none; }
.pdp__add { flex: 1; height: 50px; }
.pdp__buynow { width: 100%; height: 50px; }
.pdp__links { display: flex; gap: 22px; padding-block: 18px; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp__links button { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted-2); transition: color .2s; }
.pdp__links button:hover { color: var(--ink); }
.pdp__links svg { width: 17px; height: 17px; }
.pdp__viewing { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-2); margin-block: 18px; }
.pdp__viewing svg { width: 18px; height: 18px; }
.pdp__viewing strong { color: var(--ink); }
.pdp__delivery { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pdp__delivery p { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted-2); }
.pdp__delivery svg { width: 18px; height: 18px; color: var(--ink); flex-shrink: 0; }
.pdp__secure { background: var(--surface); padding: 16px; text-align: center; }
.pdp__secure p { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.pdp__secure .pay { justify-content: center; }

/* ---------- المتجر ---------- */
.shop { display: grid; grid-template-columns: 248px 1fr; gap: 36px; align-items: start; }
.shop__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.filter h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filter__cats { display: flex; flex-direction: column; gap: 2px; }
.filter__cats button { text-align: start; width: 100%; padding: 8px 10px; font-size: 14px; color: var(--muted-2); transition: all .2s; }
.filter__cats button:hover { color: var(--ink); background: var(--surface); }
.filter__cats button.is-active { color: var(--ink); font-weight: 500; background: var(--surface); }
.filter__price input[type=range] { width: 100%; accent-color: var(--ink); }
.filter__price p { font-size: 13.5px; color: var(--muted-2); margin-top: 8px; }
.filter__check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted-2); padding-block: 5px; cursor: pointer; }
.filter__check input { accent-color: var(--ink); }
.shop__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop__bar p { font-size: 14px; color: var(--muted-2); }
.shop__sort { border: 1px solid var(--line-2); padding: 10px 14px; font-size: 13.5px; background: #fff; outline: none; cursor: pointer; }

/* ---------- السلة ---------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart__head { display: grid; grid-template-columns: 2.4fr 1fr 1.2fr 1fr 40px; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.cart__row { display: grid; grid-template-columns: 2.4fr 1fr 1.2fr 1fr 40px; gap: 12px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.cart__prod { display: flex; align-items: center; gap: 14px; }
.cart__thumb { width: 72px; height: 72px; background: var(--surface); flex-shrink: 0; display: grid; place-items: center; }
.cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.cart__prod a { font-size: 14.5px; font-weight: 500; }
.cart__price, .cart__line { font-size: 14.5px; }
.cart__line { font-weight: 700; }
.cart__qty .qty button { width: 34px; height: 38px; }
.cart__qty .qty input { width: 38px; height: 38px; }
.cart__del { color: var(--muted); transition: color .2s; }
.cart__del:hover { color: var(--sale); }
.cart__del svg { width: 19px; height: 19px; }
.cart__summary { background: var(--surface); padding: 28px; position: sticky; top: 96px; }
.cart__summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.cart__line-item { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted-2); padding-block: 8px; }
.cart__coupon { display: flex; gap: 8px; margin-block: 16px; }
.cart__coupon input { flex: 1; border: 1px solid var(--line-2); padding: 11px 12px; font-size: 13.5px; outline: none; }
.cart__total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding-block: 16px; margin-top: 8px; border-top: 1px solid var(--line-2); }
.cart__checkout { width: 100%; height: 50px; margin-top: 8px; }
.cart__continue { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--muted-2); }
.cart__continue:hover { color: var(--ink); }
.cart-empty { grid-column: 1 / -1; text-align: center; padding-block: 80px; }
.cart-empty svg { width: 64px; height: 64px; color: var(--line-2); margin-inline: auto; }
.cart-empty h3 { font-size: 22px; font-weight: 700; margin-block: 18px 8px; }
.cart-empty p { color: var(--muted-2); margin-bottom: 22px; }

/* ---------- الدفع ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.ck-block { margin-bottom: 32px; }
.ck-block h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 500; }
.field-grid label.full { grid-column: 1 / -1; }
.field-grid input { border: 1px solid var(--line-2); padding: 12px 14px; font-size: 14px; outline: none; transition: border-color .2s; }
.field-grid input:focus { border-color: var(--ink); }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); padding: 14px 16px; font-size: 14px; cursor: pointer; transition: border-color .2s; }
.pay-method input { accent-color: var(--ink); }
.pay-method:has(input:checked) { border-color: var(--ink); }
.checkout__summary { background: var(--surface); padding: 28px; position: sticky; top: 96px; }
.checkout__summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.ck-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.ck-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.ck-thumb { position: relative; width: 52px; height: 52px; background: #fff; display: grid; place-items: center; }
.ck-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.ck-qty { position: absolute; top: -7px; inset-inline-start: -7px; background: var(--ink); color: #fff; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; }
.ck-name { font-size: 13.5px; }
.ck-price { font-size: 13.5px; font-weight: 700; }
.ck-place { width: 100%; height: 50px; margin-top: 14px; }
.ck-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); margin-top: 14px; }
.ck-secure svg { width: 16px; height: 16px; }
.ck-empty { color: var(--muted-2); font-size: 14px; }
.ck-empty a { color: var(--ink); }
.ck-done { text-align: center; padding-block: 20px; }
.ck-check { width: 64px; height: 64px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-inline: auto; margin-bottom: 18px; }
.ck-check svg { width: 30px; height: 30px; }
.ck-done h3 { font-size: 20px; margin-bottom: 8px; }
.ck-done p { color: var(--muted-2); font-size: 14px; margin-bottom: 20px; }

/* ---------- الحساب ---------- */
.account { display: grid; grid-template-columns: 268px 1fr; gap: 36px; align-items: start; }
.account__side { border: 1px solid var(--line); }
.account__user { display: flex; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid var(--line); }
.account__avatar { width: 50px; height: 50px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; }
.account__user strong { display: block; font-size: 15px; }
.account__user span { font-size: 12.5px; color: var(--muted); }
.account__nav { display: flex; flex-direction: column; padding: 12px; }
.account__nav a { padding: 12px 14px; font-size: 14px; color: var(--muted-2); transition: all .2s; cursor: pointer; }
.account__nav a:hover { background: var(--surface); color: var(--ink); }
.account__nav a.is-active { background: var(--ink); color: #fff; }
.account__logout { color: var(--sale) !important; margin-top: 6px; border-top: 1px solid var(--line); }
.account__main { min-height: 320px; }
.account__main h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.acc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.acc-card { background: var(--surface); padding: 22px; text-align: center; }
.acc-card span { font-size: 13px; color: var(--muted-2); }
.acc-card strong { display: block; font-family: var(--font-display); font-size: 30px; margin-top: 6px; }
.acc-note { color: var(--muted-2); font-size: 14px; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th, .acc-table td { text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.acc-table th { font-weight: 700; background: var(--surface); }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.tag--ok { background: #e6f4ec; color: var(--success); }
.tag--wait { background: #fdeee2; color: #c9781f; }
.acc-address { border: 1px solid var(--line); padding: 22px; }
.acc-address strong { display: block; margin-bottom: 8px; }
.acc-address p { color: var(--muted-2); font-size: 14px; line-height: 1.8; }

/* ---------- الدخول ---------- */
.auth__card { max-width: 440px; margin-inline: auto; border: 1px solid var(--line); padding: 40px; }
.auth__tabs { display: flex; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.auth__tabs button { flex: 1; padding: 14px; font-size: 15px; font-weight: 500; color: var(--muted); position: relative; }
.auth__tabs button.is-active { color: var(--ink); }
.auth__tabs button.is-active::after { content: ""; position: absolute; inset-block-end: -1px; inset-inline: 0; height: 2px; background: var(--ink); }
.auth__panel { display: flex; flex-direction: column; gap: 16px; }
.auth__panel label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 500; }
.auth__panel input { border: 1px solid var(--line-2); padding: 12px 14px; font-size: 14px; outline: none; transition: border-color .2s; }
.auth__panel input:focus { border-color: var(--ink); }
.auth__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.auth__remember { display: flex; align-items: center; gap: 8px; color: var(--muted-2); }
.auth__row a { color: var(--ink); }
.auth__submit { width: 100%; height: 50px; margin-top: 6px; }
.auth__or { text-align: center; color: var(--muted); font-size: 13px; margin-block: 22px 16px; position: relative; }
.auth__social { display: flex; gap: 12px; }
.auth__social button { flex: 1; border: 1px solid var(--line-2); padding: 12px; font-size: 14px; font-weight: 500; transition: background .2s; }
.auth__social button:hover { background: var(--surface); }

/* ---------- من نحن ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__intro h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; margin-bottom: 18px; }
.about__intro p { color: var(--muted-2); font-size: 16px; line-height: 1.9; }
.about__media img { width: 100%; object-fit: cover; }
.about-stats { background: var(--ink); }
.about-stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 44px; text-align: center; }
.about-stats__row strong { display: block; font-family: var(--font-display); font-size: 38px; color: #fff; }
.about-stats__row span { font-size: 13.5px; color: #bdbdbd; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.value-card { border: 1px solid var(--line); padding: 32px; }
.value-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.value-card p { color: var(--muted-2); font-size: 14.5px; line-height: 1.8; }

/* ---------- استجابة ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .shop { grid-template-columns: 1fr; }
  .shop__side { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .filter { flex: 1; min-width: 180px; }
  .cart, .checkout, .account, .about { grid-template-columns: 1fr; }
  .cart__summary, .checkout__summary { position: static; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .field-grid, .acc-cards, .about-stats__row, .about-values { grid-template-columns: 1fr; }
  .about-stats__row { grid-template-columns: 1fr 1fr; }
  .cart__head { display: none; }
  .cart__row { grid-template-columns: 1fr auto; grid-template-areas: "prod del" "price qty" "line line"; gap: 10px; }
  .cart__prod { grid-area: prod; } .cart__del { grid-area: del; } .cart__price { grid-area: price; } .cart__qty { grid-area: qty; } .cart__line { grid-area: line; }
  .pdp__gallery { grid-template-columns: 1fr; }
  .pdp__thumbs { flex-direction: row; }
  .pdp__thumbs-view { height: auto; width: 100%; } .pdp__thumbs-track { flex-direction: row; }
  .pdp__thumb-nav { display: none; }
}
