/* ══════════════════════════════════════════════════════════════
   PTSHOP — Global Stylesheet
   Shared across all pages via <link rel="stylesheet" href="/PTSHOP/assets/css/style.css">
══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Info Bar ─────────────────────────────────────────── */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  height: 40px;
  font-size: 13px;
  color: #555;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-lang,
.topbar-currency {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  padding: 0 6px;
  border-right: 1px solid #e0e0e0;
}

.topbar-currency {
  border-right: none;
}

.topbar-lang svg,
.topbar-currency svg {
  width: 14px;
  height: 14px;
}

.topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #555;
}

.topbar-center strong {
  color: #00BFAA;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-right a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #555;
  transition: color .2s;
}

.topbar-right a:hover {
  color: #00BFAA;
}

.topbar-right svg {
  width: 14px;
  height: 14px;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  --site-header-h: 72px;
  --site-logo-max-h: 56px;
  background: #fff;
  height: var(--site-header-h);
  min-height: var(--site-header-h);
  max-height: var(--site-header-h);
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--site-header-h);
  min-height: var(--site-header-h);
  max-height: var(--site-header-h);
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(44px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.header-inner > div:first-child {
  flex-shrink: 0;
  min-width: 0;
  position: relative;
  z-index: 5;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--menu-btn-bg, #00c4a7);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  width: auto;
  height: auto;
  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--menu-btn-bg, #00c4a7) 32%, transparent);
  transition: background .2s, box-shadow .2s, transform .15s ease;
}

.menu-btn-label {
  display: inline;
}

.menu-btn:hover {
  background: color-mix(in srgb, var(--menu-btn-bg, #00c4a7) 88%, #000);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--menu-btn-bg, #00c4a7) 42%, transparent);
}

.menu-btn:active {
  transform: scale(0.96);
}

.menu-btn:focus-visible {
  outline: 2px solid #00c4a7;
  outline-offset: 2px;
}

.menu-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: block;
  stroke: currentColor;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  line-height: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.logo-icon {
  width: min(var(--site-logo-size, 36px), var(--site-logo-max-h, 56px));
  height: min(var(--site-logo-size, 36px), var(--site-logo-max-h, 56px));
  background: linear-gradient(135deg, #00BFAA, #009688);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.logo-name {
  font-size: min(var(--site-logo-text-size, 26px), 26px);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-name span {
  color: var(--menu-btn-bg, #00c4a7);
}

/* Logo display: image only (no brand name) */
.logo.logo--image-only .logo-name {
  display: none !important;
}
.logo.logo--image-only .logo-icon {
  width: auto;
  height: auto;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.logo.logo--image-only .logo-icon .site-logo-img {
  display: block;
  height: min(var(--site-logo-size, 56px), var(--site-logo-max-h, 56px));
  max-height: var(--site-logo-max-h, 56px);
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  border-radius: 0;
}
.logo.logo--image-only .logo-icon svg {
  display: none;
}
.logo.logo--with-name .logo-icon .site-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.logo.logo--text-only .logo-icon {
  display: none !important;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  transition: color .2s, background .2s;
  position: relative;
}

.header-action:hover {
  color: #00BFAA;
  background: #f0faf3;
}

.header-action svg {
  width: 22px;
  height: 22px;
}

.cart-btn svg {
  width: 19px;
  height: 19px;
}

.header-action .label {
  white-space: nowrap;
}

.wishlist-btn:hover svg {
  color: #e74c3c;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.signin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.signin-link:hover {
  color: #00BFAA;
  background: #f0faf3;
}

.signin-link svg {
  width: 18px;
  height: 18px;
}

.header-user-dropdown {
  position: fixed;
  z-index: 3000;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: none;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
}

.header-user-dropdown.open {
  display: block;
}

.header-user-dropdown button {
  cursor: pointer;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .header-user-dropdown {
    border-radius: 10px;
  }
  .header-user-dropdown button {
    width: 100%;
  }
}

.header-user-dropdown button:hover {
  filter: brightness(0.98);
}

.header-user-dropdown-head {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
}

.header-user-dropdown-title {
  font-weight: 800;
  color: #1a1a2e;
}

.header-user-dropdown-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.header-user-dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}

.header-user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

.header-user-menu-btn:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
  transform: translateY(-1px);
}

.header-user-menu-btn:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

.header-user-menu-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  font-size: 12px;
  line-height: 1;
}

.header-user-logout-btn {
  padding: 10px 12px !important;
  font-size: 14px !important;
  border-radius: 10px;
}

.signup-part {
  color: #00BFAA;
  font-weight: 700;
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.mobile-nav-panel {
  position: relative;
  width: 300px;
  max-width: 100vw;
  background: #fff;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
  animation: slideInLeft .3s ease;
  box-sizing: border-box;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: .2s;
}

.mobile-nav-close:hover {
  background: #f5f5f5;
}

.mobile-nav-close svg {
  width: 18px;
  height: 18px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-x: hidden;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: .2s;
}

.mobile-nav-links a:hover {
  background: #f0faf3;
  color: #00BFAA;
}

.mobile-nav-links a svg {
  width: 18px;
  height: 18px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #00BFAA;
  color: #fff;
}

.btn-primary:hover {
  background: #009688;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #ddd;
  color: #555;
}

.btn-outline:hover {
  border-color: #00BFAA;
  color: #00BFAA;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background: #1a1a2e;
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  animation: toastIn .3s ease;
  min-width: 280px;
}

.toast svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.toast span {
  flex: 1;
  line-height: 1.4;
}

.toast.success {
  background: #00BFAA;
}

.toast.error {
  background: #ef4444;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Mobile Toast Styles */
@media (max-width: 768px) {
  .toast-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 0 16px 20px;
    gap: 12px;
  }

  .toast {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
  }

  .toast svg {
    width: 28px;
    height: 28px;
  }

  .toast.success {
    background: #00BFAA;
  }
}

@media (max-width: 576px) {
  .toast-container {
    padding: 0 12px 16px;
  }

  .toast {
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 10px;
  }

  .toast svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.pt-footer {
  margin-top: 0;
  position: relative;
}

/* Footer Features Section */
.footer-features {
  background: #fff;
  padding: 50px 0;
  border-top: 1px solid #e8e8e8;
}

.footer-features .container {
  padding: 0 40px;
  max-width: 1280px;
}

.footer-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-feature-icon svg {
  width: 32px;
  height: 32px;
}

.footer-feature-content h4 {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.footer-feature-content p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
}

.newsletter-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #1a1a2e;
}

.newsletter-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 3px;
}

.newsletter-text p {
  font-size: 14px;
  color: #666;
}

.newsletter-form {
  display: flex;
  flex-shrink: 0;
}

.newsletter-form input {
  width: 320px;
  height: 52px;
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 0 18px;
  font-size: 14px;
  outline: none;
  color: #333;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: #aaa;
}

.newsletter-form button {
  height: 52px;
  padding: 0 32px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .2s;
}

.newsletter-form button:hover {
  background: #2d2d4e;
}

.footer-main {
  background: #fff;
  padding: 64px 0 48px;
  border-top: 1px solid #e8e8e8;
}

.footer-main .container {
  padding: 0 40px;
  max-width: 1280px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-img {
  display: block;
  max-height: 56px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo--image .footer-logo-text {
  display: none !important;
}

.footer-logo-text {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.footer-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all .25s;
  background: #fff;
}

.footer-social a:hover {
  background: #00BFAA;
  border-color: #00BFAA;
  color: #fff;
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 14px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #00BFAA;
  border-radius: 1px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul li a {
  font-size: 16px;
  color: #666;
  transition: color .2s, padding-left .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '';
  width: 0;
  height: 2px;
  background: #00BFAA;
  display: inline-block;
  transition: width .2s;
  flex-shrink: 0;
}

.footer-col ul li a:hover {
  color: #00BFAA;
}

.footer-col ul li a:hover::before {
  width: 12px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.footer-contact-item svg {
  margin-top: 2px;
}

.footer-bottom {
  background: #f0f0f0;
  padding: 22px 0;
  border-top: 1px solid #e8e8e8;
}

.footer-bottom .container {
  padding: 0 40px;
  max-width: 1280px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #666;
}

.footer-bottom-inner strong {
  color: #1a1a2e;
}

#footer-copyright a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

#footer-copyright a:hover {
  color: #00BFAA;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #666;
  font-size: 13px;
  transition: color .2s;
}

.footer-bottom-links a:hover {
  color: #00BFAA;
}

.footer-payments {
  display: flex;
  gap: 8px;
}

.pay-icon {
  border-radius: 4px;
  overflow: hidden;
  opacity: .7;
  transition: opacity .2s;
}

.pay-icon:hover {
  opacity: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #20b2aa;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(32, 178, 170, .3);
  transition: all .3s;
  z-index: 1000;
}

.scroll-to-top:hover {
  background: #1a9a94;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(32, 178, 170, .4);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .footer-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-features .container,
  .footer-main .container,
  .footer-bottom .container {
    padding: 0 20px;
  }
  
  .footer-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.product-card-img {
  aspect-ratio: 1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s;
}

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

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all .3s;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.card-action-btn:hover {
  background: #00BFAA;
  color: #fff;
  border-color: #00BFAA;
}

.card-action-btn svg {
  width: 16px;
  height: 16px;
}

.product-card-body {
  padding: 16px;
}

.product-card-cat {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-card-name a {
  transition: color .2s;
}

.product-card-name a:hover {
  color: #00BFAA;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.price-current {
  font-size: 18px;
  font-weight: 800;
  color: #00BFAA;
}

.price-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.product-card-stock {
  font-size: 12px;
  color: #00BFAA;
  font-weight: 500;
}

.product-card-stock.low {
  color: #f59e0b;
}

.product-card-stock.out {
  color: #ef4444;
}

.add-cart-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f0faf3;
  color: #00BFAA;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
  border: 1px solid #e0f5e5;
}

.add-cart-btn:hover {
  background: #00BFAA;
  color: #fff;
  border-color: #00BFAA;
}

.add-cart-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Product Card (Home Page Style) ───────────────────────── */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f8f9fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

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

.product-img-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-img-wrap:hover .product-img-dots {
  opacity: 1;
}
.img-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.img-dot.active {
  background: var(--primary, #00BFAA);
  transform: scale(1.3);
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  background: #f8f9fa;
}

.product-img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.badge-sale {
  background: #00BFAA;
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 184, 75, 0.3);
  font-weight: 800;
}

.badge-out {
  background: #6c757d;
  color: #fff;
}

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
}

.btn-icon:hover {
  background: #00BFAA;
  color: #fff;
  border-color: #00BFAA;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(45, 184, 75, 0.3);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.wishlist-btn.wishlisted {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.product-name a:hover {
  color: #00BFAA;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: #ffc107;
  stroke: #ffc107;
}

.stars svg.empty {
  fill: none;
  stroke: #ddd;
}

.rating-count {
  font-size: 12px;
  color: #999;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}

.price-current.price-sale {
  color: #e74c3c;
}

.price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.stock-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
  background: #e8f5e9;
  color: #2e7d32;
}

.stock-badge.out {
  background: #ffebee;
  color: #c62828;
}

/* Hide stock badge on home page product cards */
.section-products-grid .product-card .stock-badge,
.section-popular-products .product-card .stock-badge,
.section-home-products .product-card .stock-badge {
  display: none;
}

.btn-cart {
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cart-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #20b2aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.btn-cart-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke-width: 2.5;
}

.btn-cart-text {
  color: #333;
  font-weight: 700;
  flex: 1;
  text-align: left;
}

.btn-cart:hover:not(:disabled) {
  background: #eeeeee;
}

.btn-cart:hover:not(:disabled) .btn-cart-icon {
  background: #1a9a94;
  transform: scale(1.05);
}

.btn-cart:active:not(:disabled) {
  background: #f0f0f0;
}

.btn-cart:active:not(:disabled) .btn-cart-icon {
  transform: scale(0.98);
}

.btn-cart:disabled {
  background: #e0e0e0;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cart:disabled .btn-cart-icon {
  background: #ccc;
}

.btn-cart:disabled .btn-cart-text {
  color: #999;
}

.btn-cart:disabled .btn-cart-icon svg {
  color: #999;
}

/* Product grid spacing improvements */
.section-products-grid .products-grid {
  gap: 24px;
}

.section-home-products .products-grid {
  gap: 24px;
}

/* Responsive adjustments for product cards */
@media (max-width: 992px) {
  .section-products-grid .products-grid,
  .section-home-products .products-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-card {
    border-radius: 12px;
  }
  
  .product-img-wrap {
    padding: 16px;
  }
  
  .product-info {
    padding: 16px;
  }
  
  .product-name {
    font-size: 14px;
    min-height: 38px;
  }
  
  .price-current {
    font-size: 18px;
  }
  
  .btn-cart {
    padding: 12px 16px;
    font-size: 13px;
    gap: 10px;
  }
  
  .btn-cart-icon {
    width: 36px;
    height: 36px;
  }
  
  .btn-cart-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .btn-icon {
    width: 36px;
    height: 36px;
  }
  
  .btn-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .section-products-grid .products-grid,
  .section-home-products .products-grid {
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .section-products-grid .products-grid,
  .section-home-products .products-grid {
    gap: 12px;
  }
  
  .product-card {
    border-radius: 10px;
  }
  
  .product-img-wrap {
    padding: 12px;
  }
  
  .product-info {
    padding: 14px;
  }
  
  .product-name {
    font-size: 13px;
    min-height: 36px;
  }
  
  .price-current {
    font-size: 16px;
  }
  
  .btn-cart {
    padding: 10px 14px;
    font-size: 12px;
    gap: 10px;
  }
  
  .btn-cart-icon {
    width: 32px;
    height: 32px;
  }
  
  .btn-cart-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* ── Skeleton Loader ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

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

/* ── Responsive ───────────────────────────────────────────── */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-text {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 260px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .topbar-inner {
    padding: 0 20px;
  }

  .header-action .label {
    display: none;
  }

  #wholesale-link .label {
    display: none;
  }
}

@media (min-width: 769px) {
  .header-inner > div:first-child {
    min-width: auto;
  }

  .menu-btn-label {
    display: inline !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    --site-header-h: 58px;
    --site-logo-max-h: 40px;
    background: #fff !important;
    backdrop-filter: none !important;
    box-shadow: 0 1px 0 #eee !important;
  }

  .topbar {
    height: auto;
    min-height: 36px;
    padding: 6px 0;
  }

  .topbar-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .topbar-center {
    display: none;
  }

  .topbar-left {
    gap: 8px;
  }

  .topbar-lang,
  .topbar-currency {
    font-size: 11px;
    padding: 0 4px;
  }

  .topbar-right {
    gap: 12px;
  }

  .topbar-right a {
    font-size: 11px;
    gap: 3px;
  }

  .topbar-right svg {
    width: 12px;
    height: 12px;
  }

  .site-header {
    top: 0;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
  }

  /* Teal circle — icon only on small screens */
  .menu-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    min-width: 36px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--menu-btn-bg, #00c4a7) 38%, transparent);
  }

  .menu-btn-label {
    display: none !important;
  }

  .menu-btn svg {
    width: 17px;
    height: 17px;
  }

  .logo {
    justify-content: center;
    gap: 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--menu-btn-bg, #00c4a7);
  }

  .logo-icon svg {
    width: 18px;
    height: 18px;
  }

  .logo-name {
    font-size: min(var(--site-logo-text-size, 20px), 20px);
  }

  .logo.logo--image-only {
    justify-content: center;
  }

  .logo.logo--image-only .logo-icon .site-logo-img {
    max-width: min(160px, 36vw);
  }

  .logo.logo--with-name .logo-name {
    max-width: 32vw;
  }

  .header-right {
    gap: 2px;
    flex-shrink: 0;
  }

  #wholesale-link {
    display: flex !important;
  }

  .header-right .wishlist-btn {
    display: flex !important;
  }

  .header-action {
    padding: 8px;
    font-size: 0;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    border-radius: 8px;
  }

  .header-action svg {
    width: 22px;
    height: 22px;
  }

  .signin-link {
    padding: 8px;
    font-size: 0;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    border-radius: 8px;
  }

  .signin-link .label {
    display: none !important;
  }

  .signin-link svg {
    width: 22px;
    height: 22px;
  }

  #cart-total-label {
    display: none;
  }

  .cart-count {
    top: 0;
    right: 2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  /* Mobile nav adjustments */
  .mobile-nav-panel {
    width: 280px;
    padding: 20px;
  }

  /* Product cards mobile */
  .product-card-body {
    padding: 12px;
  }

  .product-card-name {
    font-size: 13px;
    min-height: 36px;
  }

  .price-current {
    font-size: 16px;
  }

  .price-original {
    font-size: 12px;
  }

  .add-cart-btn {
    padding: 8px;
    font-size: 12px;
    gap: 4px;
  }

  .add-cart-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 576px) {
  .topbar-left {
    display: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: center;
  }

  .site-header {
    --site-header-h: 52px;
    --site-logo-max-h: 36px;
  }

  .header-inner {
    gap: 4px;
    padding: 0 8px;
  }

  .menu-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .menu-btn svg {
    width: 16px;
    height: 16px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-icon svg {
    width: 16px;
    height: 16px;
  }

  .logo-name {
    font-size: min(var(--site-logo-text-size, 18px), 18px);
  }

  .header-inner {
    gap: 6px;
    padding: 0 10px;
  }

  .signin-link,
  .header-action {
    min-width: 34px;
    min-height: 34px;
    padding: 6px;
  }

  .signin-link svg,
  .header-action svg {
    width: 20px;
    height: 20px;
  }

  .logo.logo--image-only .logo-icon .site-logo-img {
    max-width: min(140px, 36vw);
  }

  .header-action {
    padding: 8px 6px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }

  .header-action svg {
    width: 20px;
    height: 20px;
  }

  .cart-count {
    top: 2px;
    right: 1px;
  }

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

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

  .footer-payments {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
    border-radius: 8px;
  }

  .newsletter-form button {
    border-radius: 8px;
    margin-top: 8px;
  }

  .footer-features {
    padding: 30px 0;
  }

  .footer-feature-content h4 {
    font-size: 22px;
  }

  .footer-main {
    padding: 40px 0 32px;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .footer-col ul {
    gap: 10px;
  }

  .footer-col ul li a {
    font-size: 14px;
  }

  .footer-logo-text {
    font-size: 32px;
  }

  .footer-desc {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .site-header {
    --site-header-h: 48px;
    --site-logo-max-h: 32px;
  }

  .logo-name {
    font-size: min(var(--site-logo-text-size, 15px), 15px);
  }

  .logo.logo--with-name .logo-name {
    max-width: 22vw;
  }

  .logo.logo--image-only .logo-icon .site-logo-img {
    max-width: min(120px, 34vw);
  }

  .header-action {
    padding: 6px 4px;
    min-width: 36px;
    min-height: 36px;
  }

  .header-action svg {
    width: 18px;
    height: 18px;
  }

  .signin-link svg {
    width: 18px;
    height: 18px;
  }

  .cart-count {
    top: 1px;
    right: 0;
    min-width: 15px;
    height: 15px;
    font-size: 8px;
  }

  .product-card-img {
    padding: 8px;
  }

  .product-card-body {
    padding: 10px;
  }

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

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

  .add-cart-btn {
    padding: 7px;
    font-size: 11px;
  }
}

/* ── Cart Page Styles ─────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, #20b2aa 0%, #00BFAA 100%);
  padding: 60px 0;
  color: #fff;
  margin-bottom: 40px;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.breadcrumb-nav {
  font-size: 14px;
  opacity: 0.9;
}

.breadcrumb-nav a {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-nav a:hover {
  opacity: 0.8;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}

/* Prevent any unwanted overlays on cart page */
.cart-layout::before,
.cart-layout::after,
.page-banner::before,
.page-banner::after {
  display: none !important;
  content: none !important;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 16px;
  border: 2px dashed #e0e0e0;
}

.empty-cart svg {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  color: #ccc;
}

.empty-cart h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.empty-cart p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

/* Cart Table */
.cart-table {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.cart-table table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  text-align: left;
  padding: 16px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #f0f0f0;
}

.cart-table tbody td {
  padding: 24px 12px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-product-image-placeholder {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.cart-product img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8f9fa;
  padding: 8px;
  border: 1px solid #eee;
  display: none; /* Hide images to prevent lag */
}

.cart-product-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.4;
}

.cart-product-sub {
  font-size: 13px;
  color: #999;
}

.cart-table td:nth-child(2) {
  font-size: 18px;
  font-weight: 700;
  color: #00BFAA;
}

.cart-table td:nth-child(4) {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #555;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.qty-btn:hover {
  background: #00BFAA;
  color: #fff;
}

.qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  background: #fff;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-remove:hover {
  background: #fee;
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Cart Summary */
.cart-summary {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: #555;
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
}

.summary-row.total span:last-child {
  color: #00BFAA;
  font-size: 24px;
}

.cart-coupon {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.cart-coupon input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.cart-coupon input:focus {
  outline: none;
  border-color: #00BFAA;
}

.cart-coupon button {
  padding: 12px 20px;
  background: #00BFAA;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.cart-coupon button:hover {
  background: #25a03f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: #00BFAA;
  color: #fff;
}

.btn-primary:hover {
  background: #25a03f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 184, 75, 0.3);
}

.btn-outline {
  background: #fff;
  color: #555;
  border-color: #e0e0e0;
}

.btn-outline:hover {
  background: #f8f9fa;
  border-color: #00BFAA;
  color: #00BFAA;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Responsive Cart */
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cart-summary {
    position: static;
  }

  .cart-table {
    padding: 16px;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody tr {
    display: block;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
  }

  .cart-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .cart-table tbody td:last-child {
    border-bottom: none;
  }

  .cart-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    font-size: 13px;
  }

  .cart-product {
    flex-direction: column;
    text-align: center;
  }

  .cart-product-image-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .cart-product img {
    width: 120px;
    height: 120px;
    display: none; /* Hide images on mobile too */
  }
}

@media (max-width: 576px) {
  .page-banner {
    padding: 40px 0;
  }

  .page-banner h1 {
    font-size: 32px;
  }

  .cart-summary {
    padding: 24px;
  }

  .cart-coupon {
    flex-direction: column;
  }

  .cart-coupon input,
  .cart-coupon button {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   QUICK VIEW MODAL
══════════════════════════════════════════════════════════════ */
.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.quick-view-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.quick-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.quick-view-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90vw;
  max-width: 90vw;
  height: 90vh;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}
.quick-view-modal.open .quick-view-content {
  transform: scale(1);
}
.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.quick-view-close:hover {
  background: #fff;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.quick-view-close svg {
  width: 20px;
  height: 20px;
}
.quick-view-body {
  padding: 40px;
}
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.quick-view-image {
  position: sticky;
  top: 20px;
}
.quick-view-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f5f6f7;
  object-fit: contain;
  aspect-ratio: 1;
}
.quick-view-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f6f7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}
.quick-view-image-placeholder svg {
  width: 80px;
  height: 80px;
}
.quick-view-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.3;
}
.quick-view-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.quick-view-rating .stars {
  display: flex;
  gap: 4px;
}
.quick-view-rating .stars svg {
  width: 18px;
  height: 18px;
  fill: #ffc107;
  color: #ffc107;
}
.quick-view-rating .rating-text {
  font-size: 14px;
  color: #666;
}
.quick-view-price {
  font-size: 32px;
  font-weight: 800;
  color: #00BFAA;
  margin-bottom: 24px;
}
.quick-view-price .price-original {
  font-size: 22px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  margin-right: 12px;
}
.quick-view-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}
.quick-view-description + .quick-view-meta {
  margin-top: 20px;
}

/* ── Quick View: Variants (match product detail) ───────────────── */
.quick-view-variants {
  margin: 0 0 22px;
}
.quick-view-variants .variants-panel {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
}
.quick-view-variants .variant-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.quick-view-variants .variant-row:last-child {
  margin-bottom: 0;
}
.quick-view-variants .variant-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a2e;
  text-transform: uppercase;
  padding-top: 6px;
}
.quick-view-variants .variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-view-variants .variant-opt-btn {
  appearance: none;
  border: 1.5px solid #e6e6e6;
  background: #fff;
  color: #1a1a2e;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.quick-view-variants .variant-opt-btn:hover {
  border-color: rgba(23, 195, 178, .55);
  box-shadow: 0 6px 18px rgba(23, 195, 178, .12);
  transform: translateY(-1px);
}
.quick-view-variants .variant-opt-btn.active {
  background: rgba(23, 195, 178, .12);
  border-color: #17c3b2;
  color: #0b6f66;
}
.quick-view-variants .variant-opt-btn:disabled,
.quick-view-variants .variant-opt-btn.disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.quick-view-variants .variant-opt-btn:disabled:hover,
.quick-view-variants .variant-opt-btn.disabled:hover {
  border-color: #e6e6e6;
}
.quick-view-variants .variant-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
  font-size: 13px;
  color: #6b7280;
}
.quick-view-variants .variant-meta strong {
  color: #111827;
}
.quick-view-variants .variant-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f7f8;
  border: 1px solid #ececec;
  font-weight: 800;
  color: #374151;
}
.quick-view-variants .variant-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17c3b2;
  display: inline-block;
}
.quick-view-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.quick-view-quantity label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.quick-view-quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.quick-view-quantity-controls button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f7;
  color: #333;
  transition: all 0.2s;
  font-size: 18px;
  font-weight: 600;
}
.quick-view-quantity-controls button:hover {
  background: #e8e8e8;
}
.quick-view-quantity-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.quick-view-quantity-controls input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  outline: none;
}
.quick-view-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}
.quick-view-btn-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: #00BFAA;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quick-view-btn-cart:hover {
  background: #009688;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 184, 75, 0.3);
}
.quick-view-btn-cart svg {
  width: 20px;
  height: 20px;
}
.quick-view-btn-wishlist {
  width: 52px;
  height: 52px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
  background: #fff;
}
.quick-view-btn-wishlist:hover {
  border-color: #00BFAA;
  color: #00BFAA;
  background: #f0faf3;
}
.quick-view-btn-wishlist.active {
  border-color: #e53e3e;
  color: #e53e3e;
  background: #fff5f5;
}
.quick-view-btn-wishlist svg {
  width: 24px;
  height: 24px;
}
.quick-view-meta {
  padding-top: 20px;
  margin-bottom: 20px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-view-meta-after-desc {
  margin-top: 0;
}
.qv-reviews-after-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
  color: #6b7280;
  font-size: 13px;
}
.quick-view-meta-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #666;
}
.quick-view-meta-item strong {
  color: #333;
  font-weight: 600;
  min-width: 80px;
}
.quick-view-meta-item a {
  color: #00BFAA;
  text-decoration: none;
}
.quick-view-meta-item a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .quick-view-image {
    position: static;
  }
  .quick-view-body {
    padding: 30px;
  }
  .quick-view-info h2 {
    font-size: 24px;
  }
  .quick-view-price {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  .quick-view-modal {
    padding: 10px;
  }
  .quick-view-content {
    width: 90vw;
    max-width: 90vw;
    height: 90vh;
    max-height: 90vh;
    border-radius: 12px;
  }
  .quick-view-body {
    padding: 24px;
  }
  .quick-view-info h2 {
    font-size: 22px;
  }
  .quick-view-price {
    font-size: 24px;
  }
  .quick-view-actions {
    flex-direction: column;
  }
  .quick-view-variants .variants-panel {
    padding: 12px;
  }
  .quick-view-variants .variant-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quick-view-variants .variant-label {
    padding-top: 0;
  }
  .quick-view-btn-wishlist {
    width: 100%;
  }
  .quick-view-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  .quick-view-close svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 576px) {
  .quick-view-body {
    padding: 20px;
  }
  .quick-view-info h2 {
    font-size: 20px;
  }
  .quick-view-price {
    font-size: 22px;
  }
  .quick-view-description {
    font-size: 14px;
  }
  .quick-view-quantity {
    flex-direction: column;
    align-items: flex-start;
  }
  .quick-view-quantity-controls {
    width: 100%;
  }
  .quick-view-quantity-controls input {
    flex: 1;
  }
}

