*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-body: #f5f5f7;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --border-subtle: #e4e4e7;
  --text-main: #0f172a;
  --text-subtle: #6b7280;
  --primary: #d24a22;
  --primary-soft: #d24a2230;
  --primary-deep: #d24a22;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --nav-toggle: black;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
}

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 1100;
  transition: z-index 0.3s step-end;
}

body.nav-open .site-header {
  z-index: 4000;
  /* Elevated above overlay (2000) */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1002;
}

body.nav-open .header-actions {
  z-index: 3000; /* Above .nav (2500) so the X toggle stays visible */
}

.nav-toggle {
  display: none;
}

/* Base span styles - ensures height is never 0 */
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  min-height: 2.5px;
  background: #000000;
  border-radius: 1px;
  transition: all 0.3s ease;
  margin: 4.5px 0;
  transform-origin: center;
}

.logo {
  position: relative;
  z-index: 1002;
}

.logo a {
  font-weight: 100;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.site-logo {
  height: 90px;
  width: auto;
}

.nav > a {
  margin-left: 1rem;
  font-size: 0.95rem;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
}

.nav > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-deep);
  transition: width 0.3s ease;
}

.nav > a:hover {
  background: transparent;
  text-decoration: none;
  color: var(--primary-deep);
}

.nav > a:hover::after {
  width: 100%;
}

.nav > a.active {
  background: transparent;
  color: var(--primary-deep);
  font-weight: 600;
}

.nav > a.active::after {
  width: 100%;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding: 0.5rem;
  color: var(--text-main);
  transition: transform 0.2s;
}

.cart-link:hover {
  transform: translateY(-2px);
  color: var(--primary-deep);
}

.cart-count-pill {
  position: absolute;
  top: 0;
  right: -5px;
  background: var(--primary-deep);
  color: #ffffff;
  border-radius: 999px;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid white;
}

/* Main wrapper */

.main {
  padding-bottom: 3rem;
}

/* HERO SLIDER */

.hero-slider {
  padding: 1.5rem 0 0.5rem;
}

.slider {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
  box-shadow: var(--shadow-soft);
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  padding: 2.5rem 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.slide-left h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.slide-left p {
  margin: 0 0 1.5rem;
  color: var(--text-subtle);
  max-width: 420px;
}

.slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.badge-primary {
  background: #1d4ed8;
  color: white;
}

.slide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.slide-right {
  justify-self: center;
}

.slide-hero-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.slide-hero-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 260px;
  object-fit: cover;
}

/* Slider controls */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  width: 22px;
  background: var(--primary-deep);
}

/* PAGE HERO (inner banners) */

