* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #2874f0;
  --blue-dark: #1557c0;
  --orange: #ff9f00;
  --green: #16a34a;
  --red: #e53935;
  --text: #172033;
  --muted: #697386;
  --border: #e5e7eb;
  --bg: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 8px 25px rgba(31, 41, 55, 0.08);
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 75px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}


/* =========================
   LOADING
========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 22px;
}

.loader {
  width: 38px;
  height: 38px;
  border: 4px solid #e7eefc;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-screen p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
}

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


/* =========================
   HEADER
========================= */

.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1400px;
  min-height: 68px;
  margin: auto;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  min-width: 175px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.brand-main {
  font-size: 25px;
  line-height: 25px;
  font-weight: 800;
  letter-spacing: 1px;
  font-style: italic;
}

.brand-sub {
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.9;
}

.search-box {
  flex: 1;
  max-width: 650px;
  height: 42px;
  display: flex;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 15px;
  color: var(--text);
  font-size: 14px;
}

.search-box button {
  width: 52px;
  border: 0;
  background: #fff;
  font-size: 18px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-login-btn {
  border: 0;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  padding: 9px 28px;
  border-radius: 4px;
}

.header-action {
  position: relative;
  border: 0;
  background: transparent;
  color: #fff;
  min-width: 58px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.header-action span {
  font-size: 19px;
}

.header-action small {
  font-size: 10px;
}

.cart-action b,
.bottom-cart-icon b {
  position: absolute;
  background: var(--orange);
  color: #111;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 1px 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -1px;
  right: 7px;
}

.icon-btn,
.mobile-menu-btn {
  display: none;
}

.mobile-search-wrapper {
  display: none;
}


/* =========================
   CATEGORY BAR
========================= */

.category-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  position: relative;
  z-index: 500;
}

.category-item {
  border: 0;
  background: transparent;
  min-width: 100px;
  padding: 7px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #3f4858;
  border-radius: 8px;
}

.category-item span {
  font-size: 20px;
}

.category-item b {
  font-size: 11px;
}

.category-item:hover,
.category-item.active {
  color: var(--blue);
  background: #eef5ff;
}


/* =========================
   MAIN
========================= */

main {
  max-width: 1400px;
  margin: auto;
  padding: 18px 22px 35px;
}

.page-section {
  width: 100%;
}


/* =========================
   HERO
========================= */

.hero-section {
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(125deg, #eaf3ff, #ffffff 48%, #fff2d9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 45px 7%;
  box-shadow: var(--shadow);
}

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

.hero-badge,
.section-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.hero-content h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  margin: 12px 0;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--blue);
}

.hero-content p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 500px;
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-decoration {
  width: 330px;
  height: 270px;
  position: relative;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
}

.circle-one {
  width: 250px;
  height: 250px;
  right: 15px;
  top: 5px;
  background: #dceaff;
}

.circle-two {
  width: 160px;
  height: 160px;
  right: 85px;
  bottom: 5px;
  background: #ffe3b3;
}

.hero-shopping {
  position: absolute;
  right: 65px;
  top: 55px;
  font-size: 110px;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.12));
}


/* =========================
   BUTTONS
========================= */

.primary-btn {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 23px;
  border-radius: 7px;
  font-weight: 700;
  transition: 0.2s;
}

.primary-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.back-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 15px;
  padding: 5px 0;
}


/* =========================
   FEATURES
========================= */

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 30px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}

.feature-card > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-card div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-card strong {
  font-size: 13px;
}

.feature-card small {
  color: var(--muted);
  font-size: 10px;
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 28px 0 15px;
}

.section-heading h2 {
  font-size: 23px;
  margin-top: 5px;
}


/* =========================
   PRODUCT GRID
========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  height: 220px;
  background: #f7f8fb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  font-size: 75px;
}

.product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 4px;
}

.product-wishlist {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 17px;
}

.product-info {
  padding: 13px;
}

.product-category {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.product-name {
  font-size: 14px;
  line-height: 1.4;
  margin: 5px 0;
  min-height: 39px;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  margin-bottom: 7px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
}

.product-old-price {
  color: #8b93a2;
  font-size: 11px;
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.add-cart-btn,
.buy-now-btn {
  border: 0;
  border-radius: 6px;
  padding: 9px 5px;
  font-size: 11px;
  font-weight: 700;
}

.add-cart-btn {
  background: #fff0d2;
  color: #9a5a00;
}

.buy-now-btn {
  background: var(--blue);
  color: #fff;
}


/* =========================
   DEAL BANNER
========================= */

