/**
 * pk-shop.css  —  PureKing Sports Equipment Shop
 * Colours: Navy #0A1628 · Gold #E8A020 · White
 */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --pk-navy:        #0A1628;
  --pk-navy-mid:    #122040;
  --pk-navy-light:  #1a3060;
  --pk-gold:        #E8A020;
  --pk-gold-light:  #f0b840;
  --pk-gold-dark:   #c88018;
  --pk-white:       #ffffff;
  --pk-gray-50:     #f8f9fc;
  --pk-gray-100:    #f0f2f7;
  --pk-gray-200:    #e2e6ef;
  --pk-gray-400:    #9aa5b8;
  --pk-gray-600:    #6b7a94;
  --pk-gray-800:    #2d3a52;
  --pk-success:     #22c55e;
  --pk-danger:      #ef4444;
  --pk-shadow-sm:   0 1px 3px rgba(10,22,40,.10);
  --pk-shadow-md:   0 4px 16px rgba(10,22,40,.12);
  --pk-shadow-lg:   0 8px 32px rgba(10,22,40,.18);
  --pk-radius:      10px;
  --pk-radius-sm:   6px;
  --pk-trans:       0.22s ease;
  --pk-drawer-w:    420px;
}

/* ── Base ──────────────────────────────────────────────────────── */
.pk-shop {
  font-family: inherit;
  color: var(--pk-gray-800);
  line-height: 1.5;
}
.pk-shop *,
.pk-shop *::before,
.pk-shop *::after { box-sizing: border-box; }

/* ── Shop Hero ─────────────────────────────────────────────────── */
.pk-shop-hero {
  background: linear-gradient(135deg,
    var(--pk-navy) 0%,
    var(--pk-navy-mid) 55%,
    var(--pk-navy-light) 100%);
  padding: 2.5rem 1.5rem;
}
.pk-shop-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
/* ── Typography Optimizations ─────────────────────────────────────── */
.pk-shop-title {
  color: var(--pk-white);
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  letter-spacing: -.025em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pk-shop-subtitle {
  color: var(--pk-gray-400);
  margin: .3rem 0 0;
  font-size: 1rem;
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Product Typography */
.pk-product-title {
  font-size: 1rem; 
  font-weight: 700;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--pk-navy); 
  margin: 0; 
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pk-product-desc {
  font-size: .82rem; 
  color: var(--pk-gray-600); 
  margin: 0; 
  line-height: 1.6;
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pk-product-price {
  font-size: 1.3rem; 
  font-weight: 800;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--pk-gold-dark); 
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Cart Trigger ──────────────────────────────────────────────── */
.pk-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 50px;
  color: var(--pk-white);
  cursor: pointer;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  transition: background var(--pk-trans), border-color var(--pk-trans), transform 0.2s ease;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pk-cart-trigger:hover {
  background: rgba(232,160,32,.18);
  border-color: var(--pk-gold);
  transform: translateY(-1px);
}
.pk-cart-trigger:active {
  transform: translateY(0);
}
.pk-cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  background: var(--pk-gold);
  color: var(--pk-navy);
  font-size: .7rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@keyframes pk-badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(.88); }
  100% { transform: scale(1); }
}
.pk-badge-pop { animation: pk-badge-pop .4s cubic-bezier(.36,.07,.19,.97) both; }
/* ── Modern SVG Icons ───────────────────────────────────────────── */
.pk-icon-cart::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.pk-icon-equipment::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17H3a3 3 0 0 1-3-3v-1h18a3 3 0 0 1-3 3h-1'%3E%3C/path%3E%3Cpath d='M12 17v3a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-3'%3E%3C/path%3E%3Cpath d='M2 8l2.5-5.5A2 2 0 0 1 6.5 1h11a2 2 0 0 1 2 2l2.5 5.5'%3E%3C/path%3E%3Cpath d='M2 8h20l-1 8H3z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.pk-icon-training::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M12 6v6l4 2'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.pk-icon-tournament::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H2v12h4V9Z'%3E%3C/path%3E%3Cpath d='M14 5h-4v16h4V5Z'%3E%3C/path%3E%3Cpath d='M22 1h-4v20h4V1Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Hide emoji icons and use SVG instead */
.pk-cart-title .emoji,
.pk-item-image .emoji {
  display: none;
}

.pk-cart-title::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-right: 8px;
}

/* ── Mobile Optimizations ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .pk-shop-hero {
    padding: 1.5rem 1rem;
  }
  
  .pk-shop-title {
    font-size: 1.8rem;
  }
  
  .pk-shop-subtitle {
    font-size: .9rem;
  }
  
  .pk-cart-trigger {
    padding: .5rem .9rem;
    font-size: .85rem;
    min-height: 44px; /* iOS touch target */
  }
  
  .pk-cart-badge {
    min-width: 22px;
    height: 22px;
    font-size: .75rem;
  }
  
  .pk-product-title {
    font-size: .95rem;
  }
  
  .pk-product-desc {
    font-size: .8rem;
  }
  
  .pk-product-price {
    font-size: 1.1rem;
  }
  
  /* Better touch targets */
  .pk-add-to-cart {
    min-height: 44px;
    padding: .6rem 1rem;
    font-size: .85rem;
  }
  
  .pk-quantity-selector {
    min-height: 44px;
  }
  
  .pk-filter-item {
    min-height: 44px;
    padding: .5rem .75rem;
    font-size: .85rem;
  }
  
  /* Cart drawer mobile */
  .pk-cart-drawer {
    width: 100%;
    max-width: none;
  }
  
  .pk-cart-item-name {
    font-size: .9rem;
  }
  
  .pk-cart-item-price {
    font-size: .95rem;
  }
}

@media (max-width: 480px) {
  .pk-shop-title {
    font-size: 1.6rem;
  }
  
  .pk-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .pk-cart-trigger {
    padding: .45rem .8rem;
    font-size: .8rem;
  }
}

/* ── Touch Interactions ───────────────────────────────────────────── */
.pk-add-to-cart,
.pk-cart-trigger,
.pk-filter-item,
.pk-quantity-selector {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pk-add-to-cart:active,
.pk-cart-trigger:active {
  transform: scale(0.98);
}

/* ── Performance & Smooth Scrolling ───────────────────────────────── */
.pk-shop {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pk-product-card {
  will-change: transform;
  backface-visibility: hidden;
}

.pk-cart-drawer {
  will-change: transform;
  backface-visibility: hidden;
}

/* ── Filter Sidebar ─────────────────────────────────────────────── */
.pk-shop-sidebar {
  width: 230px;
  flex-shrink: 0;
  padding: 1.5rem 1.25rem;
  background: var(--pk-white);
  border-right: 1px solid var(--pk-gray-200);
  position: sticky;
  top: 80px;
  height: fit-content;
  align-self: flex-start;
}
.pk-sidebar-section { margin-bottom: 1.75rem; }
.pk-sidebar-heading {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pk-gray-600);
  margin: 0 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--pk-gold);
}
.pk-filter-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .2rem;
}
.pk-filter-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .6rem;
  border-radius: var(--pk-radius-sm);
  cursor: pointer;
  font-size: .875rem;
  color: var(--pk-gray-800);
  transition: background var(--pk-trans), color var(--pk-trans);
  user-select: none;
}
.pk-filter-item:hover { background: var(--pk-gray-100); }
.pk-filter-item.pk-filter-active {
  background: var(--pk-navy);
  color: var(--pk-white);
  font-weight: 600;
}
.pk-filter-item input[type="radio"] { display: none; }

