/*
Theme Name: TechShop
Description: Temë e lehtë lajmesh teknologjie për techshop.al, me burim në çdo artikull dhe produkte nga store.albcanon.com.
Version: 1.1.0
Author: Albital Canon
Text Domain: techshop
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --text: #121826;
  --muted: #5b6475;
  --line: #e3e7ee;
  --accent: #0a66ff;
  --accent-ink: #ffffff;
  --hot: #ff3b5c;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 12px;
  --wrap: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #151b24;
    --text: #e8ecf2;
    --muted: #97a1b2;
    --line: #253041;
    --accent: #4d8dff;
    --card: #131a23;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font: 800 24px/1 var(--font-head); letter-spacing: -.5px; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.hdr-search input {
  width: 170px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit; font-size: 14px;
}
.hdr-store {
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.hdr-store:hover { color: var(--accent-ink); filter: brightness(1.1); }

/* Menuja në kompjuter */
.nav-desk { flex: 1; min-width: 0; }
.nav-desk ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-desk a, .nav-desk summary {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--muted); cursor: pointer;
}
.nav-desk a:hover, .nav-desk summary:hover { color: var(--text); background: var(--bg-soft); }
.nav-desk a[aria-current], .nav-desk summary.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav-desk summary { list-style: none; }
.nav-desk summary::-webkit-details-marker { display: none; }
.nav-desk details { position: relative; }
.nav-desk details[open] summary { color: var(--text); background: var(--bg-soft); }
.nav-desk details[open] summary svg { transform: rotate(180deg); }
.more-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .16);
}
.more-pop a { display: flex; gap: 10px; padding: 9px 10px; color: var(--text); }
.more-pop .ic { color: var(--c); display: inline-flex; }

