/* ==========================================================================
   KVDA Workwear — Modern Minimalist Stylesheet
   Raw, Simple, Elevated Artisan Aesthetic
   ========================================================================== */

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

:root {
  --bg-main: #f4efe6;          /* Raw unbleached cotton canvas background */
  --bg-subtle: #e6dbc9;        /* Washed twill canvas fill for alt sections & headers */
  --bg-card: #faf6ee;          /* Calico cream card background */
  --bg-header: rgba(250, 246, 238, 0.96); /* Translucent calico cream header */
  --bg-dark: #1c2630;          /* Raw selvage dark slate espresso */
  --text-main: #1c2630;        /* Raw selvage dark slate text */
  --text-muted: #4e5a66;      /* Muted slate twill gray for subtitles */
  --text-light: #7b8894;       /* Soft denim twill captions */
  --border: #d6c8b4;           /* Sandstone twill border */
  --border-subtle: #e3d7c5;    /* Soft inner canvas border */
  --accent-tan: #3b5a75;       /* Washed denim indigo accent */
  --accent-tan-hover: #2b445a; /* Deep denim indigo hover */
  --accent-tan-bg: #e2eaf0;    /* Pastel denim badge fill */
  --links-color-hover: #3b5a75;
  --links-color: #1c2630;
  --shadow-sm: 0 2px 8px rgba(28, 38, 48, 0.05);
  --shadow-md: 0 6px 18px rgba(28, 38, 48, 0.08);
  --shadow-lg: 0 12px 32px rgba(28, 38, 48, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   Global Layout & Container Utilities
   ========================================================================== */
.container,
.basic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.2rem 0 3rem;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Button System
   ========================================================================== */
button,
.btn,
.btn-primary,
.btn-primary-custom,
.pure-button,
.cart-checkout-btn,
.checkout-submit-btn,
.product-show-atc,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background-color: var(--bg-dark) !important;
  color: #ffffff !important;
  border: 1px solid var(--bg-dark) !important;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 32, 29, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  appearance: none;
  -webkit-appearance: none;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-primary-custom:hover,
.pure-button:hover,
.cart-checkout-btn:hover,
.checkout-submit-btn:hover,
.product-show-atc:hover,
input[type="submit"]:hover {
  background-color: #3d3530 !important;
  border-color: #3d3530 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

button:active,
.btn:active,
.btn-primary:active,
.btn-primary-custom:active,
.pure-button:active,
.cart-checkout-btn:active,
.checkout-submit-btn:active,
.product-show-atc:active,
input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-outline,
.cart-btn,
.filter-btn {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}

.btn-outline:hover,
.cart-btn:hover,
.filter-btn:hover,
.filter-btn.active {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
  border-color: var(--text-main) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 23, 20, 0.12) !important;
}

.cart-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cart-count-pill {
  background-color: var(--accent-tan);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  line-height: 1.2;
}

.admin-add-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Clean High-Contrast Studio Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  box-shadow: 0 2px 10px rgba(27, 23, 20, 0.04);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-main);
  line-height: 1;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-tan);
  background-color: var(--accent-tan-bg);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

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

.nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.nav a:hover,
.nav a.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-tan);
  border-radius: 1px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: all 0.2s ease !important;
}

.mobile-menu-toggle .hamburger-bar {
  width: 16px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-btn,
.header-actions .btn,
.header-actions .cart-btn {
  height: 38px !important;
  padding: 0 0.85rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.header-icon-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-lang-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

.header-icon-btn .cart-count-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cart-count-pill {
  background-color: var(--accent-tan);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.cart-btn:hover .cart-count-pill {
  background-color: #ffffff;
  color: var(--text-main);
}

/* Quiet Hero */
.hero {
  padding: 2.2rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 10px;
  width: 100%;
  height: 310px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-img-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hero-text .sub {
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-tan);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
}

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-tan);
}

.product-thumb {
  position: relative;
  height: 270px;
  background-color: var(--bg-subtle);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}


.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.product-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.2rem 0.1rem;
}

.product-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-tan);
}

/* Craft Note */
.craft-note-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.craft-note-image img {
  border-radius: 6px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.craft-note-content h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.craft-note-content p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Order Contact Form */
.form-container {
  max-width: 600px;
  text-align: center;
}

.form-container h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-container p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* Footer */
.footer {
  border-top: 1px solid #2e2823;
  padding: 3.5rem 0;
  margin-top: 5rem;
  background: var(--bg-dark);
  color: #d4ceb8;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  color: #b8b09d;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 420px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #111111;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-item.toast-notice {
  border-left: 4px solid #10b981;
}

.toast-item.toast-notice .toast-icon {
  color: #10b981;
}

.toast-item.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-item.toast-error .toast-icon {
  color: #ef4444;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  margin-left: 0.4rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--text-main);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
}

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

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

.drawer-head h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.close-btn {
  background: none !important;
  border: none !important;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted) !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  transform: none !important;
  line-height: 1 !important;
}

