/* ==========================================================================
   agedsocials - White canvas with brown & amber accents
   Primary: #8b4513 · Accent: #ffab10 · Success: #11b76b
   Fully Responsive for Desktop, Laptop, Tablet, Mobile Landscape & Portrait
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Saira+Semi+Condensed:wght@300;400;500;600;700;800;900&family=Rubik:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brown + amber theme */
  --primary: #8b4513;
  --primary-hover: #6f3610;
  --primary1: #8b4513;
  --primary-soft: #f8f8f8;
  --primary-border: #e5e7eb;
  --heading: #2f2118;
  --sub-heading: #4b3a2e;
  --text: #4d3d31;
  --gray: #6f5d4e;
  --white: #ffffff;
  --chalk: #f8f8f8;
  /* White page canvas + clean panel surfaces; dark brown stays as the accent */
  --body: #ffffff;
  --body-deep: #ffffff;
  --panel-bg: #ffffff;
  --panel-soft: #ffffff;
  --border: #e5e7eb;
  --border-focus: #8b4513;
  --green: #11b76b;
  --red: #ff3838;
  --orange: #e86121;
  --yellow: #ffab10;
  --blue: #1494a9;

  /* Typography */
  --font-heading: 'Saira Semi Condensed', sans-serif;
  --font-body: 'Saira Semi Condensed', 'Rubik', sans-serif;

  /* Shadows */
  --primary-bshadow: 0px 8px 24px rgba(139, 69, 19, 0.15);
  --card-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--body);
  background-image: none;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Header Top (Deep Aubergine Announcement Bar)
   ========================================================================== */
.header-top {
  background: #2b1b12;
  color: #d1d5db;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top a {
  color: #ffab10;
}

.header-top a:hover {
  color: #fff;
}

.header-top-welcome {
  flex: 1;
  min-width: 260px;
}

.header-top-welcome p {
  margin: 0;
  line-height: 1.4;
}

.header-top-select {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.header-select select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
}

.header-select select option {
  background: #2b1b12;
  color: #fff;
}

.header-top-list {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
}

.header-top-list a {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
}

.header-top-list a:hover {
  color: #fff;
}

/* ==========================================================================
   Header Part (Clean White Main Header)
   ========================================================================== */
.header-part {
  background: var(--panel-soft);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.header-user-toggle {
  display: none;
  font-size: 20px;
  color: var(--heading);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  white-space: nowrap;
}

.header-logo-text .badge-txt {
  background: #ffab10;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 2px;
}

.header-form {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.header-form input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--chalk);
  font-size: 14px;
  color: var(--heading);
  outline: none;
  transition: all 0.2s ease;
}

.header-form input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
}

.header-form button {
  position: absolute;
  top: 0;
  right: 0;
  height: 42px;
  width: 42px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
}

.header-form button:hover {
  color: var(--primary);
}

.header-widget-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--chalk);
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-widget:hover {
  background: #f8f8f8;
  border-color: var(--primary);
  color: var(--primary);
}

.header-widget i {
  font-size: 15px;
  color: var(--primary);
}