.deal-banner {
  margin: 35px 0;
  padding: 30px 38px;
  border-radius: 16px;
  background: linear-gradient(110deg, #1b55ad, #2874f0);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-banner span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.deal-banner h2 {
  font-size: 28px;
  margin: 7px 0;
}

.deal-banner p {
  opacity: 0.85;
  font-size: 13px;
}

.deal-banner button {
  border: 0;
  background: #fff;
  color: var(--blue);
  border-radius: 7px;
  padding: 12px 20px;
  font-weight: 800;
}


/* =========================
   CATEGORY CARDS
========================= */

.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.category-big-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  min-height: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: 0.2s;
}

.category-big-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-big-card span {
  font-size: 48px;
}

.category-big-card strong {
  font-size: 16px;
}

.category-big-card small {
  color: var(--muted);
}


/* =========================
   PAGE TITLE
========================= */

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 22px;
}

.page-title h1 {
  font-size: 29px;
  margin: 5px 0;
}

.page-title p {
  color: var(--muted);
  font-size: 13px;
}

#sortProducts {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  padding: 10px 13px;
  outline: 0;
}


/* =========================
   PRODUCT DETAILS
========================= */

.product-detail-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  box-shadow: var(--shadow);
}

.detail-image {
  height: 480px;
  background: #f6f7f9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-image .product-placeholder {
  font-size: 140px;
}

.detail-info {
  padding: 12px 0;
}

.detail-category {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-info h1 {
  font-size: 31px;
  margin: 10px 0;
}

.detail-description {
  color: var(--muted);
  line-height: 1.7;
  margin: 15px 0;
}

.detail-price {
  font-size: 30px;
  font-weight: 800;
}

.detail-old-price {
  color: #888;
  text-decoration: line-through;
  margin-left: 10px;
  font-size: 14px;
}

.detail-option {
  margin-top: 20px;
}

.detail-option-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 9px;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  border: 1px solid #ccd2dc;
  background: #fff;
  padding: 8px 14px;
  border-radius: 5px;
}

.option-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #eef5ff;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 0;
}

.quantity-box button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: #f7f8fa;
}

.quantity-box span {
  width: 48px;
  height: 38px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.detail-actions button {
  padding: 14px;
  border-radius: 7px;
  border: 0;
  font-weight: 800;
}

.detail-add {
  background: #fff0d2;
  color: #8a5700;
}

.detail-buy {
  background: var(--blue);
  color: #fff;
}


/* =========================
   CART
========================= */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: 15px;
  align-items: center;
}

.cart-item-image {
  width: 105px;
  height: 105px;
  background: #f7f8fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.cart-item-image .product-placeholder {
  font-size: 45px;
}

