@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1fb36d;
  --primary-dark: #0f8a50;
  --accent: #f5b400;
  --success: #16a34a;
  --warning: #ea580c;
  --danger: #dc2626;
  --gray-50: #f6f7fb;
  --gray-100: #eef1f7;
  --gray-200: #dfe5ef;
  --gray-300: #cfd6e3;
  --gray-500: #6b7280;
  --gray-700: #2e3440;
  --gray-900: #0f172a;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 30px rgba(15, 23, 42, 0.12);
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(31,179,109,0.06), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(245,180,0,0.08), transparent 25%),
              var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.cart-btn:hover { background: var(--primary-dark); text-decoration: none; }
.cart-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

/* Search & Filters */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,179,109,0.15); }
.filter-select {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  border: 1px solid var(--gray-100);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 220px;
  max-height: 220px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 2.5rem;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 12px 0;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-info { padding: 12px; }
.product-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-category {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.product-actions { padding: 0 12px 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline {
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-100); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Product Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.product-detail-img {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 4rem;
  overflow: hidden;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-detail-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.product-detail-category { color: var(--gray-500); margin-bottom: 16px; }
.product-detail-price { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.product-detail-desc { color: var(--gray-700); margin-bottom: 24px; line-height: 1.7; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qty-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--gray-100); }

/* Sold Out Product */
.product-detail.sold-out .product-detail-img { position: relative; }
.product-detail.sold-out .product-detail-img img { filter: grayscale(100%); opacity: 0.7; }
.sold-out-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(220, 38, 38, 0.9);
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 12px 32px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.product-card.sold-out { opacity: 0.7; }
.product-card.sold-out .product-card-img img { filter: grayscale(100%); }
.product-card-sold-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.qty-value { font-size: 1.1rem; font-weight: 600; min-width: 30px; text-align: center; }

/* Product Quick View (Overlay) */
body.modal-open { overflow: hidden; }
.product-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(3px);
  z-index: 1000;
}
.product-overlay.active { display: flex; }
.product-sheet {
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.product-sheet-title {
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-sheet-close:hover { background: var(--gray-100); }
.product-sheet-body {
  padding: 16px;
  overflow: auto;
}
.shop .product-sheet .product-detail {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
@media (max-width: 860px) {
  .product-overlay { padding: 0; }
  .product-sheet {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .product-sheet-body { padding: 14px; }
}

/* Cart */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-table {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cart-item {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: 6px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { color: var(--gray-500); font-size: 0.85rem; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-total { font-weight: 700; min-width: 80px; text-align: right; }
.cart-item-remove {
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
}
.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 16px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}
.cart-summary-row.total {
  border-top: 2px solid var(--gray-200);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Checkout Form */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.form-card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}
.delivery-option:hover { border-color: var(--primary); }
.delivery-option.selected { border-color: var(--primary); background: rgba(37,99,235,0.04); }
.delivery-option input[type="radio"] { accent-color: var(--primary); }
.delivery-option-info { flex: 1; }
.delivery-option-name { font-weight: 500; font-size: 0.9rem; }
.delivery-option-desc { font-size: 0.8rem; color: var(--gray-500); }
.delivery-option-price { font-weight: 600; color: var(--primary); }

/* Order Success */
.success-card {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  text-align: center;
}
.success-icon { font-size: 3rem; color: var(--success); margin-bottom: 16px; }
.success-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.success-order-number { font-size: 1.2rem; color: var(--primary); font-weight: 600; margin: 12px 0; }
.success-details { margin: 20px 0; text-align: left; }
.success-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-confirmed { background: #fef3c7; color: #b45309; }
.badge-shipped { background: #e0e7ff; color: #4338ca; }
.badge-delivered { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* Admin Panel */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: var(--gray-900);
  color: #fff;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}
.admin-sidebar-title {
  padding: 0 16px 16px;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.admin-nav-item {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-content {
  flex: 1;
  margin-left: 220px;
  padding: 24px;
  min-height: 100vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.admin-header h1 { font-size: 1.3rem; }
.admin-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-collapse: collapse;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-100);
}
.admin-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}
.admin-table tr:hover td { background: var(--gray-50); }

/* Login form */
.login-card {
  max-width: 380px;
  margin: 80px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.login-card h2 { text-align: center; margin-bottom: 24px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal.modal-xl {
  width: calc(100vw - 32px) !important;
  max-width: 1400px !important;
  max-height: calc(100vh - 32px) !important;
  height: calc(100vh - 32px) !important;
  padding: 18px;
}
.modal h3 { margin-bottom: 16px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gray-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: slideUp 0.3s ease;
  font-size: 0.9rem;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}
.page-btn:hover { background: var(--gray-100); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cart-item { flex-wrap: wrap; }
  .cart-item-total { min-width: auto; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-img { height: 140px; }
  .header-inner { flex-wrap: wrap; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-top: 40px;
}

/* =========================
   Shop v2 (scoped to .shop)
   ========================= */
.shop {
  --primary: #14b8a6;       /* turquoise */
  --primary-dark: #0f766e;  /* deep turquoise */
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(900px 520px at 95% -5%, rgba(6, 182, 212, 0.16), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(20, 184, 166, 0.12), transparent 55%),
    var(--gray-50);
}

.shop a:hover { text-decoration: none; }
.shop :focus-visible { outline: 3px solid rgba(20, 184, 166, 0.40); outline-offset: 2px; }

.shop .header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(20, 184, 166, 0.58));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.shop .header-inner { max-width: 1280px; }
.shop .logo { letter-spacing: 0.2px; color:#fff; }
.shop .header a { color:#fff; }
.shop .header a:hover { opacity: 0.95; }
.shop .cart-btn {
  background: rgba(255,255,255,0.92);
  color: var(--gray-900);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.shop .cart-btn:hover { filter: brightness(1.03); }

.shop .container { max-width: 1280px; }


.shop .filters {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  gap: 12px;
}
.shop .search-input,
.shop .filter-select {
  border-radius: 12px;
  border-color: rgba(209, 213, 219, 0.9);
  background: rgba(249, 250, 251, 0.9);
}
.shop .search-input:focus,
.shop .filter-select:focus,
.shop .form-input:focus {
  border-color: rgba(20, 184, 166, 0.70);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}
.shop .delivery-option.selected {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(20, 184, 166, 0.06);
}
.shop .search-input:focus,
.shop .filter-select:focus {
  border-color: rgba(20, 184, 166, 0.70);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.shop .product-grid { gap: 14px; }
.shop .product-card {
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.10);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.shop .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.16);
  border-color: rgba(20, 184, 166, 0.26);
}
.shop .product-img { background: linear-gradient(180deg, rgba(15,23,42,0.06), rgba(249,250,251,1)); }
.shop .product-img img { transform: scale(1.001); }
.shop .product-name { letter-spacing: -0.01em; font-size: 1rem; }
.shop .product-price { font-size: 1.25rem; }

.shop .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
  box-shadow: 0 12px 22px rgba(20, 184, 166, 0.22);
}
.shop .btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, #0891b2 100%); }

.shop .pagination .page-btn {
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,0.9);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
}
.shop .pagination .page-btn.active {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(6, 182, 212, 0.14));
}

.shop .toast {
  top: 16px;
  right: auto;
  left: 50%;
  bottom: auto;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.18);
}

.shop .product-detail,
.shop .cart-summary,
.shop .checkout-grid .form-card,
.shop .success-card {
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,0.9);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}
.shop .product-detail { background: rgba(255,255,255,0.94); }
.shop .cart-summary,
.shop .checkout-grid .form-card,
.shop .success-card { background: rgba(255,255,255,0.94); }

.shop .product-detail-img { background: transparent; }
.shop .product-detail-price { margin-bottom: 10px; }

/* Product Detail Overlay Layout */
.shop .product-sheet .product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.product-detail-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-detail-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.product-detail-actions .qty-control {
  margin: 0;
}
.btn-add-cart {
  padding: 10px 24px;
  font-size: 0.95rem;
}
.product-detail-prices {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}
.product-detail-prices .price-eur,
.product-detail-prices .price-bgn {
  font-size: 1.5rem;
  font-weight: 700;
}
.product-detail-prices .price-eur {
  color: var(--primary);
}
.product-detail-prices .price-bgn {
  color: var(--gray-600);
}
.product-detail-stock {
  font-size: 0.9rem;
  color: var(--success);
  margin-top: 12px;
}
/* Description with "See more" */
.product-detail-desc-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.desc-preview {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-600);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-detail-desc-box.expanded .desc-preview {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.desc-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 4px;
}
.desc-more-btn:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .shop .product-sheet .product-detail {
    grid-template-columns: 1fr;
  }
  .product-detail-left {
    align-items: center;
  }
  .product-detail-actions {
    justify-content: center;
  }
}

/* Thumbnails / previews */
.product-thumb { width:44px; height:44px; object-fit:cover; border-radius:8px; display:block; background: var(--gray-100); }
.img-preview { width:160px; height:160px; object-fit:cover; border-radius:12px; display:block; background: var(--gray-100); }

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
}
.slider-track { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 48px;
  color: #fff;
  max-width: 600px;
}
.slide-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide-subtitle {
  font-size: 1.1rem;
  margin: 0 0 20px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.slide-content .btn {
  width: fit-content;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 3;
  transition: all 0.2s;
  color: var(--gray-700);
}
.slider-arrow:hover { background: #fff; box-shadow: var(--shadow); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.slider-dot.active { background: #fff; border-color: #fff; }
.slider-dot:hover { border-color: #fff; }

@media (max-width: 768px) {
  .hero-slider { height: 280px; margin: 0 12px 20px; }
  .slide-content { padding: 20px 24px; }
  .slide-title { font-size: 1.5rem; }
  .slide-subtitle { font-size: 0.95rem; }
  .slider-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
}

/* Announcement Bar */
#announcementBar {
  font-family: inherit;
}
#announcementBar a:hover {
  opacity: 0.9;
}

/* Enhanced Footer */
.footer {
  background: var(--gray-900);
  color: #fff;
  padding: 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-about {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}
.footer-section p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
  line-height: 1.5;
}
.footer-section a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.footer-section a:hover {
  color: var(--primary);
}
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 24px;
  }
}

/* Recently Viewed Section */
.recently-viewed-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.recently-viewed-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.recent-product {
  min-width: 140px;
  max-width: 140px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.recent-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.recent-product-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.recent-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.recent-product-img span {
  font-size: 2rem;
  color: var(--gray-300);
}
.recent-product-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.recent-product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Track Order Button & Modal */
.track-order-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gray-700);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gray-300);
  transition: all 0.2s;
}
.track-order-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.track-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(3px);
  z-index: 1000;
}
.track-overlay.active { display: flex; }
.track-modal {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  overflow: hidden;
}
.track-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.track-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.track-modal-body {
  padding: 20px;
}
.track-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.track-search .form-input {
  flex: 1;
}
.track-found {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 16px;
}
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.track-number {
  font-weight: 700;
  color: var(--primary);
}
.track-details p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.track-items {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.track-item {
  font-size: 0.85rem;
  padding: 4px 0;
  color: var(--gray-600);
}
.track-total {
  font-size: 1rem;
  margin-top: 8px;
}
.track-error {
  color: var(--danger);
  text-align: center;
  padding: 16px;
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wishlist-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}
.wishlist-btn.active {
  color: var(--danger);
}
.product-card {
  position: relative;
}
.recent-product {
  position: relative;
}
.recent-product .wishlist-btn {
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
}

/* Categories Section */
.categories-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.categories-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.category-card {
  min-width: 150px;
  max-width: 150px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
}
.category-card-name {
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--gray-700);
}

/* Featured Products Section */
.featured-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ===== BASKET CONFIGURATOR ===== */
.basket-configurator {
  max-width: 900px;
  margin: 0 auto;
}
.basket-configurator.sold-out .basket-image img {
  filter: grayscale(100%);
  opacity: 0.7;
}
.basket-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.basket-image {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.basket-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.basket-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.basket-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--gray-900);
}
.basket-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0 0 16px;
  line-height: 1.6;
}
.basket-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.basket-price .price-eur {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.basket-price .price-bgn {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-500);
}

.basket-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.basket-group {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.basket-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.basket-group-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--gray-800);
}
.basket-group-counter {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.basket-group-counter.complete {
  background: var(--primary);
  color: #fff;
}
.basket-group-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.basket-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.2s;
}
.basket-product:hover {
  background: #fff;
  box-shadow: var(--shadow);
}
.basket-product.selected {
  border-color: var(--primary);
  background: rgba(20, 184, 166, 0.05);
}
.basket-product-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.basket-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.basket-product-info {
  flex: 1;
  min-width: 0;
}
.basket-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.basket-product-price {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.basket-product-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.basket-product-count {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.basket-summary {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  min-height: 80px;
}
.basket-summary-empty {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  padding: 16px;
}
.basket-summary-title {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.basket-summary-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.basket-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gray-700);
}
.basket-summary-item img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.basket-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.basket-actions .qty-control {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
}
.basket-actions .btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .basket-header {
    grid-template-columns: 1fr;
  }
  .basket-image {
    max-width: 280px;
    margin: 0 auto;
  }
  .basket-group-products {
    grid-template-columns: 1fr;
  }
  .basket-actions {
    justify-content: center;
  }
}