.page-hero {
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.page-hero-title {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
}

.page-hero-subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.page-hero-shop {
  background: linear-gradient(135deg, #eef2ff, #f1f5f9);
}

.page-hero-contact {
  background: linear-gradient(135deg, #f5f3ff, #e0f2fe);
}

.page-hero-checkout {
  background: linear-gradient(135deg, #ecfdf3, #eef2ff);
}

.page-hero-success {
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
}

/* Sections */

.section {
  padding: 2rem 0 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-header h2,
.section-header h1 {
  margin: 0 0 0.3rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.link-inline {
  font-size: 0.9rem;
  color: var(--primary-deep);
}

/* Info strip */

.info-strip {
  padding: 2.2rem 0 0;
}

.info-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 1rem;
}

.info-emoji {
  font-size: 1.3rem;
}

.info-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.info-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Cards / Products */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.product-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.product-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 0.7rem;
  background: #e5e7eb;
  height: 240px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0.2rem 0 0.1rem;
  font-size: 0.98rem;
}

.product-card .category {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.product-card .price {
  font-weight: 600;
  margin: 0.35rem 0 0.15rem;
}

.product-card .desc {
  font-size: 0.8rem;
  color: var(--text-subtle);
  min-height: 2.2em;
  margin: 0 0 0.7rem;
}

.add-to-cart-form {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.add-to-cart-form input[type="number"] {
  width: 64px;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
}

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

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

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* Toast */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: #f9fafb;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.5);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */

.form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.inline-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.helper-text {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #22c55e;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  display: none;
}

/* Checkout layout */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1.2rem;
}

.cart-summary {
  padding: 1.1rem 1.2rem;
}

.cart-summary h2,
.checkout-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem 0;
}

.cart-item {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.cart-item h3 {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
}

.cart-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.cart-item-actions {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cart-qty-btn {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f3f4f6;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: #e5e7eb;
}

.cart-qty {
  font-size: 0.8rem;
}

.cart-remove {
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.18rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.cart-remove:hover {
  background: #fee2e2;
}

.cart-total {
  font-size: 1rem;
  margin-top: 0.4rem;
}

.checkout-card {
  padding: 1.1rem 1.2rem;
}

.small-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}

.empty-cart-message {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

/* Order success page */

.success-card {
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 1.6rem 1.7rem;
}

.success-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.success-details {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.success-details p {
  margin: 0.15rem 0;
}

.success-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-copy h1 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.contact-list li+li {
  margin-top: 0.3rem;
}

.contact-card {
  padding: 1.2rem 1.3rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.2rem 0;
  margin-top: 2.5rem;
}

.footer-inner {
  font-size: 0.82rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: flex-start;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.footer-sub {
  margin: 0;
  color: var(--text-subtle);
}

.footer-col-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-links a {
  color: var(--text-subtle);
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 900px) {
  .slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .slide-right {
    justify-self: stretch;
  }

  .slide-hero-img {
    max-width: 100%;
    height: 220px;
  }

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

/* @media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav a {
    margin-left: 0.3rem;
  }

  .slider {
    border-radius: 20px;
  }

  .slider-btn {
    display: none;
  }

  .section {
    padding-top: 1.7rem;
  }

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

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
} */

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .slide {
    padding: 1.6rem 1.4rem 1.8rem;
  }

  .product-card img {
    height: 210px;
  }
}

/* ================================
   MOBILE NAV (OFF-CANVAS DRAWER)
   Desktop remains unchanged
================================ */

@media (max-width: 768px) {

  /* Prevent swipe-back gesture from opening nav */
  body {
    touch-action: pan-y;
  }

  /* Disable scrolling when nav is open */
  body.nav-open {
    overflow: hidden;
  }

  /* Header stays sticky */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--bg-header);
  }

  .header-inner {
    padding: 0.6rem 0;
  }

  /* Full-screen clean mobile menu */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding: 7.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2500;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
  }

  body.nav-open .nav {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  /* Overlay that appears behind nav */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Nav links styling (full-screen menu) */
  .nav > a {
    margin: 0;
    width: 100%;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.2rem 0;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav > a:active {
    background: #f9fafb;
    padding-left: 0.5rem;
  }

  .nav > a.active {
    color: var(--primary);
  }

  /* Close button on mobile menu */
  .nav-close {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #111827;
    cursor: pointer;
    color: black;
  }

  .nav > a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav > a.active {
    background: rgba(255, 140, 0, 0.2);
    color: #ffa500;
  }

  /* Logo size for mobile */
  .site-logo {
    height: 48px;
    /* Slightly smaller for better fit */
  }

  /* Hamburger toggle visible only on mobile */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: auto;
    z-index: 1002;
    position: relative;
    width: 40px;
    height: 40px;
  }

  body.nav-open .nav-toggle {
    z-index: 4100;
    /* Ensure it stays on top of drawer content */
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #000000;
    border-radius: 1px;
    transition: all 0.3s ease;
    margin: 4.5px 0;
    transform-origin: center;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Close button on mobile menu */
  .nav-close {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #111827;
    cursor: pointer;
    z-index: 1002;
  }
}

/* ================================
   DESKTOP SAFETY - RESTORE NAV
================================ */

@media (min-width: 769px) {

  .header-inner {
    justify-content: flex-end;
  }

  .logo {
    margin-right: auto;
    order: 1;
  }

  /* Show nav normally on desktop */
  .nav {
    display: contents;
  }

  /* Restore desktop nav link styles */
  .nav > a {
    margin-left: 1rem;
    font-size: 0.95rem;
    padding: 0.5rem 0.2rem;
    color: var(--text-main);
    position: relative;
    transition: color 0.3s ease;
    order: 2;
  }

  .nav > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-deep);
    transition: width 0.3s ease;
  }

  .nav > a:hover {
    background: transparent;
    color: var(--primary-deep);
  }

  .nav > a:hover::after {
    width: 100%;
  }

  .header-actions {
    order: 3;
    margin-left: 1.5rem;
  }

  #nav-auth-area {
    order: 4;
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
  }

  .nav a.active {
    background: transparent;
    color: var(--primary-deep);
    font-weight: 600;
  }

  .nav a.active::after {
    width: 100%;
  }


  .nav-overlay {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .nav-close {
    display: none;
  }
}


/* ===== ECOMMERCE FOOTER (OVERRIDE) ===== */

.site-footer {
  border-top: none;
  background: #020617;
  padding: 2.5rem 0 2.8rem;
  margin-top: 3rem;
  color: #e5e7eb;
}

.footer-inner {
  font-size: 0.85rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #f9fafb;
}

.footer-sub {
  margin: 0;
  color: #9ca3af;
}

.footer-col-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.83rem;
}

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

.footer-newsletter {
  margin-top: 1rem;
}

.footer-newsletter label {
  display: block;
  font-size: 0.82rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.footer-newsletter-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.footer-newsletter-row input {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.footer-newsletter-row input::placeholder {
  color: #6b7280;
}

.footer-newsletter-row button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #f97316;
  color: #111827;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.footer-newsletter-row button:hover {
  background: #fb923c;
}

.footer-newsletter-note {
  margin: 0;
  font-size: 0.76rem;
  color: #6b7280;
}

.footer-demo-note {
  margin-top: 0.8rem;
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* ===== FULL-WIDTH HERO SLIDER UPGRADE ===== */
.hero-slider {
  padding: 0;
}

/* UPDATED SLIDER HEIGHT */
.slide {
  min-height: 70vh !important;
}

/* SLIDER HEIGHT FIXED TO 70% */
.hero-slider,
.slider,
.slide {
  height: 70vh !important;
  min-height: 70vh !important;
}

/* CART PAGE REFINEMENT */
.cart-page {
  background: #f5f5f7;
}

.cart-page-title {
  text-align: center;
  margin: 0 0 1.6rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.cart-summary,
.checkout-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.cart-summary {
  padding: 1.4rem 1.6rem;
}

.checkout-card {
  padding: 1.4rem 1.6rem;
}

.cart-item {
  align-items: center;
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
}

.cart-item h3 {
  font-size: 0.95rem;
}

.cart-item-actions {
  margin-top: 0.4rem;
}

.cart-total {
  font-size: 1.05rem;
  font-weight: 600;
}

.btn-primary.btn-full {
  font-size: 0.95rem;
  font-weight: 600;
}

/* FOOTER REDESIGN */
.site-footer {
  border-top: none;
  background: #1f2933;
  padding: 2.6rem 0 2.4rem;
  margin-top: 3rem;
  color: #e5e7eb;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.footer-logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #facc15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #111827;
  font-size: 1rem;
}

.footer-logo-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-sub {
  margin: 0.2rem 0;
  color: #9ca3af;
  font-size: 0.84rem;
}

.footer-support-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #fbbf24;
}

.footer-support-link:hover {
  color: #facc15;
}

.footer-col-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.footer-links a {
  color: #cbd5f5;
  font-size: 0.84rem;
}

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

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.footer-contact-list i {
  margin-top: 0.15rem;
}

.footer-contact-list a {
  color: #e5e7eb;
}

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

.footer-social-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.footer-social-row a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.footer-social-row a:hover {
  background: #fbbf24;
  color: #111827;
}

.footer-demo-note {
  margin-top: 0.6rem;
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .cart-page-title {
    font-size: 1.5rem;
  }
}

/* CART PAGE LIKE REFERENCE UI */
.cart-page {
  background: #f4f0e9;
}

.cart-page-title {
  text-align: left;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

/* Main layout already using .checkout-layout: keep it, just tweak gaps */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

/* Cart card similar to mock */
.cart-summary {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.5rem;
}

.cart-summary h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

/* List container style */
.cart-list {
  margin: 0;
  padding: 0;
}

/* Cart item row */
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 0.9rem 0.3rem;
  border-radius: 16px;
  align-items: center;
}

.cart-item+.cart-item {
  border-top: 1px solid #e5e7eb;
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #f3f4f6;
}

.cart-item-main h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.cart-item-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.cart-item-bottom {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-line-total {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Qty controls like pill */
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
}

.cart-qty-btn {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
}

.cart-qty {
  font-size: 0.85rem;
}

/* Remove icon */
.cart-remove {
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
}

/* Total label */
.cart-total {
  margin-top: 1.1rem;
  text-align: right;
  font-size: 0.95rem;
}

.cart-total strong {
  font-size: 1.1rem;
}

/* Order summary card like mock */
.checkout-card {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.5rem 1.6rem;
}

.summary-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.summary-rows {
  border-radius: 16px;
  background: #f9fafb;
  padding: 0.9rem 0.9rem 0.7rem;
  margin-bottom: 0.9rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.summary-row span:last-child {
  font-weight: 500;
}

.summary-row:nth-child(2) span:last-child {
  color: #ef4444;
}

.summary-total {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #e5e7eb;
  font-weight: 600;
}

.summary-total span:last-child {
  font-size: 1rem;
}

/* Promo form style */
.promo-form {
  margin: 0 0 0.9rem;
}

.promo-input-wrap {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.promo-input-wrap input {
  flex: 1;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  font-size: 0.85rem;
}

.promo-input-wrap button {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #f9fafb;
  font-size: 0.85rem;
  cursor: pointer;
}

.promo-input-wrap button:hover {
  background: #020617;
}

.promo-help {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.divider-soft {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.9rem 0 0.9rem;
}

.checkout-subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

/* Responsive tweaks for cart layout */
@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-page-title {
    text-align: center;
  }

  .cart-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .cart-remove {
    grid-column: 2 / 3;
    justify-self: flex-end;
  }
}

/* TREND STYLE FOOTER */
.footer-trend {
  background: linear-gradient(180deg, #111, #0a0a0a);
  position: relative;
  padding: 3.5rem 0 5rem;
  color: #fff;
  overflow: hidden;
}

.footer-trend-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.footer-trend-left h2 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.footer-newsletter {
  margin: 1rem 0 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
}

.footer-newsletter button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #9efc67;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.footer-social-pills span {
  display: inline-block;
  background: #222;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
}

.footer-trend-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-trend-links h4 {
  margin-bottom: 0.6rem;
}

.footer-trend-links a {
  display: block;
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

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

.footer-bg-text {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 7rem;
  font-weight: 800;
  opacity: 0.05;
  padding-left: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-trend-inner {
    grid-template-columns: 1fr;
  }

  .footer-bg-text {
    font-size: 4rem;
  }
}

/* SHOP PAGE REDESIGN */
.shop-hero {
  padding: 1.8rem 0 1.6rem;
}

.shop-hero .container {
  max-width: 1180px;
}

.shop-hero-inner {
  background: #e0f2fe;
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 2rem;
}

.shop-hero-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.shop-hero-text h1 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}

.shop-hero-copy {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.shop-hero-media img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Shop layout body */
.shop-body {
  padding: 0.8rem 0 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.shop-filters {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1rem 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
  font-size: 0.85rem;
}

.shop-filter-header {
  margin-bottom: 0.75rem;
}

.shop-count {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.shop-filter-group+.shop-filter-group {
  margin-top: 0.8rem;
}

.shop-filter-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.shop-filter-body {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-filter-body label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
}

/* Products side */
.shop-products {
  background: transparent;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.9rem;
  gap: 1rem;
}

.shop-toolbar-title {
  margin: 0;
  font-weight: 600;
}

.shop-toolbar-sub {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
}

#sort-select {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.85rem;
}

/* 3-column grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

/* Tweak product card to be closer to ref */
.product-card {
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.product-card img {
  height: 220px;
}

.product-card h3 {
  font-size: 0.98rem;
}

.product-card .price {
  font-size: 0.96rem;
}

/* Responsive for shop layout */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 768px) {
  .shop-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

/* DIGI FASHION FOOTER (REFINED) */
.df-footer {
  background: #111827;
  border-top: 1px solid #1f2937;
  padding: 2.4rem 0 2.1rem;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.df-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.df-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.df-footer-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #111827;
}

.df-footer-logo-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.df-footer-logo-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.df-footer-text {
  margin: 0 0 0.4rem;
  color: #9ca3af;
}

.df-footer-support {
  font-size: 0.8rem;
  color: #fbbf24;
}

.df-footer-support:hover {
  color: #facc15;
}

.df-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.df-footer-heading {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.df-footer-col a {
  color: #cbd5f5;
  font-size: 0.84rem;
}

.df-footer-col a:hover {
  color: #fff;
}

.df-footer-line {
  margin: 0 0 0.3rem;
  color: #e5e7eb;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.df-footer-line i {
  margin-top: 0.15rem;
}

.df-footer-line a {
  color: #e5e7eb;
}

.df-footer-line a:hover {
  color: #fbbf24;
}

.df-footer-social-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.df-footer-social-row a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 0.82rem;
}

.df-footer-social-row a:hover {
  background: #fbbf24;
  color: #111827;
}

.df-footer-meta {
  margin: 0;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Responsive footer layout */
@media (max-width: 960px) {
  .df-footer-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  }
}

@media (max-width: 640px) {
  .df-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Modern product card styling */
.product-card {
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
}

.product-card img {
  border-radius: 14px;
  margin-bottom: 0.6rem;
}

.product-card .category {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 0.25rem;
}

.product-card .price {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.product-card .desc {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

.product-card .add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .add-to-cart-form input[type="number"] {
  width: 56px;
  padding: 0.35rem 0.3rem;
  border-radius: 999px;
}

.product-card .add-to-cart-form button {
  flex: 1;
}

/* Modern CTA button */
.product-card .btn-secondary {
  background: var(--primary);
  border-color: var(--primary);
  color: #f9fafb;
  font-weight: 500;
}

.product-card .btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* CONTACT PAGE ENHANCEMENTS */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-copy {
  background: #f3f4f6;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
}

.contact-copy h2 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
}

.contact-list li+li {
  margin-top: 0.25rem;
}

.contact-card {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Full background hero slide */
.slide-full {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
}

.slide-full-content {
  position: relative;
  padding: 2.2rem 2.6rem;
  max-width: 520px;
  color: #f9fafb;
}

.slide-full-content h1 {
  margin: 0.5rem 0 0.7rem;
  font-size: 2.1rem;
}

.slide-full-content p {
  margin: 0 0 0.9rem;
  color: #e5e7eb;
}

.slide-meta {
  font-size: 0.8rem;
  color: #cbd5f5;
}

/* badges look better on dark bg */
.slide-badges .badge {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.slide-badges .badge-primary {
  background: #f97316;
  border-color: #f97316;
  color: #111827;
}

/* FULL WIDTH CTA BANNER - SHOP */
.shop-cta-banner {
  position: relative;
  width: 100%;
  height: 380px;
  background: url('https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.shop-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.shop-cta-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 1rem;
}

.shop-cta-content h1 {
  font-size: 2.4rem;
  margin: 0 0 0.6rem;
}

.shop-cta-content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #e5e7eb;
}

.shop-cta-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .shop-cta-banner {
    height: 280px;
  }

  .shop-cta-content h1 {
    font-size: 1.6rem;
  }
}

/* EMPTY CART STATE */
.empty-cart-message {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.empty-cart-card {
  background: #fefaf5;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  max-width: 520px;
  text-align: center;
  border: 1px solid #f3e7d9;
  box-shadow: 0 18px 40px rgba(148, 113, 61, 0.15);
}

.empty-cart-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f97316;
  color: #111827;
  font-size: 1.3rem;
}

.empty-cart-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.empty-cart-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.empty-cart-btn {
  display: inline-block;
  padding-inline: 1.6rem;
}

/* Product detail page */
.product-detail-section {
  padding: 1.2rem 0 2.5rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.product-detail-image img {
  width: 100%;
  border-radius: 18px;
  background: #e5e7eb;
  max-height: 520px;
  object-fit: cover;
}

.product-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.6rem;
}

.product-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail-title {
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
}

.product-detail-meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0.8rem;
}

.product-detail-price {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.product-detail-desc {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.product-detail-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  margin-right: 0.7rem;
}

.product-detail-info .add-to-cart-form {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Home category & recent sections */
.home-category-section {
  padding-top: 2.2rem;
}

.home-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.home-category-chip {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.home-category-chip.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.home-category-chip:hover {
  border-color: var(--primary);
}

.home-recent-section {
  padding-top: 2.2rem;
}

/* Force 3 column layout for Home Category Products */
#home-category-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  #home-category-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  #home-category-products {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Force 3 column layout for Home Recent Products */
#home-recent-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  #home-recent-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  #home-recent-products {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Product detail page - modern layout */
.product-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.product-crumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.product-crumbs a {
  color: var(--text-subtle);
  text-decoration: none;
}

.product-crumbs a:hover {
  text-decoration: underline;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-detail-main-image {
  border-radius: 20px;
  background: #e5e7eb;
  overflow: hidden;
}

.product-detail-main-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.product-detail-thumb {
  border-radius: 14px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.product-detail-thumb img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.product-detail-thumb.is-active {
  border-color: var(--primary);
}

.product-detail-info-pane {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-detail-title {
  font-size: 1.6rem;
  margin: 0;
}

.product-detail-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.product-detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.rating-stars {
  display: inline-flex;
  gap: 0.1rem;
}

.rating-stars i {
  font-size: 0.8rem;
  color: #facc15;
}

.rating-score {
  font-weight: 500;
  color: var(--text-main);
}

.rating-count {
  color: var(--text-subtle);
}

.product-detail-short-desc {
  font-size: 0.9rem;
  color: var(--text-subtle);
  max-width: 36rem;
}

.product-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.product-detail-meta-block {
  min-width: 180px;
}

.meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.4rem;
}

.detail-size-options {
  display: flex;
  gap: 0.4rem;
}

.size-pill {
  min-width: 38px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.size-pill.is-active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.detail-color-options {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.color-inner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.color-dot.is-active {
  border-color: var(--primary);
}

.product-detail-low-stock {
  font-size: 0.84rem;
  color: #b91c1c;
}

.product-detail-low-stock span {
  font-weight: 600;
}

.product-detail-cart-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.2rem;
}

.detail-qty-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.qty-input-shell {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.qty-input-shell input[type="number"] {
  width: 58px;
  border: none;
  text-align: center;
  padding: 0.3rem 0.2rem;
  font-size: 0.9rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 1rem;
}

.btn-add-detail {
  min-width: 150px;
  height: 40px;
  border-radius: 999px;
}

.product-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.detail-tab {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.detail-tab.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.badge-number {
  font-size: 0.78rem;
  margin-left: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Policy pages */
.policy-wrapper {
  padding: 1.5rem 0 2.5rem;
}



.policy-section+.policy-section {
  margin-top: 1.4rem;
}

.policy-section h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.policy-section p {
  font-size: 0.88rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

/* CTA Strip */
.cta-strip {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
}

footer.site-footer.df-footer.mt-0 {
  margin: 0px;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
}

.cta-strip-content h2 {
  margin: 0;
  font-size: 1.4rem;
}

.cta-strip-content p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* About page */
.about-body {
  padding: 1.6rem 0 2.6rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-copy h2 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.about-copy p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

.about-copy p+p {
  margin-top: 0.5rem;
}

.about-points {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-point {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.about-point i {
  margin-top: 0.15rem;
  font-size: 1rem;
  color: var(--primary);
}

.about-point-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.about-point-text {
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.about-media {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-main-card {
  border-radius: 22px;
  overflow: hidden;
  background: #e5e7eb;
}

.about-main-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.about-stat-card {
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.about-stat-value {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.about-stat-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-main-card img {
    height: 220px;
  }
}

/* Success payment / QR section */
.success-payment {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.success-payment h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.success-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: flex-start;
}

.success-qr {
  text-align: center;
}

.success-qr img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: #e5e7eb;
  padding: 0.4rem;
}

.success-qr-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.success-meta p {
  font-size: 0.86rem;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.success-meta p strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .success-payment-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .success-qr img {
    width: 160px;
    height: 160px;
  }
}

.payment-timer {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b91c1c;
}

.payment-timer span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Product card hover + entry animation */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: card-enter 0.35s ease forwards;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.product-card img {
  transition: transform 0.35s ease;
}

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

/* Buttons subtle hover */
.btn-primary,
.btn-secondary {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

/* Add to cart pulse */
.btn-pulse {
  animation: btn-pulse 0.3s ease;
}

@keyframes btn-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

/* Cart count bump animation */
#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

#cart-count.cart-bump {
  animation: cart-bump 0.35s ease;
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.25);
  }

  60% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

/* Toast slide + fade */
.toast {
  position: fixed;
  left: 0px;
  bottom: 24px;
  transform: translateY(50%) translateY(16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  text-align: center;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  right: 0;
}

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

/* ====== FOOTER BASE WRAPPER ====== */

.site-footer.df-footer {
  background: #050816;
  /* Deep dark */
  color: #e5e7eb;
  /* Soft grey text */
  padding: 56px 0 32px;
  /* Top / bottom spacing */
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* ====== INNER LAYOUT ====== */

.df-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1.4fr));
  gap: 32px;
  align-items: flex-start;
}

/* Single-col layout on small screens */
@media (max-width: 900px) {
  .df-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ====== BRAND BLOCK ====== */

.df-footer-brand {
  max-width: 360px;
}

.df-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.df-footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #38bdf8, #4f46e5);
  color: #f9fafb;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.df-footer-logo-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.df-footer-logo-sub {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
}

.df-footer-text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
}

/* Support link pill */

.df-footer-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.18s ease;
}

.df-footer-support::after {
  content: "→";
  font-size: 0.9rem;
}

.df-footer-support:hover {
  border-color: #38bdf8;
  color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.8);
}

/* ====== COLUMN GENERIC STYLES ====== */

.df-footer-col {
  font-size: 0.9rem;
}

.df-footer-heading {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* ====== QUICK LINKS ====== */

.df-footer-col a {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.df-footer-col a:hover {
  color: #38bdf8;
  opacity: 1;
  transform: translateX(2px);
}

/* ====== CONTACT LINES ====== */

.df-footer-line {
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #9ca3af;
  line-height: 1.5;
  font-size: 0.9rem;
}

.df-footer-line i {
  margin-top: 3px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.df-footer-line a {
  display: inline;
  margin: 0;
  color: #e5e7eb;
  text-decoration: none;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
  padding-bottom: 1px;
}

.df-footer-line a:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* ====== SOCIAL BLOCK ====== */

.df-footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.df-footer-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.df-footer-social-row a:hover {
  background: radial-gradient(circle at 0% 0%, #38bdf8, #4f46e5);
  border-color: transparent;
  transform: translateY(-1px) scale(1.03);
  color: #f9fafb;
}

/* Meta text */

.df-footer-meta {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ====== BOTTOM RESPONSIVE TWEAKS ====== */

@media (max-width: 600px) {
  .site-footer.df-footer {
    padding: 40px 0 24px;
  }

  .df-footer-brand {
    max-width: 100%;
  }

  .df-footer-logo-title {
    font-size: 1.05rem;
  }

  .df-footer-text {
    font-size: 0.88rem;
  }

  .df-footer-col,
  .df-footer-line {
    font-size: 0.86rem;
  }

  .df-footer-meta {
    font-size: 0.72rem;
  }
}

/* ═══════════════════════════════════════════════════════
   FIREBASE AUTH & ACCOUNT PAGE STYLES
   Appended to main stylesheet — SSPS Fashion Hub
═══════════════════════════════════════════════════════ */

/* ── Auth pages (login, signup, forgot-password) ── */
.auth-page-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f0f0ff 0%, #fff 60%);
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.10), 0 1.5px 8px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #111827;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.auth-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.auth-field input,
.auth-field select {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
  background: #fff;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.btn-auth-submit {
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 0.25rem;
  box-sizing: border-box;
}

.btn-auth-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  color: #374151;
}

.btn-google-auth:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-google-auth img,
.btn-google-auth svg {
  width: 18px;
  height: 18px;
}

.auth-footer-link {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.25rem;
}

.auth-footer-link a {
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* Login button in nav */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid #6366f1;
  border-radius: 999px;
  color: #6366f1;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-login-btn:hover {
  background: #6366f1;
  color: #fff;
}

/* ── User nav dropdown ── */
.user-nav-dropdown {
  position: relative;
}

.user-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: border-color 0.18s, background 0.18s;
}

.user-nav-trigger:hover {
  border-color: #6366f1;
  background: #f5f3ff;
}

.user-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-nav-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  min-width: 190px;
  z-index: 500;
}

.user-nav-menu.is-open {
  display: block;
}

.user-nav-menu a,
.user-nav-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.user-nav-menu a:hover,
.user-nav-menu button:hover {
  background: #f5f3ff;
  color: #4f46e5;
}

.user-nav-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 0.35rem 0;
}

/* ── Account pages layout ── */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-sidebar {
  background: #fff;
  border: 1.5px solid #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.account-sidebar a,
.account-sidebar button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid #f9fafb;
}

.account-sidebar a:hover,
.account-sidebar button:hover {
  background: #f5f3ff;
  color: #4f46e5;
}

.account-sidebar a.is-active {
  background: #ede9fe;
  color: #4f46e5;
  font-weight: 600;
}

.account-main {
  background: #fff;
  border: 1.5px solid #f3f4f6;
  border-radius: 14px;
  padding: 1.5rem;
}

/* ── Auth required banner ── */
.auth-required-banner {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

.auth-required-banner a {
  color: #6366f1;
  font-weight: 600;
}

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* ── Order cards ── */
.order-card {
  background: #fff;
  border: 1.5px solid #f3f4f6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.order-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

/* ── Status badges ── */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.status-shipped {
  background: #e0e7ff;
  color: #3730a3;
}

.status-delivered {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Address cards ── */
.address-card {
  border: 1.5px solid #f3f4f6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: border-color 0.18s;
}

.address-card.is-default {
  border-color: #a5b4fc;
  background: #fafafe;
}

.address-label-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ede9fe;
  color: #5b21b6;
  margin-right: 0.35rem;
}

.badge-default {
  background: #dcfce7;
  color: #166534;
}

/* ── Wishlist ── */
#wishlist-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ── Responsive auth card ── */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }
}

/* Order Success Notification Bar */
.order-success-bar {
  background: #16a34a;
  color: #ffffff;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.4s ease-out;
  position: relative;
  z-index: 1001;
}

.order-success-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.order-success-bar i {
  font-size: 1.1rem;
}

.order-success-bar button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.order-success-bar button:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}
/* Accessibility polish: keyboard focus visibility and reduced motion */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
