/**
 * Webshop Default Theme
 * Clean, modern e-commerce design
 */

:root {
  /* Colors */
  --shop-primary: #a78b71;
  --shop-primary-dark: #8b7355;
  --shop-secondary: #64748b;
  --shop-success: #22c55e;
  --shop-danger: #ef4444;
  --shop-warning: #f59e0b;
  
  /* Background */
  --shop-bg: #ffffff;
  --shop-bg-secondary: #f8fafc;
  --shop-bg-tertiary: #f1f5f9;
  
  /* Text */
  --shop-text: #1e293b;
  --shop-text-secondary: #64748b;
  --shop-text-muted: #94a3b8;
  
  /* Borders */
  --shop-border: #e2e8f0;
  --shop-border-focus: #2563eb;
  
  /* Shadows */
  --shop-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shop-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shop-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shop-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Spacing */
  --shop-container-max: 1280px;
  --shop-container-padding: 1rem;
  
  /* Border radius */
  --shop-radius-sm: 0.25rem;
  --shop-radius: 0.5rem;
  --shop-radius-lg: 0.75rem;
  --shop-radius-xl: 1rem;
  
  /* Transitions */
  --shop-transition: 150ms ease;
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body.shop-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--shop-text);
  background: var(--shop-bg);
  -webkit-font-smoothing: antialiased;
}

.shop-container {
  max-width: var(--shop-container-max);
  margin: 0 auto;
  padding: 0 var(--shop-container-padding);
}

/* ============================================================
   HEADER
   ============================================================ */

.shop-header {
  background: var(--shop-bg);
  border-bottom: 1px solid var(--shop-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

.shop-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--shop-text);
  text-decoration: none;
}

.shop-logo img {
  height: 56px;
  width: auto;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.shop-nav > a {
  color: var(--shop-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--shop-transition);
}

.shop-nav > a:hover,
.shop-nav > a.active {
  color: var(--shop-primary);
}

/* Category dropdown (when > 5 categories) */
.shop-nav-dropdown-wrap {
  position: relative;
}

.shop-nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--shop-bg-secondary);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  color: var(--shop-text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-nav-dropdown-btn:hover {
  border-color: var(--shop-primary);
  color: var(--shop-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shop-nav-dropdown-wrap.open .shop-nav-dropdown-btn {
  border-color: var(--shop-primary);
  color: var(--shop-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shop-nav-arrow {
  font-size: 0.65em;
  transition: transform 0.25s ease;
}

.shop-nav-dropdown-wrap.open .shop-nav-arrow {
  transform: rotate(180deg);
}

.shop-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 100;
  padding: 0.4rem 0;
  animation: shopDropdownIn 0.15s ease;
}

@keyframes shopDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shop-nav-dropdown-wrap.open .shop-nav-dropdown {
  display: block;
}

.shop-nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: var(--shop-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.shop-nav-dropdown a:hover {
  background: var(--shop-bg-secondary);
  color: var(--shop-primary);
}

.shop-nav-dropdown-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--shop-text-secondary);
  background: var(--shop-bg-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
}

/* Mega-menu for hierarchical categories */
.shop-nav-mega {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 1.25rem;
  animation: shopDropdownIn 0.15s ease;
  width: min(92vw, 720px);
  max-height: 80vh;
  overflow-y: auto;
}

.shop-nav-dropdown-wrap.open .shop-nav-mega {
  display: block;
}

.shop-mega-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.shop-mega-group {
  break-inside: avoid;
  padding: 0.25rem 0;
}

.shop-mega-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  color: var(--shop-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.shop-mega-parent:hover {
  background: var(--shop-bg-secondary);
  color: var(--shop-primary);
}

.shop-mega-children {
  margin-top: 0.15rem;
  padding-left: 0.4rem;
  border-left: 2px solid var(--shop-border);
  margin-left: 0.6rem;
}

.shop-mega-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  color: var(--shop-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.shop-mega-child:hover {
  background: var(--shop-bg-secondary);
  color: var(--shop-primary);
}

/* Subcategory cards on category pages */
.shop-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shop-subcategory-card {
  display: flex;
  flex-direction: column;
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--shop-text);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.shop-subcategory-card:hover {
  border-color: var(--shop-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.shop-subcategory-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--shop-bg-secondary);
}

.shop-subcategory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.shop-subcategory-card:hover .shop-subcategory-img img {
  transform: scale(1.05);
}

.shop-subcategory-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--shop-text-muted);
}

.shop-subcategory-info {
  padding: 0.75rem 1rem;
}

.shop-subcategory-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.shop-subcategory-info span {
  font-size: 0.8rem;
  color: var(--shop-text-secondary);
}

@media (max-width: 768px) {
  .shop-nav-mega {
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    border-radius: 0 0 var(--shop-radius) var(--shop-radius);
  }
  .shop-mega-grid {
    column-count: 2;
    column-gap: 1rem;
  }
  .shop-subcategory-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .shop-mega-grid {
    column-count: 1;
  }
  .shop-subcategory-grid {
    grid-template-columns: 1fr;
  }
}

.shop-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu button — hidden on desktop */
.shop-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--shop-bg-secondary);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  color: var(--shop-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-mobile-menu-btn:hover {
  border-color: var(--shop-primary);
  color: var(--shop-primary);
}

/* Mobile category slide-in panel */
.shop-mobile-cat-menu {
  display: none;
}

.shop-mobile-cat-menu.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shop-bg);
  z-index: 1000;
  overflow-y: auto;
  animation: shopMobileMenuIn 0.2s ease;
}

@keyframes shopMobileMenuIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.shop-mobile-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--shop-border);
  font-weight: 700;
  font-size: 1.1rem;
}