.pk-sort-select {
  width: 100%;
  padding: .48rem .7rem;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  background: var(--pk-white);
  color: var(--pk-gray-800);
  font-size: .875rem;
  cursor: pointer;
  transition: border-color var(--pk-trans);
}
.pk-sort-select:focus { outline: none; border-color: var(--pk-gold); }

.pk-btn-sm-block {
  display: block;
  text-align: center;
  font-size: .82rem;
  padding: .5rem .75rem;
}

/* ── Shop Main ──────────────────────────────────────────────────── */
.pk-shop-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem 3rem;
  background: var(--pk-gray-50);
}
.pk-shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--pk-gray-200);
}
.pk-results-count { font-size: .85rem; color: var(--pk-gray-600); }

/* ── Product Grid ──────────────────────────────────────────────── */
.pk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

/* ── Product Card ──────────────────────────────────────────────── */
.pk-product-card {
  background: var(--pk-white);
  border-radius: var(--pk-radius);
  border: 1px solid var(--pk-gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--pk-trans), box-shadow var(--pk-trans),
              border-color var(--pk-trans);
}
.pk-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pk-shadow-lg);
  border-color: var(--pk-gold);
}

/* Image */
.pk-product-img-link { display: block; text-decoration: none; }
.pk-product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pk-gray-100);
}
.pk-product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.pk-product-card:hover .pk-product-img { transform: scale(1.05); }
.pk-product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pk-navy);
}
.pk-product-img-placeholder svg { width: 80px; height: 80px; }

/* Overlay */
.pk-product-overlay {
  position: absolute; inset: 0;
  background: rgba(10,22,40,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--pk-trans);
}
.pk-product-card:hover .pk-product-overlay { opacity: 1; }
.pk-product-quick-view {
  color: var(--pk-white);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  border: 1.5px solid rgba(255,255,255,.7);
  padding: .4rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Info */
.pk-product-info {
  padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  flex: 1;
}
.pk-product-title {
  font-size: .95rem; font-weight: 600;
  color: var(--pk-navy); margin: 0; line-height: 1.35;
}
.pk-product-title-link {
  color: inherit; text-decoration: none;
  transition: color var(--pk-trans);
}
.pk-product-title-link:hover { color: var(--pk-gold-dark); }
.pk-product-desc {
  font-size: .78rem; color: var(--pk-gray-600); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Variation select */
.pk-variation-select {
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  padding: .35rem .6rem;
  font-size: .82rem; color: var(--pk-gray-800);
  background: var(--pk-gray-50);
  cursor: pointer; width: 100%;
  transition: border-color var(--pk-trans);
}
.pk-variation-select:focus { outline: none; border-color: var(--pk-gold); }

/* Price + Actions */
.pk-product-footer {
  margin-top: auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: .5rem; flex-wrap: wrap;
}
.pk-product-price {
  font-size: 1.2rem; font-weight: 700;
  color: var(--pk-gold-dark); letter-spacing: -.02em;
}
.pk-product-actions { display: flex; align-items: center; gap: .4rem; }
.pk-qty-input {
  width: 50px;
  padding: .35rem .4rem;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  font-size: .85rem; text-align: center;
  color: var(--pk-navy); background: var(--pk-white);
  transition: border-color var(--pk-trans);
}
.pk-qty-input:focus { outline: none; border-color: var(--pk-gold); }

.pk-add-to-cart-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--pk-navy); color: var(--pk-white);
  border: none; border-radius: var(--pk-radius-sm);
  padding: .45rem .85rem;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background var(--pk-trans), transform .12s ease;
}
.pk-add-to-cart-btn:hover  { background: var(--pk-gold-dark); }
.pk-add-to-cart-btn:active { transform: scale(.96); }
.pk-add-to-cart-btn:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}
.pk-add-to-cart-btn.pk-btn-loading { pointer-events: none; }

/* Success flash */
.pk-add-success {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--pk-success); color: var(--pk-white);
  text-align: center; font-size: .82rem; font-weight: 700;
  padding: .4rem;
  transform: translateY(100%); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.pk-add-success--visible { transform: translateY(0); opacity: 1; }

/* ── Empty State ────────────────────────────────────────────────── */
.pk-shop-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 400px; text-align: center; gap: 1rem;
}
.pk-shop-empty-icon { font-size: 3.5rem; }
.pk-shop-empty h2 { font-size: 1.5rem; color: var(--pk-navy); margin: 0; }
.pk-shop-empty p   { color: var(--pk-gray-600); margin: 0; }

/* ── Shared Buttons ─────────────────────────────────────────────── */
.pk-btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--pk-gold); color: var(--pk-navy);
  font-weight: 700; border: none; border-radius: var(--pk-radius-sm);
  padding: .7rem 1.4rem; text-decoration: none; cursor: pointer;
  font-size: .9rem;
  transition: background var(--pk-trans), transform .12s ease;
}
.pk-btn-primary:hover {
  background: var(--pk-gold-light); color: var(--pk-navy);
  transform: translateY(-1px);
}
.pk-btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: var(--pk-navy);
  font-weight: 600; border: 1.5px solid var(--pk-navy);
  border-radius: var(--pk-radius-sm);
  padding: .65rem 1.2rem; text-decoration: none; cursor: pointer;
  font-size: .875rem;
  transition: all var(--pk-trans);
}
.pk-btn-outline:hover { background: var(--pk-navy); color: var(--pk-white); }

/* ── Cart Overlay ───────────────────────────────────────────────── */
.pk-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.52);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(2px);
}
.pk-cart-overlay--visible { opacity: 1; pointer-events: all; }

/* ── Cart Drawer ────────────────────────────────────────────────── */
.pk-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--pk-drawer-w); max-width: 100vw;
  background: var(--pk-white);
  z-index: 1000;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(10,22,40,.22);
}
.pk-cart-drawer--open { transform: translateX(0); }
body.pk-cart-open { overflow: hidden; }

/* Drawer Header */
.pk-cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--pk-navy);
  flex-shrink: 0;
}
.pk-cart-drawer-title {
  font-size: 1.05rem; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: .6rem;
  color: var(--pk-white);
}
.pk-cart-drawer-close {
  background: rgba(255,255,255,.12); border: none;
  color: var(--pk-white); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--pk-trans); flex-shrink: 0;
}
.pk-cart-drawer-close:hover { background: rgba(255,255,255,.28); }

/* Drawer Body */
.pk-cart-drawer-body {
  flex: 1; overflow-y: auto; padding: 1.1rem 1.5rem;
}
.pk-cart-loading {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; padding: 3rem 0;
  color: var(--pk-gray-600); font-size: .9rem;
}
.pk-cart-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--pk-gray-200);
  border-top-color: var(--pk-navy);
  border-radius: 50%;
  animation: pk-spin .7s linear infinite;
}
@keyframes pk-spin { to { transform: rotate(360deg); } }

