/*
Theme Name: Tokoku Custom Product Theme
Theme URI: https://example.com/custom-product-theme
Author: Custom Developer
Author URI: https://example.com
Description: Mobile-first e-commerce theme with modern clean UI
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: custom-product-theme
*/

:root {
  --primary: #14B8A6;
  --primary-dark: #0D9488;
  --primary-light: #D1FAF5;
  --secondary: #FFE4E6;
  --secondary-dark: #FDA4AF;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --font: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bottom-nav-height: 70px;
}

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

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

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--gray-50);
  padding-bottom: var(--bottom-nav-height);
  overflow-x: hidden;
}

body.single-produk { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; outline: none; }
ul { list-style: none; }

/* ===== TOP HEADER ===== */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  transition: background 0.2s;
}

.menu-btn:hover { background: var(--gray-100); }

.store-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
}

.store-location strong {
  color: var(--gray-800);
  font-weight: 600;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  position: relative;
  transition: background 0.2s;
}

.notif-btn:hover { background: var(--gray-100); }

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.mobile-header-right .notif-btn { position: relative; }
.mobile-header-right .cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
  z-index: 5;
}

/* ===== SEARCH BAR ===== */
.search-section {
  padding: 12px 16px;
  background: var(--white);
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  transition: box-shadow 0.2s;
}

.search-bar:focus-within {
  box-shadow: 0 0 0 2px var(--primary);
  background: var(--white);
}

.search-bar svg {
  flex-shrink: 0;
  color: var(--gray-400);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--gray-800);
  min-width: 0;
}

.search-bar input::placeholder { color: var(--gray-400); }

/* ===== PROMO BANNER ===== */
.promo-banner-section {
  padding: 0 16px;
  margin-top: 8px;
}

.promo-banner {
  background: linear-gradient(135deg, #FFE4E6 0%, #FCE7F3 50%, #FFF1F2 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  position: relative;
  min-height: 150px;
}

.promo-banner-content {
  flex: 1;
  z-index: 1;
}

.promo-banner-content .promo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.promo-banner-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
  margin-bottom: 4px;
}

.promo-banner-content h2 span {
  color: var(--primary);
}

.promo-banner-content p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-800);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.promo-banner-image {
  flex-shrink: 0;
  width: 120px;
  height: 140px;
  position: relative;
  z-index: 1;
}

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

/* Decorative circles */
.promo-banner::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.promo-banner::after {
  content: '';
  position: absolute;
  top: -20px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* ===== CATEGORY PILLS ===== */
.category-pills-section {
  padding: 16px 0 8px 16px;
  background: var(--white);
  margin-top: 8px;
}

.category-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 16px;
}

.category-pills-scroll::-webkit-scrollbar { display: none; }

.pill-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  transition: all 0.2s;
  white-space: nowrap;
}

.pill-btn:hover {
  background: var(--gray-200);
}

.pill-btn.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.see-all-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.see-all-btn:hover { gap: 6px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.product-grid .product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-grid .product-card .card-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--gray-100);
  overflow: hidden;
}

.product-grid .product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-grid .product-card:hover .card-image img {
  transform: scale(1.03);
}

.card-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.card-wishlist:hover { color: var(--danger); }
.card-wishlist.active { color: var(--danger); }

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--primary);
  color: var(--white);
}

.card-badge.badge-new { background: var(--primary); }
.card-badge.badge-sale { background: var(--danger); }
.card-badge.badge-bestseller { background: var(--warning); color: var(--gray-800); }
.card-badge.badge-limited { background: #8B5CF6; }

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

.card-body .card-category {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.card-body .card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-body .card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.card-body .card-price .old-price {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 6px;
}

.card-colors {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
}

.color-dot.more {
  border: none;
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--gray-100);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: all 0.2s;
  position: relative;
  min-width: 48px;
}

.nav-item svg { transition: all 0.2s; }

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-item.active svg {
  stroke-width: 2.5;
}

.wishlist-badge,
.cart-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .promo-banner-content h2 { font-size: 26px; }
}

