/* =========================
   ROOT / THEME
========================= */
:root {
  --color-primary: #f26b1d;
  --color-dark: #1f1f1f;
  --color-gray: #6b6b6b;
  --color-light: #f7f7f7;
  --color-white: #ffffff;

  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--color-white);
  color: var(--color-dark);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 5rem 0;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 6rem 0;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url("../img/shop-hero.jpg") center / cover no-repeat;
}

.hero p {
  color: #ddd;
  margin-top: 1rem;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;

  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    #ff8a3d
  );

  box-shadow:
    0 8px 22px rgba(242,107,29,0.4),
    0 3px 0 rgba(170,60,10,0.9);

  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(242,107,29,0.6),
    0 3px 0 rgba(170,60,10,1);
}

.btn-primary:active {
  transform: translateY(1px);
}


/* =========================
   CATEGORY GRID
========================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.category-card {
  display: block;
  padding: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.category-card h3 {
  margin-bottom: .5rem;
}

.category-card span {
  font-size: 0.9rem;
  color: #777;
}


/* =========================
   CATEGORY STRIP (TICKER)
========================= */
.category-section {
  padding-bottom: 0.1rem;
}

.category-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  scroll-behavior: smooth;
  padding-top: .5rem;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-pill {
  flex: 0 0 auto;
  background: #f3f3f3;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.category-pill span {
  font-weight: 400;
  opacity: .6;
  margin-left: .3rem;
}

.category-pill:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242,107,29,0.4);
}


/* =========================
   SHOP GRID
========================= */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;   /* ← vigtigt */
}

/* =========================
   SHOP CARD
========================= */
.shop-card {
  position: relative;   /* ← VIGTIG */
  height: 100%;          /* ← vigtigt */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

.shop-card:hover h3 {
  color: var(--color-primary);
}

/* IMAGE WRAPPER – FAST HØJDE */
.shop-card-image {
  width: 100%;
  height: 320px;           /* justér hvis du vil */
  background: #fff;
  display: flex;
  align-items: flex-start; /* IKKE center */
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.shop-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     /* Viser hele billedet */
  display: block;
}


/* CONTENT */

.shop-card-content {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.shop-card h3 {
  min-height: 48px;       /* 2 linjer */
}

.shop-card .card-intro {
  font-size: 0.9rem;
  color: #666;
  flex-grow: 1;
  min-height: 60px;
}

.shop-card .price {
  font-weight: 700;
  font-size: 1.1rem;
   margin-top: auto;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: .5rem;
}

.sale-price {
  color: #d62828;
  font-weight: 700;
}

.save-amount {
  font-size: .85rem;
  color: #d62828;
  font-weight: 600;
  min-height: 20px;
}


.sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #d62828, #ff4d4d);
  color: #fff;
  font-size: .7rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(214,40,40,0.4);
  z-index: 5;
}



/* =========================
   PRODUCT PAGE
========================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.section-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-large {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  color: var(--color-dark);
}

.product-description {
  margin-bottom: 2rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .2s ease;
}

.gallery-thumbs img:hover {
  opacity: 1;
}

/* =========================
   QUANTITY SELECTOR
========================= */
.quantity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quantity input {
  width: 70px;
  padding: 0.4rem;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* =========================
   STRIPE CHECKOUT BUTTON AREA
========================= */
.checkout-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   NAV (minimal shop nav)
========================= */
.shop-nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.shop-nav .container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #121212;
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
  font-size: 0.85rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .two-col {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }

}