/* Cart empty */
.pk-cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1rem; text-align: center; gap: .75rem;
}
.pk-cart-empty-icon  { font-size: 2.5rem; }
.pk-cart-empty p     { color: var(--pk-gray-600); margin: 0; font-size: .9rem; }
.pk-cart-shop-link   { margin-top: .5rem; font-size: .85rem; }

/* Cart items */
.pk-cart-items {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .9rem;
}
.pk-cart-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem;
  background: var(--pk-gray-50);
  border-radius: var(--pk-radius-sm);
  border: 1px solid var(--pk-gray-200);
}
.pk-cart-item-img {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--pk-radius-sm); overflow: hidden;
  background: var(--pk-navy);
  display: flex; align-items: center; justify-content: center;
}
.pk-cart-item-img img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-cart-item-info     { flex: 1; min-width: 0; }
.pk-cart-item-name {
  font-size: .84rem; font-weight: 600; color: var(--pk-navy);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pk-cart-item-meta { font-size: .76rem; color: var(--pk-gray-600); margin-top: .2rem; }
.pk-cart-item-price {
  font-size: .9rem; font-weight: 700; color: var(--pk-gold-dark);
  white-space: nowrap; flex-shrink: 0;
}
.pk-cart-error {
  text-align: center; color: var(--pk-danger);
  padding: 2rem 0; font-size: .9rem;
}

/* Drawer Footer */
.pk-cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--pk-gray-200);
  background: var(--pk-white);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: .75rem;
}
.pk-cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .95rem; font-weight: 600; color: var(--pk-navy);
}
.pk-cart-total-amount { font-size: 1.15rem; color: var(--pk-gold-dark); }
.pk-cart-checkout-btn {
  width: 100%; justify-content: center;
  font-size: .95rem; padding: .8rem;
}
.pk-cart-view-link {
  text-align: center; font-size: .82rem; color: var(--pk-gray-600);
  text-decoration: none; transition: color var(--pk-trans);
}
.pk-cart-view-link:hover { color: var(--pk-navy); }

/* ── Toast ──────────────────────────────────────────────────────── */
.pk-toast {
  position: fixed; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--pk-navy); color: var(--pk-white);
  padding: .72rem 1.5rem;
  border-radius: 50px; font-size: .875rem; font-weight: 500;
  z-index: 1100; box-shadow: var(--pk-shadow-lg);
  opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
  max-width: 90vw; text-align: center;
}
.pk-toast--visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.pk-toast--success { background: #16a34a; }
.pk-toast--error   { background: var(--pk-danger); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pk-shop-body { flex-direction: column; }
  .pk-shop-sidebar {
    width: 100%; position: static;
    border-right: none; border-bottom: 1px solid var(--pk-gray-200);
    padding: 1rem 1.25rem;
  }
  .pk-filter-list {
    flex-direction: row; flex-wrap: wrap; gap: .4rem;
  }
  .pk-filter-item {
    border: 1.5px solid var(--pk-gray-200);
    border-radius: 50px; font-size: .8rem; padding: .32rem .8rem;
  }
  .pk-filter-item.pk-filter-active { border-color: transparent; }
  .pk-sidebar-section:last-child {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  }
  .pk-sidebar-heading { margin-bottom: 0; white-space: nowrap; }
}

@media (max-width: 600px) {
  .pk-shop-hero   { padding: 1.5rem 1rem; }
  .pk-shop-title  { font-size: 1.5rem; }
  .pk-shop-main   { padding: 1rem .75rem 2.5rem; }
  .pk-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .75rem;
  }
  .pk-product-info   { padding: .75rem; }
  .pk-product-footer { flex-direction: column; align-items: flex-start; }
  .pk-product-actions { width: 100%; }
  .pk-add-to-cart-btn { flex: 1; justify-content: center; }
  .pk-cart-drawer { --pk-drawer-w: 100vw; }
}

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

/* ── Progress Bar ───────────────────────────────────────────────── */
.pk-checkout-progress {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  counter-reset: step;
}
.pk-checkout-step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}
.pk-checkout-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--pk-gray-200);
  margin: 0 .5rem;
  transition: background var(--pk-trans);
}
.pk-checkout-step--previous::after {
  background: var(--pk-gold);
}
.pk-checkout-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--pk-gray-200);
  background: var(--pk-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--pk-trans);
  counter-increment: step;
  font-size: .75rem;
  font-weight: 700;
  color: var(--pk-gray-400);
}
.pk-checkout-step-dot::after {
  content: counter(step);
}
.pk-checkout-step--previous .pk-checkout-step-dot {
  background: var(--pk-gold);
  border-color: var(--pk-gold);
  color: var(--pk-navy);
}
.pk-checkout-step--previous .pk-checkout-step-dot::after {
  content: '✓';
}
.pk-checkout-step--current .pk-checkout-step-dot {
  background: var(--pk-navy);
  border-color: var(--pk-navy);
  color: var(--pk-gold);
  box-shadow: 0 0 0 4px rgba(10,22,40,.12);
}
.pk-checkout-step-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--pk-gray-400);
  margin-left: .4rem;
  white-space: nowrap;
}
.pk-checkout-step--current .pk-checkout-step-label {
  color: var(--pk-navy);
}
.pk-checkout-step--previous .pk-checkout-step-label {
  color: var(--pk-gold-dark);
}

/* ================================================================
   CHECKOUT PAGE  —  US Sports E-Commerce Style
   ================================================================ */

.path-checkout { background: var(--pk-gray-50); }

/* ── Checkout Layout ────────────────────────────────────────────── */
.pk-checkout-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "progress progress"
    "main     sidebar"
    "footer   footer";
  gap: 0 2rem;
  align-items: start;
}
.pk-checkout-progress-wrap { grid-area: progress; margin-bottom: 2rem; }
.pk-checkout-main   { grid-area: main; }
.pk-checkout-sidebar { grid-area: sidebar; }
.pk-checkout-footer { grid-area: footer; }

/* ── Progress Bar (full width) ──────────────────────────────────── */
.pk-checkout-progress-wrap {
  background: var(--pk-white);
  border-radius: var(--pk-radius);
  padding: 1.1rem 2rem;
  border: 1px solid var(--pk-gray-200);
  box-shadow: var(--pk-shadow-sm);
}
.pk-checkout-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  counter-reset: step;
}
.pk-checkout-step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}
.pk-checkout-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--pk-gray-200);
  margin: 0 .5rem;
  transition: background var(--pk-trans);
}
.pk-checkout-step--previous::after { background: var(--pk-gold); }
.pk-checkout-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--pk-gray-200);
  background: var(--pk-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--pk-trans);
  counter-increment: step;
  font-size: .75rem;
  font-weight: 700;
  color: var(--pk-gray-400);
}
.pk-checkout-step-dot::after { content: counter(step); }
.pk-checkout-step--previous .pk-checkout-step-dot {
  background: var(--pk-gold);
  border-color: var(--pk-gold);
  color: var(--pk-navy);
}
.pk-checkout-step--previous .pk-checkout-step-dot::after { content: '✓'; }
.pk-checkout-step--current .pk-checkout-step-dot {
  background: var(--pk-navy);
  border-color: var(--pk-navy);
  color: var(--pk-gold);
  box-shadow: 0 0 0 4px rgba(10,22,40,.10);
}
.pk-checkout-step-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--pk-gray-400);
  margin-left: .45rem;
  white-space: nowrap;
}
.pk-checkout-step--current .pk-checkout-step-label { color: var(--pk-navy); }
.pk-checkout-step--previous .pk-checkout-step-label { color: var(--pk-gold-dark); }