@media (min-width: 1024px) {
  body { max-width: 480px; margin: 0 auto; background: var(--gray-200); }
  .mobile-header, .search-section, .promo-banner-section,
  .category-pills-section, .section-header, .product-grid {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .bottom-nav {
    min-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  body { box-shadow: var(--shadow-xl); min-height: 100vh; }
}

/* ===== SIDEBAR MENU ===== */
.site { position: relative; overflow-x: hidden; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.sidebar-menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  width: 300px;
  max-width: 80vw;
  background: #FFFFFF;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.sidebar-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-500);
  transition: background 0.2s;
  cursor: pointer;
}

.sidebar-close:hover { background: var(--gray-100); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sidebar-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-list li {
  border-bottom: 1px solid var(--gray-50);
}

.sidebar-menu-list a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.2s, color 0.2s;
}

.sidebar-menu-list a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.sidebar-menu-list .current-menu-item > a {
  color: var(--primary);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
}

.sidebar-cart-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 10px 0;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  margin-top: 4px;
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); }

.search-result-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-result-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--gray-800);
}

.search-result-info .price {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== NOTIFICATION TOAST ===== */
.notification {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  padding: 10px 20px;
  background: var(--gray-800);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s ease;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}

.notification.show { transform: translateX(-50%) translateY(0); }
.notification.error { background: var(--danger); }

/* ===== PRODUCT DETAIL ===== */

:root {
  --pd-primary: #00A6A6;
}

.pd-wrapper {
  padding-bottom: 150px;
  background: #FFFFFF;
}

/* Gallery */
.pd-gallery-wrap {
  width: 100%;
}

.pd-gallery-hero {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pd-gallery-inner {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.pd-gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* Floating Nav */
.pd-float-nav {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 10;
}

.right-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E1E1E;
  cursor: pointer;
  transition: transform 0.15s;
}

.circle-btn:hover { transform: scale(1.05); }
.circle-btn:active { transform: scale(0.95); }

.pd-wishlist-btn.active { color: #EF4444; }

/* Dots */
.slider-dot-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  background: #FFFFFF;
  padding: 5px 10px;
  border-radius: 20px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7d7d7;
  cursor: pointer;
  transition: all 0.25s;
}

.slider-dot.active {
  width: 24px;
  border-radius: 20px;
  background: #00A6A6;
}

/* Thumbnails */
.thumbnail-gallery {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px 20px;
}

.thumbnail-gallery::-webkit-scrollbar { display: none; }

.thumbnail-item {
  position: relative;
  min-width: 80px;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.thumbnail-item.active {
  border-color: #00A6A6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,166,166,0.18);
}

.thumbnail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body Info */
.pd-body {
  padding: 24px;
}

.pd-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #1E1E1E;
  margin-bottom: 14px;
}

/* Meta (stock + rating) */
.pd-meta {
  color: #757575;
  font-size: 14px;
  padding: 12px 16px;
  background: #F9F9F9;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rating-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-badge {
  background: #FFF4DC;
  color: #F5A623;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.review-text,
.stock-text {
  color: #7C7C7C;
  font-size: 14px;
}

.pd-price {
  font-size: 24px;
  font-weight: 700;
  color: #00A6A6;
  margin-bottom: 15px;
}

/* Section Title */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 14px;
}

/* Size */
.pd-section {
  margin-bottom: 24px;
}

.pd-size-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 64px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #E6E6E6;
  background: #FFFFFF;
  color: #1E1E1E;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0 20px;
}

.size-btn.active {
  background: #00A6A6;
  color: #FFFFFF;
  border-color: #00A6A6;
}

/* Color */
.color-name {
  color: #6F6F6F;
  font-size: 14px;
  margin-bottom: 14px;
}

.pd-color-wrap {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pd-color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #E5E5E5;
  background: #E5E5E5;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.pd-color-btn.active {
  box-shadow: 0 0 0 2px #00A6A6;
  border-color: #FFFFFF;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0px 5px;
  border: 1px solid #EDEDED;
  border-radius: 5px;
}

.qty-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #1E1E1E;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

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

.qty-number {
  width: 25px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1E1E1E;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

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

.qty-number:focus {
  border-color: #00A6A6;
  box-shadow: 0 0 0 3px rgba(0,166,166,0.12);
}

/* Material */
.material-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #757575;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #F9F9F9;
  border-radius: 12px;
}

.material-info svg { flex-shrink: 0; }

/* Price Table */
.price-table {
  border-top: 1px solid #EEEEEE;
  padding-top: 20px;
  margin-bottom: 30px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.price-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #707070;
  font-size: 14px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: #1E1E1E;
}

.pd-member-price {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f0fdfa;
  border-radius: 8px;
  margin-bottom: 16px;
}

.pd-member-label {
  font-size: 13px;
  color: #0f766e;
  font-weight: 500;
}

.pd-member-value {
  font-size: 16px;
  font-weight: 700;
  color: #0d9488;
}

.pd-wholesale-wrap {
  margin-bottom: 16px;
}

.pd-wholesale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pd-wholesale-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.pd-wholesale-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #1e1e1e;
}

