/* ============================================================
   PrintCraft – Premium Light Theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --pc-primary:     #FF6B2C;
  --pc-primary-d:   #E55A1A;
  --pc-primary-l:   #FFF0E9;
  --pc-accent:      #2563EB;
  --pc-accent-d:    #1D4ED8;
  --pc-dark:        #1A1A2E;
  --pc-text:        #2D2D3A;
  --pc-muted:       #6B7280;
  --pc-border:      #E5E7EB;
  --pc-bg:          #F9FAFB;
  --pc-white:       #FFFFFF;
  --pc-success:     #10B981;
  --pc-warning:     #F59E0B;
  --pc-danger:      #EF4444;
  --pc-info:        #06B6D4;
  --pc-shadow:      0 4px 24px rgba(0,0,0,.08);
  --pc-shadow-lg:   0 8px 40px rgba(0,0,0,.12);
  --pc-radius:      12px;
  --pc-radius-sm:   8px;
  --pc-radius-lg:   20px;
  --pc-transition:  all .25s ease;
  --pc-font:        'Inter', 'Segoe UI', sans-serif;
  --primary:        var(--pc-primary);
  --text:           var(--pc-text);
  --text-muted:     var(--pc-muted);
  --border:         var(--pc-border);
  --surface:        var(--pc-white);
  --radius:         var(--pc-radius);
  --radius-sm:      var(--pc-radius-sm);
  --radius-lg:      var(--pc-radius-lg);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--pc-font); color: var(--pc-text); background: var(--pc-bg); line-height: 1.6; }
a { color: var(--pc-accent); text-decoration: none; transition: var(--pc-transition); }
a:hover { color: var(--pc-primary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Compatibility Layout Utilities ─────────────────────────── */
.container { width: min(100% - 2rem, 1400px); margin-inline: auto; }
.row { display: grid; gap: 1rem; }
.row.g-3 { gap: 1rem; }
.row.g-4 { gap: 1.5rem; }
.row.g-5 { gap: 2rem; }
.col, [class*="col-"] { min-width: 0; }
.row-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: start; }
.flex-wrap { flex-wrap: wrap; }
.flex-fill { flex: 1 1 auto; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.mx-auto { margin-inline: auto; }
.ms-2 { margin-left: .5rem; }
.me-1 { margin-right: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: 2.5rem; }
.small { font-size: .82rem; }
.lead { font-size: 1.05rem; color: var(--pc-muted); }
.display-4 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; font-weight: 800; }
.lh-lg { line-height: 1.8; }
.h2 { font-size: 1.75rem; }
.h3 { font-size: 1.45rem; }
.h4 { font-size: 1.2rem; }
.h5 { font-size: 1rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-dark { color: var(--pc-text) !important; }
.text-decoration-none { text-decoration: none !important; }
.border-bottom { border-bottom: 1px solid var(--pc-border); }
.border-top { border-top: 1px solid var(--pc-border); }
.rounded-3 { border-radius: var(--pc-radius); }
.object-fit-cover { object-fit: cover; }

@media (min-width: 768px) {
  .row-cols-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col-md-3 { grid-column: span 3; }
  .col-md-4 { grid-column: span 4; }
  .col-md-6 { grid-column: span 6; }
  .col-md-8 { grid-column: span 8; }
  .col-12 { grid-column: 1 / -1; }
  .row:has(.col-md-6), .row:has(.col-md-4), .row:has(.col-md-8), .row:has(.col-md-3) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .row-cols-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-lg-3 { grid-column: span 3; }
  .col-lg-4 { grid-column: span 4; }
  .col-lg-8 { grid-column: span 8; }
  .col-lg-9 { grid-column: span 9; }
  .row:has(.col-lg-3), .row:has(.col-lg-4), .row:has(.col-lg-8), .row:has(.col-lg-9) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ── Announcement Bar ───────────────────────────────────────── */
.pc-announce {
  background: linear-gradient(90deg, var(--pc-primary), var(--pc-accent));
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 1rem;
  letter-spacing: .3px;
}
.pc-announce a { color: #fff; text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────── */
.pc-header {
  background: var(--pc-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.pc-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.pc-logo { font-size: 1.6rem; font-weight: 800; color: var(--pc-primary); letter-spacing: -1px; display: inline-flex; align-items: center; }
.pc-logo-img { height: 42px; width: auto; display: block; }
.pc-logo span { color: var(--pc-accent); }
.pc-search-wrap {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.pc-search-input {
  width: 100%;
  padding: .65rem 3rem .65rem 1.2rem;
  border: 1.5px solid var(--pc-border);
  border-radius: 50px;
  font-size: .92rem;
  outline: none;
  transition: var(--pc-transition);
}
.pc-search-input:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 3px rgba(255,107,44,.1); }
.pc-search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: var(--pc-primary); color: #fff; border: none;
  border-radius: 50px; padding: .42rem .9rem; cursor: pointer;
  transition: var(--pc-transition);
}
.pc-search-btn:hover { background: var(--pc-primary-d); }
.pc-header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.pc-header-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; font-size: .7rem; color: var(--pc-text); padding: .4rem .6rem;
  border-radius: var(--pc-radius-sm); cursor: pointer; border: none; background: none;
  transition: var(--pc-transition); position: relative;
}
.pc-header-btn:hover { background: var(--pc-primary-l); color: var(--pc-primary); }
.pc-header-btn svg { width: 22px; height: 22px; }
.pc-cart-badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--pc-primary); color: #fff;
  font-size: .62rem; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Navigation ─────────────────────────────────────────────── */
.pc-nav {
  background: var(--pc-dark);
  position: relative;
}
.pc-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.pc-nav-inner::-webkit-scrollbar { display: none; }
.pc-nav-item {
  position: relative;
  white-space: nowrap;
}
.pc-nav-link {
  display: block;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 500;
  padding: .75rem 1rem;
  transition: var(--pc-transition);
  letter-spacing: .2px;
}
.pc-nav-link:hover, .pc-nav-link.active {
  color: var(--pc-primary);
  background: rgba(255,255,255,.05);
}
.pc-nav-link.highlight { color: #FCD34D; }

/* ── Mega Menu ───────────────────────────────────────────────── */
.pc-mega-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--pc-white);
  box-shadow: var(--pc-shadow-lg);
  border-radius: 0 0 var(--pc-radius) var(--pc-radius);
  padding: 1.5rem;
  min-width: 720px;
  z-index: 999;
  border-top: 3px solid var(--pc-primary);
}
.pc-nav-item:hover .pc-mega-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pc-mega-cat h6 { font-size: .78rem; font-weight: 700; color: var(--pc-primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.pc-mega-cat a { display: block; font-size: .82rem; color: var(--pc-text); padding: .25rem 0; }
.pc-mega-cat a:hover { color: var(--pc-primary); padding-left: 6px; }

/* ── Hero Slider ─────────────────────────────────────────────── */
.pc-hero {
  position: relative;
  overflow: hidden;
  background: var(--pc-dark);
  height: 480px;
}
.pc-hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  padding: 3rem;
}
.pc-hero-slide.active { display: flex; }
.pc-hero-slide-inner { max-width: 1400px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 2rem; }
.pc-hero-content { flex: 1; color: #fff; }
.pc-hero-tag { font-size: .78rem; font-weight: 600; color: var(--pc-primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .75rem; }
.pc-hero-content h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.pc-hero-content p { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 1.5rem; max-width: 420px; }
.pc-hero-img { flex: 1; max-width: 460px; border-radius: var(--pc-radius); overflow: hidden; }
.pc-hero-img img { width: 100%; height: 360px; object-fit: cover; }
.pc-hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.pc-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; transition: var(--pc-transition); }
.pc-hero-dot.active { background: var(--pc-primary); width: 24px; border-radius: 4px; }

/* ── Section Layout ──────────────────────────────────────────── */
.pc-section { padding: 4rem 1.5rem; max-width: 1400px; margin: 0 auto; }
.pc-section-title { font-size: 1.75rem; font-weight: 800; color: var(--pc-dark); margin-bottom: .5rem; }
.pc-section-sub { color: var(--pc-muted); font-size: .95rem; margin-bottom: 2rem; }
.pc-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.pc-view-all { font-size: .85rem; font-weight: 600; color: var(--pc-primary); }
.pc-view-all:hover { color: var(--pc-primary-d); }

/* ── Category Cards ──────────────────────────────────────────── */
.pc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.pc-cat-card {
  background: var(--pc-white);
  border-radius: var(--pc-radius);
  padding: 1.2rem .8rem;
  text-align: center;
  box-shadow: var(--pc-shadow);
  cursor: pointer;
  transition: var(--pc-transition);
  border: 1.5px solid transparent;
}
.pc-cat-card:hover { border-color: var(--pc-primary); transform: translateY(-3px); box-shadow: var(--pc-shadow-lg); }
.pc-cat-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: .75rem; }
.pc-cat-card span { font-size: .8rem; font-weight: 600; color: var(--pc-text); display: block; }

/* ── Product Cards ───────────────────────────────────────────── */
.pc-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.pc-product-card {
  background: var(--pc-white);
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow);
  transition: var(--pc-transition);
  border: 1.5px solid transparent;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pc-product-card:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow-lg); border-color: var(--pc-border); }
