/* ==========================================================================
   Duzz Store - Modern Minimalist Design System
   ========================================================================== */

:root {
  /* Color Palette - Claro Minimalista (Default) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.92);
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --secondary: #3b82f6;
  --accent: #10b981;
  --support: #10b981;
  --accent-light: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-hover: rgba(37, 99, 235, 0.35);
  
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus-bg: #ffffff;
  
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main, #090d16);
  background-image: 
    radial-gradient(at 0% 0%, var(--bg-radial-1, rgba(91, 124, 250, 0.16)) 0px, transparent 65%),
    radial-gradient(at 100% 100%, var(--bg-radial-2, rgba(59, 130, 246, 0.12)) 0px, transparent 65%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .store-name {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(12px);
}

.toast i {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-out {
  animation: toastOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}

/* Header */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 1.5rem;
  transition: padding var(--transition-normal), border-color var(--transition-normal);
}

.store-header.scrolled {
  padding: 0.85rem 1.5rem;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.store-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(91, 124, 250, 0.3);
  transition: transform var(--transition-fast);
}

.store-logo:hover {
  transform: scale(1.04);
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-name {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.store-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-install-app {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-install-app i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.btn-install-app:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Cart Trigger Button */
.cart-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(91, 124, 250, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(91, 124, 250, 0.3);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);

  i {
    width: 18px;
    height: 18px;
    color: var(--primary);
  }

  &:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;

    i {
      color: #ffffff;
    }

    .cart-badge {
      background: #ffffff;
      color: var(--primary);
    }
  }

  &:active {
    transform: scale(0.97);
  }
}

.cart-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cart-badge.bounce {
  animation: badgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Search & Filters */
.search-filters-container {
  max-width: 1200px;
  margin: 1rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search-filters-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-box input {
  width: 100%;
  background: var(--input-bg, #ffffff);
  border: 1px solid var(--input-border, #cbd5e1);
  border-radius: var(--radius-full);
  padding: 0.7rem 2.5rem 0.7rem 2.85rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);

  &:focus {
    border-color: var(--primary);
    background: var(--input-focus-bg, #ffffff);
    box-shadow: 0 0 0 4px var(--primary-glow);
  }

  &:focus ~ .search-icon {
    color: var(--primary);
  }
}

.clear-search-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);

  &:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
  }
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;

  &::-webkit-scrollbar {
    display: none;
  }
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);

  i {
    width: 15px;
    height: 15px;
    opacity: 0.8;
    color: var(--primary);
    transition: opacity var(--transition-fast);
  }

  &:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);

    i {
      opacity: 1;
    }
  }

  &.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;

    i {
      color: #ffffff;
      opacity: 1;
    }
  }
}

/* Main Container */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
}

/* Status Banner */
.status-banner {
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;

  i {
    color: var(--primary);
    flex-shrink: 0;
  }
}

/* Loading & Empty States */
.loading-state, .empty-state {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--text-secondary);
}

.spinner-dual {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem auto;
}

.spinner-dual::before, .spinner-dual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.spinner-dual::before {
  border-top-color: var(--primary);
  animation: spin 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-dual::after {
  border-bottom-color: var(--accent);
  animation: spin 0.9s linear infinite reverse;
  inset: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);

  i {
    width: 32px;
    height: 32px;
  }
}

.empty-state h2, .empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto 1.75rem auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
  }
}

/* Card Styling - Clean Aspect Ratio */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;

  &:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);

    .card-img img {
      transform: scale(1.06);
    }

    .btn-add-card {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
    }
  }
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-main, #f8fafc);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Monogram Fallback */
.monogram-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.monogram-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.monogram-fallback span {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-type-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-product {
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-service {
  background: rgba(37, 99, 235, 0.09);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.card-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.card-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.btn-add-card {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);

  i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform var(--transition-fast);
  }

  &:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;

    i {
      color: #ffffff;
    }
  }

  &:active {
    transform: scale(0.9);
  }
}

.btn-add-card.added {
  background: var(--accent) !important;
  color: #0a0f1e !important;
  border-color: var(--accent) !important;
}

/* Modals & Overlays */
.modal-overlay, .drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity var(--transition-fast);

  &.hidden {
    opacity: 0;
    pointer-events: none;
  }
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);

  &:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
  }
}

/* Modal Content Layout */
.modal-gallery {
  margin-bottom: 1.25rem;
}

.modal-main-img {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-color);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: var(--transition-fast);

  &:hover {
    opacity: 1;
  }

  &.active {
    border-color: var(--primary);
    opacity: 1;
  }
}

.modal-item-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.modal-item-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.modal-item-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Quantity Control Pill */
.quantity-control-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(10, 15, 30, 0.5);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.quantity-control-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);

  &:hover {
    background: var(--primary-light);
    color: var(--primary);
  }
}

.qty-val {
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 24px;
  text-align: center;
}

/* Cart Drawer */
.drawer-overlay {
  justify-content: flex-end;
  padding: 0;
}