.pd-wholesale-table th:first-child,
.pd-wholesale-table td:first-child {
  padding-left: 20px;
}

.pd-wholesale-table th:last-child,
.pd-wholesale-table td:last-child {
  text-align: right;
  padding-right: 20px;
}



/* Order Button */
.pd-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: #00A6A6;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-order-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,166,166,0.3);
}

.pd-order-btn:active { transform: translateY(0); }

.pd-order-disabled {
  background: #D9D9D9;
  cursor: not-allowed;
}

.pd-order-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Bottom Tabs */
.pd-tabs { margin-top: 8px; }

.bottom-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #EFEFEF;
  padding-top: 20px;
}

.tab-item {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 15px;
  color: #7D7D7D;
  cursor: pointer;
  padding-bottom: 10px;
  background: none;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-item.active {
  color: #00A6A6;
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #00A6A6;
  border-radius: 10px;
}

.pd-tabs-body {
  padding: 24px 0;
}

.pd-tab-item {
  display: none;
  font-size: 14px;
  line-height: 1.7;
  color: #6A6A6A;
}

.pd-tab-item.active { display: block; }

.pd-tab-item p { margin-bottom: 12px; }
.pd-tab-item img { max-width: 100%; margin: 12px 0; }

/* ===== ZOOM OVERLAY ===== */
.pd-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.pd-zoom-overlay.active { display: flex; }

.pd-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s;
}

.pd-zoom-close:hover { background: rgba(255,255,255,0.25); }

.pd-zoom-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  overflow: hidden;
  touch-action: none;
}

.pd-zoom-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.1s;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== COUNTDOWN ===== */
.pd-countdown {
  background: linear-gradient(135deg, #FFF1F0 0%, #FFE4E6 100%);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.pd-countdown-label {
  font-size: 12px;
  font-weight: 700;
  color: #E53E3E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.pd-countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 52px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.pd-cd-num {
  font-size: 22px;
  font-weight: 800;
  color: #1E1E1E;
  line-height: 1;
}

.pd-cd-label {
  font-size: 9px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  margin-top: 4px;
}

.pd-cd-sep {
  font-size: 20px;
  font-weight: 700;
  color: #E53E3E;
  margin-bottom: 16px;
}

/* ===== RELATED PRODUCTS ===== */
.pd-related {
  padding: 24px;
  border-top: 8px solid #F3F4F6;
}

.pd-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pd-related-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E1E1E;
}

.pd-related-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-primary);
}

.pd-related-card {
  display: block;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pd-related-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: #F4F4F4;
  overflow: hidden;
}

.pd-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-related-title {
  font-size: 12px;
  font-weight: 600;
  color: #1E1E1E;
  padding: 8px 10px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-related-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-primary);
  padding: 0 10px 10px;
  display: block;
}

.pd-related-swiper .swiper-slide { width: 150px; }

.pd-related-swiper .swiper-pagination {
  position: relative;
  margin-top: 14px;
}

