@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Design Tokens */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #fdfcfb;
  --bg-tertiary: #f5f3f0;
  --text-primary: #2d221c;
  --text-secondary: #70655e;
  --text-tertiary: #a0958e;
  --brand-orange: #ef6c00;
  --brand-orange-light: #fff3ea;
  --brand-orange-hover: #d84315;
  --border-color: #f1ede8;
  --card-shadow: 0 10px 25px -5px rgba(45, 34, 28, 0.06), 0 8px 10px -6px rgba(45, 34, 28, 0.04);
  --modal-shadow: 0 -20px 40px -5px rgba(45, 34, 28, 0.1);
  --accent-green: #2e7d32;
  
  /* Category Card Colors (Light) */
  --cat-mug-bg: #fff3ea;
  --cat-trophy-bg: #ebf8ee;
  --cat-frame-bg: #f3ebfd;
  --cat-light-bg: #ebf5fc;
  
  /* Device Wrapper Settings */
  --phone-bezel: #2d221c;
  --app-bg: #f8f6f3;
}

body.dark-mode {
  /* Color Palette - Dark Mode */
  --bg-primary: #14110f;
  --bg-secondary: #1d1815;
  --bg-tertiary: #26201b;
  --text-primary: #f7f4f1;
  --text-secondary: #b1a39a;
  --text-tertiary: #7d716a;
  --brand-orange: #f27d18;
  --brand-orange-light: #331e0f;
  --brand-orange-hover: #ff9130;
  --border-color: #2b231e;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --modal-shadow: 0 -20px 40px -5px rgba(0, 0, 0, 0.4);
  --accent-green: #4caf50;
  
  /* Category Card Colors (Dark) */
  --cat-mug-bg: #2d180b;
  --cat-trophy-bg: #0f2214;
  --cat-frame-bg: #1f112e;
  --cat-light-bg: #0c1824;
  
  /* Device Wrapper Settings */
  --phone-bezel: #3d322c;
  --app-bg: #0b0908;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--app-bg);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

/* Device Shell for Desktop Previews */
.phone-shell {
  width: 412px;
  height: 860px;
  background-color: var(--bg-primary);
  border-radius: 44px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 12px var(--phone-bezel), 0 0 0 14px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

/* Notch & Indicators */
.phone-header-bezel {
  width: 100%;
  height: 38px;
  background-color: var(--bg-primary);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
}

.phone-header-bezel .notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 22px;
  background-color: var(--phone-bezel);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.phone-header-bezel .status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.phone-header-bezel .status-icons span {
  display: inline-block;
}

/* Scrollable Web App Body */
.app-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px; /* space for sticky footers */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.app-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.app-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Mobile responsive full screen override */
@media (max-width: 480px) {
  body {
    background-color: var(--bg-primary);
    align-items: flex-start;
  }
  
  .phone-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  
  .phone-header-bezel {
    display: none; /* Hide simulated notch on actual mobile devices */
  }
}

/* Header */
.app-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 0.9;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-container h1 span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  display: block;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, background-color 0.2s;
}

.theme-toggle-btn:active {
  transform: scale(0.9);
}

/* Hero Carousel */
.hero-carousel-container {
  padding: 16px 20px 8px;
  position: relative;
}

.hero-slider {
  width: 100%;
  height: 195px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff3ea 0%, #ffffff 100%);
  box-shadow: var(--card-shadow);
  transition: background 0.3s;
}

body.dark-mode .hero-slider {
  background: linear-gradient(135deg, #331e0f 0%, #1d1815 100%);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  padding: 18px;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.hero-content .subtitle {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hero-content p {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-btn {
  align-self: flex-start;
  background-color: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-btn:active {
  transform: scale(0.96);
}

.hero-btn span {
  font-size: 12px;
}

.hero-image-container {
  flex: 0.9;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image-container img {
  max-width: 110%;
  max-height: 110%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s, width 0.2s;
}

.indicator-dot.active {
  background-color: var(--brand-orange);
  width: 18px;
  border-radius: 4px;
}

/* Shop by Category */
.category-section {
  padding: 16px 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-card.has-discount-cat {
  border: 1.5px solid rgba(239, 108, 0, 0.4);
  box-shadow: 0 4px 15px rgba(239, 108, 0, 0.08);
}

.category-discount-badge {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff8f00, #d84315);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  padding: 4.5px 9px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(216, 67, 21, 0.25);
  animation: badgePulse 2s infinite ease-in-out;
}

.category-card:active {
  transform: scale(0.98);
}

.category-img-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 14px;
}

.category-card.mug .category-img-wrapper { background-color: var(--cat-mug-bg); }
.category-card.trophy .category-img-wrapper { background-color: var(--cat-trophy-bg); }
.category-card.frame .category-img-wrapper { background-color: var(--cat-frame-bg); }
.category-card.lightboard .category-img-wrapper { background-color: var(--cat-light-bg); }

.category-img-wrapper img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.category-info {
  flex: 1;
  transition: padding-right 0.2s ease;
}

.category-card.has-discount-cat .category-info {
  padding-right: 75px;
}

.category-info h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.category-info p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.category-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 16px;
  transition: transform 0.2s;
}

.category-card:hover .category-arrow {
  transform: translateX(2px);
  color: var(--brand-orange);
}

/* Category Details Bottom Sheet / Overlay */
.overlay-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.overlay-panel.active {
  transform: translateY(0);
}

/* Product detail panel slides from the RIGHT, above category panel */
.product-detail-panel {
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-panel.active {
  transform: translateX(0);
}

/* ── Product Detail Panel internals ── */

/* Full-width hero gallery */
.pd-gallery {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.pd-gallery img.pd-swapping {
  opacity: 0;
}

.pd-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.pd-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pd-gallery-dot.active {
  background: var(--brand-orange);
  transform: scale(1.25);
}

.pd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.pd-gallery-arrow:hover { background: rgba(0,0,0,0.65); }
.pd-gallery-arrow.prev { left: 10px; }
.pd-gallery-arrow.next { right: 10px; }

/* Product detail info section */
.pd-info {
  padding: 18px 18px 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}

.pd-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Pricing table inside detail panel */
.pd-price-table-wrap .product-price-table {
  font-size: 12px;
  padding: 10px 14px;
  gap: 6px;
}

/* Method selector inside detail panel */
.pd-method-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-method-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.pd-method-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pd-method-select:focus { border-color: var(--brand-orange); }

/* Price + Qty row */
.pd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pd-price-info {
  display: flex;
  flex-direction: column;
}

.pd-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1.1;
}

.pd-price-unit {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Full-width Add to Inquiry button */
.pd-add-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(239, 108, 0, 0.3);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.pd-add-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(239, 108, 0, 0.2);
}

.pd-add-btn.added {
  background: var(--accent-green);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}

/* Direct Order via WhatsApp button */
.pd-order-btn {
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pd-order-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.2);
}


.overlay-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.overlay-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 80px 20px;
}

.product-list-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:active {
  transform: scale(0.98);
}

.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff8f00, #d84315);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(216, 67, 21, 0.3);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes cardDiscountHighlight {
  0% {
    box-shadow: var(--card-shadow);
    border: 1.5px solid transparent;
  }
  50% {
    box-shadow: 0 6px 22px rgba(239, 108, 0, 0.12);
    border: 1.5px solid rgba(239, 108, 0, 0.35);
  }
  100% {
    box-shadow: var(--card-shadow);
    border: 1.5px solid transparent;
  }
}

.product-card.has-discount-card {
  position: relative;
  animation: cardDiscountHighlight 4s infinite ease-in-out;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card-img img.method-swapping {
  opacity: 0;
  transform: scale(0.9);
}

/* Gallery carousel variant */
.product-card-img--gallery {
  position: relative;
  flex-direction: column;
  cursor: default;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0;
}

.product-card-img--gallery:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow--prev { left: 4px; }
.gallery-arrow--next { right: 4px; }

.gallery-arrow:hover {
  background: rgba(0,0,0,0.75);
}

.gallery-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
  background: var(--brand-orange, #f97316);
  transform: scale(1.3);
}

.product-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 4px;
}

.product-card-details h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-details .description {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.product-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 6px;
}

.product-price-container {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-orange);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px 0;
}