.cart-item h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.cart-item-meta {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.cart-item-price {
  font-size: 17px;
  font-weight: 800;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cart-qty {
  display: flex;
  align-items: center;
}

.cart-qty button {
  width: 29px;
  height: 29px;
  border: 1px solid var(--border);
  background: #fff;
}

.cart-qty span {
  width: 35px;
  text-align: center;
  font-size: 12px;
}

.remove-cart {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.cart-item-total {
  font-weight: 800;
  white-space: nowrap;
}

.cart-summary,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 90px;
}

.cart-summary h2,
.checkout-summary h2 {
  font-size: 18px;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  color: var(--text);
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 9px 0;
}

.total-row {
  font-size: 17px;
  padding-top: 15px;
}

.total-row strong {
  font-size: 20px;
}

.checkout-btn {
  width: 100%;
  border: 0;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  padding: 13px;
  border-radius: 6px;
  margin-top: 15px;
}


/* =========================
   CHECKOUT
========================= */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.checkout-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-card-title > span {
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.checkout-card-title h2 {
  font-size: 17px;
}

.checkout-card-title p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-grid label,
.auth-card label {
  color: #394150;
  font-size: 12px;
  font-weight: 700;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.auth-card input {
  display: block;
  width: 100%;
  border: 1px solid #d6dae1;
  border-radius: 7px;
  padding: 11px 12px;
  margin-top: 7px;
  outline: 0;
  background: #fff;
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus,
.auth-card input:focus {
  border-color: var(--blue);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--blue);
  background: #f5f9ff;
}

.payment-option input {
  accent-color: var(--blue);
}

.payment-icon {
  width: 38px;
  height: 38px;
  background: #eef5ff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-info strong {
  font-size: 13px;
}

.payment-info small {
  color: var(--muted);
  font-size: 10px;
}

.payment-info .upi-id {
  color: var(--blue);
  font-weight: 700;
}

.payment-check {
  color: var(--blue);
  opacity: 0;
}

.payment-option:has(input:checked) .payment-check {
  opacity: 1;
}

.upi-payment-box {
  margin-top: 15px;
  background: #f5f9ff;
  border: 1px solid #d9e7ff;
  border-radius: 10px;
  padding: 18px;
}

.upi-payment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upi-payment-header > span {
  font-size: 27px;
}

.upi-payment-header div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upi-payment-header small {
  color: var(--muted);
  font-size: 10px;
}

.upi-id-large {
  background: #fff;
  border: 1px dashed var(--blue);
  padding: 13px;
  text-align: center;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  border-radius: 7px;
  margin: 13px 0;
}

.upi-pay-btn {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.upi-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 9px;
}

.payment-confirmation {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 11px;
  cursor: pointer;
}

.payment-confirmation input {
  margin-top: 2px;
  accent-color: var(--blue);
}

.checkout-summary {
  top: 90px;
}

.checkout-summary h2 {
  margin-bottom: 12px;
}

.checkout-product-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 11px;
  border-bottom: 1px solid #f0f1f3;
}

.checkout-product-line span:first-child {
  color: var(--muted);
}

.place-order-btn {
  width: 100%;
  border: 0;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  padding: 14px;
  border-radius: 7px;
  margin-top: 17px;
}

.secure-note {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin-top: 12px;
}


/* =========================
   AUTH
========================= */

.auth-wrapper {
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  margin-bottom: 20px;
}

.auth-card h1 {
  font-size: 25px;
}

.auth-card > p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 22px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-45%);
  border: 0;
  background: transparent;
  font-size: 15px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  margin-left: 5px;
}

.guest-btn {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 7px;
  padding: 11px;
  margin-top: 15px;
  font-weight: 700;
}


/* =========================
   ACCOUNT
========================= */

.account-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.account-profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 25px;
  text-align: center;
}

.account-avatar {
  width: 75px;
  height: 75px;
  background: #e8f1ff;
  color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 800;
}

.account-profile-card h2 {
  font-size: 17px;
}

.account-profile-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 5px 0 20px;
  word-break: break-word;
}

.logout-btn {
  width: 100%;
  background: #fff;
  border: 1px solid #f1c2c2;
  color: var(--red);
  padding: 10px;
  border-radius: 7px;
  font-weight: 700;
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-menu-item {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.account-menu-item > span {
  font-size: 23px;
}

.account-menu-item div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-menu-item strong {
  font-size: 14px;
}

.account-menu-item small {
  color: var(--muted);
  font-size: 10px;
}

.account-menu-item > b {
  font-size: 22px;
  color: #9aa1ac;
}

.account-login-box {
  max-width: 550px;
  margin: 60px auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 25px;
}

.account-login-box > div:first-child {
  font-size: 50px;
}

.account-login-box h2 {
  margin: 12px 0 7px;
}

.account-login-box p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}


/* =========================
   ORDERS
========================= */

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 13px;
  overflow: hidden;
}

.order-header {
  background: #fafbfc;
  padding: 14px 17px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-id {
  font-weight: 800;
  font-size: 12px;
}

.order-date {
  color: var(--muted);
  font-size: 10px;
}

.order-status {
  padding: 5px 9px;
  border-radius: 20px;
  background: #eaf7ee;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.order-body {
  padding: 15px 17px;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f2f4;
}

.order-product:last-child {
  border-bottom: 0;
}

.order-product-image {
  width: 55px;
  height: 55px;
  border-radius: 7px;
  background: #f6f7f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-product-name {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
}

.order-product-qty {
  color: var(--muted);
  font-size: 10px;
}

.order-product-price {
  font-size: 12px;
  font-weight: 800;
}

.order-footer {
  padding: 13px 17px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #fafbfc;
}

.order-payment,
.order-total {
  font-size: 11px;
}

.order-total strong {
  font-size: 15px;
}


/* =========================
   EMPTY STATE
========================= */

.empty-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  padding: 70px 20px;
}

.empty-state > div {
  font-size: 60px;
  margin-bottom: 10px;
}