.pd-related-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #D1D5DB;
  opacity: 1;
}

.pd-related-swiper .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 4px;
  background: var(--pd-primary);
}

/* ===== STICKY CTA ===== */
.pd-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: #FFFFFF;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.pd-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pd-sticky-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-sticky-price {
  font-size: 16px;
  font-weight: 700;
  color: #00A6A6;
}

.pd-sticky-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #00A6A6;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.pd-sticky-cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,166,166,0.3);
}

.pd-sticky-cart-btn svg {
  display: block;
}

.pd-sticky-view-cart {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #000000;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-sticky-view-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,166,166,0.3);
  color: #fff;
}

.pd-sticky-view-cart svg {
  display: block;
}

.pd-sticky-view-cart i {
  font-size: 18px;
}

.pd-sticky-view-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,166,166,0.3);
  color: #fff;
}

.pd-sticky-cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,166,166,0.3);
}

.pd-sticky-cart-btn .plus-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}



/* Inline cart view button */
.pd-inline-view-cart {
  padding-top: 10px;
}

.pd-inline-view-cart-btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 5px;
  background: #1e1e1e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-inline-view-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  color: #fff;
}

/* Inline cart section */
.pd-cart-section {
  padding-top: 8px;
}

.pd-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-cart-row .pd-order-btn {
  flex: 1;
  height: 48px;
  border-radius: 5px;
  background: #00A6A6;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-cart-row .pd-order-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,166,166,0.3);
}

/* ===== UTILITY ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
  .thumbnail-gallery {
    gap: 10px;
    padding: 12px 16px;
  }
  .thumbnail-item {
    width: 72px;
    min-width: 72px;
    height: 72px;
  }
}

/* ===== CART PAGE ===== */
.cart-page {
  padding-bottom: 24px;
  background: #fff;
  min-height: 100vh;
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.cart-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #374151;
  transition: background 0.2s;
}

.cart-back:hover { background: #f3f4f6; }

.cart-header h1 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #1e1e1e;
}

.cart-item-count {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.cart-empty svg { margin-bottom: 20px; }

.cart-empty p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 20px;
}

.cart-shop-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: #00A6A6;
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cart-shop-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,166,166,0.3);
}

.cart-items {
  padding: 8px 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

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

.cart-item-img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

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

.cart-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
}

.cart-item-body {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.cart-item-variant {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.cart-item-variant span {
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #00A6A6;
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 8px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}

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

.cart-qty-val {
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
  min-width: 20px;
  text-align: center;
}

.cart-item-total {
  font-size: 14px;
  font-weight: 700;
  color: #1e1e1e;
  margin-left: auto;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9ca3af;
  transition: all 0.2s;
}

.cart-item-remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
  z-index: 20;
}

.cart-page { padding-bottom: calc(var(--bottom-nav-height)); }

.cart-summary {
  margin-bottom: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
}

.cart-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e1e;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #00A6A6;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cart-checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,166,166,0.3);
}

/* ===== WISHLIST PAGE ===== */
.wishlist-page {
  background: #fff;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

.wishlist-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.wishlist-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}

.wishlist-back:hover {
  background: var(--gray-200);
}

.wishlist-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  flex: 1;
}

.wishlist-count {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.wishlist-empty svg {
  margin-bottom: 16px;
}

.wishlist-empty p {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.wishlist-shop-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.wishlist-shop-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.wishlist-items {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishlist-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  align-items: stretch;
  position: relative;
}

.wishlist-item-img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}

.wishlist-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray-400);
}

.wishlist-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.wishlist-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.wishlist-item-title:hover {
  color: var(--primary);
}

.wishlist-item-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wishlist-price-retail {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}

.wishlist-price-sale {
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
}

.wishlist-price-member {
  font-size: 11px;
  color: var(--gray-500);
  display: block;
  margin-top: 2px;
}

.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.wishlist-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.wishlist-add-cart:hover {
  background: var(--primary-dark);
}

.wishlist-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 5px;
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s;
}

.wishlist-remove:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
  background: #fff;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