.product-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.tag-sublimation {
  background-color: rgba(239, 108, 0, 0.08);
  color: var(--brand-orange);
}

.tag-sticker {
  background-color: rgba(46, 125, 50, 0.08);
  color: var(--accent-green);
}

.tag-clear-sticker {
  background-color: rgba(33, 150, 243, 0.08);
  color: #2196f3;
}

.tag-uv-print {
  background-color: rgba(156, 39, 176, 0.08);
  color: #9c27b0;
}

.tag-laser-engraved {
  background-color: rgba(121, 85, 72, 0.08);
  color: #795548;
}

.subcategory-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.subcategory-tabs::-webkit-scrollbar {
  display: none;
}

.subcat-tab {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.subcat-tab.active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(239, 108, 0, 0.15);
}

.subcat-tab:active {
  transform: scale(0.95);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-tertiary);
  padding: 4px;
  border-radius: 20px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-input {
  font-size: 12px;
  font-weight: 600;
  width: 32px;
  text-align: center;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

.add-quote-btn {
  background-color: var(--brand-orange);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.add-quote-btn:active {
  transform: scale(0.95);
}

.add-quote-btn.added {
  background-color: var(--accent-green);
}

/* Floating Quote Summary Drawer */
.floating-inquiry-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--modal-shadow);
  z-index: 250; /* Raised to show on top of category overlays */
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-inquiry-bar.visible {
  transform: translateY(0);
}

.inquiry-bar-info {
  display: flex;
  flex-direction: column;
}

.inquiry-bar-info .item-count {
  font-size: 11px;
  color: var(--text-secondary);
}

.inquiry-bar-info .total-est {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-orange);
}