.shop-mobile-cat-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--shop-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
}

.shop-mobile-cat-list {
  padding: 0.5rem 0;
}

.shop-mobile-cat-group {
  border-bottom: 1px solid var(--shop-border);
}

.shop-mobile-cat-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  color: var(--shop-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.shop-mobile-cat-parent:hover {
  background: var(--shop-bg-secondary);
}

.shop-mobile-cat-children {
  padding-bottom: 0.5rem;
}

.shop-mobile-cat-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.25rem 0.55rem 2rem;
  color: var(--shop-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.shop-mobile-cat-child:hover {
  background: var(--shop-bg-secondary);
  color: var(--shop-primary);
}

.shop-search {
  position: relative;
}

.shop-search.is-open input {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.shop-search input {
  width: 240px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  font-size: 0.875rem;
  background: var(--shop-bg-secondary);
  transition: all var(--shop-transition);
}

.shop-search input:focus {
  outline: none;
  border-color: var(--shop-border-focus);
  background: var(--shop-bg);
  box-shadow: 0 0 0 3px rgba(167, 139, 113, 0.15);
}

.shop-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--shop-text-muted);
}

.shop-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 360px;
  max-width: min(420px, calc(100vw - 2rem));
  background: var(--shop-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.shop-search-suggestion {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--shop-text);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease;
}

.shop-search-suggestion:hover {
  background: rgba(15, 23, 42, 0.03);
}

.shop-search-suggestion:last-of-type {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.shop-search-suggestion-image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--shop-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-text-muted);
}

.shop-search-suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-search-suggestion-placeholder {
  font-size: 1rem;
}

.shop-search-suggestion-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-search-suggestion-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shop-search-suggestion-title {
  min-width: 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--shop-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-search-suggestion-meta {
  font-size: 0.78rem;
  color: var(--shop-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-search-suggestion-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--shop-text);
  white-space: nowrap;
}

.shop-search-suggestion-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.shop-search-suggestion-empty {
  padding: 14px;
  font-size: 0.86rem;
  color: var(--shop-text-muted);
}

.shop-search-suggestion-view-all {
  display: block;
  padding: 12px 14px;
  background: var(--shop-bg-secondary);
  color: var(--shop-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.shop-search-suggestion-view-all:hover {
  background: rgba(15, 23, 42, 0.05);
}

.shop-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--shop-primary);
  color: white;
  border: none;
  border-radius: var(--shop-radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--shop-transition);
}

.shop-cart-btn:hover {
  background: var(--shop-primary-dark);
}

.shop-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--shop-danger);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HERO / BANNER - Configurable Layout
   ============================================================ */

/* Hero Section Container */
.shop-hero-section {
  margin-bottom: 2rem;
}

.shop-hero-wrapper {
  display: flex;
  gap: 1rem;
  max-width: var(--shop-container-max);
  margin: 0 auto;
  padding: 0 var(--shop-container-padding);
}

