/* ==========================================================================
   KINOX RENTAL - COMPONENTS STYLESHEET
   Navbar, Hero, Category Grid, Product Cards, Specs Table, Cart Drawer, Modals
   ========================================================================== */

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 8000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-red-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.nav-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-red);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.2);
}

.nav-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Selector */
.lang-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

/* Cart Trigger Button */
.cart-trigger-btn {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.cart-trigger-btn:hover {
  border-color: var(--primary-red);
  transform: translateY(-1px);
}

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

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100%);
  max-width: 100%;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, rgba(10, 12, 16, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #ff4d5a;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.hero-feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.hero-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  flex-shrink: 0;
}

.hero-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-feature-text p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- CATEGORY BROWSER (Matching User Screenshot Layout) --- */
.category-section {
  padding: 2.5rem 0;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-tag {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.85rem;
}

.category-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.category-card.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-red-glow);
}

.category-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  transition: color var(--transition-fast);
}

.category-card.active .category-card-icon {
  color: #ffffff;
}

.category-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.category-card.active .category-card-name {
  color: #ffffff;
}

/* --- FILTER & SEARCH BAR --- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
}

.filter-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary-red);
}

/* --- PRODUCT CARDS GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.product-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 68%;
  background: #0f1219;
  overflow: hidden;
  cursor: pointer;
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-card-title:hover {
  color: var(--primary-red);
}

.product-card-specs-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-card-specs-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.product-card-price {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.price-period {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.product-card-actions {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}

/* Both buttons share the row and shrink with the card instead of overflowing it. */
.product-card-actions .btn-sm {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Give the primary CTA a little more room than the secondary link. */
.product-card-actions .btn-primary {
  flex-grow: 1.25;
}

.product-card-specs-row .spec-row-key {
  color: var(--text-dim);
  flex: 0 0 auto;
}

/* The value must be allowed to shrink and ellipsis, otherwise a long spec
   ("Actual: 31.7 Megapixel / Effective…") pushes past the card edge. A flex
   child needs min-width:0 for text-overflow to engage at all. */
.product-card-specs-row .spec-row-val {
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-partner {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* --- PRODUCT DETAIL MODAL & SPECS TABLE --- */
.product-modal-dialog {
  max-width: 960px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gallery-main-wrap {
  width: 100%;
  padding-top: 75%;
  position: relative;
  background: #0f1219;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.gallery-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--primary-red);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Technical Specifications Table (Matching Taylor & Co layout) */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.85rem;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 0.65rem 0.5rem;
  vertical-align: top;
}

.specs-table td.spec-name {
  color: var(--text-dim);
  font-weight: 500;
  width: 40%;
}

.specs-table td.spec-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Pricing Tiers Box */
.pricing-tiers-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0;
}

.pricing-tiers-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.pricing-tier-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
}

.tier-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tier-rate {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* Availability Calendar Widget */
.availability-widget {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0;
}

.avail-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.avail-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.avail-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.avail-day-cell.free {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.avail-day-cell.busy {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  text-decoration: line-through;
}

.avail-day-cell.header {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* Included in Box checklist */
.box-checklist {
  list-style: none;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.box-checklist li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.box-checklist li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 800;
}

/* --- RENTAL CART & PRE-ORDER DRAWER --- */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: 9600;
}

.cart-drawer-backdrop.active .cart-drawer {
  transform: translateX(0);
}

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

.cart-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.date-picker-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.date-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-red);
  background: rgba(255, 255, 255, 0.08);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.qty-btn {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.cart-calc-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.calc-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.conflict-warning-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* --- PRE-ORDER SUCCESS MODAL --- */
.success-modal-content {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-green);
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.success-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.success-order-id {
  display: inline-block;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.direct-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* --- FOOTER --- */
.footer {
  margin-top: auto;
  background: #07080c;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-features-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-search {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STOREFRONT STRUCTURAL CLASSES
   These replace the inline style="" attributes that used to live in index.html,
   so the markup stays readable and the rules can respond to media queries.
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Brand-coloured link buttons (were repeated inline in five places). */
.btn-instagram { color: #f43f5e; }
.btn-telegram  { color: #38bdf8; }
.btn-whatsapp  { color: #22c55e; }

/* --- Social / contact strip --- */
.social-strip {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.social-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-strip-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.55;
  margin-top: 0.5rem;
}

.social-strip-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand-head h3 {
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
}

.footer-blurb {
  font-size: 0.85rem;
  max-width: 340px;
  margin-bottom: 1.25rem;
}

.footer-lang {
  margin-bottom: 1.25rem;
}

.footer-lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-lang .lang-selector {
  display: inline-flex;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.footer-contact-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.staff-link {
  color: var(--border-medium);
  font-size: 0.75rem;
}

.staff-link:hover {
  color: var(--text-dim);
}

/* --- Modal / drawer bits that were inline --- */
.modal-dialog-narrow {
  max-width: 620px;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

#product-modal-title {
  font-size: 1.25rem;
}

/* Storefront modals need the small-screen sizing that previously only existed
   in admin.css — which the public page no longer loads. */
@media (max-width: 768px) {
  .modal-dialog {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .social-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