.empty-state h2 {
  font-size: 21px;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 18px;
}


/* =========================
   MODALS
========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 35px;
  height: 35px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 24px;
  line-height: 1;
}

.product-modal-content {
  padding: 25px;
}

.small-modal {
  max-width: 390px;
  padding: 35px 25px;
  text-align: center;
}

.modal-icon,
.success-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #eaf2ff;
}

.small-modal h2 {
  font-size: 21px;
}

.small-modal p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 20px;
}

.success-icon {
  background: #eaf8ee;
  color: var(--green);
  font-weight: 800;
}

.success-order-number {
  background: #f5f7fa;
  border-radius: 7px;
  padding: 11px;
  font-size: 11px;
  margin-bottom: 18px;
}

.success-order-number strong {
  color: var(--blue);
  margin-left: 5px;
}

.success-modal .primary-btn {
  width: 100%;
}


/* =========================
   TOAST
========================= */

.toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 85px;
  transform: translate(-50%, 130px);
  background: #172033;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  opacity: 0;
  transition: 0.25s;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

#toastIcon {
  color: #7df0a1;
}


/* =========================
   SIDE MENU
========================= */

.side-menu {
  position: fixed;
  top: 0;
  left: -310px;
  bottom: 0;
  width: 290px;
  background: #fff;
  z-index: 4000;
  transition: 0.25s;
  box-shadow: 10px 0 35px rgba(0,0,0,0.15);
  padding: 18px;
}