/* Layout A: Full width hero */
.shop-hero-section.layout-a .shop-hero-wrapper {
  display: block;
}

.shop-hero-section.layout-a .shop-hero-main {
  width: 100%;
  min-height: 500px;
}

/* Layout B: Hero with 2 sidebar boxes */
.shop-hero-section.layout-b .shop-hero-main {
  flex: 2;
  min-height: 500px;
}

.shop-hero-section.layout-b .shop-hero-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Main Hero */
.shop-hero-main {
  position: relative;
  background-color: var(--shop-primary);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--shop-transition), box-shadow var(--shop-transition);
}

a.shop-hero-main:hover {
  transform: scale(1.005);
  box-shadow: var(--shop-shadow-lg);
}

.shop-hero-media,
.shop-hero-box-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shop-fit-media-bg {
  position: absolute;
  inset: -14px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(24px);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity var(--shop-transition);
}

.shop-fit-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-hero-main.fit-contain .shop-fit-media-bg,
.shop-hero-box.fit-contain .shop-fit-media-bg {
  opacity: 0.55;
}

.shop-hero-main.fit-contain .shop-fit-media-img,
.shop-hero-box.fit-contain .shop-fit-media-img {
  object-fit: contain;
  padding: 0;
}

.shop-hero-box.fit-contain .shop-fit-media-img {
  padding: 0;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
}

.shop-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  max-width: 700px;
}

.shop-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.shop-hero-content p {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.shop-hero-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: white;
  color: var(--shop-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--shop-radius);
  transition: transform var(--shop-transition), box-shadow var(--shop-transition);
}

.shop-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shop-shadow-lg);
}

/* Hero Boxes - Layout A (3 under) */
.shop-hero-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--shop-container-max);
  margin: 1rem auto 0;
  padding: 0 var(--shop-container-padding);
}

/* Hero Box (shared for Layout A and B) */
.shop-hero-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  background-color: var(--shop-bg-tertiary);
  border: 1px solid #d1d5db;
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--shop-transition), box-shadow var(--shop-transition);
}

.shop-hero-section.layout-b .shop-hero-box {
  flex: 1;
  min-height: 0;
}

.shop-hero-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shop-shadow-lg);
}

.shop-hero-box-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}

.shop-hero-box-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: white;
  width: 100%;
}

.shop-hero-box-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.shop-hero-box-content p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* USP Bar */
.shop-usp-bar {
  background: var(--shop-bg-secondary);
  border-top: 1px solid var(--shop-border);
  border-bottom: 1px solid var(--shop-border);
  padding: 1rem 0;
  margin-top: 1rem;
}

.shop-usp-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.shop-usp-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--shop-text-secondary);
  font-size: 0.9rem;
}

.shop-usp-item i {
  color: var(--shop-primary);
  font-size: 1.1rem;
}

/* Legacy fallback for old .shop-hero class */
.shop-hero {
  background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.shop-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.shop-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */

.shop-section {
  padding: 3rem 0;
}

.shop-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.shop-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */

.shop-product-card {
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  transition: all var(--shop-transition);
}

.shop-product-card:hover {
  box-shadow: var(--shop-shadow-md);
  transform: translateY(-2px);
}

.shop-product-card a {
  text-decoration: none;
  color: inherit;
}

.shop-product-image {
  aspect-ratio: 1;
  background: var(--shop-bg-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--shop-transition);
}

.shop-product-card:hover .shop-product-image img {
  transform: scale(1.05);
}

.shop-product-image .placeholder {
  font-size: 3rem;
  color: var(--shop-text-muted);
}

.shop-product-info {
  padding: 1rem;
}

.shop-product-category {
  font-size: 0.75rem;
  color: var(--shop-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.shop-product-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--shop-text);
}

.shop-product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-product-price--campaign {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.shop-product-price .current {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--shop-primary);
}

.shop-product-price .current.is-campaign {
  color: #dc2626;
}

.shop-product-price .compare {
  font-size: 0.875rem;
  color: var(--shop-text-muted);
  text-decoration: line-through;
}

.shop-product-price .campaign-original-line {
  font-size: 0.78rem;
  color: var(--shop-text-secondary);
}

.shop-product-price .campaign-original-value {
  color: var(--shop-text-muted);
  text-decoration: line-through;
}

.shop-product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 2;
}