/* Butoni ☰ dhe paneli (vetëm në ekrane të vogla) */
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--text); cursor: pointer;
}
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(8, 12, 20, .5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 14px;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -12px 0 40px rgba(0, 0, 0, .2);
}
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer-bg, .drawer-panel { transition: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.drawer-x { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--bg-soft); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.drawer-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--muted); }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 12px 0; outline: none; }
.drawer-search:focus-within { border-color: var(--accent); }
.drawer-home { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 700; background: var(--bg-soft); }
.drawer-home.on { color: var(--accent); }
.drawer-label { margin: 4px 2px -4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-cats a {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; min-height: 92px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); transition: transform .12s, border-color .12s;
}
.drawer-cats a:active { transform: scale(.97); }
.drawer-cats a:hover { color: var(--text); border-color: var(--c); }
.drawer-cats a[aria-current] { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.drawer-cats .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
}
.drawer-cats .nm { font-weight: 700; font-size: 14px; line-height: 1.25; }
.drawer-store {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(120deg, #0a66ff, #06b6d4); color: #fff; margin-top: 4px;
}
.drawer-store:hover { color: #fff; }
.drawer-store strong { display: block; font-size: 16px; }
.drawer-store small { display: block; font-size: 12.5px; opacity: .9; }
.drawer-foot { display: flex; gap: 18px; justify-content: center; padding-top: 6px; font-size: 14px; color: var(--muted); }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav-desk, .hdr-search, .hdr-store { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr { height: 60px; }
}
@media (max-width: 1320px) and (min-width: 1181px) { .hdr-search input { width: 130px; } }

/* Layout */
.main { padding: 28px 0 48px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
@media (max-width: 1000px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
.section-title {
  font: 800 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--text);
}

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.hero-side { display: grid; gap: 20px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1220; min-height: 200px; display: flex; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-card .in {
  position: relative; margin-top: auto; width: 100%; padding: 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff;
}
.hero-card.big { min-height: 440px; }
.hero-card.big h2 { font-size: 32px; }
.hero-card h2 { font: 800 20px/1.2 var(--font-head); margin: 6px 0 0; letter-spacing: -.3px; }
.hero-card a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .hero-card.big { min-height: 320px; } .hero-card.big h2 { font-size: 24px; } }

/* Cards */
.cat-label { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.hero-card .cat-label { color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 12px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font: 800 20px/1.25 var(--font-head); margin: 6px 0 8px; letter-spacing: -.2px; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.meta { font-size: 13px; color: var(--muted); }
.meta .src { font-weight: 600; }

/* Sidebar */
.sidebar > * + * { margin-top: 32px; }
.sidebar .sticky { position: sticky; top: 84px; }
.mini-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.mini-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: n; }
.mini-list li::before { content: counter(n); font: 800 26px/1 var(--font-head); color: var(--line); min-width: 22px; }
.mini-list a { font-weight: 700; font-size: 15px; line-height: 1.35; }

/* Store products (reklama) */
.store-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.store-box h4 { margin: 0 0 4px; font: 800 16px/1.3 var(--font-head); }
.store-box .sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.store-box .sub a { color: var(--accent); font-weight: 600; }
.products { display: grid; gap: 12px; }
.products.row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .products.row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 10px; padding: 10px; border: 1px solid var(--line); }
.products.row .product { flex-direction: column; align-items: stretch; text-align: left; }
.product .pimg { width: 64px; height: 64px; flex: none; background: #fff; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.products.row .pimg { width: 100%; height: auto; aspect-ratio: 1; }
.product .pimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product .pname { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .pprice { font-size: 15px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.product .pprice del { color: var(--muted); font-weight: 500; font-size: 13px; margin-right: 6px; }
.product .pcta { font-size: 12px; font-weight: 700; color: var(--hot); }
.ad-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }

/* Single */
.article { max-width: 760px; }
.article h1 { font: 800 40px/1.15 var(--font-head); letter-spacing: -.8px; margin: 10px 0 14px; }
@media (max-width: 600px) { .article h1 { font-size: 28px; } }
.article .dek { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article figure.lead { margin: 22px 0; }
.article figure.lead img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.entry { font-size: 19px; line-height: 1.75; }
.entry h2 { font: 800 26px/1.25 var(--font-head); margin: 36px 0 12px; }
.entry h3 { font: 800 21px/1.3 var(--font-head); margin: 28px 0 10px; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.entry ul, .entry ol { padding-left: 22px; }
.entry img { border-radius: 8px; }
.source-box {
  margin: 32px 0; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); font-size: 15px;
}
.source-box strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 6px; }
.source-box a { color: var(--accent); font-weight: 700; }
.source-box ul { margin: 0; padding-left: 18px; }
.source-box .note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }

/* Archive / pagination */
.archive-head { margin-bottom: 28px; }
.archive-head h1 { font: 800 34px/1.2 var(--font-head); margin: 0 0 6px; }
.archive-head p { color: var(--muted); margin: 0; }
.pagination { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; color: var(--muted); }
.ftr { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .ftr { grid-template-columns: 1fr; } }
.site-footer h5 { color: var(--text); font-size: 14px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius); }
.product > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.product .pcta { margin-top: 2px; }

/* 1.0.1: thumb si bllok (aspect-ratio s'vlen për inline); hero pa titull mbi foto,
   sepse kopertinat e gjeneruara e kanë titullin brenda imazhit. */
.card .thumb { display: block; }
.hero-card { flex-direction: column; min-height: 0; background: #0b1220; }
.hero-card img { position: static; width: 100%; aspect-ratio: 16 / 9; height: auto; opacity: 1; }
.hero-card .in { margin-top: 0; background: none; padding: 16px 20px 20px; }
.hero-card.big { min-height: 0; }
.hero-card.big h2 { font-size: 28px; }
.hero-side .hero-card img { aspect-ratio: 16 / 7; object-fit: cover; object-position: left center; }
.hero-side .hero-card h2 { font-size: 18px; }
@media (max-width: 600px) { .hero-card.big h2 { font-size: 22px; } }
.hero-card .in .meta { color: rgba(255, 255, 255, .75); margin-top: 8px; }
.hero-card .in .meta .src { color: #fff; }
.hero-card > a { display: block; }
