/* ============================================= */
/* SHOP STYLES - Carved Stone App Card v8.3.0   */
/* Double gold frame + purple channel design    */
/* Matches homepage app-card aesthetic           */
/* ============================================= */

/* ============================================= */
/* BASE & CONTAINER                             */
/* ============================================= */

.shop-page {
  background: transparent;
  min-height: 100vh;
  padding-bottom: var(--space-12);
  scroll-behavior: smooth;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

/* ============================================= */
/* SHOP APP CARD (extends .app-card from layout) */
/* HTML: class="app-card shop-app-card"          */
/* ============================================= */

/* No extra styles needed — .app-card handles frame */

/* ============================================= */
/* SHOP HERO CARD (full-width explainer)        */
/* ============================================= */

.shop-hero {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-6);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.shop-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

/* Left: carousel / image panel */
.shop-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.shop-hero__carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shop-hero__carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.shop-hero__carousel .carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.shop-hero__carousel .carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  pointer-events: none;
}

.shop-hero__carousel .carousel-content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  width: 100%;
}

.shop-hero__carousel .carousel-caption {
  max-width: 480px;
}

.shop-hero__carousel .carousel-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-500);
  line-height: 1.1;
}

.shop-hero__carousel .carousel-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Carousel arrows */
.shop-hero__carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-muted);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-size: 0.8rem;
  padding: 0;
}

.shop-hero__carousel .carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--gold-600);
}

.shop-hero__carousel .carousel-arrow.prev { left: var(--space-2); }
.shop-hero__carousel .carousel-arrow.next { right: var(--space-2); }

/* Carousel dots */
.shop-hero__carousel .carousel-dots {
  position: absolute;
  z-index: 5;
  bottom: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.shop-hero__carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-muted);
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease-out;
}

.shop-hero__carousel .carousel-dot.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

/* Right: explainer content */
.shop-hero__content {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.shop-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--gold-500);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.15;
}

.shop-hero__intro {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Feature list */
.shop-hero__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.shop-hero__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.shop-hero__feature > i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold-600);
  background: var(--gold-alpha-10);
  border: 1px solid var(--gold-alpha-20);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.shop-hero__feature strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.shop-hero__feature span {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* CTA buttons row */
.shop-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.shop-hero__cta-row .btn {
  font-size: var(--text-sm);
}

/* ============================================= */
/* SECTION NAVIGATION (below hero)              */
/* ============================================= */
.shop-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-5);
  margin: 0 calc(-1 * var(--space-6)) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.shop-nav__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.shop-nav__pill i {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.shop-nav__pill:hover {
  background: var(--gold-alpha-10);
  border-color: var(--gold-800);
  color: var(--text-primary);
}

.shop-nav__pill:hover i {
  color: var(--gold-600);
}

.shop-nav__pill--active {
  background: var(--gold-alpha-15);
  border-color: var(--gold-600);
  color: var(--gold-400);
}

.shop-nav__pill--active i {
  color: var(--gold-500);
}

/* ============================================= */
/* SHOP SECTIONS                                */
/* ============================================= */

.shop-section {
  padding: var(--space-8) 0;
  scroll-margin-top: 80px;
}

.shop-section__header {
  margin-bottom: var(--space-6);
}

.shop-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.shop-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold-400);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.shop-section__title i {
  color: var(--gold-600);
  font-size: 0.9em;
}

.shop-section__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--gold-600);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.shop-section__more:hover {
  color: var(--gold-400);
}

.shop-section__more i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.shop-section__more:hover i {
  transform: translateX(3px);
}

.shop-section__desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}

/* Section divider */
.shop-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-800) 20%,
    var(--gold-600) 50%,
    var(--gold-800) 80%,
    transparent 100%
  );
  margin: 0;
}

/* ============================================= */
/* SUBCATEGORY BROWSE CARDS                     */
/* ============================================= */

.shop-subcats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.shop-subcat {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.shop-subcat:hover {
  background: rgba(184, 154, 87, 0.08);
  border-color: var(--gold-800);
}

.shop-subcat__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-alpha-15);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  color: var(--gold-600);
}