.pc-product-card-img { height: 200px; background: var(--pc-bg); overflow: hidden; position: relative; }
.pc-product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--pc-transition); }
.pc-product-card:hover .pc-product-card-img img { transform: scale(1.05); }
.pc-product-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--pc-primary); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .4px;
}
.pc-product-badge.new { background: var(--pc-accent); }
.pc-product-badge.sameday { background: var(--pc-success); }
.pc-product-wish {
  position: absolute; top: .6rem; right: .6rem;
  width: 32px; height: 32px; background: var(--pc-white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; border: none; font-size: 1rem;
  transition: var(--pc-transition);
}
.pc-product-wish:hover { background: var(--pc-primary); color: #fff; }
.pc-product-card-body { padding: 1rem; flex: 1; }
.pc-product-card-body h4 { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; color: var(--pc-text); line-height: 1.4; }
.pc-product-card-body .pc-price { font-size: 1rem; font-weight: 700; color: var(--pc-primary); }
.pc-product-card-body .pc-price-from { font-size: .72rem; color: var(--pc-muted); }
.pc-product-card-body .pc-old-price { font-size: .82rem; text-decoration: line-through; color: var(--pc-muted); margin-left: .3rem; }
.pc-product-card-actions { padding: 0 1rem 1rem; display: flex; gap: .5rem; margin-top: auto; }

.product-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--pc-transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-lg); }
.product-img-wrap { display: block; aspect-ratio: 4 / 3; background: var(--pc-bg); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--pc-transition); }
.product-card:hover .product-img { transform: scale(1.04); }
.product-body { padding: 1rem; display: flex; flex: 1; flex-direction: column; gap: .6rem; }
.product-title { min-height: 2.6em; color: var(--pc-text); font-size: .92rem; font-weight: 700; line-height: 1.35; }
.product-title:hover { color: var(--pc-primary); }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price-from { color: var(--pc-muted); font-size: .72rem; }
.price { color: var(--pc-primary); font-size: 1.05rem; font-weight: 800; }
.price-old { color: var(--pc-muted); font-size: .82rem; text-decoration: line-through; }
.badge-bestseller, .badge-new, .badge-sameday {
  position: absolute;
  top: .65rem;
  left: .65rem;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.2;
}
.badge-bestseller { background: var(--pc-primary); }
.badge-new { background: var(--pc-accent); }
.badge-sameday { background: var(--pc-success); }

