/* ==========================================================
   Pjesë frigoriferike – stili i website-it
   Ngjyrat: blu avulluesi, bardhë ngrice, portokalli sinjalizimi
   ========================================================== */
:root {
  --frost: #f3f7fa;
  --white: #ffffff;
  --ink: #16283a;
  --steel: #4e6273;
  --line: #d3dee6;
  --evap: #0a5c8a;
  --evap-dark: #083f60;
  --evap-soft: #e3eff6;
  --amber: #d98e04;
  --amber-soft: #fdf3dc;
  --ok: #1d8350;
  --ok-soft: #e2f3ea;
  --bad: #b83227;
  --bad-soft: #fbe7e5;
  --radius: 4px;
  --radius-lg: 8px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--frost);
}
img { max-width: 100%; display: block; }
a { color: var(--evap); }
a:hover { color: var(--evap-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 440px; }
.section { padding-block: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--steel); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Kreu ---------- */
.topline { background: var(--evap-dark); color: #cfe2ee; font-size: .85rem; }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.topline a { color: #fff; text-decoration: none; margin-left: 16px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--evap); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.45rem; white-space: nowrap; }
.logo span { color: var(--ink); }
.header-search { flex: 1; display: flex; max-width: 560px; }
.header-search input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 10px 12px; font: inherit; font-size: 1rem; }
.header-search input:focus { border-color: var(--evap); outline: none; }
.header-search button { border: 0; background: var(--evap); color: #fff; padding: 0 18px; border-radius: 0 var(--radius) var(--radius) 0; font: 600 1rem var(--body); cursor: pointer; }
.header-nav { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.header-nav a:hover { color: var(--evap); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--amber); color: #fff; font-size: .8rem; font-weight: 600; }
.notice-bar { background: var(--amber-soft); color: #6b4700; text-align: center; padding: 8px 16px; font-size: .95rem; }

/* ---------- Hero: fletët e avulluesit ---------- */
.hero {
  background-color: var(--evap-dark);
  background-image:
    repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 1px, transparent 1px 9px),
    linear-gradient(120deg, #0a5c8a 0%, #083f60 70%);
  color: #fff;
  padding-block: 64px 56px;
}
.hero-inner { max-width: 860px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: .3em; }
.hero-sub { font-size: 1.15rem; color: #cfe2ee; max-width: 60ch; }
.hero-search { display: flex; margin: 28px 0 32px; background: #fff; border-radius: var(--radius-lg); padding: 6px; box-shadow: 0 10px 30px rgba(3, 30, 48, .35); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: 500 1.2rem var(--body); color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.hero-search input:focus { outline: none; }
.hero-search button { border: 0; background: var(--amber); color: #fff; padding: 0 26px; border-radius: var(--radius); font: 700 1.1rem var(--head); cursor: pointer; }
.hero-search button:hover { background: #c07d00; }
.brand-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 620px; }
.brand-tile { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-lg); color: #fff; text-decoration: none; background: rgba(255,255,255,.04); }
.brand-tile:hover { background: rgba(255,255,255,.12); color: #fff; }
.brand-name { font: 700 1.4rem var(--head); }
.brand-meta { color: #b9d3e3; font-size: .9rem; }

/* ---------- Kategoritë ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 500; }
.cat-item:hover { background: var(--evap-soft); color: var(--evap-dark); }
.cat-item small { color: var(--steel); font-variant-numeric: tabular-nums; }

/* ---------- Kartat e produkteve ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.card:hover { border-color: #a9c1d1; }
.card-img { aspect-ratio: 4 / 3; background: #f7fafc; display: grid; place-items: center; padding: 12px; }
.card-img img { max-height: 100%; object-fit: contain; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: .85rem; color: var(--steel); font-weight: 500; }
.card-title { font-family: var(--body); font-size: 1rem; font-weight: 600; margin: 2px 0 8px; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--evap); }
.codes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.code { font-size: .8rem; background: var(--frost); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.code b { color: var(--steel); font-weight: 600; margin-right: 2px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font: 700 1.2rem var(--head); font-variant-numeric: tabular-nums; }
.price small { display: block; font: 500 .75rem var(--body); color: var(--ok); }

.stock { font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; white-space: nowrap; }
.stock-in { background: var(--ok-soft); color: var(--ok); }
.stock-low { background: var(--amber-soft); color: #8a5a00; }
.stock-out { background: var(--bad-soft); color: var(--bad); }

/* ---------- Katalogu ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-block: 28px 48px; }
.filters details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; position: sticky; top: 84px; }
.filters summary { font: 600 1.1rem var(--head); cursor: pointer; }
.filter-form fieldset { border: 0; padding: 0; margin: 14px 0; }
.filter-form legend { font-weight: 600; margin-bottom: 6px; }
.filter-form label { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.filter-form select { width: 100%; }
.check { margin: 12px 0; }
.clear-link { display: block; text-align: center; margin-top: 10px; font-size: .9rem; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.results-head h1 { margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; color: var(--steel); font-size: .95rem; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; }
.empty p { max-width: 52ch; margin-inline: auto; margin-bottom: 1em; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--evap); color: #fff; border-color: var(--evap); }

/* ---------- Produkti ---------- */
.crumbs { padding-top: 20px; font-size: .9rem; color: var(--steel); }
.crumbs a { color: var(--steel); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 20px 20px; }
.product-media { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; place-items: center; aspect-ratio: 1; }
.product-media img { max-height: 100%; object-fit: contain; }
.product-info h1 { margin-top: 4px; }
.part-label { margin: 0 0 20px; border: 1.5px dashed #9fb6c6; border-radius: var(--radius); background: var(--white); display: grid; }
.part-label div { display: grid; grid-template-columns: 110px 1fr; padding: 10px 14px; }
.part-label div + div { border-top: 1px solid var(--line); }
.part-label dt { color: var(--steel); font-weight: 500; }
.part-label dd { margin: 0; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.price-big { font: 700 2rem var(--head); font-variant-numeric: tabular-nums; }
.price-note { display: block; font: 500 .9rem var(--body); color: var(--ok); }
.stock-line { font-weight: 600; margin: 4px 0 16px; display: flex; align-items: center; gap: 8px; }
.stock-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.stock-line.stock-in { color: var(--ok); background: none; }
.stock-line.stock-low { color: #a86e00; background: none; }
.stock-line.stock-out { color: var(--bad); background: none; }
.add-form { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); height: 46px; }
.qty input { width: 56px; border: 0; text-align: center; font: 600 1rem var(--body); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--evap); }
.qty-btn:hover { background: var(--evap-soft); }
.notify-box { margin-top: 16px; padding: 16px; background: var(--evap-soft); border-radius: var(--radius); }
.notify-box label { display: block; font-weight: 600; margin-bottom: 6px; }
.notify-box input[type=email] { width: 100%; margin-bottom: 10px; }
.notify-box p { margin-bottom: 10px; }
.h-small { font-size: 1.15rem; margin-top: 24px; }
.model-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.model-list li { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 3px 10px; font-size: .95rem; }
.desc { max-width: 68ch; }

/* ---------- Butonat dhe formularët ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; min-height: 46px; border: 1.5px solid var(--evap); border-radius: var(--radius); background: var(--white); color: var(--evap); font: 600 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--evap-soft); color: var(--evap-dark); }
.btn-primary { background: var(--evap); color: #fff; }
.btn-primary:hover { background: var(--evap-dark); color: #fff; }
.btn:disabled { background: #e7edf1; border-color: #c9d5dd; color: #8a9aa6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.1rem; }
.link-btn { background: none; border: 0; color: var(--evap); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: var(--evap); outline: none; box-shadow: 0 0 0 3px var(--evap-soft); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.form.compact { padding: 0; border: 0; margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-grid .field { margin-bottom: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.span-2 { grid-column: span 2; }
.hint { font-size: .85rem; color: var(--steel); }
.field-error { color: var(--bad); font-size: .9rem; font-weight: 500; }
.mono-input { font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; }

.type-switch { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-switch legend { font-weight: 600; margin-bottom: 8px; }
.type-option, .pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; }
.type-option:has(input:checked), .pay-option:has(input:checked) { border-color: var(--evap); background: var(--evap-soft); }
.type-option input, .pay-option input { margin-top: 4px; accent-color: var(--evap); }
.type-option span, .pay-option span { display: flex; flex-direction: column; }
.type-option small, .pay-option small { color: var(--steel); font-size: .9rem; }
.biz-fields { border-left: 3px solid var(--evap); padding-left: 16px; margin-bottom: 20px; }
.pay-options { display: grid; gap: 10px; margin-bottom: 20px; }
.biz-box { background: var(--evap-soft); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.split-cta { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- Njoftimet ---------- */
.flash-wrap { width: min(1200px, 100% - 32px); margin: 16px auto 0; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; border-left: 4px solid; }
.alert-success { background: var(--ok-soft); border-color: var(--ok); }
.alert-error { background: var(--bad-soft); border-color: var(--bad); }
.alert-info { background: var(--evap-soft); border-color: var(--evap); }
.alert a { font-weight: 600; margin-left: 6px; }

/* ---------- Shporta dhe porosia ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 20px 20px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: contain; background: var(--frost); border-radius: var(--radius); }
.cart-row-info { display: flex; flex-direction: column; font-size: .92rem; }
.cart-name { font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; }
.cart-line { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }
.cart-items > .btn { margin-top: 16px; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 84px; }
.sum-row, .sum-item { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.sum-item { font-size: .92rem; border-bottom: 1px dashed var(--line); }
.sum-total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 10px; font: 700 1.25rem var(--head); }
.summary .btn { margin-top: 14px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .95rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--frost); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { border-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 34px; text-align: center; font-size: .9rem; color: var(--steel); }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; font-weight: 600; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before { background: var(--evap); border-color: var(--evap); color: #fff; }
.steps li.done::after { background: var(--evap); }
.pay-cta { background: var(--amber-soft); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px; }

.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; background: var(--frost); border: 1px solid var(--line); }
.tag-new, .tag-pending { background: var(--amber-soft); border-color: #f0d79b; color: #7a5000; }
.tag-processing { background: var(--evap-soft); border-color: #b9d6e7; color: var(--evap-dark); }
.tag-shipped, .tag-delivered, .tag-active { background: var(--ok-soft); border-color: #b5dcc5; color: var(--ok); }
.tag-cancelled, .tag-rejected { background: var(--bad-soft); border-color: #efc2bd; color: var(--bad); }

.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.panel .h-small:first-child { margin-top: 0; }

/* ---------- Avantazhet dhe fundi ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.perk { background: var(--white); padding: 22px; }
.perk p { color: var(--steel); }
.site-footer { background: var(--ink); color: #b8c6d1; margin-top: 40px; padding-top: 40px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; }
.footer-name { font: 700 1.3rem var(--head); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-block: 16px 24px; font-size: .82rem; color: #8ea1b0; }

/* ---------- Telefon dhe tablet ---------- */
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-nav { margin-left: auto; gap: 14px; }
  .topline-contact a:last-child { display: none; }
  .catalog, .product, .cart-layout, .account-grid { grid-template-columns: 1fr; }
  .filters details { position: static; }
  .filters details:not([open]) { padding-block: 12px; }
  .summary { position: static; }
  .perks, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topline .wrap > span:first-child { display: none; }
  .hero { padding-block: 40px; }
  .hero-search { flex-direction: column; gap: 6px; }
  .hero-search button { padding: 14px; }
  .brand-pick, .type-switch, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row img { width: 56px; height: 56px; }
  .cart-row .qty, .cart-row .cart-line, .cart-row .link-btn { grid-column: 2; justify-self: start; text-align: left; }
  .form { padding: 18px; }
  .steps li { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