.shop-product-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--shop-radius-sm);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.shop-product-badge--featured {
  background: #f59e0b;
}

.shop-product-badge--new {
  background: #2563eb;
}

.shop-product-badge--campaign {
  background: #dc2626;
}

.shop-product-ribbon {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  z-index: 3;
  min-width: 170px;
  padding: 0.45rem 1.5rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 0;
  box-shadow: 0 14px 28px rgba(127, 29, 29, 0.32);
  transform: translateX(-50%) rotate(-12deg);
}

.shop-product-ribbon--temporary-out {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */

.shop-product-page {
  padding: 2rem 0;
}

.shop-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.shop-product-gallery {
  position: sticky;
  top: 80px;
}

.shop-product-main-image {
  aspect-ratio: 1;
  background: var(--shop-bg-secondary);
  position: relative;
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.shop-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-thumbnails {
  display: flex;
  gap: 0.5rem;
}

.shop-product-thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--shop-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--shop-transition);
}

.shop-product-thumbnail.active,
.shop-product-thumbnail:hover {
  border-color: var(--shop-primary);
}

.shop-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-details h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.shop-product-meta {
  color: var(--shop-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.shop-product-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--shop-primary);
  margin-bottom: 1.5rem;
}

.shop-product-price-large.is-campaign,
.shop-product-price-large__current.is-campaign {
  color: #dc2626;
}

.shop-product-price-large .compare {
  font-size: 1.25rem;
  color: var(--shop-text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.shop-price-deposit {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--shop-text-secondary);
}

.shop-price-deposit.is-hidden {
  display: none;
}

.shop-product-price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: -0.75rem 0 1rem;
  font-size: 0.95rem;
  color: var(--shop-text-secondary);
}

.shop-product-price-note__label {
  font-weight: 600;
  color: var(--shop-text-muted);
}

.shop-product-price-note__value {
  font-weight: 700;
  color: var(--shop-text);
}

.shop-product-price-note__saving {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
}

.shop-product-description {
  color: var(--shop-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Combo items */
.shop-combo-items {
  margin-bottom: 1rem;
}

.shop-combo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--shop-bg-secondary);
  border-radius: 8px;
  margin-bottom: 8px;
}

.shop-combo-item-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-combo-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-combo-item-image i {
  color: #cbd5e1;
}

.shop-combo-item-info {
  flex: 1;
  min-width: 0;
}

.shop-combo-item-name {
  font-weight: 500;
  font-size: 14px;
}

.shop-combo-item-detail {
  font-size: 12px;
  color: var(--shop-text-muted);
}

/* Variants */
.shop-variant-group {
  margin-bottom: 1.5rem;
}

.shop-variant-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shop-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-variant-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-bg);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--shop-transition);
}

.shop-variant-btn:hover {
  border-color: var(--shop-primary);
}

.shop-variant-btn.selected {
  border-color: var(--shop-primary);
  background: rgba(167, 139, 113, 0.15);
  color: var(--shop-primary);
}

.shop-variant-select {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-bg);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--shop-transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.shop-variant-select:hover,
.shop-variant-select:focus {
  border-color: var(--shop-primary);
  outline: none;
}

/* Image Variants */
.shop-variant-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shop-variant-image-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--shop-bg);
}

.shop-variant-image-option:hover {
  border-color: var(--shop-border);
  transform: translateY(-2px);
}

.shop-variant-image-option.selected {
  border-color: var(--shop-primary);
  background: rgba(167, 139, 113, 0.08);
  box-shadow: 0 2px 8px rgba(167, 139, 113, 0.15);
}

.shop-variant-image-option img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.shop-variant-image-option > div:last-child {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--shop-text-secondary);
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quantity */
.shop-quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shop-quantity-label {
  font-weight: 600;
}

.shop-quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
}

.shop-quantity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--shop-text-secondary);
  transition: color var(--shop-transition);
}

.shop-quantity-btn:hover {
  color: var(--shop-primary);
}

.shop-quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--shop-border);
  border-right: 1px solid var(--shop-border);
  text-align: center;
  font-size: 1rem;
}

/* Add to cart */
.shop-add-to-cart {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--shop-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--shop-transition);
}

.shop-btn-primary {
  background: var(--shop-primary);
  color: white;
  flex: 1;
}