/* ── Buttons ─────────────────────────────────────────────────── */
.pc-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.4rem; border-radius: 50px; font-size: .88rem;
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: var(--pc-transition); text-align: center; white-space: nowrap;
}
.pc-btn-primary { background: var(--pc-primary); color: #fff; border-color: var(--pc-primary); }
.pc-btn-primary:hover { background: var(--pc-primary-d); border-color: var(--pc-primary-d); color: #fff; }
.pc-btn-accent { background: var(--pc-accent); color: #fff; border-color: var(--pc-accent); }
.pc-btn-accent:hover { background: var(--pc-accent-d); border-color: var(--pc-accent-d); color: #fff; }
.pc-btn-outline { background: transparent; color: var(--pc-primary); border-color: var(--pc-primary); }
.pc-btn-outline:hover { background: var(--pc-primary); color: #fff; }
.pc-btn-dark { background: var(--pc-dark); color: #fff; border-color: var(--pc-dark); }
.pc-btn-sm { padding: .4rem .9rem; font-size: .78rem; }
.pc-btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.pc-btn-full { width: 100%; justify-content: center; border-radius: var(--pc-radius-sm); }
.pc-btn-success { background: var(--pc-success); color: #fff; border-color: var(--pc-success); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem 1rem;
  border-radius: var(--pc-radius-sm);
  border: 1.5px solid transparent;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--pc-transition);
  text-align: center;
  white-space: nowrap;
}
.btn-sm { padding: .38rem .75rem; font-size: .78rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--pc-primary); border-color: var(--pc-primary); color: #fff; }
.btn-primary:hover { background: var(--pc-primary-d); border-color: var(--pc-primary-d); color: #fff; }
.btn-outline-primary { background: transparent; border-color: var(--pc-primary); color: var(--pc-primary); }
.btn-outline-primary:hover { background: var(--pc-primary); color: #fff; }
.btn-outline-secondary { background: transparent; border-color: var(--pc-border); color: var(--pc-text); }
.btn-outline-secondary:hover { border-color: var(--pc-primary); color: var(--pc-primary); }
.w-100.btn, .btn.w-100 { width: 100%; }

/* ── Product Detail ──────────────────────────────────────────── */
.pc-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0; }
.pc-product-gallery { position: sticky; top: 80px; align-self: start; }
.pc-gallery-main { border-radius: var(--pc-radius); overflow: hidden; background: var(--pc-white); border: 1.5px solid var(--pc-border); margin-bottom: .75rem; }
.pc-gallery-main img { width: 100%; height: 420px; object-fit: contain; padding: 1rem; }
.pc-gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; }
.pc-gallery-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--pc-radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.pc-gallery-thumb.active, .pc-gallery-thumb:hover { border-color: var(--pc-primary); }
.pc-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-product-info h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.pc-product-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: var(--pc-muted); font-size: .85rem; }
.pc-stars { color: #FBBF24; }
.pc-price-block { background: var(--pc-primary-l); border-radius: var(--pc-radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.pc-price-block .price { font-size: 2rem; font-weight: 800; color: var(--pc-primary); }
.pc-price-block .price-note { font-size: .78rem; color: var(--pc-muted); }

/* ── Options ─────────────────────────────────────────────────── */
.pc-option-group { margin-bottom: 1.25rem; }
.pc-option-label { font-size: .82rem; font-weight: 600; color: var(--pc-dark); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .3px; }
.pc-option-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-option-pill {
  padding: .35rem .85rem; border-radius: 50px; font-size: .82rem; font-weight: 500;
  border: 1.5px solid var(--pc-border); cursor: pointer; transition: var(--pc-transition);
  background: var(--pc-white); color: var(--pc-text);
}
.pc-option-pill:hover, .pc-option-pill.selected { border-color: var(--pc-primary); background: var(--pc-primary-l); color: var(--pc-primary); }

/* ── Cart ────────────────────────────────────────────────────── */
.pc-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.pc-cart-item { display: flex; gap: 1.2rem; background: var(--pc-white); border-radius: var(--pc-radius); padding: 1.25rem; box-shadow: var(--pc-shadow); margin-bottom: 1rem; }
.pc-cart-item-img { width: 90px; height: 90px; border-radius: var(--pc-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--pc-bg); }
.pc-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-cart-item-info { flex: 1; }
.pc-cart-item-info h4 { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.pc-cart-item-opts { font-size: .78rem; color: var(--pc-muted); margin-bottom: .5rem; }
.pc-qty-control { display: flex; align-items: center; gap: .4rem; }
.pc-qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--pc-border); background: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--pc-transition); }
.pc-qty-btn:hover { border-color: var(--pc-primary); color: var(--pc-primary); }
.pc-qty-input { width: 44px; text-align: center; border: 1.5px solid var(--pc-border); border-radius: var(--pc-radius-sm); padding: .25rem; font-size: .9rem; }
.pc-cart-summary { background: var(--pc-white); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); padding: 1.5rem; position: sticky; top: 80px; align-self: start; }
.pc-cart-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.pc-summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; }
.pc-summary-row.total { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--pc-border); padding-top: .75rem; margin-top: .5rem; }
.pc-coupon-row { display: flex; gap: .5rem; margin: 1rem 0; }
.pc-coupon-row input { flex: 1; border: 1.5px solid var(--pc-border); border-radius: var(--pc-radius-sm); padding: .5rem .8rem; font-size: .85rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.pc-form-group { margin-bottom: 1.2rem; }
.pc-form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--pc-dark); margin-bottom: .4rem; }
.pc-form-control {
  width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--pc-border);
  border-radius: var(--pc-radius-sm); font-size: .9rem; transition: var(--pc-transition);
  outline: none; background: var(--pc-white); color: var(--pc-text);
}
.pc-form-control:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 3px rgba(255,107,44,.1); }
.pc-form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.pc-form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .88rem; }
.pc-form-check input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--pc-primary); }
.form-label { display: block; font-size: .82rem; font-weight: 700; color: var(--pc-dark); margin-bottom: .4rem; }
.form-control, .form-select {
  width: 100%;
  padding: .62rem .9rem;
  border: 1.5px solid var(--pc-border);
  border-radius: var(--pc-radius-sm);
  background: var(--pc-white);
  color: var(--pc-text);
  font: inherit;
  font-size: .9rem;
  outline: none;
  transition: var(--pc-transition);
}
.form-control:focus, .form-select:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 3px rgba(255,107,44,.1); }
.form-control-sm, .form-select-sm { padding: .4rem .65rem; font-size: .82rem; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check-input { width: 17px; height: 17px; accent-color: var(--pc-primary); }
.form-check-label { font-size: .86rem; }

/* ── Upload ──────────────────────────────────────────────────── */
.pc-upload-zone {
  border: 2px dashed var(--pc-border); border-radius: var(--pc-radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: var(--pc-transition); background: var(--pc-bg);
}
.pc-upload-zone:hover, .pc-upload-zone.dragover { border-color: var(--pc-primary); background: var(--pc-primary-l); }
.pc-upload-zone svg { width: 48px; height: 48px; color: var(--pc-muted); margin-bottom: .75rem; }
.pc-upload-zone p { font-size: .88rem; color: var(--pc-muted); }
.pc-upload-zone strong { color: var(--pc-primary); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: .85rem 1.2rem; border-radius: var(--pc-radius-sm); display: flex; align-items: center; gap: .75rem; font-size: .9rem; margin-bottom: 1rem; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--pc-success); }
.alert-error   { background: #FEE2E2; color: #7F1D1D; border-left: 4px solid var(--pc-danger); }
.alert-warning { background: #FEF3C7; color: #78350F; border-left: 4px solid var(--pc-warning); }
.alert-info    { background: #CFFAFE; color: #164E63; border-left: 4px solid var(--pc-info); }
.alert-icon { font-weight: 700; font-size: 1rem; }
.btn-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .5; }
.btn-close:hover { opacity: 1; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.pc-breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--pc-muted); padding: 1rem 0; flex-wrap: wrap; }
.pc-breadcrumb a { color: var(--pc-muted); }
.pc-breadcrumb a:hover { color: var(--pc-primary); }
.pc-breadcrumb .sep { opacity: .4; }

/* ── Trust Badges ────────────────────────────────────────────── */
.pc-trust-bar { background: var(--pc-white); border-top: 1px solid var(--pc-border); border-bottom: 1px solid var(--pc-border); }
.pc-trust-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem; }
.pc-trust-item { display: flex; align-items: center; gap: .75rem; }
.pc-trust-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--pc-primary-l); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pc-trust-icon svg { width: 22px; height: 22px; color: var(--pc-primary); }
.pc-trust-text strong { display: block; font-size: .88rem; font-weight: 700; }
.pc-trust-text span { font-size: .75rem; color: var(--pc-muted); }