/* ── Main pane fieldsets / panes — flat Nike style ──────────────── */
.pk-checkout-main > *,
.pk-checkout-main .fieldgroup,
.pk-checkout-main details,
.pk-checkout-main fieldset {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: none;
}
.pk-checkout-main legend,
.pk-checkout-main .fieldset-legend {
  font-weight: 800;
  color: var(--pk-navy);
  font-size: .82rem;
  padding: 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pk-checkout-main label {
  font-weight: 600;
  font-size: .82rem;
  color: var(--pk-gray-800);
  display: block;
  margin-bottom: .3rem;
}
.pk-checkout-main input[type="text"],
.pk-checkout-main input[type="email"],
.pk-checkout-main input[type="tel"],
.pk-checkout-main input[type="number"],
.pk-checkout-main select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  font-size: .95rem;
  color: var(--pk-gray-800);
  background: var(--pk-gray-50);
  transition: border-color var(--pk-trans), box-shadow var(--pk-trans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.pk-checkout-main input:focus,
.pk-checkout-main select:focus {
  border-color: var(--pk-navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,.08);
  background: var(--pk-white);
}
.pk-checkout-main .form-item { margin-bottom: 1rem; }

/* ── Order Summary Sidebar ──────────────────────────────────────── */
.pk-checkout-summary-box {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  box-shadow: var(--pk-shadow-md);
  overflow: hidden;
  position: sticky;
  top: 1.5rem;
}
.pk-checkout-summary-header {
  background: var(--pk-navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pk-checkout-summary-title {
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pk-gold);
}
.pk-checkout-summary-badge {
  background: var(--pk-gold);
  color: var(--pk-navy);
  border-radius: 99px;
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.6;
}
.pk-checkout-summary-body { padding: 1.25rem; }

/* Order total lines */
.pk-checkout-summary-box .order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--pk-gray-100);
}
.pk-checkout-summary-box .order-total-line:last-child { border-bottom: none; }
.pk-checkout-summary-box .order-total-line-label { color: var(--pk-gray-600); font-weight: 500; }
.pk-checkout-summary-box .order-total-line-value { font-weight: 700; color: var(--pk-gray-800); }
.pk-checkout-summary-box .order-total-line__subtotal .order-total-line-label { color: var(--pk-gray-600); }
.pk-checkout-summary-box .order-total-line__total {
  margin-top: .5rem;
  padding-top: .9rem !important;
  border-top: 2px solid var(--pk-navy) !important;
  border-bottom: none !important;
}
.pk-checkout-summary-box .order-total-line__total .order-total-line-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pk-navy);
  text-transform: uppercase;
}
.pk-checkout-summary-box .order-total-line__total .order-total-line-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pk-navy);
}
/* Commerce table in sidebar (view-mode: checkout) */
.pk-checkout-summary-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-bottom: .5rem;
}
.pk-checkout-summary-box tbody tr {
  border-bottom: 1px solid var(--pk-gray-100);
}
.pk-checkout-summary-box tbody tr:last-child { border-bottom: none; }
.pk-checkout-summary-box td {
  padding: .6rem 0;
  color: var(--pk-gray-800);
  vertical-align: middle;
  line-height: 1.3;
}
.pk-checkout-summary-box td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  padding-left: .5rem;
}
.pk-checkout-summary-box tfoot td {
  padding-top: .75rem;
  font-weight: 800;
  border-top: 1.5px solid var(--pk-gray-200);
}

/* Shipping estimate note */
.pk-checkout-ship-note {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: #15803d;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--pk-radius-sm);
  padding: .5rem .75rem;
  margin-bottom: .85rem;
  font-weight: 600;
}

/* Hide shipping note when course enrollment note is present */
.pk-checkout-wrap:has(.pk-checkout-course-note) .pk-checkout-ship-note {
  display: none !important;
}

/* Fallback: Hide shipping note on checkout pages that have course context */
body[class*="checkout"] .pk-checkout-course-note ~ * .pk-checkout-ship-note {
  display: none !important;
}

/* Course enrollment context badge in checkout sidebar */
.pk-checkout-course-note {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: #1a3060;
  background: rgba(10,22,40,.05);
  border: 1px solid rgba(10,22,40,.12);
  border-radius: var(--pk-radius-sm);
  padding: .5rem .75rem;
  margin-bottom: .85rem;
}

/* Payment icons */
.pk-payment-icons {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: .85rem 0 0;
  margin-top: .75rem;
  border-top: 1px solid var(--pk-gray-100);
}
.pk-payment-icon {
  background: var(--pk-gray-50);
  border: 1px solid var(--pk-gray-200);
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .65rem;
  font-weight: 800;
  color: var(--pk-gray-600);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.pk-payment-icon--wechat   { background: #07C160; color: #fff; }
.pk-payment-icon--alipay   { background: #1677FF; color: #fff; }
.pk-payment-icon--unionpay { background: #C0392B; color: #fff; }
.pk-payment-icon--visa     { background: #fff; color: #1a1f71; border: 1px solid #e2e6ed; }
.pk-payment-icon--mc       { background: #fff; color: #eb001b; border: 1px solid #e2e6ed; }
.pk-checkout-ssl-note {
  text-align: center;
  font-size: .73rem;
  color: var(--pk-gray-400);
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}

/* ── Checkout Footer (actions) ──────────────────────────────────── */
.pk-checkout-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--pk-gray-200);
  gap: 1rem;
  flex-wrap: wrap;
  background: none;
}
.pk-checkout-footer input[type="submit"],
.pk-checkout-footer button[type="submit"] {
  background: linear-gradient(135deg, var(--pk-gold) 0%, var(--pk-gold-dark) 100%);
  color: var(--pk-navy);
  border: none;
  border-radius: var(--pk-radius-sm);
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 2.25rem;
  cursor: pointer;
  transition: opacity var(--pk-trans), transform var(--pk-trans), box-shadow var(--pk-trans);
  box-shadow: 0 4px 14px rgba(232,160,32,.35);
  letter-spacing: .02em;
}
.pk-checkout-footer input[type="submit"]:hover,
.pk-checkout-footer button[type="submit"]:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,160,32,.45);
}
.pk-checkout-footer .button--back,
.pk-checkout-footer a.button--back,
.pk-checkout-footer a[href*="cart"] {
  color: var(--pk-gray-600);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color var(--pk-trans);
}
.pk-checkout-footer .button--back:hover,
.pk-checkout-footer a[href*="cart"]:hover { color: var(--pk-navy); }

/* ── Checkout — Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .pk-checkout-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "sidebar"
      "main"
      "footer";
    padding: 1rem .75rem 3rem;
    gap: 1rem;
  }
  .pk-checkout-summary-box { position: static; }
  .pk-checkout-progress { flex-wrap: nowrap; }
  .pk-checkout-step:not(:last-child)::after { display: none; }
  .pk-checkout-step-label { display: none; }
  .pk-checkout-progress-wrap { padding: .85rem 1rem; }
}
@media (max-width: 480px) {
  .pk-checkout-footer input[type="submit"],
  .pk-checkout-footer button[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

/* ================================================================
   CART PAGE  —  Fluid & Mobile-First
   ================================================================ */

/* ── Page shell ─────────────────────────────────────────────────── */
.path-cart .content-main { background: var(--pk-gray-50); }
.pk-cart-page {
  width: 100%;
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 clamp(.75rem, 4vw, 2rem) 4rem;
  box-sizing: border-box;
}
.pk-cart-page h1 {
  color: var(--pk-navy);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 .3rem;
  letter-spacing: -.01em;
}
.pk-cart-subtitle {
  font-size: .9rem;
  color: var(--pk-gray-400);
  margin: 0 0 1.75rem;
}

/* ── Two-column grid (fluid sidebar) ───────────────────────────── */
.pk-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(260px, 30%, 340px));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.pk-cart-items-col { min-width: 0; }
.pk-cart-summary-col {
  position: sticky;
  top: 5rem;        /* clears glassmorphism sticky header on mobile */
  min-width: 0;
}

/* ── Items card wrap ────────────────────────────────────────────── */
.pk-cart-items-wrap {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  box-shadow: var(--pk-shadow-sm);
  overflow: hidden;
}

/* Column header row (desktop only) */
.pk-cart-items-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 2.5rem;
  gap: .5rem;
  background: var(--pk-navy);
  padding: .7rem 1.25rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--pk-gold);
}
.pk-cart-items-head span:nth-child(3),
.pk-cart-items-head span:nth-child(4) { text-align: center; }