/* ── Global Scroll Animations ─────────────────────────────────── */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-animate-child.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Auth Page Styles ──────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: #f8f9fa;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.wholesale-login-inner {
  padding: 32px 40px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  background: #fafafa;
}

.auth-tab {
  flex: 1;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.auth-tab:hover {
  color: #00BFAA;
  background: #f5f5f5;
}

.auth-tab.active {
  color: #00BFAA;
  border-bottom-color: #00BFAA;
  background: #fff;
}

.auth-form {
  display: none;
  padding: 40px 40px 14px;
}

.auth-form.active {
  display: block;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.auth-alert.show {
  display: block;
}

.auth-alert.error {
  background: #fee;
  color: #e74c3c;
  border: 1px solid #fcc;
}

.auth-alert.success {
  background: #efe;
  color: #27ae60;
  border: 1px solid #cfc;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #00BFAA;
  box-shadow: 0 0 0 3px rgba(0, 191, 170, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 6px;
}

.form-input:invalid:not(:placeholder-shown) + .form-error {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #999;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
  padding: 0 16px;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #999);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.auth-password-toggle:hover {
  color: var(--primary, #00BFAA);
}

.auth-remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
}

.auth-forgot-link {
  font-size: 13px;
  color: var(--primary, #00BFAA);
  text-decoration: none;
  white-space: nowrap;
}

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

.auth-social-row {
  display: flex;
  gap: 10px;
}

.auth-social-btn {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  min-width: 0;
}

.auth-terms {
  margin-bottom: 20px;
}

.auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.5;
  color: #555;
}

.auth-link {
  color: var(--primary, #00BFAA);
  text-decoration: none;
}

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

.auth-link-bold {
  font-weight: 600;
}

.auth-switch-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #999);
  margin-top: 16px;
}

/* Keep the wholesale line close to the register/login helper text */
.auth-card > .auth-switch-text {
  margin-top: 6px;
  margin-bottom: 14px;
}

.page-banner {
  background: linear-gradient(135deg, #00BFAA 0%, #009688 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.breadcrumb-nav {
  font-size: 14px;
  opacity: 0.9;
}

.breadcrumb-nav a {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-nav a:hover {
  opacity: 0.8;
}

/* ─── Auth Page Responsive ─────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .auth-page {
    padding: 48px 20px;
  }
  .page-banner {
    padding: 48px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-banner {
    padding: 32px 16px;
    margin-bottom: 0;
  }
  .page-banner h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .breadcrumb-nav {
    font-size: 13px;
  }

  .auth-page {
    padding: 24px 16px;
    min-height: auto;
    align-items: flex-start;
  }
  .auth-card {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  }
  .wholesale-login-inner {
    padding: 24px 16px;
  }
  .auth-tabs {
    border-bottom-width: 1px;
  }
  .auth-tab {
    padding: 14px 16px;
    font-size: 15px;
  }
  .auth-form {
    padding: 24px 20px 10px;
  }

  .form-group {
    margin-bottom: 16px;
  }
  .form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .form-input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
  }
  .form-submit {
    padding: 14px;
    font-size: 15px;
  }

  .auth-divider {
    margin: 20px 0;
    font-size: 12px;
  }
  .auth-divider span {
    padding: 0 12px;
  }

  .auth-remember-row {
    margin-bottom: 16px;
  }
  .auth-remember-label {
    font-size: 12px;
  }
  .auth-forgot-link {
    font-size: 12px;
  }

  .auth-social-row {
    gap: 8px;
  }
  .auth-social-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .auth-terms-label {
    font-size: 12px;
  }
  .auth-switch-text {
    font-size: 12px;
    margin-top: 14px;
  }
}

/* Small Phone */
@media (max-width: 480px) {
  .page-banner {
    padding: 24px 12px;
  }
  .page-banner h1 {
    font-size: 22px;
  }

  .auth-page {
    padding: 16px 10px;
  }
  .auth-card {
    border-radius: 10px;
  }
  .auth-tab {
    padding: 12px 10px;
    font-size: 14px;
  }
  .auth-form {
    padding: 20px 16px 10px;
  }

  .form-input {
    padding: 11px 12px;
    font-size: 14px;
  }
  .form-submit {
    padding: 13px;
    font-size: 14px;
  }

  /* Social buttons stack on small screens */
  .auth-social-row {
    flex-direction: column;
  }
  .auth-social-btn {
    width: 100%;
  }

  .auth-remember-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Very Small Phone */
@media (max-width: 360px) {
  .auth-page {
    padding: 12px 6px;
  }
  .auth-form {
    padding: 18px 14px 10px;
  }
  .auth-tab {
    padding: 11px 8px;
    font-size: 13px;
  }
  .page-banner h1 {
    font-size: 20px;
  }
}

/* ── Email Verification Modal (OTP popup) ─────────────────────────── */
.email-verify-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.email-verify-modal-dialog {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.email-verify-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 8px;
}

.email-verify-modal-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 6px;
}

.email-verify-modal-close:hover {
  color: #00BFAA;
}

.email-verify-modal-body {
  padding: 8px 18px 18px;
}

.email-verify-modal-code-debug {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f0fff7;
  border: 1px solid #c9f6df;
  border-radius: 10px;
  color: #0f766e;
}

.email-verify-modal-error {
  margin-top: 10px;
}

.email-verify-modal-hint {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

.email-verify-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.email-verify-modal-verify-btn {
  flex: 1 1 180px;
}

.email-verify-modal-resend-btn {
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .email-verify-modal-header {
    padding: 16px 14px 8px;
  }
  .email-verify-modal-body {
    padding: 8px 14px 14px;
  }
  .email-verify-modal-actions {
    flex-direction: column;
  }
  .email-verify-modal-verify-btn,
  .email-verify-modal-resend-btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ── My Account Page ───────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin: 32px 0 56px;
  align-items: start;
}

.account-sidebar,
.account-content {
  background: #ffffff;
  border: 1px solid #e9eef3;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.account-content {
  position: relative;
  z-index: 1;
}

.account-sidebar {
  position: sticky;
  top: 110px;
}

.account-menu-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dbe7f3;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 10px;
}

.account-menu-caret {
  font-size: 11px;
  color: #64748b;
}

.account-menu-list {
  display: block;
}

.account-sidebar-head {
  padding: 2px 4px 12px;
  border-bottom: 1px solid #eef3f7;
  margin-bottom: 12px;
}

.account-sidebar-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.account-sidebar-head h3 {
  font-size: 18px;
  color: #0f172a;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0fdfb 100%);
}

.account-head-kicker {
  color: #64748b;
  font-size: 13px;
}

#account-head-name {
  margin: 2px 0 0;
  font-size: 24px;
  color: #0f172a;
}

.account-head-pill {
  border: 1px solid #dce8f4;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.account-tab-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 6px;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.account-tab-btn:hover {
  background: #f8fbff;
  border-color: #dbe7f3;
  transform: translateX(2px);
}

.account-tab-btn.active {
  background: linear-gradient(135deg, #ebfdfa 0%, #e7f8ff 100%);
  color: #0d7f75;
  border-color: #cdeeea;
}

.account-logout-btn {
  margin-top: 8px;
  color: #d43f3f;
  background: #fff8f8;
  border-color: #ffe2e2;
}

.account-tab-panel {
  display: none;
}

.account-tab-panel.active {
  display: block;
}

.account-tab-panel h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: #0f172a;
}

.account-section-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: #0f172a;
}

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

.account-stat-card {
  border: 1px solid #e7edf5;
  border-radius: 14px;
  padding: 14px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.account-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  border-color: #d7e4f3;
}

.account-stat-card span {
  display: block;
  color: #5f7188;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.account-stat-card strong {
  font-size: 32px;
  line-height: 1;
  color: #0b1a33;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-stat-card.metric-count strong {
  font-size: clamp(26px, 2vw, 34px);
}

.account-stat-card.metric-amount {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf9 100%);
  border-color: #d8ece8;
}

.account-stat-card.metric-amount strong {
  font-size: clamp(17px, 1.25vw, 24px);
  color: #0c5560;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.account-orders-list {
  display: grid;
  gap: 12px;
}

.account-order-card {
  border: 1px solid #e7edf5;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: all .2s ease;
}

.account-order-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: #dbe7f3;
}

.account-order-card h4 {
  margin-bottom: 6px;
}

.account-order-card p {
  color: #64748b;
  font-size: 13px;
}

.account-order-main {
  min-width: 0;
}

.account-order-side {
  text-align: right;
}

.account-order-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.account-order-card__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-order-item-variant {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.account-order-total {
  font-size: 18px;
  font-weight: 700;
  color: #009688;
}

.status-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-order-card .status-badge,
.account-order-detail .status-badge {
  vertical-align: middle;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #d1ecf1; color: #0c5460; }
.status-on_the_way { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-returned { background: #e2e3e5; color: #383d41; }
.status-in_china { background: #fff7ed; color: #9a3412; }
.status-picked_up { background: #e0f2fe; color: #0369a1; }
.status-in_lebanon { background: #d1fae5; color: #065f46; }
.status-converted_to_sales_order { background: #e0f2fe; color: #0c4a6e; }
.status-converted_to_global_order { background: #ede9fe; color: #5b21b6; }

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.account-modal.open {
  display: block;
}

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.account-modal-dialog {
  position: relative;
  margin: 48px auto;
  width: min(880px, calc(100% - 28px));
  max-height: calc(100vh - 96px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48px);
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

.account-modal-dialog-inner {
  position: relative;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.account-order-modal-body {
  padding: 22px 24px 28px;
  padding-right: 56px;
}

.account-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.account-order-detail {
  color: #0f172a;
}

.account-order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8eef4;
}

.account-order-detail-head-text {
  min-width: 0;
}

.account-order-detail-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.account-order-detail-head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.account-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-order-meta-cell {
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8eef4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.account-order-meta-cell--full {
  grid-column: 1 / -1;
}

.account-order-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.account-order-meta-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
}

.account-order-items-section {
  margin-top: 22px;
}

.account-order-subtitle {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  border-bottom: 2px solid #e0f2f1;
  display: block;
}

.account-order-items {
  border-radius: 14px;
  border: 1px solid #e8eef4;
  background: #fafbfc;
  overflow: hidden;
}

.account-order-items-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

.account-order-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  transition: background 0.12s ease;
}

.account-order-item-row:last-child {
  border-bottom: 0;
}

.account-order-item-row:hover {
  background: #fafbfc;
}

.account-order-item-main {
  min-width: 0;
}

.account-order-item-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-order-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.account-order-item-thumb--placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.account-order-item-row h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.account-order-item-meta {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.account-order-item-line {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.account-order-totals-card {
  margin-top: 22px;
  margin-left: auto;
  width: min(400px, 100%);
  border-radius: 14px;
  border: 1px solid #e0f2f1;
  background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 55%);
  padding: 16px 18px 18px;
  box-shadow: 0 4px 20px rgba(0, 150, 136, 0.08);
}

.account-order-totals-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 12px;
}

.account-order-totals-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.account-order-totals-line:last-child {
  border-bottom: 0;
}

.account-order-totals-line--muted {
  color: #64748b;
  font-size: 13px;
}

.account-order-totals-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0f172a;
}

.account-order-totals-line--muted .account-order-totals-num {
  font-weight: 600;
  color: #475569;
}

.account-order-totals-grand {
  margin-top: 4px;
  padding-top: 12px !important;
  padding-bottom: 0 !important;
  border-top: 2px solid rgba(13, 148, 136, 0.35) !important;
  border-bottom: 0 !important;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.account-order-totals-grand .account-order-totals-num {
  font-size: 1.15rem;
  color: #0f766e;
}

.account-empty {
  border: 1px dashed #d8e2ef;
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  background: #fbfdff;
}

.account-form {
  max-width: 520px;
}

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

  .account-sidebar {
    position: static;
    padding: 12px;
  }

  .account-sidebar-head {
    display: none;
  }

  .account-menu-toggle {
    display: flex;
  }

  .account-menu-list {
    display: none;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
  }

  .account-menu-list.open {
    display: block;
  }

  .account-tab-btn {
    width: 100%;
    margin-bottom: 6px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .account-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .account-stat-card strong {
    font-size: 28px;
  }

  .account-stat-card.metric-amount strong {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .account-layout {
    margin: 18px 0 40px;
    gap: 14px;
  }

  .account-content {
    padding: 14px;
  }

  #account-head-name {
    font-size: 20px;
  }

  .account-head-pill {
    white-space: normal;
  }

  .account-section-title {
    font-size: 18px;
  }

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

  .account-stat-card strong {
    font-size: 24px;
  }

  .account-stat-card.metric-amount strong {
    font-size: 18px;
  }

  .account-order-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .account-order-side {
    text-align: left;
  }

  .account-modal-dialog {
    margin: 16px auto;
    max-height: calc(100vh - 32px);
    border-radius: 14px;
  }

  .account-modal-dialog-inner {
    max-height: calc(100vh - 32px);
  }

  .account-order-modal-body {
    padding: 18px 16px 22px;
    padding-right: 52px;
  }

  .account-order-detail-head h3 {
    font-size: 1.25rem;
  }

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

  .account-order-totals-card {
    width: 100%;
  }
}

/* Profile — saved addresses & map modal */
.account-profile-addresses {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e8eef4;
  position: relative;
  z-index: 2;
}

.account-profile-addresses-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.account-profile-addresses-hint {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

.account-address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 0;
}

#profile-add-address-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.account-address-card {
  border-radius: 14px;
  border: 1px solid #e8eef4;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.account-address-card-main {
  min-width: 0;
  flex: 1;
}

.account-address-card-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d9488;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.account-address-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.account-address-card-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  white-space: pre-wrap;
}

.account-address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-address-default-badge {
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 999px;
}

.account-address-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  min-height: 220px;
  margin-top: 8px;
}

.account-address-map-wrap .leaflet-container {
  font-family: inherit;
}

#profile-address-map {
  width: 100%;
  height: 240px;
}

.account-address-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.account-address-coords {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.account-modal--wide .account-modal-dialog {
  width: min(720px, calc(100% - 28px));
}

.account-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  line-height: 1.4;
}

.account-checkbox-label input {
  margin-top: 3px;
  flex-shrink: 0;
}