.checkout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.checkout-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #374151;
  transition: background 0.2s;
}

.checkout-back:hover { background: #f3f4f6; }

.checkout-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e1e;
}

.checkout-form {
  padding: 20px;
}

.checkout-section {
  margin-bottom: 28px;
}

.checkout-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.checkout-field {
  margin-bottom: 16px;
}

.checkout-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.checkout-field .required { color: #ef4444; }

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #1e1e1e;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: #00A6A6;
  box-shadow: 0 0 0 3px rgba(0,166,166,0.1);
  outline: none;
}

.checkout-field textarea { resize: vertical; min-height: 72px; }

.checkout-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #1e1e1e;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-field select:focus {
  border-color: #00A6A6;
  box-shadow: 0 0 0 3px rgba(0,166,166,0.1);
  outline: none;
}

.checkout-field select:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.checkout-row {
  display: flex;
  gap: 12px;
}

.checkout-field-half { flex: 1; }

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.payment-option:hover {
  border-color: #00A6A6;
  background: #f0fdfa;
}

.payment-option:has(input:checked) {
  border-color: #00A6A6;
  background: #f0fdfa;
}

.payment-option input {
  margin-top: 3px;
  accent-color: #00A6A6;
  flex-shrink: 0;
}

.payment-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.payment-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
}

.payment-desc {
  font-size: 12px;
  color: #9ca3af;
}

.shipping-select {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.shipping-select:focus {
  border-color: #00A6A6;
  box-shadow: 0 0 0 3px rgba(0,166,166,0.1);
}

.shipping-price {
  font-size: 13px;
  font-weight: 600;
  color: #00A6A6;
  margin-top: 2px;
}

.checkout-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #374151;
}

.checkout-summary-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.checkout-summary-price {
  font-weight: 600;
  color: #1e1e1e;
  flex-shrink: 0;
}

.checkout-summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: #6b7280;
}

.checkout-summary-total {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
}

.checkout-place-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #00A6A6;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.checkout-place-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,166,166,0.3);
}

.checkout-place-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== THANK YOU PAGE ===== */
.thankyou-page {
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  min-height: 100vh;
}

.thankyou-icon {
  margin-bottom: 16px;
}

.thankyou-page h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 8px;
}

.thankyou-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

.thankyou-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.thankyou-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}

.thankyou-row:last-child { border-bottom: none; }

.thankyou-label {
  color: #6b7280;
}

.thankyou-value {
  color: #1e1e1e;
  font-weight: 600;
  text-align: right;
}

.thankyou-badge {
  display: inline-block;
  padding: 3px 12px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.thankyou-payment-info {
  background: #f0fdfa;
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.thankyou-payment-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 8px;
}

.thankyou-payment-info p {
  font-size: 13px;
  color: #374151;
  margin-bottom: 4px;
}

.thankyou-bank {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
  text-align: center;
}

.thankyou-bank span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.thankyou-bank strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: 2px;
  margin: 4px 0;
}

.thankyou-payment-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

.thankyou-actions {
  margin-top: 8px;
}

.thankyou-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: #00A6A6;
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thankyou-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,166,166,0.3);
}

.thankyou-empty {
  padding: 60px 0;
}

.thankyou-empty p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ===== ARCHIVE / ALL PRODUCTS LAYOUT ===== */
.archive-header {
  background: var(--white);
  padding: 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.archive-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.archive-header p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.archive-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: var(--primary);
  outline: none;
}

.archive-content .products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.archive-content .products-grid .product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.archive-content .products-grid .product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cpt-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.cpt-pagination a,
.cpt-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.cpt-pagination a:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  color: var(--primary);
}

.cpt-pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.load-more {
  text-align: center;
  margin: 20px 0 30px;
}

.load-more-btn {
  padding: 10px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.load-more-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
}

.no-products-found {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.no-products-found h3 {
  font-size: 20px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.no-products-found p {
  font-size: 14px;
  color: var(--gray-400);
  margin: 0;
}

@media (max-width: 480px) {
  .archive-content .products-grid {
    gap: 10px;
  }
}