.view-inquiry-btn {
  background-color: var(--brand-orange);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(239, 108, 0, 0.3);
}

.view-inquiry-btn:active {
  transform: scale(0.96);
}

/* Inquiry Detail Panel (Cart) */
.cart-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-panel.active {
  transform: translateY(0);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
  gap: 12px;
}

.cart-empty-state i {
  font-size: 40px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h5 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-details .meta {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-details .price {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-orange);
  margin-top: 2px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ff3b30;
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
}

.cart-item-remove:active {
  transform: scale(0.9);
}

.cart-form {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand-orange);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px;
}

.cart-summary span {
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-summary .total {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-orange);
}

.whatsapp-submit-btn {
  background-color: #25d366;
  color: white;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: background-color 0.2s, transform 0.2s;
}

.whatsapp-submit-btn:active {
  transform: scale(0.98);
}

.whatsapp-submit-btn i {
  font-size: 18px;
}

/* Toast Notifications */
.toast-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Live Card Section */
.live-card-section {
  padding: 8px 20px 24px;
}

.live-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.live-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.live-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-open {
  background-color: rgba(76, 175, 80, 0.08);
  color: var(--accent-green);
}
.status-open .status-dot {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}

.status-closed {
  background-color: rgba(244, 67, 54, 0.08);
  color: #f44336;
}
.status-closed .status-dot {
  background-color: #f44336;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.live-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.live-card-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-card-info-item span.icon {
  font-size: 14px;
}

.live-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.live-card-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.live-card-btn:active {
  transform: scale(0.96);
  background-color: var(--bg-tertiary);
}

.live-card-btn.primary {
  background-color: var(--brand-orange-light);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

body.dark-mode .live-card-btn.primary {
  background-color: var(--brand-orange-light);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.live-card-btn.primary:active {
  background-color: var(--brand-orange);
  color: white;
}

/* Image Lightbox zoom popup (Constrained to .phone-shell space) */
.image-lightbox {
  position: absolute; /* absolute mapping inside relative .phone-shell */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 9, 8, 0.96);
  backdrop-filter: blur(8px);
  z-index: 4000; /* above all overlays and cart drawers */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 44px; /* Matches phone rounded border corners */
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88%;
  max-height: 75%;
  gap: 14px;
}

.lightbox-content {
  max-width: 100%;
  max-height: 50vh; /* Reduced height to keep inside mobile orientation frame */
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5100;
}

.lightbox-close:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: scale(1.05);
}

.lightbox-close:active {
  transform: scale(0.95);
}

/* Product card images are clickable — no zoom hint */
.product-card-img {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Pricing Table for Printing Methods */
.product-price-table {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 7px 10px;
  margin: 6px 0 8px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.price-table-row.header {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 3px;
  letter-spacing: 0.5px;
  font-size: 9px;
}

.price-table-row span:last-child {
  font-weight: 700;
}

.price-table-row:not(.header) span:last-child {
  color: var(--brand-orange);
}

.print-method-selector-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 6px;
}

.print-method-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.print-method-selector {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.print-method-selector:focus {
  border-color: var(--brand-orange);
}

/* Shop-card bottom row: price left, qty+add right; add btn full width when wraps */
.product-card-row .add-quote-btn {
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  font-size: 11px;
}