/* Each item row */
.pk-cart-item-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 2.5rem;
  gap: .5rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--pk-gray-100);
  transition: background var(--pk-trans);
}
.pk-cart-item-row:last-child { border-bottom: none; }
.pk-cart-item-row:hover { background: var(--pk-gray-50); }

/* Product name cell */
.pk-cart-item-product {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.pk-cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--pk-gray-100);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--pk-gray-200);
}
.pk-cart-item-thumb-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--pk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pk-cart-item-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--pk-navy);
  line-height: 1.35;
  /* allow wrapping instead of hard truncation */
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.pk-cart-item-name a { color: inherit; text-decoration: none; }
.pk-cart-item-name a:hover { color: var(--pk-gold-dark); }
.pk-cart-item-meta { font-size: .78rem; color: var(--pk-gray-400); margin-top: .15rem; }

/* Price / Total cells */
.pk-cart-item-price,
.pk-cart-item-total {
  font-size: .95rem;
  color: var(--pk-gray-800);
  font-weight: 600;
  min-width: 0;
}
.pk-cart-item-total { color: var(--pk-navy); font-weight: 700; text-align: center; }
.pk-cart-item-price { text-align: center; }

/* ── Quantity control ───────────────────────────────────────────── */
.pk-cart-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  overflow: hidden;
  /* fluid width — never overflows on small screens */
  width: min(110px, 100%);
  height: 38px;
  background: var(--pk-white);
}
.pk-cart-qty-btn {
  width: 32px;
  height: 100%;
  background: var(--pk-gray-50);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pk-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--pk-trans), color var(--pk-trans);
  line-height: 1;
  padding: 0;
  user-select: none;
  /* good touch target */
  min-width: 36px;
  min-height: 36px;
}
.pk-cart-qty-btn:hover { background: var(--pk-navy); color: var(--pk-gold); }
.pk-cart-qty-btn:active { transform: scale(.92); }
.quantity-edit-input {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 0 !important;         /* let flex distribute */
  height: 100% !important;
  border: none !important;
  border-left: 1.5px solid var(--pk-gray-200) !important;
  border-right: 1.5px solid var(--pk-gray-200) !important;
  text-align: center !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  color: var(--pk-navy) !important;
  background: var(--pk-white) !important;
  outline: none !important;
  padding: 0 !important;
  -moz-appearance: textfield !important;
  border-radius: 0 !important;
}
.quantity-edit-input::-webkit-inner-spin-button,
.quantity-edit-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove button */
.pk-cart-item-remove { text-align: center; }
.delete-order-item {
  background: none !important;
  border: none !important;
  color: var(--pk-gray-400) !important;
  font-size: .78rem !important;
  cursor: pointer !important;
  padding: .4rem !important;
  border-radius: 4px !important;
  transition: color var(--pk-trans), background var(--pk-trans) !important;
  /* good touch target */
  min-width: 36px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.delete-order-item:hover {
  color: var(--pk-danger) !important;
  background: rgba(239,68,68,.06) !important;
}

/* ── Cart actions bar ───────────────────────────────────────────── */
.pk-cart-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0;
  flex-wrap: wrap;
  gap: .75rem;
}
.pk-cart-continue-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--pk-gray-600);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--pk-trans);
}
.pk-cart-continue-link:hover { color: var(--pk-navy); }

/* Native "Update cart" button */
#edit-submit[value="Update cart"] {
  background: none;
  border: 1.5px solid var(--pk-gray-200);
  color: var(--pk-gray-600);
  border-radius: var(--pk-radius-sm);
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--pk-trans), color var(--pk-trans);
}
#edit-submit[value="Update cart"]:hover { border-color: var(--pk-navy); color: var(--pk-navy); }

/* ── Order summary sidebar ──────────────────────────────────────── */
.pk-cart-summary-box {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  box-shadow: var(--pk-shadow-md);
  overflow: hidden;
}
.pk-cart-summary-header {
  background: var(--pk-navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pk-cart-summary-header h3 {
  margin: 0;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--pk-gold);
}
.pk-cart-summary-body { padding: 1.25rem; }

.order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  font-size: .9rem;
  color: var(--pk-gray-600);
  border-bottom: 1px solid var(--pk-gray-100);
}
.order-total-line:last-child { border-bottom: none; }
.order-total-line-label { font-weight: 500; }
.order-total-line-value { font-weight: 700; color: var(--pk-gray-800); }

.order-total-line__total {
  margin-top: .5rem;
  padding-top: .85rem;
  border-top: 2px solid var(--pk-navy) !important;
  border-bottom: none !important;
}
.order-total-line__total .order-total-line-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pk-navy);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.order-total-line__total .order-total-line-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pk-navy);
}

/* Free shipping badge */
.pk-cart-free-ship {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--pk-radius-sm);
  padding: .55rem .8rem;
  margin: .75rem 0;
  font-size: .82rem;
  color: #15803d;
  font-weight: 600;
}

/* Checkout button */
.pk-cart-checkout-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--pk-gold) 0%, var(--pk-gold-dark) 100%);
  color: var(--pk-navy);
  border: none;
  border-radius: var(--pk-radius-sm);
  font-weight: 800;
  font-size: 1rem;
  padding: .9rem 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity var(--pk-trans), transform var(--pk-trans), box-shadow var(--pk-trans);
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(232,160,32,.35);
  margin-top: .5rem;
  box-sizing: border-box;
}
.pk-cart-checkout-btn:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,.48);
}