.close-btn:hover {
  background-color: var(--bg-subtle) !important;
  color: var(--text-main) !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bag-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bag-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.bag-item-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 72px;
}

.bag-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding-right: 1.5rem;
  line-height: 1.3;
  word-break: break-word;
}

.bag-item-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bag-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.price-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-tan);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none !important;
  background: transparent !important;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-main) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1 !important;
  text-decoration: none;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.qty-btn:hover {
  background: var(--bg-subtle) !important;
  color: var(--accent-tan) !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.qty-num {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  color: var(--text-main);
  line-height: 1;
}

.remove-item-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none !important;
  border: none !important;
  font-size: 1.1rem;
  line-height: 1 !important;
  cursor: pointer;
  color: var(--text-light) !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: all 0.2s ease !important;
  text-decoration: none;
}

.remove-item-btn:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.drawer-foot {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
}

/* Product Detail Swiper Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-main);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-close-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1020;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  border: 1px solid var(--border) !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: none;
}

.modal-close-btn:hover {
  background: #111111 !important;
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

.modal-split-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.modal-left {
  width: 50%;
  height: 100vh;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productSwiper {
  width: 100%;
  height: 100%;
}

.productSwiper .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  cursor: zoom-in;
}

.modal-right {
  width: 50%;
  height: 100vh;
  background: var(--bg-main);
  padding: 4rem 4rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-right::-webkit-scrollbar {
  width: 6px;
}

.modal-right::-webkit-scrollbar-track {
  background: transparent;
}

.modal-right::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.modal-right::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.modal-details-box {
  max-width: 480px;
  width: 100%;
}

.product-cat-label {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-tan);
  background: var(--accent-tan-bg);
  border: 1px solid #ebd9c8;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.product-detail-title {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.product-detail-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.specs-section {
  margin-bottom: 2.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.specs-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.specs-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-item .label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-item .val {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.btn-full {
  width: 100%;
}

.product-size-selection {
  margin-bottom: 0.85rem;
}

.product-size-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.product-size-select {
  width: 100%;
  border-radius: 6px;
  padding: 10px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-main);
}

.bag-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: 0.2rem;
}

.cart-item-size, .checkout-item-size, .order-preview-item-size, .order-product-size {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Page Header & Auth Forms */
.page-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0 1.2rem;
  margin-bottom: 1.5rem;
}

.page-header-title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.4;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-tan);
}

.breadcrumbs a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}

.breadcrumb-current span {
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   Account Profile & Settings Page Layout
   ========================================================================== */
.account-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .account-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.account-profile-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}

.account-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.account-nav-list a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.account-nav-list a:hover,
.account-nav-list a.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
}

.account-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.6rem 0;
}

.account-logout-btn,
button.account-logout-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.65rem 0.9rem !important;
  background-color: transparent !important;
  color: #dc2626 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  transform: none !important;
}

.account-logout-btn:hover,
button.account-logout-btn:hover {
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
  transform: none !important;
  box-shadow: none !important;
}

.account-logout-btn svg {
  color: inherit !important;
  stroke: currentColor !important;
}

