/* ===== AS4SPORT — Design System ===== */
/* Modern, clean, blu energjik + e bardhë — për ballinën DHE admin panelin */

:root {
  --ink: #F5F7FB;        /* sfondi i faqes — gri-blu shumë i çelët */
  --char: #FFFFFF;       /* sfondi i kartave — e bardhë */
  --gold: #2554FF;       /* ngjyra kryesore — blu energjik */
  --goldbright: #1740D6; /* blu më i errët, hover/aktiv */
  --cream: #10182B;      /* teksti kryesor — gati e zezë, e ngrohtë */
  --stone: #64748B;      /* teksti dytësor — gri i butë */
  --line: #E4E9F2;       /* kufijtë — gri-blu i çelët */
  --blue-soft: #EEF2FF;  /* sfond blu shumë i çelët (badges, hover) */
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(16,24,43,.06);
  --shadow-md: 0 10px 30px rgba(16,24,43,.10);
}

* { box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #fff; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.btn-gold, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; font-size: 14px; letter-spacing: 0; text-transform: none;
  border: 1.5px solid var(--gold); cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600;
  border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 4px 14px rgba(37,84,255,.25); }
.btn-gold:hover { background: var(--goldbright); border-color: var(--goldbright); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,84,255,.32); }
.btn-outline { background: #fff; color: var(--gold); }
.btn-outline:hover { background: var(--blue-soft); transform: translateY(-1px); }
.btn-gold:disabled, .btn-outline:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.card { background: var(--char); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Badges / status pills */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-pending { background: #F1F5F9; color: var(--stone); }
.badge-gold { background: var(--blue-soft); color: var(--goldbright); }
.badge-danger { background: #FEE2E2; color: #DC2626; }

/* ===== Storefront Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--cream); }
.logo img { height: 34px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 13.5px; color: var(--stone); font-weight: 600; }
.main-nav a { position: relative; padding-bottom: 4px; }
.main-nav a:hover { color: var(--gold); }
.cart-link { font-size: 13.5px; font-weight: 600; color: var(--cream); }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 10px; margin-left: 6px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 24px; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 90px 24px 50px; background: linear-gradient(180deg, var(--blue-soft) 0%, var(--ink) 100%); }
.hero h1 { font-size: 46px; max-width: 720px; margin: 18px auto 18px; line-height: 1.14; color: var(--cream); }
.hero p { color: var(--stone); max-width: 560px; margin: 0 auto 32px; font-size: 17px; }
.trust-row { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 640px; margin-left: auto; margin-right: auto; }
.trust-item { padding: 0 28px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.grid-3-force { grid-template-columns: repeat(3, 1fr) !important; }
.pos-layout { display: grid; grid-template-columns: 1.3fr 1fr; }

.section { padding: 72px 0; }
.cat-grid, .product-grid { display: grid; gap: 20px; }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-tile { padding: 30px 20px; text-align: center; font-weight: 600; color: var(--cream); transition: all .15s ease; }
.cat-tile:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.product-card { position: relative; overflow: hidden; transition: all .2s ease; }
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card .badge-top { position: absolute; top: 12px; left: 12px; z-index: 2; background: #F59E0B; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; }
.product-card .thumb { aspect-ratio: 1; background: var(--blue-soft); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 18px; }
.product-card h3 { font-size: 15.5px; margin-bottom: 6px; font-weight: 600; }
.product-card .benefit { color: var(--stone); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.price { color: var(--gold); font-weight: 700; }
.price-old { color: var(--stone); text-decoration: line-through; font-size: 13px; margin-left: 8px; font-weight: 400; }

/* ===== Filters ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-bar a { padding: 10px 18px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); color: var(--stone); border-radius: 100px; transition: all .15s ease; background: #fff; }
.filter-bar a.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.filter-bar a:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
.product-detail .thumb { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--blue-soft); }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.option-group { margin-bottom: 22px; }
.option-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); margin-bottom: 10px; font-weight: 700; }
.option-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btns button { padding: 10px 18px; font-size: 13.5px; border: 1.5px solid var(--line); background: #fff; color: var(--cream); cursor: pointer; font-family: inherit; font-weight: 500; border-radius: var(--radius); transition: all .15s ease; }
.option-btns button:hover { border-color: var(--gold); }
.option-btns button.selected { border-color: var(--gold); color: var(--gold); background: var(--blue-soft); font-weight: 700; }

/* ===== Forms ===== */
input, select, textarea {
  background: #fff; border: 1.5px solid var(--line); color: var(--cream);
  padding: 12px 14px; font-family: inherit; font-size: 14px; width: 100%;
  border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }
input::placeholder, textarea::placeholder { color: #A3ADC2; }
label { font-size: 13px; color: var(--stone); display: block; margin-bottom: 6px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--stone); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr { transition: background .1s ease; }
tbody tr:hover { background: var(--blue-soft); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 100px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 56px 0; font-size: 14px; color: var(--stone); }
.footer-grid h3 { font-size: 19px; color: var(--cream); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { text-align: center; font-size: 12px; color: var(--stone); padding: 22px 0; border-top: 1px solid var(--line); }

/* ==================================================================== */
/* ===== ADMIN PANEL — e njëjta tem\u00eb e \u00e7el\u00ebt, modern e sportive ===== */
/* ==================================================================== */
.admin-body { background: var(--ink); }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  background: #fff; width: 250px; padding: 26px 18px; flex-shrink: 0;
  display: flex; flex-direction: column; border-right: 1px solid var(--line);
}
.admin-brand { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: var(--cream); padding: 0 10px; margin-bottom: 4px; }
.admin-role-tag { font-size: 11px; color: var(--gold); padding: 0 10px; margin-bottom: 26px; font-weight: 700; letter-spacing: .02em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; font-size: 13.5px; color: var(--stone); border-radius: var(--radius); font-weight: 600; transition: background .12s ease, color .12s ease; }
.admin-sidebar nav a i { font-size: 17px; width: 18px; text-align: center; }
.admin-sidebar nav a:hover { background: var(--blue-soft); color: var(--gold); }
.admin-sidebar nav a.active { background: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(37,84,255,.25); }
.admin-sidebar .nav-divider { height: 1px; background: var(--line); margin: 14px 4px; }
.admin-sidebar .nav-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-sidebar .nav-bottom a { color: var(--stone); }

.admin-main { flex: 1; padding: 36px 40px; max-width: calc(100vw - 250px); }
.admin-main h1 { font-size: 25px; margin-bottom: 24px; color: var(--cream); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { padding: 20px 22px; border-top: 3px solid var(--gold); }
.stat-card .label { color: var(--stone); font-size: 12.5px; margin-bottom: 8px; font-weight: 600; }
.stat-card .value { font-size: 26px; color: var(--cream); font-family: 'Poppins', sans-serif; font-weight: 700; }
.role-tag { color: var(--gold); font-size: 12px; }

.variant-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: center; padding: 14px; margin-bottom: 10px; }
.checkbox-row { display: flex; gap: 24px; font-size: 14px; margin: 16px 0; }
.checkbox-row label { display: flex; align-items: center; gap: 8px; color: var(--cream); margin-bottom: 0; }
.checkbox-row input { width: auto; box-shadow: none; }

.error-text { color: #DC2626; font-size: 13px; font-weight: 500; }
.success-text { color: #15803D; font-size: 13px; font-weight: 500; }

/* ===== Menyja mobile e admin-it ===== */
.admin-topbar-mobile { display: none; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 18px; position: sticky; top: 0; z-index: 60; }
.admin-topbar-mobile .admin-brand { margin: 0; padding: 0; }
.admin-topbar-mobile button { background: none; border: none; color: var(--gold); font-size: 22px; cursor: pointer; padding: 4px; }

@media (max-width: 960px) {
  .admin-sidebar { display: none; }
  .admin-sidebar.mobile-open { display: flex; position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; overflow-y: auto; }
  .admin-sidebar.mobile-open #admin-nav-close { display: block; }
  .admin-main { max-width: 100%; padding: 20px 16px 90px; }
  .admin-topbar-mobile { display: flex; }
}

/* ===== Navigimi mobil poshtë (4 ikona) ===== */
.mobile-bottom-nav { display: none; }
@media (max-width: 860px) {
  .main-nav, .header-actions { display: none; }
  body { padding-bottom: 64px; }
  .mobile-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,24,43,.06);
  }
  .mobile-bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 8px; color: var(--stone); font-size: 10.5px; font-weight: 600;
  }
  .mobile-bottom-nav a.active { color: var(--gold); }
  .mobile-bottom-nav a svg { stroke: currentColor; }
  .mobile-bottom-nav .cart-badge { position: absolute; top: -2px; right: 4px; font-size: 9px; width: 15px; height: 15px; }
}
@media (min-width: 861px) {
  a[aria-label="WhatsApp"] { bottom: 24px !important; }
}

/* ===== Breakpoints të përgjithshme ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-3-force, .pos-layout, .variant-row { grid-template-columns: 1fr !important; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 32px; }
  .trust-row { flex-direction: column; gap: 10px; align-items: center; }
  .trust-item { border-right: none !important; padding: 0; }
}
@media (max-width: 560px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  th, td { padding: 10px 8px; font-size: 12.5px; }
  .admin-main h1 { font-size: 20px; }
}