/* Payment trust strip */
.pk-cart-trust-strip {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: .85rem 0 0;
  margin-top: .75rem;
  border-top: 1px solid var(--pk-gray-100);
}
.pk-cart-trust-icon {
  background: var(--pk-gray-50);
  border: 1px solid var(--pk-gray-200);
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .65rem;
  font-weight: 800;
  color: var(--pk-gray-600);
  letter-spacing: .03em;
}
.pk-cart-trust-icon--wechat   { background: #07C160; color: #fff; }
.pk-cart-trust-icon--alipay   { background: #1677FF; color: #fff; }
.pk-cart-trust-icon--unionpay { background: #C0392B; color: #fff; }
.pk-cart-trust-icon--visa     { background: #fff; color: #1a1f71; border: 1px solid #e2e6ed; }
.pk-cart-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--pk-gray-400);
  margin-top: .6rem;
}

/* Empty cart */
.commerce-cart-empty-page,
.cart-empty-page {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--pk-gray-400);
}
.commerce-cart-empty-page p,
.cart-empty-page p { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--pk-gray-600); }
.commerce-cart-empty-page a,
.cart-empty-page a {
  display: inline-block;
  background: linear-gradient(135deg, var(--pk-gold) 0%, var(--pk-gold-dark) 100%);
  color: var(--pk-navy);
  padding: .75rem 2rem;
  border-radius: var(--pk-radius-sm);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(232,160,32,.3);
}

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

/* Tablet ≤ 860px — single column, horizontal card layout */
@media (max-width: 860px) {
  .pk-cart-layout {
    grid-template-columns: 1fr;
  }
  .pk-cart-summary-col { position: static; }
  .pk-cart-items-head  { display: none; }
  .pk-cart-item-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: .6rem .75rem;
    padding: .9rem 1rem;
  }
  /* Product spans full width */
  .pk-cart-item-product { grid-column: 1 / -1; }
  /* Price bottom-left */
  .pk-cart-item-price  { text-align: left; font-size: .88rem; align-self: center; }
  /* Qty bottom-centre */
  .pk-cart-item-qty    { display: flex; justify-content: flex-start; align-self: center; }
  /* Total bottom-right */
  .pk-cart-item-total  { text-align: right; align-self: center; }
  /* Remove top-right */
  .pk-cart-item-remove { text-align: right; align-self: start; }
}

/* Mobile ≤ 540px — 3-column card grid */
@media (max-width: 540px) {
  .pk-cart-page { padding: 0 .75rem 3rem; }

  /* Grid: [product full-row] / [price][qty][total][remove] */
  .pk-cart-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto 2.25rem;
    grid-template-rows: auto auto;
    gap: .55rem .5rem;
    padding: .85rem .9rem;
  }
  .pk-cart-item-product {
    grid-column: 1 / -1;   /* full width */
    grid-row: 1;
    gap: .7rem;
  }
  .pk-cart-item-thumb,
  .pk-cart-item-thumb-placeholder { width: 52px; height: 52px; }

  .pk-cart-item-price {
    grid-column: 1; grid-row: 2;
    text-align: left;
    font-size: .85rem;
    align-self: center;
    font-weight: 700;
    color: var(--pk-gray-600);
  }
  .pk-cart-item-qty {
    grid-column: 2; grid-row: 2;
    display: flex;
    justify-content: center;
    align-self: center;
  }
  .pk-cart-item-total {
    grid-column: 3; grid-row: 2;
    text-align: right;
    align-self: center;
    font-size: .95rem;
    font-weight: 800;
  }
  .pk-cart-item-remove {
    grid-column: 4; grid-row: 2;
    text-align: right;
    align-self: center;
  }

  /* Qty control — compact on mobile */
  .pk-cart-qty-wrap { height: 34px; width: min(96px, 100%); }
  .pk-cart-qty-btn  { width: 28px; min-width: 28px; font-size: 1rem; }

  /* Summary */
  .pk-cart-summary-body { padding: 1rem; }
  .pk-cart-checkout-btn { font-size: .95rem; padding: .85rem 1rem; }

  /* Actions bar stacks */
  .pk-cart-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .pk-cart-continue-link { justify-content: center; }
  #edit-submit[value="Update cart"] { width: 100%; text-align: center; }
}

/* ================================================================
   ADMIN PRODUCT MANAGEMENT PAGE
   ================================================================ */

.pk-admin-wrap {
  font-family: inherit;
  color: var(--pk-gray-800);
}
.pk-admin-wrap *,
.pk-admin-wrap *::before,
.pk-admin-wrap *::after { box-sizing: border-box; }

/* ── Admin Header ───────────────────────────────────────────────── */
.pk-admin-header {
  background: linear-gradient(135deg, var(--pk-navy) 0%, var(--pk-navy-mid) 100%);
  border-radius: var(--pk-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.pk-admin-header-inner {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pk-admin-title {
  color: var(--pk-white);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pk-admin-subtitle {
  color: var(--pk-gray-400);
  margin: .25rem 0 0;
  font-size: .85rem;
}

/* ── Admin Buttons ──────────────────────────────────────────────── */
.pk-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--pk-radius-sm);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--pk-trans), transform var(--pk-trans);
}
.pk-admin-btn:hover { opacity: .88; transform: translateY(-1px); }
.pk-admin-btn--gold {
  background: linear-gradient(135deg, var(--pk-gold) 0%, var(--pk-gold-dark) 100%);
  color: var(--pk-navy);
}

/* ── Admin Table ────────────────────────────────────────────────── */
.pk-admin-table-wrap {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  overflow: hidden;
  box-shadow: var(--pk-shadow-sm);
}
.pk-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.pk-admin-table thead tr {
  background: var(--pk-navy);
}
.pk-admin-table th {
  color: var(--pk-gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .85rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}
.pk-admin-table td {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--pk-gray-100);
  vertical-align: middle;
}
.pk-admin-table tbody tr:last-child td { border-bottom: none; }
.pk-admin-table tbody tr:hover td { background: var(--pk-gray-50); }

.pk-admin-td-id    { color: var(--pk-gray-400); font-size: .8rem; width: 50px; }
.pk-admin-td-price { font-weight: 600; color: var(--pk-navy); }

/* ── Product title link ─────────────────────────────────────────── */
.pk-admin-product-link {
  color: var(--pk-navy);
  font-weight: 600;
  text-decoration: none;
}
.pk-admin-product-link:hover {
  color: var(--pk-gold-dark);
  text-decoration: underline;
}

/* ── Status badge ───────────────────────────────────────────────── */
.pk-admin-status {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pk-admin-status--active {
  background: rgba(34,197,94,.12);
  color: #16a34a;
}
.pk-admin-status--draft {
  background: rgba(107,122,148,.12);
  color: var(--pk-gray-600);
}

/* ── Variation count badge ──────────────────────────────────────── */
.pk-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--pk-navy);
  color: var(--pk-gold);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
}