/* ── Review Cards ────────────────────────────────────────────── */
.pc-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.pc-review-card { background: var(--pc-white); border-radius: var(--pc-radius); padding: 1.5rem; box-shadow: var(--pc-shadow); border: 1.5px solid var(--pc-border); }
.pc-review-card .stars { color: #FBBF24; font-size: 1rem; margin-bottom: .5rem; }
.pc-review-card p { font-size: .88rem; color: var(--pc-text); line-height: 1.7; margin-bottom: 1rem; }
.pc-reviewer { display: flex; align-items: center; gap: .6rem; }
.pc-reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pc-primary-l); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--pc-primary); font-size: .9rem; }
.pc-reviewer-info strong { display: block; font-size: .85rem; font-weight: 600; }
.pc-reviewer-info span { font-size: .75rem; color: var(--pc-muted); }

/* ── Why Us ──────────────────────────────────────────────────── */
.pc-why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.pc-why-card { background: var(--pc-white); border-radius: var(--pc-radius); padding: 1.75rem; box-shadow: var(--pc-shadow); text-align: center; transition: var(--pc-transition); }
.pc-why-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-lg); }
.pc-why-icon { width: 60px; height: 60px; border-radius: var(--pc-radius); background: linear-gradient(135deg, var(--pc-primary), var(--pc-accent)); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.pc-why-icon svg { width: 28px; height: 28px; color: #fff; }
.pc-why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.pc-why-card p { font-size: .82rem; color: var(--pc-muted); }

/* ── CTA Banner ──────────────────────────────────────────────── */
.pc-cta-banner { background: linear-gradient(135deg, var(--pc-dark), #2D3748); color: #fff; border-radius: var(--pc-radius-lg); padding: 3rem; text-align: center; margin: 2rem 0; }
.pc-cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .75rem; }
.pc-cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Order Tracking ──────────────────────────────────────────── */
.pc-track-timeline { position: relative; padding-left: 2rem; }
.pc-track-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--pc-border); }
.pc-track-step { position: relative; margin-bottom: 1.5rem; }
.pc-track-dot { position: absolute; left: -2rem; width: 20px; height: 20px; border-radius: 50%; background: var(--pc-border); border: 3px solid var(--pc-white); z-index: 1; }
.pc-track-step.done .pc-track-dot { background: var(--pc-success); }
.pc-track-step.active .pc-track-dot { background: var(--pc-primary); box-shadow: 0 0 0 4px rgba(255,107,44,.2); }
.pc-track-step-label { font-size: .88rem; font-weight: 600; }
.pc-track-step-time { font-size: .75rem; color: var(--pc-muted); margin-top: .2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.pc-footer { background: var(--pc-dark); color: rgba(255,255,255,.8); margin-top: 4rem; }
.pc-footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 3rem 1.5rem; }
.pc-footer-brand .pc-logo { font-size: 1.4rem; }
.pc-footer-logo { background: #fff; padding: .5rem .9rem; border-radius: 10px; display: inline-flex; }
.pc-footer-logo .pc-logo-img { height: 38px; }
.pc-footer-brand p { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: .75rem; max-width: 280px; line-height: 1.7; }
.pc-footer-col h5 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.pc-footer-col a { display: block; font-size: .82rem; color: rgba(255,255,255,.65); padding: .25rem 0; transition: var(--pc-transition); }
.pc-footer-col a:hover { color: var(--pc-primary); }
.pc-footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.pc-social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: rgba(255,255,255,.7); transition: var(--pc-transition); }
.pc-social-link:hover { background: var(--pc-primary); color: #fff; }
.pc-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .78rem; color: rgba(255,255,255,.4); padding: 1.25rem; }
.pc-newsletter { display: flex; gap: .5rem; margin-top: .75rem; }
.pc-newsletter input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 50px; padding: .5rem 1rem; font-size: .82rem; outline: none; }
.pc-newsletter input::placeholder { color: rgba(255,255,255,.4); }