.header-widget sup {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.user-widget {
  background: var(--primary-soft);
  border-color: rgba(139, 69, 19, 0.3);
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Navbar Part (Brown Ribbon #8b4513)
   ========================================================================== */
.navbar-part {
  background: var(--primary);
  color: #ffffff;
  padding: 0;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.28);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar-content::-webkit-scrollbar {
  display: none;
}

.navbar-list {
  display: flex;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  display: inline-block;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s;
}

.navbar-link:hover, .navbar-link.active {
  background: rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.dropdown-position-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 100;
  padding: 8px 0;
}

.navbar-item.dropdown:hover .dropdown-position-list {
  display: block;
}

.dropdown-position-list li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.dropdown-position-list li a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  padding-left: 22px;
}

.navbar-info-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.navbar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.navbar-info:hover {
  color: #ffab10;
}

.navbar-info i {
  font-size: 16px;
  opacity: 0.85;
}

.navbar-info p {
  margin: 0;
  line-height: 1.2;
}

.navbar-info p small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  text-transform: uppercase;
}

.navbar-info p span {
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   Main Store Layout (Grid System)
   ========================================================================== */
.feature-part {
  padding: 24px 0 50px;
}

.main-store-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

/* Grid children must be allowed to shrink, otherwise the nowrap category
   strip on mobile forces the whole page wider than the viewport. */
.main-store-layout > * {
  min-width: 0;
}

/* Disclaimer Notice Box */
.account-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.account-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.account-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.text-danger-emphasis {
  color: #e74c3c;
  font-weight: 700;
}

.text-success-emphasis {
  color: #2ecc71;
  font-weight: 700;
}

/* 24-48 hour warranty / no-refund notice (dark brown + amber accent) */
.warranty-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #b45309;
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #7c2d12;
  font-weight: 600;
}
.warranty-alert i {
  color: #b45309;
  margin-top: 3px;
  flex-shrink: 0;
}
.warranty-alert strong { font-weight: 800; }

/* Home Categories Buttons (Scrollable on small screens) */
.custom-button-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.btn-category-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.btn-category-home:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-category-home.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-category-home i {
  font-size: 14px;
}

/* Right Column: Wallet Box */
.card-wallet-home {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.card-wallet-home h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-display-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-heading);
  margin: 6px 0 14px;
}

.btn-action-wallet {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.btn-action-wallet:hover {
  background: var(--primary-hover);
}

.btn-action-wallet.btn-alt {
  background: var(--chalk);
  color: var(--heading);
  border: 1px solid var(--border);
}

.btn-action-wallet.btn-alt:hover {
  background: #f8f8f8;
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   Category Headings & Product Cards
   ========================================================================== */
.home-heading {
  margin: 25px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.home-heading h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.home-heading h3 i {
  color: var(--primary);
  font-size: 19px;
}

/* Category artwork — only categories carry a picture. Sizes match the
   Admin → Categories & Pictures thumbnails (42px). */
.cat-pic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}
.cat-menu-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}
.cat-chip-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cat-heading-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cat-row-img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cat-inline-img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  flex-shrink: 0;
  vertical-align: middle;
}
.btn-category-home.active .cat-chip-img { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45); }

.products-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.feature-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.feature-name a {
  color: var(--heading);
}

.feature-name a:hover {
  color: var(--primary);
}

.label-text.feat {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
  display: block;
}

.label-text.feat b {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.feature-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 16px;
  background: var(--chalk);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  white-space: pre-line;
}

.feature-desc i {
  color: var(--primary);
  margin-right: 4px;
}

.card-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-buy {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-buy:hover {
  background: var(--primary-hover);
}

.btn-more {
  background: var(--chalk);
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-more:hover {
  background: #f8f8f8;
  color: var(--primary);
  border-color: var(--primary);
}

/* Out of Stock Overlay */
.product-disable {
  position: relative;
  opacity: 0.8;
}

.product-disable::before {
  position: absolute;
  content: "Out of stock";
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 0;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  color: #ffffff;
  background: rgba(224, 152, 22, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-dialog {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--heading);
  background: var(--chalk);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--panel-soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text);
}

.summary-row.total-row {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--heading);
}

.summary-row.total-row span.total-naira {
  color: var(--primary);
  font-size: 18px;
}

.qty-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--chalk);
  color: var(--heading);
  cursor: pointer;
  font-size: 14px;
}

.qty-btn:hover {
  background: #ececec;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--heading);
}

.balance-status-alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-status-alert.sufficient {
  background: #e8f8f0;
  color: #11b76b;
  border: 1px solid #c2eed5;
}

.balance-status-alert.insufficient {
  background: #fef0f0;
  color: #e74c3c;
  border: 1px solid #fad2d2;
}

.cred-box {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
  margin-top: 6px;
}

.btn-copy-chip {
  background: #f8f8f8;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Mobile Bottom Menu Bar (.mobile-menu)
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

.mobile-menu a, .mobile-menu button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 55px;
  transition: color 0.2s;
}

.mobile-menu a i, .mobile-menu button i {
  font-size: 18px;
  margin-bottom: 2px;
}