/* ── Action Buttons ─────────────────────────────────────────────── */
.pk-admin-td-actions {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.pk-admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: var(--pk-radius-sm);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--pk-trans);
}
.pk-admin-action-btn--edit {
  background: rgba(10,22,40,.06);
  color: var(--pk-navy);
  border: 1px solid var(--pk-gray-200);
}
.pk-admin-action-btn--edit:hover {
  background: var(--pk-navy);
  color: var(--pk-gold);
  border-color: var(--pk-navy);
}
.pk-admin-action-btn--delete {
  background: rgba(239,68,68,.06);
  color: var(--pk-danger);
  border: 1px solid rgba(239,68,68,.2);
}
.pk-admin-action-btn--delete:hover {
  background: var(--pk-danger);
  color: var(--pk-white);
  border-color: var(--pk-danger);
}

/* ── Empty state ────────────────────────────────────────────────── */
.pk-admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--pk-gray-400);
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
}
.pk-admin-empty p { font-size: 1rem; margin: 1rem 0 1.5rem; }

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

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.pk-product-breadcrumb {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
}
.pk-product-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  font-size: .82rem;
}
.pk-product-breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.pk-product-breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--pk-gray-400);
}
.pk-product-breadcrumb a {
  color: var(--pk-gray-600);
  text-decoration: none;
}
.pk-product-breadcrumb a:hover { color: var(--pk-gold-dark); }
.pk-product-breadcrumb li:last-child { color: var(--pk-gray-800); font-weight: 600; }

/* ── Product Detail Layout ──────────────────────────────────────── */
.pk-product-detail {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Gallery ────────────────────────────────────────────────────── */
.pk-product-gallery {
  position: relative;
  position: sticky;
  top: 1.5rem;
}
.pk-product-detail-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .3rem .85rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--pk-gold);
  color: var(--pk-navy);
}
.pk-badge--sale    { background: #ef4444; color: #fff; }
.pk-badge--new     { background: var(--pk-gold); color: var(--pk-navy); }
.pk-badge--hot     { background: #f97316; color: #fff; }
.pk-badge--best-seller { background: var(--pk-navy); color: var(--pk-gold); }

.pk-gallery-main {
  position: relative;
  background: var(--pk-gray-50);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
}
.pk-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform .3s ease;
}
.pk-gallery-main.pk-gallery-zoomed .pk-gallery-main-img {
  transform: scale(1.5);
  cursor: zoom-out;
}
.pk-gallery-zoom {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  padding: .35rem;
  cursor: pointer;
  color: var(--pk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pk-navy);
}
.pk-gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.pk-gallery-thumb {
  width: 68px;
  height: 68px;
  border: 2px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  overflow: hidden;
  background: var(--pk-gray-50);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--pk-trans);
  flex-shrink: 0;
}
.pk-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pk-gallery-thumb:hover,
.pk-gallery-thumb--active {
  border-color: var(--pk-gold);
}

/* ── Product Info Panel ─────────────────────────────────────────── */
.pk-product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pk-product-meta-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.pk-product-brand {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pk-gold-dark);
}
.pk-product-cat-tag {
  font-size: .74rem;
  background: var(--pk-gray-100);
  color: var(--pk-gray-600);
  padding: .15rem .6rem;
  border-radius: 50px;
  font-weight: 600;
}

.pk-product-detail-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pk-navy);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.025em;
}

/* Stars */
.pk-product-stars {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.pk-star { color: var(--pk-gold); font-size: 1.1rem; line-height: 1; }
.pk-star--half { position: relative; color: var(--pk-gray-200); }
.pk-star--half::before { content: '★'; position: absolute; left: 0; color: var(--pk-gold); width: 50%; overflow: hidden; }
.pk-stars-count { font-size: .82rem; color: var(--pk-gray-600); margin-left: .25rem; }

/* Price */
.pk-product-price-block {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.pk-product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pk-navy);
  letter-spacing: -.03em;
  line-height: 1;
}
.pk-product-price-note {
  font-size: .8rem;
  color: var(--pk-gray-400);
}

.pk-product-short-desc {
  color: var(--pk-gray-600);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
  padding: .75rem 0;
  border-top: 1px solid var(--pk-gray-100);
  border-bottom: 1px solid var(--pk-gray-100);
}

/* ── Variation Options ──────────────────────────────────────────── */
.pk-detail-variation-wrap { display: flex; flex-direction: column; gap: .75rem; }

.pk-detail-option-group { display: flex; flex-direction: column; gap: .5rem; }

.pk-detail-option-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--pk-gray-800);
}
.pk-option-selected-val { color: var(--pk-navy); font-weight: 600; }

.pk-color-swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.pk-color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color var(--pk-trans), transform var(--pk-trans);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.pk-color-swatch:hover,
.pk-swatch--active {
  border-color: var(--pk-gold);
  transform: scale(1.15);
}

.pk-size-buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.pk-size-btn {
  padding: .4rem .85rem;
  border: 2px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  background: var(--pk-white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--pk-gray-800);
  cursor: pointer;
  transition: all var(--pk-trans);
  position: relative;
}
.pk-size-btn:hover  { border-color: var(--pk-navy); color: var(--pk-navy); }
.pk-size-btn--active { border-color: var(--pk-navy); background: var(--pk-navy); color: var(--pk-gold); }
.pk-size-btn:disabled { opacity: .45; cursor: not-allowed; }
.pk-sold-out-tag {
  font-size: .6rem;
  background: var(--pk-danger);
  color: #fff;
  padding: .05rem .3rem;
  border-radius: 3px;
  margin-left: .25rem;
  vertical-align: middle;
}

.pk-detail-select {
  padding: .6rem .85rem;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  font-size: .95rem;
  background: var(--pk-gray-50);
  width: 100%;
  max-width: 320px;
}

/* ── Stock indicator ────────────────────────────────────────────── */
.pk-stock-indicator {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  font-weight: 600;
}
.pk-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pk-stock-indicator--high .pk-stock-dot  { background: var(--pk-success); }
.pk-stock-indicator--high  { color: #15803d; }
.pk-stock-indicator--low .pk-stock-dot   { background: #f97316; }
.pk-stock-indicator--low   { color: #c2410c; }
.pk-stock-indicator--out .pk-stock-dot   { background: var(--pk-danger); }
.pk-stock-indicator--out   { color: var(--pk-danger); }

/* ── Cart row ───────────────────────────────────────────────────── */
.pk-detail-cart-row {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.pk-detail-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  overflow: hidden;
}
.pk-qty-dec, .pk-qty-inc {
  background: var(--pk-gray-50);
  border: none;
  width: 36px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--pk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--pk-trans);
}
.pk-qty-dec:hover, .pk-qty-inc:hover { background: var(--pk-gray-100); }
.pk-detail-qty {
  width: 52px;
  height: 44px;
  border: none;
  border-left: 1.5px solid var(--pk-gray-200);
  border-right: 1.5px solid var(--pk-gray-200);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pk-navy);
  background: var(--pk-white);
}
.pk-detail-qty::-webkit-inner-spin-button,
.pk-detail-qty::-webkit-outer-spin-button { -webkit-appearance: none; }

.pk-detail-atc-btn {
  flex: 1;
  min-width: 160px;
  max-width: 260px;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, var(--pk-gold) 0%, var(--pk-gold-dark) 100%);
  color: var(--pk-navy);
  border: none;
  border-radius: var(--pk-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity var(--pk-trans), transform var(--pk-trans), box-shadow var(--pk-trans);
  box-shadow: 0 4px 12px rgba(232,160,32,.35);
}
.pk-detail-atc-btn:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232,160,32,.45);
}
.pk-detail-atc-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pk-add-success--detail {
  font-size: .88rem;
  font-weight: 600;
  color: var(--pk-success);
  height: 1.2em;
  transition: opacity .3s;
  opacity: 0;
}
.pk-add-success--detail.pk-add-success--visible { opacity: 1; }