.shop-subcat__text {
  flex: 1;
  min-width: 0;
}

.shop-subcat__text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--text-primary);
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-subcat__text p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.shop-subcat__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: transform 0.2s ease, color 0.2s ease;
}

.shop-subcat:hover .shop-subcat__arrow {
  transform: translateX(3px);
  color: var(--gold-600);
}

/* ============================================= */
/* COMING SOON STATE                            */
/* ============================================= */

.shop-coming-soon {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.shop-coming-soon__icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.shop-coming-soon__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-coming-soon__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================= */
/* SHOP CATEGORY HEADER (for category pages)    */
/* ============================================= */

.shop-category-header {
  padding: var(--space-6) 0 var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--gold-800);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.breadcrumb a {
  color: var(--gold-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--gold-400);
}

.breadcrumb__sep {
  color: var(--text-muted);
  font-size: 0.625rem;
}

.breadcrumb__current {
  color: var(--text-secondary);
}

.shop-category-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-category-header__title i {
  color: var(--gold-600);
  margin-right: var(--space-3);
}

.shop-category-header__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 600px;
}

/* Accent colors for shop category headers */
.shop-category-header.accent--green  { border-bottom-color: #5F6E4A; }
.shop-category-header.accent--blue   { border-bottom-color: #3b82f6; }
.shop-category-header.accent--red    { border-bottom-color: #6A2C2C; }
.shop-category-header.accent--purple { border-bottom-color: #a855f7; }
.shop-category-header.accent--pink   { border-bottom-color: #ec4899; }
.shop-category-header.accent--gold   { border-bottom-color: var(--gold-600); }
.shop-category-header.accent--brown  { border-bottom-color: #a16207; }

/* ============================================= */
/* SHOP TOOLBAR (Filter & Sort)                 */
/* ============================================= */

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.shop-toolbar__left,
.shop-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(184, 154, 87, 0.12);
  border: 1px solid var(--gold-800);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-toggle:hover {
  background: var(--gold-alpha-20);
  border-color: var(--gold-600);
}

.filter-toggle i {
  color: var(--gold-600);
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  background: var(--gold-600);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--bg-primary);
}

.clear-filters {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.clear-filters:hover {
  color: var(--text-primary);
}

.results-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* WooCommerce ordering dropdown override */
.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select {
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* ============================================= */
/* FILTERS PANEL                                */
/* ============================================= */

.filters-panel {
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-group__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip:hover {
  background: var(--white-alpha-6);
  border-color: var(--white-alpha-15);
}

.filter-chip--active {
  background: var(--gold-alpha-15);
  border-color: var(--gold-600);
  color: var(--gold-400);
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--gold-alpha-15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--gold-400);
  text-decoration: none;
  transition: background 0.2s ease;
}

.active-filter:hover {
  background: var(--gold-alpha-25);
}

.active-filter i {
  font-size: 0.625rem;
}

/* ============================================= */
/* PRODUCTS GRID                                */
/* ============================================= */

.products-grid {
  margin-bottom: var(--space-6);
}

/* Override WooCommerce default product grid styles */
.products-grid ul.products,
.woocommerce .products-grid ul.products,
.woocommerce-page .products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: var(--space-6) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Reset WooCommerce default li.product styles */
.products-grid ul.products li.product,
.products-grid ul.products .product-card {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================= */
/* PRODUCT CARD - Carved Stone Frame            */
/* Double gold border + purple channel          */
/* ============================================= */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 2px solid var(--gold-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 3px var(--bg-dark),
    0 0 0 4px var(--gold-900),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Top accent bar (replaces left accent) */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-600);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 3px var(--bg-dark),
    0 0 0 4px var(--gold-700),
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(184, 154, 87, 0.12);
}

/* Top accent color variants */
.product-card--accent-green::before  { background: linear-gradient(90deg, #5F6E4A, #4A5638); }
.product-card--accent-blue::before   { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.product-card--accent-red::before    { background: linear-gradient(90deg, #6A2C2C, #7A3333); }
.product-card--accent-purple::before { background: linear-gradient(90deg, #a855f7, #9333ea); }
.product-card--accent-pink::before   { background: linear-gradient(90deg, #ec4899, #db2777); }
.product-card--accent-gold::before   { background: linear-gradient(90deg, #C9AD6A, #B89A57); }
.product-card--accent-brown::before  { background: linear-gradient(90deg, #a16207, #854d0e); }

/* Badge */
.product-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__badge--sale {
  background: #6A2C2C;
  color: #fff;
}

.product-card__badge--featured {
  background: var(--gold-600);
  color: var(--bg-primary);
}

/* Image */
.product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

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

.product-card__image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-card__image img:first-child {
  opacity: 0;
}

.product-card:hover .product-card__image-hover {
  opacity: 1;
}

/* Quick View Button */
.product-card__quick-view {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-primary);
  border: 1px solid var(--gold-800);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 3;
}

.product-card:hover .product-card__quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick-view:hover {
  background: var(--gold-600);
  color: var(--bg-primary);
  border-color: var(--gold-500);
}

/* Body */
.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-card__meta .meta-chip {
  padding: 2px var(--space-2);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.product-card__meta .meta-chip i {
  font-size: 0.5rem;
  margin-right: 4px;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: var(--gold-400);
}

.product-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}

.product-card__price {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--gold-400);
}

.product-card__price del {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-right: var(--space-2);
}

.product-card__price ins {
  text-decoration: none;
}

/* Footer */
.product-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

/* ============================================= */
/* QUANTITY CONTROL                              */
/* ============================================= */

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
  background: var(--gold-alpha-20);
  color: var(--gold-400);
}

.qty-btn i {
  font-size: 0.625rem;
}

.qty-input {
  width: 40px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  appearance: textfield;
  -moz-appearance: textfield;
}

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

/* Add to Cart Button */
.btn-add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-gold);
  border: 1px solid var(--gold-700);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--bg-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-alpha-40);
}

.btn-add-to-cart:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-add-to-cart__success {
  color: #5F6E4A;
}

/* View Options Button */
.btn-view-options {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--gold-800);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--gold-400);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-view-options:hover {
  background: var(--gold-alpha-10);
  border-color: var(--gold-600);
}

/* Stock status */
.product-card__stock {
  flex: 1;
  text-align: center;
  font-size: var(--text-sm);
}

.product-card__stock--out {
  color: #6A2C2C;
}

/* ============================================= */
/* SIZE TOGGLE (32mm / 40mm)                    */
/* ============================================= */

.size-toggle {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.size-toggle__option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.size-toggle__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-toggle__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.size-toggle__label i {
  font-size: 0.5rem;
}

.size-toggle__option:hover .size-toggle__label {
  background: var(--white-alpha-4);
  border-color: var(--white-alpha-15);
}

.size-toggle__option--active .size-toggle__label,
.size-toggle__option input:checked + .size-toggle__label {
  background: var(--gold-alpha-15);
  border-color: var(--gold-600);
  color: var(--gold-400);
}

/* 40mm Big Guy variant - purple accent */
.size-toggle__option--big.size-toggle__option--active .size-toggle__label,
.size-toggle__option--big input:checked + .size-toggle__label {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #c084fc;
}

.size-toggle__option--big .size-toggle__label i {
  font-size: 0.625rem;
}

/* Card state animations */
.product-card--added {
  animation: cardAdded 0.3s ease;
}

.product-card--size-changed .size-toggle {
  animation: togglePulse 0.2s ease;
}

@keyframes cardAdded {
  0%  { transform: translateY(0); }
  50% { transform: translateY(-2px); box-shadow: 0 0 20px rgba(95, 110, 74, 0.3); }
  100% { transform: translateY(0); }
}

@keyframes togglePulse {
  0%  { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ============================================= */
/* PAGINATION                                   */
/* ============================================= */

.shop-pagination {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
}

.shop-pagination .woocommerce-pagination {
  margin: 0;
}

.shop-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-pagination .page-numbers li {
  margin: 0;
}

.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.shop-pagination .page-numbers a:hover {
  background: var(--gold-alpha-10);
  border-color: var(--gold-800);
  color: var(--text-primary);
}

.shop-pagination .page-numbers .current {
  background: var(--gradient-gold);
  border-color: var(--gold-700);
  color: var(--bg-primary);
  font-weight: 700;
}

/* ============================================= */
/* EMPTY STATE                                  */
/* ============================================= */

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.empty-state__icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
}

.empty-state__text {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0 0 var(--space-6);
}

.empty-state .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================= */
/* QUICK VIEW BUTTON (on product cards)         */
/* Styles handled in product card section above */
/* ============================================= */

/* ============================================= */
/* QUICK VIEW MODAL                             */
/* ============================================= */

.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.quick-view-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.quick-view-modal__content {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--gold-800);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 4px var(--bg-dark),
    0 0 0 5px var(--gold-900),
    0 20px 60px rgba(0, 0, 0, 0.6);
  animation: qv-enter 0.25s ease-out;
}

@keyframes qv-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.quick-view-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-800);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.quick-view-modal__close:hover {
  color: var(--gold-500);
  border-color: var(--gold-600);
}

.quick-view-modal__loading {
  text-align: center;
  padding: var(--space-12);
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.qv-error {
  text-align: center;
  padding: var(--space-8);
  color: var(--status-error);
}

/* Quick View layout */
.qv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.qv-gallery {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.qv-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.qv-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
}

.qv-gallery__thumb {
  width: 56px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: none;
  padding: 0;
}

.qv-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-gallery__thumb--active,
.qv-gallery__thumb:hover {
  border-color: var(--gold-500);
}

.qv-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.qv-info__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.qv-info__price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-500);
}

.qv-info__cats {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.qv-info__cats a {
  color: var(--gold-500);
  text-decoration: none;
}

.qv-info__desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.qv-info__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qv-size-toggle {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.qv-size-option {
  cursor: pointer;
}

.qv-size-option input {
  display: none;
}

.qv-size-option span {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--gold-800);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all 0.2s ease;
}

.qv-size-option input:checked + span {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border-color: var(--gold-600);
}

.qv-info__actions {
  margin-top: auto;
  padding-top: var(--space-4);
}

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

@media (max-width: 768px) {
  .shop-container {
    padding: var(--space-3) var(--space-2);
  }

  /* .app-card handles frame simplification globally */

  /* Hero card stacks on mobile */
  .shop-hero {
    margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4);
  }

  .shop-hero__grid {
    grid-template-columns: 1fr;
  }

  .shop-hero__media {
    min-height: 240px;
  }

  .shop-hero__content {
    padding: var(--space-5) var(--space-4);
  }

  .shop-hero__title {
    font-size: clamp(1.3rem, 4vw, 1.7rem);
  }

  .shop-hero__cta-row {
    flex-direction: column;
  }

  .shop-hero__cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .shop-nav {
    margin: 0 calc(-1 * var(--space-4)) 0;
    gap: var(--space-2);
  }

  .shop-nav__pill {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  .shop-section {
    padding: var(--space-6) 0;
  }

  .shop-section__title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-subcats {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-toolbar__left,
  .shop-toolbar__right {
    justify-content: space-between;
  }

  .products-grid ul.products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: var(--space-4) !important;
  }

  .product-card__footer {
    flex-direction: column;
  }

  .qty-control {
    width: 100%;
    justify-content: center;
  }

  .btn-add-to-cart,
  .btn-view-options {
    width: 100%;
  }

  /* Quick View */
  .qv-layout {
    grid-template-columns: 1fr;
  }

  .qv-gallery {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .quick-view-modal {
    padding: var(--space-3);
  }

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

@media (max-width: 480px) {
  .products-grid ul.products {
    grid-template-columns: 1fr !important;
  }

  .shop-hero__feature {
    flex-direction: column;
    gap: var(--space-2);
  }
}