.cart-drawer {
  background: var(--bg-surface);
  width: 100%;
  max-width: 440px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border-color);
  animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  
  i {
    color: var(--primary);
  }

  h2 {
    font-size: 1.2rem;
  }
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-fast);

  &:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
  }
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.empty-cart-msg {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);

  i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.5;
  }

  p {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
  }

  span {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

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

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.2rem;
}

.cart-qty-picker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.cart-qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;

  &:hover {
    background: var(--primary-light);
    color: var(--primary);
  }
}

.drawer-footer {
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface, #ffffff);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.total-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;

  &:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(91, 124, 250, 0.35);
  }

  &:active {
    transform: scale(0.98);
  }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);

  &:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.btn-checkout, .btn-whatsapp-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);

  &:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  }

  &.disabled, &:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Form Controls */
.checkout-modal-card {
  max-width: 480px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;

  h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);

    i {
      color: var(--accent);
    }
  }
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--input-bg, #ffffff);
  border: 1px solid var(--input-border, #cbd5e1);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);

  &:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--input-focus-bg, #ffffff);
  }
}

.checkout-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.hidden {
  display: none !important;
}

/* Mobile Responsive Refinements (<640px) */
@media (max-width: 639px) {
  .store-header {
    padding: 0.75rem 0.9rem;
  }

  .store-header.scrolled {
    padding: 0.6rem 0.9rem;
  }

  .store-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .store-name {
    font-size: 1.05rem;
  }

  .store-subtitle {
    font-size: 0.7rem;
  }

  .btn-install-app span {
    display: none;
  }

  .btn-install-app {
    padding: 0.5rem;
    border-radius: 50%;
  }

  .cart-trigger-btn {
    padding: 0.5rem 0.85rem;
  }

  .cart-label {
    display: none;
  }

  .main-content {
    padding: 1rem 0.75rem 5rem 0.75rem;
  }

  .search-filters-container {
    margin-top: 0.6rem;
    gap: 0.6rem;
  }

  .search-box input {
    padding: 0.6rem 2.2rem 0.6rem 2.4rem;
    font-size: 0.85rem;
  }

  .search-icon {
    left: 0.85rem;
    width: 16px;
    height: 16px;
  }

  .tab-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Compact Item Cards */
  .item-card {
    border-radius: var(--radius-md);
  }

  .card-img {
    aspect-ratio: 1 / 1;
  }

  .monogram-circle {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .monogram-fallback span {
    font-size: 0.62rem;
  }

  .card-type-badge {
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.58rem;
  }

  .card-content {
    padding: 0.65rem 0.75rem 0.75rem 0.75rem;
  }

  .card-title {
    font-size: 0.86rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-desc {
    display: none; /* Hide long descriptions on mobile 2-column grid for clean card heights */
  }

  .card-footer {
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }

  .card-price {
    font-size: 0.95rem;
  }

  .btn-add-card {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .btn-add-card i {
    width: 16px;
    height: 16px;
  }

  /* Modals on Mobile */
  .modal-card {
    padding: 1.25rem;
    width: 94%;
    max-height: 90vh;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .detail-gallery {
    max-height: 240px;
  }
}

/* Custom Header Logo Image */
.store-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Store Hero Banner */
.store-hero-banner {
  position: relative;
  width: 100%;
  min-height: 160px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  padding: 1.75rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-hero-banner.has-bg {
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--support, var(--accent));
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge i {
  width: 14px;
  height: 14px;
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.disabled-icon {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

@media (max-width: 640px) {
  .store-hero-banner {
    min-height: 130px;
    padding: 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
  }
  .hero-content h2 {
    font-size: 1.25rem;
  }
  .hero-content p {
    font-size: 0.8rem;
  }
}

/* Footer & Legal Accounting Info */
.store-footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem 3.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.store-footer .company-pseudonym {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.store-footer .legal-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.store-footer .powered-by {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.store-footer .duzz-brand-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  margin-left: 0.2rem;
}

.store-footer .duzz-brand-link:hover {
  color: var(--primary-color, #3b82f6);
}

/* ==========================================================================
   Demo & Root Store Landing Page Components
   ========================================================================== */
.demo-top-bar {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.65rem 1.25rem;
  color: #ffffff;
  position: relative;
  z-index: 110;
}

.demo-top-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(129, 140, 248, 0.25);
  border: 1px solid rgba(165, 180, 252, 0.4);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-top-text {
  font-size: 0.875rem;
  color: #e0e7ff;
  margin: 0;
  flex: 1;
}

.demo-top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.demo-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.demo-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.demo-btn-solid {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.demo-btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.6);
}

/* Callout Card */
.demo-callout-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.callout-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .callout-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.callout-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.callout-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.callout-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.callout-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.callout-header code {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.callout-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.7);
  }
}

/* Footer Callout */
.demo-footer-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .demo-footer-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.demo-footer-content h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.demo-footer-content p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.demo-footer-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary-sm {
  background: #2563eb;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 600;
  text-decoration: none;
}