.side-menu.open {
  left: 0;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.side-menu-header strong {
  color: var(--blue);
  letter-spacing: 1px;
}

.side-menu-header button {
  border: 0;
  background: transparent;
  font-size: 28px;
}

.side-link {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 15px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.side-link:hover {
  background: #eef5ff;
  color: var(--blue);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(0,0,0,0.45);
  display: none;
}

.menu-overlay.open {
  display: block;
}


/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 67px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 2000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.bottom-nav-item {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  color: #697386;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.bottom-nav-item span {
  font-size: 19px;
  line-height: 20px;
}

.bottom-nav-item small {
  font-size: 9px;
}

.bottom-nav-item.active {
  color: var(--blue);
}

.bottom-cart-icon {
  position: relative;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

  .header-inner {
    gap: 12px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .brand {
    min-width: 135px;
  }

  .brand-main {
    font-size: 21px;
  }

  .header-action {
    min-width: 45px;
  }

  .header-action small {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr 320px;
  }
}


@media (max-width: 760px) {

  body {
    padding-bottom: 68px;
  }

  .top-header {
    position: sticky;
  }

  .header-inner {
    min-height: 58px;
    padding: 7px 10px;
    gap: 8px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .icon-btn {
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .brand {
    min-width: auto;
    flex: 1;
  }

  .brand-main {
    font-size: 19px;
  }

  .brand-sub {
    display: none;
  }

  .search-box {
    display: none;
  }

  .header-actions {
    margin-left: 0;
    gap: 2px;
  }

  .header-login-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .header-action {
    min-width: 32px;
  }

  .header-action span {
    font-size: 17px;
  }

  .header-action small {
    display: none;
  }

  .mobile-search-wrapper {
    display: block;
    padding: 8px 10px;
    background: var(--blue);
  }

  .mobile-search-box {
    display: flex;
    height: 39px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
  }

  .mobile-search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 12px;
    min-width: 0;
    font-size: 12px;
  }

  .mobile-search-box button {
    width: 45px;
    border: 0;
    background: #fff;
  }

  .category-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 8px;
    gap: 2px;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .category-item {
    min-width: 68px;
    padding: 5px 8px;
  }

  .category-item span {
    font-size: 17px;
  }

  .category-item b {
    font-size: 9px;
  }

  main {
    padding: 10px 10px 25px;
  }

  .hero-section {
    min-height: 300px;
    padding: 30px 25px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 13px;
    max-width: 300px;
  }

  .hero-decoration {
    position: absolute;
    right: -70px;
    opacity: 0.65;
    width: 250px;
  }

  .hero-shopping {
    right: 40px;
  }

  .feature-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
  }

  .feature-card {
    padding: 12px 8px;
    gap: 7px;
  }

  .feature-card > span {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .feature-card strong {
    font-size: 10px;
  }

  .feature-card small {
    font-size: 8px;
  }

  .section-heading {
    margin-top: 23px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-image-wrap {
    height: 170px;
  }

  .product-placeholder {
    font-size: 55px;
  }

  .product-info {
    padding: 9px;
  }

  .product-name {
    font-size: 11px;
    min-height: 32px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-old-price {
    font-size: 9px;
  }

  .product-actions {
    gap: 5px;
  }

  .add-cart-btn,
  .buy-now-btn {
    padding: 8px 2px;
    font-size: 9px;
  }

  .deal-banner {
    padding: 22px;
    margin: 25px 0;
    display: block;
  }

  .deal-banner h2 {
    font-size: 22px;
  }

  .deal-banner button {
    margin-top: 17px;
  }

  .category-cards {
    gap: 8px;
  }

  .category-big-card {
    min-height: 135px;
    padding: 12px;
  }

  .category-big-card span {
    font-size: 35px;
  }

  .category-big-card strong {
    font-size: 13px;
  }

  .category-big-card small {
    font-size: 9px;
  }

  .page-title {
    align-items: flex-start;
    margin: 10px 0 15px;
  }

  .page-title h1 {
    font-size: 23px;
  }

  #sortProducts {
    max-width: 150px;
    font-size: 10px;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 18px;
  }

  .detail-image {
    height: 330px;
  }

  .detail-info h1 {
    font-size: 23px;
  }

  .detail-price {
    font-size: 25px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 75px 1fr;
    gap: 10px;
  }

  .cart-item-image {
    width: 75px;
    height: 75px;
  }

  .cart-item-total {
    display: none;
  }

  .cart-item h3 {
    font-size: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label.full {
    grid-column: auto;
  }

  .checkout-card {
    padding: 15px;
  }

  .auth-wrapper {
    min-height: 570px;
  }

  .auth-card {
    padding: 25px 18px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .order-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-status {
    align-self: flex-start;
  }

  .bottom-nav {
    display: flex;
  }

  .toast {
    bottom: 80px;
    width: max-content;
    max-width: 90%;
  }
}


@media (min-width: 761px) {
  .bottom-nav {
    display: none;
  }
}


@media (max-width: 390px) {

  .header-login-btn {
    padding: 6px 8px;
  }

  .header-action {
    min-width: 28px;
  }

  .hero-section {
    min-height: 280px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .product-image-wrap {
    height: 145px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   SAFARIA PREMIUM ACCOUNT BUTTONS
========================================= */

.account-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.account-menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 86px;
  padding: 17px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  text-align: left;
  transition: all .22s ease;
}

.account-menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.13);
  border-color: #2874f0;
}

.account-menu-card:active {
  transform: scale(.98);
}

.account-menu-card > span {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #eef4ff;
  font-size: 25px;
}

.account-menu-card div {
  flex: 1;
  min-width: 0;
}

.account-menu-card strong {
  display: block;
  font-size: 16px;
  color: #111827;
  margin-bottom: 5px;
}

.account-menu-card small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.account-menu-card > b {
  font-size: 25px;
  color: #9ca3af;
  font-weight: 400;
}


/* ADMIN CARD */

.admin-menu-card {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border-color: #cbdcff;
}

.admin-menu-card > span {
  background: #2874f0;
  color: white;
}

.admin-menu-card strong {
  color: #1754b8;
}


/* SELLER CARD */

.seller-menu-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}

.seller-menu-card > span {
  background: linear-gradient(135deg, #ff7a00, #ff9f43);
  color: white;
}

.seller-menu-card strong {
  color: #c2410c;
}


/* LOGOUT */

.logout-card {
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border-color: #fecaca;
}

.logout-card > span {
  background: #fee2e2;
}

.logout-card strong {
  color: #dc2626;
}


/* ACCOUNT PROFILE */

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2874f0, #1557c0);
  color: white;
  box-shadow: 0 10px 30px rgba(40,116,240,.25);
}

.account-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #2874f0;
  font-size: 25px;
  font-weight: 800;
  border: 4px solid rgba(255,255,255,.35);
}

.account-profile-info h2 {
  margin: 0 0 5px;
  color: white;
}

.account-profile-info p {
  margin: 0;
  color: rgba(255,255,255,.85);
}


/* MOBILE */

@media (max-width: 650px) {

  .account-menu-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-menu-card {
    min-height: 78px;
    border-radius: 16px;
  }

  .account-menu-card > span {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .account-profile-card {
    padding: 18px;
    border-radius: 18px;
  }

}