.shop-btn-primary:hover {
  background: var(--shop-primary-dark);
}

.shop-btn-secondary {
  background: var(--shop-bg-secondary);
  color: var(--shop-text);
  border: 1px solid var(--shop-border);
}

.shop-btn-secondary:hover {
  background: var(--shop-bg-tertiary);
}

/* Stock status */
.shop-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.shop-stock.in-stock {
  color: var(--shop-success);
}

.shop-stock.low-stock {
  color: var(--shop-warning);
}

.shop-stock.out-of-stock {
  color: var(--shop-danger);
}

.shop-stock.backorder {
  color: #6366f1; /* Indigo/lila för beställningsvaror */
}

/* ============================================================
   CART
   ============================================================ */

.shop-cart {
  padding: 2rem 0;
}

.shop-cart-items {
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--shop-border);
}

.shop-cart-item:last-child {
  border-bottom: none;
}

.shop-cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--shop-bg-secondary);
  border-radius: var(--shop-radius);
  overflow: hidden;
}

.shop-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-cart-item-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.shop-cart-item-variant {
  font-size: 0.875rem;
  color: var(--shop-text-secondary);
}

.shop-cart-item-price {
  font-weight: 600;
  text-align: right;
}

.shop-cart-item-remove {
  color: var(--shop-text-muted);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: color var(--shop-transition);
}

.shop-cart-item-remove:hover {
  color: var(--shop-danger);
}

.shop-cart-summary {
  background: var(--shop-bg-secondary);
  border-radius: var(--shop-radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.shop-cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.shop-cart-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 0.75rem;
  border-top: 1px solid var(--shop-border);
  margin-top: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.shop-footer {
  background: var(--shop-bg-tertiary);
  border-top: 1px solid var(--shop-border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.shop-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.shop-footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.shop-footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-footer-section li {
  margin-bottom: 0.5rem;
}

.shop-footer-section a {
  color: var(--shop-text-secondary);
  text-decoration: none;
  transition: color var(--shop-transition);
}

.shop-footer-section a:hover {
  color: var(--shop-primary);
}

.shop-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--shop-border);
  color: var(--shop-text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.shop-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--shop-text-secondary);
  padding: 1rem 0;
}

.shop-breadcrumbs a {
  color: var(--shop-text-secondary);
  text-decoration: none;
  transition: color var(--shop-transition);
}

.shop-breadcrumbs a:hover {
  color: var(--shop-primary);
}

.shop-breadcrumbs .separator {
  color: var(--shop-text-muted);
}

/* ============================================================
   CATEGORIES SIDEBAR
   ============================================================ */

.shop-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-category-item {
  border-bottom: 1px solid var(--shop-border);
}

.shop-category-item:last-child {
  border-bottom: none;
}

.shop-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: var(--shop-text);
  text-decoration: none;
  transition: color var(--shop-transition);
}

.shop-category-link:hover,
.shop-category-link.active {
  color: var(--shop-primary);
}

.shop-category-count {
  font-size: 0.875rem;
  color: var(--shop-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .shop-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .shop-search {
    order: 3;
    width: 100%;
  }
  
  .shop-search input {
    width: 100%;
  }

  .shop-search-suggestions {
    width: 100%;
    max-width: 100%;
  }

  .shop-search-suggestion {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .shop-search-suggestion-price {
    grid-column: 2;
  }
  
  .shop-nav {
    display: none;
  }

  .shop-mobile-menu-btn {
    display: flex;
  }
  
  .shop-product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .shop-product-gallery {
    position: static;
  }
  
  .shop-cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  
  .shop-cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  /* Hero responsive */
  .shop-hero h1 {
    font-size: 1.75rem;
  }
  
  .shop-hero-wrapper {
    flex-direction: column;
  }
  
  .shop-hero-section.layout-a .shop-hero-main,
  .shop-hero-section.layout-b .shop-hero-main {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
  
  .shop-hero-section.layout-b .shop-hero-sidebar {
    flex-direction: row;
  }
  
  .shop-hero-section.layout-b .shop-hero-box {
    min-height: 150px;
  }
  
  .shop-hero-content h1 {
    font-size: 2rem;
  }
  
  .shop-hero-content p {
    font-size: 1rem;
  }
  
  .shop-hero-boxes {
    grid-template-columns: 1fr;
  }
  
  .shop-usp-items {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}