.account-profile-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pure-g {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.pure-u-1 { width: 100%; }
@media (min-width: 769px) {
  .pure-u-md-1-2 { width: calc(50% - 1.5rem); }
  .border-left-padded {
    border-left: 1px solid var(--border);
    padding-left: 3rem;
  }
}

.customer-login {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

.customer-login h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.subtitle-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.customer-login input[type="text"],
.customer-login input[type="password"],
.customer-login input[type="email"],
.customer-login input[type="tel"],
.customer-login select,
.simple-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.customer-login input:focus,
.customer-login select:focus,
.simple-input:focus {
  outline: none;
  border-color: var(--accent-tan);
}

/* Security & Auth Card Modern Components */
.auth-card-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-card-header {
  margin-bottom: 1.8rem;
}

.auth-card-header.text-center {
  text-align: center;
}

.auth-card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.auth-card-header p.subtitle-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-back:hover {
  color: var(--text-main);
  transform: translateX(-3px);
}

/* ==========================================================================
   Cart & Checkout Pages (Artisan Minimal Design System)
   ========================================================================== */

.cart-page,
.checkout-page {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* --- Cart Items Section & Checkout Details --- */
.cart-items-section,
.checkout-details {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.cart-items-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.cart-items-count-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #666666);
}

.cart-clear-btn {
  font-size: 0.85rem;
  color: #e53935;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.cart-clear-btn:hover {
  opacity: 0.75;
}

.cart-items-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1.2fr 1fr 40px;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #777777);
  align-items: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1.2fr 1fr 40px;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border, #f0f0f0);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e5e5);
  background: var(--bg-subtle, #fafafa);
  flex-shrink: 0;
}

.cart-item-name {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main, #111111);
}

.cart-item-name a {
  color: var(--text-main, #111111);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item-name a:hover {
  color: var(--accent-tan, #a67c52);
}

.cart-item-price,
.cart-item-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main, #111111);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border, #d1d1d1);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main, #111111);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-qty-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.cart-qty-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.cart-item-qty span {
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  display: flex;
  justify-content: flex-end;
}

.cart-remove-link {
  color: var(--text-muted, #888888);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-remove-link:hover {
  color: #e53935;
}

/* --- Cart & Checkout Summary Panels --- */
.cart-summary-panel,
.checkout-summary-panel {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 100px;
}

.cart-summary-title,
.checkout-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-main, #111111);
}

.cart-summary-rows,
.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.cart-summary-row,
.checkout-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted, #555555);
}

.cart-summary-total,
.checkout-totals-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main, #111111);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
  border-top: 1px dashed var(--border, #e5e5e5);
}

.cart-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  max-width: 520px;
  margin: 2rem auto 5rem;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted, #aaaaaa);
  margin-bottom: 1.2rem;
}

.cart-empty p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.8rem;
  color: var(--text-main, #111111);
}

.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: #111111;
  color: #ffffff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cart-empty-cta:hover {
  background: #333333;
  transform: translateY(-1px);
}

/* --- Successful Order Page --- */
.success-page {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.success-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  max-width: 580px;
  margin: 1.5rem auto 3rem;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.success-icon {
  width: 68px;
  height: 68px;
  background-color: #f2f8f3;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid #d4edda;
}

.success-icon svg {
  width: 34px;
  height: 34px;
  stroke: #2e7d32;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main, #111111);
  margin-bottom: 0.8rem;
}

.success-message {
  color: var(--text-muted, #555555);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 2.2rem;
}

.success-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.success-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--border, #cccccc);
  border-radius: 8px;
  color: var(--text-main, #111111);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.success-actions .btn-outline:hover {
  border-color: var(--text-main, #111111);
  background-color: var(--text-main, #111111);
  color: #ffffff;
}

.success-actions .btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
}

/* --- Checkout Page Form & Items --- */
.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-field label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #555555);
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #cccccc);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-main, #111111);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.checkout-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.checkout-summary-header .checkout-section-title {
  margin-bottom: 0;
}

.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted, #666666);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.checkout-back-link:hover {
  color: var(--text-main, #111111);
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border, #e5e5e5);
  background: var(--bg-subtle, #fafafa);
  flex-shrink: 0;
}

.checkout-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.checkout-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main, #111111);
  text-decoration: none;
}

.checkout-item-qty-badge {
  font-size: 0.78rem;
  color: var(--text-muted, #777777);
}

.checkout-item-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main, #111111);
}

.product-show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.product-show-main-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

/* Form Layout Helper Classes */
.form-section-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.form-field-group {
  margin-bottom: 1.2rem;
}

.form-field-group-lg {
  margin-bottom: 1.5rem;
}

.form-actions-spacing {
  margin-top: 2rem;
}

.card-fit-content {
  height: fit-content;
}

.section-compact-top {
  padding-top: 0.5rem;
}

.qty-btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-weight: 600;
}

.remove-item-link {
  text-decoration: none;
}

.drawer-empty-wrapper {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.drawer-empty-icon {
  margin-bottom: 0.8rem;
  opacity: 0.5;
}

.drawer-empty-text {
  font-size: 0.95rem;
}

.btn-checkout-block {
  width: 100%;
  text-align: center;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
  padding: 0.85rem 1.5rem !important;
}

/* Product Form Layout & Custom Upload Box */
.product-form-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.custom-file-upload {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-file-upload:hover {
  border-color: var(--accent-tan);
  background: #ffffff;
}

.file-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content .upload-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-tan);
  margin-bottom: 0.5rem;
}

.file-upload-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-update-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.image-preview-thumb {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.image-preview-thumb .remove_image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.image-preview-thumb .remove_image:hover {
  background: #e53935 !important;
}

/* Premium Product Builder Component System */
.product-builder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-builder-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.product-builder-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.builder-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.builder-header-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.builder-header-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.pricing-calc-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.pricing-calc-label {
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-calc-value {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.permalink-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.permalink-url {
  font-family: monospace;
  color: var(--accent-tan);
  font-weight: 600;
}

.image-preview-thumb {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumb-cover-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #111111;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Layout & Spacing Utility Helpers */
.mt-10 { margin-top: 1rem !important; }
.mt-12 { margin-top: 1.2rem !important; }
.mt-15 { margin-top: 1.5rem !important; }
.mt-18 { margin-top: 1.8rem !important; }
.mt-20 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-04 { margin-bottom: 0.4rem !important; }
.mb-15 { margin-bottom: 1.5rem !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-inherit { color: inherit !important; }

.d-block { display: block !important; }
.justify-center { justify-content: center !important; }

.w-max-480 { max-width: 480px; margin: 0 auto; }

.admin-order-totals-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.sticky-top-2 {
  position: sticky;
  top: 2rem;
}

/* Responsive Mobile Modal Styles */
@media (max-width: 992px) {
  .product-form-layout {
    grid-template-columns: 1fr;
  }
  .product-modal {
    overflow-y: auto;
  }

  .modal-split-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .modal-left {
    width: 100%;
    height: 380px;
    flex-shrink: 0;
    background: var(--bg-main);
  }

  .modal-right {
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem 3.5rem;
    overflow: visible;
  }

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

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .header-inner {
    position: relative;
    gap: 0.6rem;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .brand-badge {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.4rem;
  }

  .header-btn,
  .header-actions .btn,
  .header-actions .cart-btn {
    height: 34px !important;
    padding: 0 0.75rem !important;
    font-size: 0.78rem !important;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 38, 48, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.4rem;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    z-index: 200;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--border-subtle);
    color: var(--text-main);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a.active::after {
    display: none;
  }

  .hero-inner, .product-grid, .craft-note-inner, .field-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* ==========================================================================
   Form Fields, Labels & Error Message System
   ========================================================================== */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.simple-input,
.customer-login input[type="text"],
.customer-login input[type="password"],
.customer-login input[type="email"],
.customer-login input[type="tel"],
.customer-login select,
.rodauth input[type="text"],
.rodauth input[type="password"],
.rodauth input[type="email"],
.rodauth input[type="tel"],
.rodauth select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.simple-input:focus,
.customer-login input:focus,
.rodauth input:focus,
.rodauth select:focus {
  outline: none;
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

/* Error message styling - bright, distinct red with proper line spacing */
.rodauth-error-message,
.field-error,
.error_message,
.invalid-feedback,
span[id$="-error"],
.error-text {
  display: block !important;
  color: #e53935 !important;
  font-size: 0.83rem !important;
  font-weight: 500 !important;
  margin-top: 0.4rem !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

#rodauth-error-flash,
.rodauth-error-flash,
.flash.error {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b !important;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.06);
}

.rodauth-notice-flash,
.flash.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #065f46 !important;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.06);
}

/* Sortable drag ghost style */
.sortable-ghost {
  opacity: 0.4;
  border: 2px dashed var(--text-muted) !important;
}

/* Swiper Gallery Navigation Arrows & Pagination */
.productSwiper .swiper-button-next,
.productSwiper .swiper-button-prev {
  color: #111111 !important;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.productSwiper .swiper-button-next:after,
.productSwiper .swiper-button-prev:after {
  font-size: 16px !important;
  font-weight: 700;
}

.productSwiper .swiper-button-next:hover,
.productSwiper .swiper-button-prev:hover {
  background: #ffffff;
  color: #000000 !important;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.productSwiper .swiper-pagination-bullet-active {
  background: #111111 !important;
}

/* PhotoSwipe Light Background Override */
.pswp {
  --pswp-bg: rgba(255, 255, 255, 0.96) !important;
  --pswp-placeholder-bg: var(--bg-subtle) !important;
  --pswp-icon-color: #111111 !important;
  --pswp-icon-color-secondary: #ffffff !important;
}

/* ==========================================================================
   Order Lists, Cards & Component System
   ========================================================================== */
.orders-list,
.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.order-card,
.admin-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.order-card:hover,
.admin-order-card:hover {
  border-color: #d1d1d1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.order-card-header,
.admin-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.order-card-title-row,
.admin-order-id-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.order-number,
.admin-order-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.order-date,
.admin-order-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.order-card-summary,
.admin-order-total-box {
  text-align: right;
}

.order-total,
.admin-order-total-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-tan);
}

.admin-order-total-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
}

.order-products,
.admin-order-products {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.order-product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.order-product-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.order-product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.order-product-name:hover {
  color: var(--accent-tan);
}

.order-product-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.order-product-qty {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-product-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.8rem;
}

.order-delivery-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-preview-btn {
  padding: 0.45rem 1rem !important;
  font-size: 0.8rem !important;
  background: transparent !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.order-preview-btn:hover {
  background: var(--text-main) !important;
  color: #ffffff !important;
  border-color: var(--text-main) !important;
}

/* Status Badges */
.order-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  line-height: 1;
}

.order-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

/* 1. В обработка (New / In Processing) -> Vibrant Amber */
.order-status--new,
.order-status--approved {
  background-color: #fffbe6;
  color: #b45309;
  border: 1px solid #fef3c7;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.1);
}
.order-status--new::before,
.order-status--approved::before {
  background-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

/* 2. В подготовка (In Preparation) -> Royal Blue */
.order-status--preparing {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}
.order-status--preparing::before {
  background-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* 3. Изпратена по куриер (Shipped / Courier) -> Violet Purple */
.order-status--courier {
  background-color: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.1);
}
.order-status--courier::before {
  background-color: #8b5cf6;
}

/* 4. Доставена (Delivered) -> Emerald Green */
.order-status--delivered {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}
.order-status--delivered::before {
  background-color: #10b981;
}

/* 5. Отказана (Declined) -> Crimson Red */
.order-status--declined {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.order-status--declined::before {
  background-color: #ef4444;
}

/* 6. Чернова (Draft) -> Slate Gray */
.order-status--user {
  background-color: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}
.order-status--user::before {
  background-color: #a1a1aa;
}

/* Order Card Status Accent Borders */
.admin-order-card {
  border-left: 4px solid var(--border);
  transition: border-left-color 0.25s ease, box-shadow 0.25s ease;
}
.admin-order-card:has(.order-status--new),
.admin-order-card:has(.order-status--approved) {
  border-left-color: #f59e0b;
}
.admin-order-card:has(.order-status--preparing) {
  border-left-color: #3b82f6;
}
.admin-order-card:has(.order-status--courier) {
  border-left-color: #8b5cf6;
}
.admin-order-card:has(.order-status--delivered) {
  border-left-color: #10b981;
}
.admin-order-card:has(.order-status--declined) {
  border-left-color: #ef4444;
}

/* Order Dashboard KPI Cards */
.order-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

a.kpi-card:hover,
a.kpi-card.kpi-card--active {
  border-color: var(--accent-tan);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.kpi-details {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* Timeline Step Tracker for Order Preview */
.order-progress-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0 2.5rem 0;
  padding: 0 1rem;
}

.order-progress-tracker::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 2.5rem;
  right: 2.5rem;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-step.completed .step-dot {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.progress-step.completed .step-label {
  color: var(--text-main);
}

.progress-step.active .step-dot {
  background: var(--accent-tan);
  border-color: var(--accent-tan);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(197, 160, 112, 0.2);
}

.progress-step.active .step-label {
  color: var(--accent-tan);
  font-weight: 700;
}

/* Admin Controls & Filters */
.admin-orders-page,
.admin-user-orders-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.admin-orders-header {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.admin-orders-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.admin-orders-count-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.admin-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Color-coded Status Filter Pills */
.admin-status-pill {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.admin-status-pill::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Default / All */
.admin-status-pill--all {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.admin-status-pill--all.admin-status-pill--active,
.admin-status-pill--all:hover {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* 1. В обработка (New) */
.admin-status-pill--new {
  background-color: #fffbe6;
  color: #b45309;
  border: 1px solid #fef3c7;
}
.admin-status-pill--new::before {
  background-color: #f59e0b;
}
.admin-status-pill--new.admin-status-pill--active,
.admin-status-pill--new:hover {
  background-color: #f59e0b !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}
.admin-status-pill--new.admin-status-pill--active::before,
.admin-status-pill--new:hover::before {
  background-color: #ffffff;
}

/* 2. В подготовка (Preparing) */
.admin-status-pill--preparing {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.admin-status-pill--preparing::before {
  background-color: #3b82f6;
}
.admin-status-pill--preparing.admin-status-pill--active,
.admin-status-pill--preparing:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}
.admin-status-pill--preparing.admin-status-pill--active::before,
.admin-status-pill--preparing:hover::before {
  background-color: #ffffff;
}

/* 3. Изпратена по куриер (Courier) */
.admin-status-pill--courier {
  background-color: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.admin-status-pill--courier::before {
  background-color: #8b5cf6;
}
.admin-status-pill--courier.admin-status-pill--active,
.admin-status-pill--courier:hover {
  background-color: #7c3aed !important;
  color: #ffffff !important;
  border-color: #6d28d9 !important;
}
.admin-status-pill--courier.admin-status-pill--active::before,
.admin-status-pill--courier:hover::before {
  background-color: #ffffff;
}

/* 4. Доставена (Delivered) */
.admin-status-pill--delivered {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.admin-status-pill--delivered::before {
  background-color: #10b981;
}
.admin-status-pill--delivered.admin-status-pill--active,
.admin-status-pill--delivered:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}
.admin-status-pill--delivered.admin-status-pill--active::before,
.admin-status-pill--delivered:hover::before {
  background-color: #ffffff;
}

/* 5. Отказана (Declined) */
.admin-status-pill--declined {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.admin-status-pill--declined::before {
  background-color: #ef4444;
}
.admin-status-pill--declined.admin-status-pill--active,
.admin-status-pill--declined:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
}
.admin-status-pill--declined.admin-status-pill--active::before,
.admin-status-pill--declined:hover::before {
  background-color: #ffffff;
}

/* 6. Чернова (User / Cart) */
.admin-status-pill--user {
  background-color: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}
.admin-status-pill--user::before {
  background-color: #a1a1aa;
}
.admin-status-pill--user.admin-status-pill--active,
.admin-status-pill--user:hover {
  background-color: #52525b !important;
  color: #ffffff !important;
  border-color: #3f3f46 !important;
}
.admin-status-pill--user.admin-status-pill--active::before,
.admin-status-pill--user:hover::before {
  background-color: #ffffff;
}

.admin-order-account-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.admin-order-customer-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.admin-order-detail-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-detail-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-detail-val {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
  word-break: break-word;
}

.admin-detail-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  word-break: break-word;
  margin-top: 0.1rem;
}

/* Status Update & Form Controls */
.admin-order-status-form {
  margin-top: 0.3rem;
}

.admin-status-input-group,
.admin-qty-input-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-status-select,
.admin-add-product-select {
  height: 38px;
  padding: 0 0.8rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: auto;
}

.admin-status-select:focus,
.admin-add-product-select:focus,
.admin-item-qty-field:focus,
.admin-add-qty-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.admin-status-btn,
.admin-item-update-btn,
.admin-add-item-submit-btn {
  height: 38px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #111111 !important;
  border: 1px solid #111111 !important;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-status-btn:hover,
.admin-item-update-btn:hover,
.admin-add-item-submit-btn:hover {
  background-color: #333333 !important;
  border-color: #333333 !important;
  transform: translateY(-1px);
}

/* Items Table */
.admin-products-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.admin-products-count-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  color: var(--text-main);
}

.admin-order-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.admin-order-table th {
  background: var(--bg-subtle);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.admin-order-table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.admin-order-table tr:last-child td {
  border-bottom: none;
}

.admin-order-product-link {
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.admin-order-product-link:hover {
  color: var(--accent-tan);
}

.admin-item-qty-field,
.admin-add-qty-input {
  height: 34px;
  width: 60px;
  padding: 0 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-main);
}

.admin-item-update-btn {
  height: 34px !important;
  padding: 0 0.7rem !important;
  font-size: 0.75rem !important;
}

.admin-item-remove-btn {
  height: 34px;
  padding: 0 0.8rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: #dc2626 !important;
  background-color: transparent !important;
  border: 1px solid #fecaca !important;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.admin-item-remove-btn:hover {
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
}

/* Add Item Form */
.admin-add-item-box {
  margin-top: 1.2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.admin-add-item-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.6rem;
}

.admin-add-item-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.admin-add-product-select {
  flex: 2;
  min-width: 220px;
}

.admin-add-qty-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.admin-add-qty-input {
  height: 38px !important;
  width: 70px !important;
}

.admin-add-item-submit-btn {
  height: 38px !important;
  flex-shrink: 0;
}

/* Pagination System */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  border-color: #111111;
  color: #111111;
}

.pagination-btn--active {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  font-weight: 700;
}

/* ==========================================================================
   Admin Users Page & User Card System
   ========================================================================== */
.admin-users-page,
.admin-user-orders-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.admin-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.admin-users-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.admin-users-count-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.admin-users-page-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Search Form */
.admin-users-search-form {
  display: flex;
  align-items: center;
}

.admin-users-search-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-users-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-users-search-icon {
  position: absolute;
  left: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}

.admin-users-search-input {
  height: 40px;
  padding: 0 2.2rem 0 2.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-main);
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 280px;
  transition: all 0.2s ease;
}

.admin-users-search-input:focus {
  outline: none;
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.admin-users-clear-btn {
  position: absolute;
  right: 0.8rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.admin-users-clear-btn:hover {
  color: var(--text-main);
}

.admin-users-search-btn {
  height: 40px !important;
  padding: 0 1.2rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  flex-shrink: 0;
}

/* Users List & User Cards */
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.admin-user-card:hover {
  border-color: #d1d1d1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.admin-user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.admin-user-header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-user-avatar--admin {
  background: var(--accent-tan);
}

.admin-user-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-user-id-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-user-id {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.admin-user-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.admin-user-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

.admin-user-type-badge--admin {
  background-color: #111111;
  color: #ffffff;
}

.admin-user-type-badge--customer {
  background-color: #fdf8f4;
  color: var(--accent-tan);
  border: 1px solid #f5e6d8;
}

.admin-user-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user-orders-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.admin-user-view-btn,
.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-user-view-btn:hover,
.admin-back-btn:hover {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-1px);
}

.admin-user-card-body {
  padding-top: 0.4rem;
}

.admin-user-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.admin-user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.admin-user-info-row:hover {
  border-color: #d1d1d1;
  background-color: #ffffff;
}

.info-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-row-label svg {
  color: var(--accent-tan);
  flex-shrink: 0;
}

.info-row-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

@media (max-width: 640px) {
  .admin-user-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .info-row-value {
    text-align: left;
  }
}

.admin-user-orders-summary-card {
  margin-bottom: 2rem;
}

/* ==========================================================================
   Empty State Component System
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.empty-state svg {
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.4rem;
}

.empty-state-btn:hover {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-1px);
}

.admin-user-orders-header {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .admin-users-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-users-search-group {
    width: 100%;
  }

  .admin-users-input-wrapper {
    flex: 1;
  }

  .admin-users-search-input {
    width: 100%;
  }

  .admin-user-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-header-meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Order Preview Component & Utility Classes
   ========================================================================== */
.order-preview-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.preview-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.preview-back-btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  background: transparent !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
}

.preview-print-btn {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.order-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.order-preview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.order-preview-brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  display: block;
}

.order-preview-brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.2rem;
}

.order-preview-meta {
  text-align: right;
}

.order-preview-id {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  color: var(--text-main);
}

.order-preview-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-preview-status-wrap {
  margin-top: 0.6rem;
}

.order-preview-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.order-preview-grid-col {
  display: flex;
  flex-direction: column;
}

.order-preview-grid-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.order-preview-grid-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.order-preview-grid-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.order-preview-grid-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

.order-preview-items-section {
  margin-bottom: 2rem;
}

.order-preview-items-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.order-preview-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.order-preview-table th {
  padding: 0.8rem 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.order-preview-table td {
  padding: 1rem 0;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.order-preview-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-preview-thumb,
.order-product-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.order-preview-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.order-preview-item-cat {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.order-preview-totals-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.order-preview-totals-box {
  width: 100%;
  max-width: 300px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}

.order-preview-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.order-preview-totals-final {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.order-preview-print-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.order-preview-print-footer p {
  margin: 0;
}

.order-preview-print-footer .copyright {
  margin-top: 0.3rem;
}

/* Logout View Styling */
.logout-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.logout-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.logout-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.account-profile-section {
  padding-top: 0.5rem;
}

/* Utility Helper Classes */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.text-accent { color: var(--accent-tan) !important; }
.inline-form { display: inline-block !important; }
.border-bottom-none { border-bottom: none !important; }
.padding-bottom-none { padding-bottom: 0 !important; }
.margin-top-md { margin-top: 1.5rem !important; }

/* Utility Spacing & Display */
.d-none { display: none !important; }
.d-inline-block { display: inline-block !important; }
.m-0 { margin: 0 !important; }
.mt-6px { margin-top: 6px !important; }
.mt-10px { margin-top: 10px !important; }
.mt-12px { margin-top: 12px !important; }
.mt-1-2 { margin-top: 1.2rem !important; }
.mt-2rem { margin-top: 2rem !important; }

/* Status Badges */
.payment-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}
.payment-status--paid,
.payment-status--succeeded {
  background-color: #dcfce7;
  color: #15803d;
}
.payment-status--failed {
  background-color: #fee2e2;
  color: #b91c1c;
}
.payment-status--unpaid,
.payment-status--pending,
.payment-status--processing {
  background-color: #fef3c7;
  color: #b45309;
}
.payment-status--refunded {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.badge-shipping {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}
.badge-shipping--office {
  background-color: #fef3c7;
  color: #92400e;
}
.badge-shipping--address {
  background-color: #e0e7ff;
  color: #3730a3;
}

/* Account Settings & Cart Admin */
.account-settings-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.account-email-highlight {
  color: var(--text-main);
}
.cart-admin-notice {
  margin-top: 15px;
  padding: 12px;
  background-color: var(--bg-hover, #f8f9fa);
  border-radius: 6px;
  text-align: center;
  color: var(--text-muted, #666);
  font-size: 0.9em;
}

/* Order Total Box & Preview */
.admin-order-total-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.order-preview-status-wrap {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4px;
}
.order-preview-payment-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-preview-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Checkout Shipping & Payment Options */
.checkout-method-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.checkout-method-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}
.checkout-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .checkout-method-grid {
    grid-template-columns: 1fr;
  }
}
.checkout-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  background: #f8fafc;
}
.checkout-radio-label.active {
  border-color: #2563eb;
}
.checkout-radio-input {
  accent-color: #2563eb;
  margin-top: 2px;
}
.checkout-radio-title {
  display: block;
  font-size: 0.9rem;
  color: #1e293b;
}
.checkout-radio-desc {
  font-size: 0.775rem;
  color: #64748b;
  display: block;
}
.econt-office-finder-box {
  display: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}
.econt-office-finder-box.active {
  display: block;
}
.econt-office-finder-title {
  margin: 0 0 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}
.econt-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.econt-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
}
.econt-search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.econt-select-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff;
}
.checkout-payment-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Admin Dashboard KPI Cards & Table Utilities */
.admin-page-section {
  padding-top: 32px;
  padding-bottom: 64px;
}
.kpi-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-decoration: none;
}
.kpi-stat-card--active {
  border-color: #2563eb;
}
.kpi-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-stat-icon--blue { background: #eff6ff; color: #2563eb; }
.kpi-stat-icon--green { background: #f0fdf4; color: #16a34a; }
.kpi-stat-icon--amber { background: #fffbeb; color: #d97706; }
.kpi-stat-icon--purple { background: #faf5ff; color: #9333ea; }
.kpi-stat-icon--red { background: #fef2f2; color: #dc2626; }
.kpi-stat-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kpi-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
.kpi-stat-value--green { color: #16a34a; }
.kpi-stat-value--amber { color: #d97706; }
.kpi-stat-value--purple { color: #9333ea; }
.kpi-stat-value--red { color: #dc2626; }

.table-cell-padded { padding: 16px; }
.table-cell-header { padding: 14px 16px; }
.table-cell-bold { font-weight: 700; color: #0f172a; }
.table-cell-muted { color: #64748b; font-size: 0.825rem; white-space: nowrap; }
.table-cell-mono { font-family: monospace; font-size: 0.825rem; }
.table-cell-actions { padding: 16px; text-align: right; white-space: nowrap; width: 1%; }
.table-row-bordered { border-bottom: 1px solid #f1f5f9; font-size: 0.875rem; }
.btn-dark-sm {
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-sm {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.payload-dialog {
  border: none;
  border-radius: 12px;
  padding: 24px;
  max-width: 680px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.payload-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.payload-dialog-title {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}
.payload-dialog-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #64748b;
}
.payload-dialog-pre {
  background: #0f172a;
  color: #38bdf8;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  overflow-x: auto;
  max-height: 400px;
  text-align: left;
}
.payload-dialog-footer {
  margin-top: 16px;
  text-align: right;
}

/* Admin Data Tables & Layout Utilities */
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-empty-state {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}
.admin-empty-icon {
  margin-bottom: 12px;
}
.admin-empty-heading {
  margin: 0 0 8px 0;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 600;
}
.admin-empty-btn {
  margin-top: 12px;
  display: inline-block;
}

.admin-table-wrapper {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.admin-data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}
.admin-data-table--wide {
  min-width: 960px;
}
.admin-table-thead-tr {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.admin-action-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.form-inline {
  margin: 0;
  display: inline-block;
}

.cell-primary-text {
  font-weight: 500;
  color: #1e293b;
}
.cell-primary-bold {
  font-weight: 600;
  color: #1e293b;
}
.cell-subtext {
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 2px;
}
.cell-muted-dash {
  color: #94a3b8;
}
.cell-subtext-muted {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}
.cell-currency-suffix {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.badge-provider {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge {
  font-size: 0.725rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}

.shipment-status--delivered { background-color: #dcfce7; color: #15803d; }
.shipment-status--in_transit { background-color: #e0f2fe; color: #0369a1; }
.shipment-status--created { background-color: #fef3c7; color: #b45309; }
.shipment-status--returned { background-color: #fee2e2; color: #b91c1c; }
.shipment-status--pending { background-color: #f1f5f9; color: #475569; }

.kpi-stat-icon--sky { background: #e0f2fe; color: #0284c7; }
.kpi-stat-value--sky { color: #0284c7; }

.link-tracking {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-stripe {
  color: #6366f1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.admin-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.admin-pagination-info {
  align-self: center;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
.admin-pagination-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.text-nowrap {
  white-space: nowrap !important;
}

/* ==========================================================================
   FULLSCREEN IMAGE LIGHTBOX GALLERY OVERLAY
   ========================================================================== */
.fullscreen-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-gallery-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-gallery-content {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-gallery-content img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  user-select: none;
}

.fullscreen-gallery-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000000;
}

.fullscreen-gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.fullscreen-gallery-prev,
.fullscreen-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000000;
}

.fullscreen-gallery-prev { left: 28px; }
.fullscreen-gallery-next { right: 28px; }

.fullscreen-gallery-prev:hover,
.fullscreen-gallery-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.fullscreen-gallery-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}






