
* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --red: #e21d2e;
  --black: #050505;
  --panel: #111111;
  --border: #303030;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--black);
  color: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

header {
  background: #000;
  color: #fff;
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand b {
  font-size: 36px;
  color: var(--red);
}

.brand span {
  font-size: 11px;
  letter-spacing: 1.5px;
}

.nav nav {
  display: flex;
  gap: 20px;
}

.nav nav a:hover {
  color: var(--red);
}

button,
.cta {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  padding: 12px 16px;
  font-weight: bold;
}

.nav button,
.card button,
.cta,
#orderForm button,
.admin button {
  background: var(--red);
  color: #fff;
}

button:hover,
.cta:hover {
  filter: brightness(1.15);
}

.hero {
  max-width: none;
  min-height: 370px;
  display: flex;
  align-items: center;
  padding: 45px max(20px, calc((100% - 1160px) / 2));
  background:
    radial-gradient(ellipse at 85% 40%, #4a1016 0%, transparent 38%),
    linear-gradient(120deg, #050505, #191919);
  border-bottom: 1px solid #282828;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  margin: 14px 0;
}

.hero p {
  max-width: 650px;
  line-height: 1.7;
  color: #ccc;
}

.eyebrow,
.cat {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: bold;
  color: #ff4757;
}

.cta {
  display: inline-block;
  margin-top: 15px;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 0 22px;
}

.toolbar h2 {
  margin-right: auto;
}

.toolbar input,
.toolbar select,
.admin input,
.drawer input {
  min-width: 0;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 7px;
  background: #151515;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 50px;
}

.card {
  min-width: 0;
  background: var(--panel);
  color: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: border-color .2s, transform .2s;
}

.card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.pic {
  height: 190px;
  background: #1b1b1b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-weight: bold;
  overflow: hidden;
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.card h3 {
  min-height: 44px;
  line-height: 1.4;
}

.price {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0;
}

.drawer {
  position: fixed;
  right: -430px;
  top: 0;
  width: 420px;
  max-width: 95vw;
  height: 100%;
  overflow-y: auto;
  background: #0b0b0b;
  color: #fff;
  z-index: 100;
  padding: 20px;
  box-shadow: -5px 0 20px #0008;
  transition: right .25s;
}

.drawer.open {
  right: 0;
}

.drawerHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawerHead button {
  font-size: 28px;
  color: #fff;
  background: transparent;
}

.cartItem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #333;
  padding: 12px 0;
}

.cartItem small,
.row small {
  display: block;
  color: #bbb;
}

.total {
  font-size: 20px;
  padding: 20px 0;
}

.drawer form,
.admin form {
  display: grid;
  gap: 10px;
}

.table,
.order {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 25px;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #333;
}

.row div {
  margin-right: auto;
}

.admin {
  padding-top: 35px;
}

.admin form {
  max-width: 400px;
}

.order {
  padding: 14px;
}

#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #181818;
  color: #fff;
  border: 1px solid var(--red);
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}

#toast.show {
  opacity: 1;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav {
    gap: 10px;
    min-height: 65px;
  }

  .brand b {
    font-size: 29px;
  }

  .brand span {
    font-size: 9px;
    letter-spacing: .5px;
  }

  .nav nav {
    display: none;
  }

  .nav button {
    padding: 10px;
    font-size: 12px;
  }

  .hero {
    min-height: 310px;
    padding: 35px 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .toolbar h2 {
    width: 100%;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 32px;
  }

  .card {
    padding: 7px;
    border-radius: 9px;
  }

  .pic {
    height: 118px;
    border-radius: 6px;
  }

  .card h3 {
    min-height: 36px;
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .card .cat {
    font-size: 10px;
    letter-spacing: .5px;
  }

  .price {
    font-size: 15px;
    margin: 8px 0;
  }

  .card button {
    padding: 9px 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  .category-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  #categories,
  .categories,
  .category-list {
    gap: 7px;
  }

  .drawer {
    width: 100%;
    max-width: 100%;
  }
}


/* DSS Shop: sfond i bardhe, karta produktesh me tekst te bardhe */
html { background: #ffffff; }
body { background: #ffffff; color: #222222; }
main, .wrap, #products, .toolbar { background-color: #ffffff; }
.toolbar h2, #products h2, #products label { color: #222222; }
.card { background: #171717; color: #ffffff; border-color: #dedede; box-shadow: 0 3px 14px #00000012; }
.card h3, .card h3 a, .card p, .card small, .card .description { color: #ffffff; }
.card small, .card .description { color: #e0e0e0; }
.price { color: #ffffff; }
.pic { background: #f4f4f4; }
.toolbar input, .toolbar select { background: #ffffff; color: #222222; border-color: #d2d2d2; }
#products .cat, .card .cat { color: #ff4757; }


/* DSS Shop: karta produktesh pak me kompakte qe te duken 4 produkte ne ekranin e telefonit */
@media (min-width: 601px) {
  #products .pic { height: 155px; }
  #products .card { padding: 10px; }
  #products .card h3 { min-height: 38px; font-size: 14px; margin: 8px 0; }
  #products .price { font-size: 18px; margin: 8px 0; }
}
@media (max-width: 600px) {
  #products .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; }
  #products .card { padding: 6px !important; }
  #products .pic { height: 88px !important; }
  #products .card h3 { min-height: 30px !important; font-size: 11px !important; line-height: 1.2 !important; margin: 5px 0 !important; }
  #products .card .cat { font-size: 9px !important; }
  #products .price { font-size: 13px !important; margin: 5px 0 !important; }
  #products .card button { padding: 7px 5px !important; font-size: 10px !important; }
}

/* Hide the add-to-cart button on product listing cards only. */
#products .card > button { display: none !important; }


/* Hide add-to-cart buttons on product cards; the product detail button remains available. */
#products .card > button { display: none !important; }


/* FIX: sfond i bardhe per kartat e produkteve dhe tekst i erret */
#products .card,
#products .grid > .card,
#grid > .card {
  background: #ffffff !important;
  color: #20242a !important;
  border: 1px solid #e2e5e9 !important;
  box-shadow: 0 3px 14px #1720330d !important;
}
#products .card h3,
#products .card h3 a,
#products .card p,
#products .card small,
#products .card .description,
#products .card .price,
#grid > .card h3,
#grid > .card p,
#grid > .card small,
#grid > .card .price {
  color: #20242a !important;
}
#products .card .pic,
#grid > .card .pic { background: #f4f5f7 !important; }
#products .card .cat,
#grid > .card .cat { color: #e50914 !important; }


/* Slightly larger product cards on phone for easier reading */
@media (max-width: 600px) {
  #products .grid { gap: 9px !important; }
  #products .card { padding: 8px !important; }
  #products .pic { height: 102px !important; }
  #products .card h3 { min-height: 34px !important; font-size: 12px !important; line-height: 1.25 !important; margin: 6px 0 !important; }
  #products .card .cat { font-size: 10px !important; }
  #products .price { font-size: 14px !important; margin: 6px 0 !important; }
}