/* ── Trust Badges ───────────────────────────────────────────────── */
.pk-trust-badges {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: .5rem;
  border-top: 1px solid var(--pk-gray-100);
}
.pk-trust-badge {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--pk-gray-600);
  font-weight: 500;
}
.pk-trust-badge svg { color: var(--pk-navy); flex-shrink: 0; }

/* ── Tabs ───────────────────────────────────────────────────────── */
.pk-product-tabs-wrap {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.pk-product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--pk-gray-200);
  margin-bottom: 0;
}
.pk-tab {
  padding: .75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--pk-gray-600);
  cursor: pointer;
  transition: color var(--pk-trans), border-color var(--pk-trans);
}
.pk-tab:hover { color: var(--pk-navy); }
.pk-tab--active {
  color: var(--pk-navy);
  border-bottom-color: var(--pk-gold);
}
.pk-tab-panel {
  padding: 2rem 0;
  animation: pk-tab-fade .2s ease;
}
@keyframes pk-tab-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pk-tab-empty { color: var(--pk-gray-400); font-style: italic; }

.pk-product-description {
  color: var(--pk-gray-800);
  line-height: 1.8;
  font-size: .97rem;
  max-width: 720px;
}

/* ── Specifications Table ───────────────────────────────────────── */
.pk-specs-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: .9rem;
}
.pk-specs-table th {
  text-align: left;
  padding: .65rem 1.25rem .65rem 0;
  color: var(--pk-gray-600);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  width: 38%;
  border-bottom: 1px solid var(--pk-gray-100);
}
.pk-specs-table td {
  padding: .65rem 1.25rem .65rem 1.25rem;
  color: var(--pk-gray-800);
  font-weight: 500;
  border-bottom: 1px solid var(--pk-gray-100);
}
.pk-specs-table tr:last-child th,
.pk-specs-table tr:last-child td { border-bottom: none; }
.pk-specs-table tr:nth-child(even) td,
.pk-specs-table tr:nth-child(even) th { background: var(--pk-gray-50); }

/* ── Features List ──────────────────────────────────────────────── */
.pk-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .6rem;
}
.pk-features-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .93rem;
  color: var(--pk-gray-800);
  line-height: 1.5;
}
.pk-feature-check { color: var(--pk-success); flex-shrink: 0; margin-top: .15rem; }

/* ── Product detail responsive ──────────────────────────────────── */
@media (max-width: 860px) {
  .pk-product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pk-product-gallery { position: static; }
  .pk-product-detail-title { font-size: 1.4rem; }
  .pk-product-detail-price { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .pk-product-detail { padding: 0 .75rem 2rem; }
  .pk-product-tabs-wrap { padding: 0 .75rem; }
  .pk-detail-cart-row { flex-direction: column; align-items: stretch; }
  .pk-detail-atc-btn { max-width: 100%; }
  .pk-features-list { grid-template-columns: 1fr; }
}

/* ================================================================
   CHECKOUT PROGRESS BAR — White-on-white override fix
   Forces visible text colours regardless of base-theme inheritance.
   ================================================================ */

/* Future / unvisited steps: grey number on white dot */
.pk-checkout-progress-wrap .pk-checkout-step-dot {
  color: var(--pk-gray-400) !important;
  background: var(--pk-white) !important;
}
/* Current step: gold number on navy dot */
.pk-checkout-progress-wrap .pk-checkout-step--current .pk-checkout-step-dot {
  color: var(--pk-gold) !important;
  background: var(--pk-navy) !important;
  border-color: var(--pk-navy) !important;
}
/* Previous / completed step: navy tick on gold dot */
.pk-checkout-progress-wrap .pk-checkout-step--previous .pk-checkout-step-dot {
  color: var(--pk-navy) !important;
  background: var(--pk-gold) !important;
  border-color: var(--pk-gold) !important;
}
/* Step labels */
.pk-checkout-progress-wrap .pk-checkout-step-label {
  color: var(--pk-gray-400) !important;
}
.pk-checkout-progress-wrap .pk-checkout-step--current .pk-checkout-step-label {
  color: var(--pk-navy) !important;
  font-weight: 700 !important;
}
.pk-checkout-progress-wrap .pk-checkout-step--previous .pk-checkout-step-label {
  color: var(--pk-gold-dark) !important;
}

/* ================================================================
   WAIVER PANE (Review step)
   ================================================================ */

/* Scrollable waiver text box */
.pk-checkout-main .waiver-text {
  max-height: 140px;
  overflow-y: auto;
  background: var(--pk-gray-50);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-sm);
  padding: .875rem 1rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--pk-gray-800);
}
.pk-checkout-main .waiver-text p { margin: 0; }

/* Gold left-border accent on each agreement fieldset */
.pk-checkout-main fieldset.waiver-medical,
.pk-checkout-main fieldset.waiver-liability {
  border-left: 3px solid var(--pk-gold) !important;
  background: var(--pk-white) !important;
}

/* Checkbox rows */
.pk-checkout-main .waiver-checkbox { accent-color: var(--pk-navy); }
.pk-checkout-main .waiver-checkbox + label,
.pk-checkout-main label:has(.waiver-checkbox) {
  font-weight: 700 !important;
  color: var(--pk-navy) !important;
  font-size: .88rem;
}

/* ================================================================
   ENROLLMENT AUTH GATE (Course product page — anonymous users)
   ================================================================ */

.enrollment-auth-gate {
  background: var(--pk-white);
  border: 2px solid var(--pk-gold);
  border-radius: var(--pk-radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--pk-shadow-md);
  margin: 1.5rem 0;
}
.enrollment-auth-icon {
  font-size: 2rem;
  color: var(--pk-gold);
  margin-bottom: .5rem;
}
.enrollment-auth-title {
  color: var(--pk-navy);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.enrollment-auth-message {
  color: var(--pk-gray-600);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.enrollment-auth-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.enrollment-btn-login {
  background: var(--pk-navy);
  color: var(--pk-white) !important;
  border: 2px solid var(--pk-navy);
  border-radius: 50px;
  padding: .6rem 1.6rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--pk-trans), transform .15s;
}
.enrollment-btn-login:hover {
  background: var(--pk-navy-light);
  transform: translateY(-1px);
}
.enrollment-btn-register {
  background: transparent;
  color: var(--pk-navy) !important;
  border: 2px solid var(--pk-navy);
  border-radius: 50px;
  padding: .6rem 1.6rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--pk-trans), color var(--pk-trans), transform .15s;
}
.enrollment-btn-register:hover {
  background: var(--pk-navy);
  color: var(--pk-white) !important;
  transform: translateY(-1px);
}