.mobile-menu a.active, .mobile-menu a:hover, .mobile-menu button:hover {
  color: var(--primary);
}

/* ==========================================================================
   Mobile Slide-out Drawer (.nav-sidebar & .backdrop)
   ========================================================================== */
.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1500;
}

.backdrop.active {
  display: block;
}

.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--panel-soft);
  z-index: 1600;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.nav-sidebar.active {
  transform: translateX(0);
}

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

.nav-sidebar-content {
  padding: 16px;
  flex: 1;
}

.nav-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-sidebar-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.nav-sidebar-list a i {
  flex-shrink: 0;
}

body.nav-open {
  overflow: hidden;
}

.nav-sidebar-list a:hover, .nav-sidebar-list a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-sidebar-list a i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--heading);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  font-size: 14px;
  font-weight: 600;
  animation: toastIn 0.3s ease;
}

.toast-item.success {
  border-left: 4px solid var(--green);
}

.toast-item.error {
  border-left: 4px solid var(--red);
}

.toast-item.info {
  border-left: 4px solid var(--primary);
}

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

/* ==========================================================================
   Footer (Deep Brown)
   ========================================================================== */
.footer-part {
  background: #2b1b12;
  border-top: 3px solid var(--primary);
  padding: 40px 0 20px;
  margin-top: auto;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #d1d5db;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffab10;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 10px;
}

.footer-contact i {
  color: #ffab10;
  margin-top: 3px;
}

.footer-contact a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #ffab10;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #ffab10;
}

.footer-part .header-logo-text {
  color: #ffffff;
}

/* ==========================================================================
   Comprehensive Media Queries Across All Major Breakpoints
   ========================================================================== */

/* Laptop / Small Desktop: 992px to 1199px */
@media (max-width: 1199px) {
  .main-store-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
  .header-logo-text {
    font-size: 26px;
  }
}

/* Tablet Landscape & Portrait: 768px to 991px */
@media (max-width: 991px) {
  .header-user-toggle {
    display: inline-block;
  }
  
  .navbar-part {
    display: none; /* Replaced by mobile drawer & bottom menu */
  }

  .main-store-layout {
    grid-template-columns: 1fr; /* Single column stack */
    gap: 20px;
  }

  .products-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-button-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Mobile Landscape & Standard Phones: 576px to 767px */
@media (max-width: 767px) {
  body {
    padding-bottom: 65px; /* Prevent fixed bottom bar from covering content */
  }

  .mobile-menu {
    display: flex;
  }

  .header-top {
    font-size: 12px;
  }

  .header-top-list {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
  }

  .header-top-list a {
    font-size: 12px;
    font-weight: 700;
  }

  .header-logo-text {
    font-size: 22px;
  }

  .header-logo-text .badge-txt {
    display: none;
  }

  .header-form {
    display: none; /* Replaced by search in drawer or inline */
  }

  .user-widget span {
    display: none; /* Just show user avatar circle on mobile */
  }

  .products-row {
    grid-template-columns: 1fr; /* Single column product cards on mobile */
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal-dialog {
    max-width: 95vw;
    margin: 10px;
  }
}

/* Small Phones: 320px to 575px (e.g. iPhone SE, Android 360px-414px) */
@media (max-width: 575px) {
  .container {
    padding: 0 12px;
  }

  .header-part {
    padding: 10px 0;
  }

  .header-logo-text {
    font-size: 20px;
  }

  .header-widget {
    padding: 6px 8px;
    font-size: 12px;
  }

  .header-widget span {
    display: none;
  }

  .account-card {
    padding: 16px 14px;
  }

  .account-card p {
    font-size: 13px;
  }

  .home-heading h3 {
    font-size: 15px;
  }

  .feature-card {
    padding: 14px 16px;
  }

  .feature-name {
    font-size: 14px;
  }

  .feature-price {
    font-size: 18px;
  }

  .card-btn-row {
    gap: 8px;
  }

  .btn-buy, .btn-more {
    padding: 8px 0;
    font-size: 13px;
  }

  .toast-item {
    min-width: 250px;
    max-width: 90vw;
  }
}