/* ── Admin Styles ────────────────────────────────────────────── */
.pc-admin-layout { display: flex; min-height: 100vh; }
.pc-sidebar { width: 260px; background: var(--pc-dark); flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100; transition: var(--pc-transition); }
.pc-sidebar-logo { padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.pc-sidebar-logo .pc-logo { font-size: 1.3rem; background: #fff; padding: .4rem .75rem; border-radius: 8px; }
.pc-sidebar-logo .pc-logo-img { height: 32px; }
.pc-sidebar-logo span { font-size: .7rem; color: rgba(255,255,255,.4); display: block; margin-top: 2px; }
.pc-sidebar-nav { padding: 1rem 0; }
.pc-sidebar-group { margin-bottom: .25rem; }
.pc-sidebar-group-label { font-size: .65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.25); padding: .75rem 1.25rem .25rem; }
.pc-sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.25rem; color: rgba(255,255,255,.65); font-size: .84rem;
  transition: var(--pc-transition); border-left: 3px solid transparent;
}
.pc-sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.pc-sidebar-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); border-left-color: var(--pc-primary); }
.pc-sidebar-link.active { background: rgba(255,107,44,.12); color: var(--pc-primary); border-left-color: var(--pc-primary); font-weight: 600; }
.pc-sidebar-badge { margin-left: auto; background: var(--pc-primary); color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 50px; }
.pc-admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.pc-admin-topbar { background: var(--pc-white); box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 99; }
.pc-admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--pc-dark); }
.pc-admin-topbar .ml-auto { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.pc-admin-content { padding: 1.5rem; flex: 1; }

/* ── Stat Cards ──────────────────────────────────────────────── */
.pc-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.pc-stat-card { background: var(--pc-white); border-radius: var(--pc-radius); padding: 1.25rem; box-shadow: var(--pc-shadow); border-left: 4px solid var(--pc-primary); }
.pc-stat-card.accent { border-left-color: var(--pc-accent); }
.pc-stat-card.success { border-left-color: var(--pc-success); }
.pc-stat-card.warning { border-left-color: var(--pc-warning); }
.pc-stat-card.danger { border-left-color: var(--pc-danger); }
.pc-stat-card .label { font-size: .75rem; font-weight: 600; color: var(--pc-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: .4rem; }
.pc-stat-card .value { font-size: 1.8rem; font-weight: 800; color: var(--pc-dark); line-height: 1; }
.pc-stat-card .change { font-size: .75rem; margin-top: .4rem; }
.pc-stat-card .change.up { color: var(--pc-success); }
.pc-stat-card .change.down { color: var(--pc-danger); }

/* ── Tables ──────────────────────────────────────────────────── */
.pc-table-card { background: var(--pc-white); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); overflow: hidden; }
.pc-table-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--pc-border); }
.pc-table-header h3 { font-size: .95rem; font-weight: 700; }
.pc-table { width: 100%; border-collapse: collapse; }
.pc-table th { background: var(--pc-bg); padding: .75rem 1rem; font-size: .75rem; font-weight: 700; color: var(--pc-muted); text-transform: uppercase; letter-spacing: .4px; text-align: left; border-bottom: 2px solid var(--pc-border); }
.pc-table td { padding: .9rem 1rem; font-size: .87rem; border-bottom: 1px solid var(--pc-border); vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tr:hover td { background: var(--pc-bg); }
.pc-table-wrap { overflow-x: auto; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .2px; }
.bg-primary   { background: #DBEAFE; color: var(--pc-accent); }
.bg-success   { background: #D1FAE5; color: #065F46; }
.bg-warning   { background: #FEF3C7; color: #78350F; }
.bg-danger    { background: #FEE2E2; color: #7F1D1D; }
.bg-secondary { background: #F3F4F6; color: #374151; }
.bg-info      { background: #CFFAFE; color: #164E63; }

/* ── Tabs ─────────────────────────────────────────────────────── */
.pc-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--pc-border); margin-bottom: 1.5rem; }
.pc-tab { padding: .75rem 1.25rem; font-size: .87rem; font-weight: 600; color: var(--pc-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--pc-transition); background: none; border-top: none; border-left: none; border-right: none; }
.pc-tab.active, .pc-tab:hover { color: var(--pc-primary); border-bottom-color: var(--pc-primary); }

/* ── Pagination ──────────────────────────────────────────────── */
.pc-pagination .pagination { display: flex; gap: .35rem; flex-wrap: wrap; }
.page-item .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 .6rem; border-radius: var(--pc-radius-sm); font-size: .84rem; font-weight: 500; color: var(--pc-text); background: var(--pc-white); border: 1.5px solid var(--pc-border); transition: var(--pc-transition); }
.page-item.active .page-link { background: var(--pc-primary); color: #fff; border-color: var(--pc-primary); }
.page-item .page-link:hover { border-color: var(--pc-primary); color: var(--pc-primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pc-hero { height: auto; }
  .pc-hero-slide-inner { flex-direction: column; text-align: center; }
  .pc-hero-img { max-width: 100%; }
  .pc-footer-main { grid-template-columns: 1fr 1fr; }
  .pc-product-detail { grid-template-columns: 1fr; }
  .pc-gallery-main img { height: 300px; }
  .pc-cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pc-header-top { flex-wrap: wrap; gap: .75rem; }
  .pc-search-wrap { order: 3; flex: 1 1 100%; max-width: 100%; }
  .pc-hero-content h1 { font-size: 1.8rem; }
  .pc-trust-inner { grid-template-columns: repeat(2, 1fr); }
  .pc-footer-main { grid-template-columns: 1fr; }
  .pc-admin-main { margin-left: 0; }
  .pc-sidebar { transform: translateX(-100%); }
  .pc-sidebar.open { transform: translateX(0); }
  .pc-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pc-section { padding: 2.5rem 1rem; }
  .pc-trust-inner { grid-template-columns: 1fr; }
  .pc-product-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-stats-grid { grid-template-columns: 1fr; }
}

/* ── Toast ───────────────────────────────────────────────────── */
.pc-toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.pc-toast { background: var(--pc-dark); color: #fff; padding: .85rem 1.25rem; border-radius: var(--pc-radius-sm); box-shadow: var(--pc-shadow-lg); font-size: .87rem; display: flex; align-items: center; gap: .6rem; min-width: 260px; animation: slideInToast .3s ease; }
.pc-toast.success { border-left: 4px solid var(--pc-success); }
.pc-toast.error   { border-left: 4px solid var(--pc-danger); }
.pc-toast.info    { border-left: 4px solid var(--pc-info); }
@keyframes slideInToast { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }

/* ── Loading Spinner ─────────────────────────────────────────── */
.pc-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,107,44,.3); border-top-color: var(--pc-primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Misc ─────────────────────────────────────────────────────── */
.text-primary { color: var(--pc-primary) !important; }
.text-muted   { color: var(--pc-muted) !important; }
.text-success { color: var(--pc-success) !important; }
.text-danger  { color: var(--pc-danger) !important; }
.bg-light     { background: var(--pc-bg) !important; }
.rounded      { border-radius: var(--pc-radius) !important; }
.shadow       { box-shadow: var(--pc-shadow) !important; }
.d-flex       { display: flex !important; }
.align-center { align-items: center !important; }
.gap-1        { gap: .5rem !important; }
.gap-2        { gap: 1rem !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

.breadcrumb { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.breadcrumb-item { color: var(--pc-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--pc-muted); opacity: .45; margin-right: .45rem; }
.breadcrumb-item.active { color: var(--pc-text); font-weight: 600; }
.breadcrumb-bar { border-bottom: 1px solid var(--pc-border); }
.empty-state {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
}
.empty-icon { font-size: 2.4rem; }
.category-banner {
  width: min(100% - 2rem, 1400px);
  margin: 1rem auto 0;
  border-radius: var(--pc-radius);
  overflow: hidden;
  border: 1px solid var(--pc-border);
  background: var(--pc-white);
}
.category-banner img { display: block; width: 100%; height: clamp(150px, 22vw, 240px); object-fit: cover; }
