/* ==========================================================================
   PickMyBuild - Global Theme Stylesheet
   Supercar Brick Models & Display Kits D2C Store
   Exact UI/UX parity with Pickle Architecture
   ========================================================================== */

:root {
  --color-background: 255, 255, 255;
  --color-foreground: 15, 23, 42; /* #0F172A */
  --color-button: 229, 0, 0;      /* #E50000 Pure Racing Red */
  --color-button-text: 255, 255, 255;
  --color-secondary-button: 241, 245, 249;
  --color-secondary-button-text: 15, 23, 42;
  --color-shadow: 15, 23, 42;
  --color-accent: #E50000;
  --color-border: #E2E8F0;
  --color-muted: #64748B;
  --color-card-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --pk-radius: 1.6rem;
  --pk-radius-small: 1rem;
  --pk-gap: 2rem;
  --pk-shadow: 0 0.6rem 2.4rem rgba(15, 23, 42, 0.08);

  --page-width: 128rem;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.5;
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.page-width {
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (min-width: 750px) {
  .page-width {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

/* Color schemes matching Dawn & Pickle */
.color-scheme-1 {
  background-color: #ffffff;
  color: #0f172a;
}

.color-scheme-2 {
  background-color: #f8fafc;
  color: #0f172a;
}

.color-scheme-dark {
  background-color: #0f172a;
  color: #ffffff;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0f172a;
}

.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background: #E50000;
  color: #ffffff;
  border-radius: 0.8rem;
  font-weight: 900;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(229, 0, 0, 0.4);
}

.site-logo span span {
  color: #E50000;
}

.site-nav {
  display: none;
  gap: 2.8rem;
  align-items: center;
}

@media screen and (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

.site-nav__link {
  font-size: 1.45rem;
  font-weight: 600;
  color: #475569;
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}

.site-nav__link:hover, .site-nav__link.is-active {
  color: #E50000;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: #0f172a;
  position: relative;
  transition: all 0.15s ease;
}

.site-action-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cart-count-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 1rem;
  background: #E50000;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero Slideshow ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: #ffffff;
  border-radius: 0 0 2.4rem 2.4rem;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 52rem;
  align-items: center;
  padding: 6rem 0;
}

.hero-slide.is-active {
  display: flex;
}

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

@media screen and (min-width: 860px) {
  .hero-slide__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.4rem;
  background: rgba(229, 0, 0, 0.18);
  border: 1px solid rgba(229, 0, 0, 0.6);
  color: #FFFFFF;
  border-radius: 10rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
  color: #ffffff;
}

@media screen and (min-width: 750px) {
  .hero-title {
    font-size: 5rem;
  }
}

.hero-subtitle {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0 0 3.2rem;
  max-width: 54rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem 3rem;
  background: #E50000;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 10rem;
  border: none;
  box-shadow: 0 4px 14px rgba(229, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: #B80000;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem 2.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-media-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-car-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(229, 0, 0, 0.35) 0%, rgba(15, 23, 42, 0) 70%);
  filter: blur(40px);
  z-index: 1;
}

.hero-car-img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.6));
  animation: floatSubtle 6s ease-in-out infinite alternate;
}

@keyframes floatSubtle {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(0.5deg); }
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.hero-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  background: #E50000;
  width: 3.2rem;
  border-radius: 1rem;
}

/* ---------- Category Circles Section ---------- */
.pk-cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.pk-cat-circle:hover {
  transform: translateY(-4px);
}

.pk-cat-circle__avatar {
  width: 8.8rem;
  height: 8.8rem;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pk-cat-circle:hover .pk-cat-circle__avatar {
  border-color: #E50000;
  box-shadow: 0 6px 18px rgba(229, 0, 0, 0.25);
}

.pk-cat-circle__avatar img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.pk-cat-circle:hover .pk-cat-circle__avatar img {
  transform: scale(1.1);
}

.pk-cat-circle__label {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: #1E293B;
  white-space: nowrap;
}

/* ---------- Product Card (Pickle Style) ---------- */
.pk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--pk-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--pk-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.pk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.2rem 3.2rem rgba(15, 23, 42, 0.12);
  border-color: #CBD5E1;
}

.pk-card__media-wrap {
  position: relative;
  padding-top: 68%;
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pk-card__img {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pk-card:hover .pk-card__img {
  transform: scale(1.08);
}

.pk-card__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #E50000;
  color: #ffffff;
  z-index: 2;
}

.pk-card__specs-row {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.pk-card__spec-pill {
  padding: 0.3rem 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pk-card__body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pk-card__category {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E50000;
  margin-bottom: 0.4rem;
}

.pk-card__title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.8rem;
  color: #0F172A;
}

.pk-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #F59E0B;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.pk-card__rating-count {
  color: #64748B;
  font-weight: 500;
  font-size: 1.2rem;
}

.pk-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: auto;
  margin-bottom: 1.6rem;
}

.pk-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
}

.pk-card__mrp {
  font-size: 1.4rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.pk-card__save {
  font-size: 1.2rem;
  font-weight: 700;
  color: #10B981;
}

.pk-card__btn {
  width: 100%;
  padding: 1.1rem 1.6rem;
  background: #0F172A;
  color: #ffffff;
  border: none;
  border-radius: var(--pk-radius-small);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.15s ease;
}

.pk-card__btn:hover {
  background: #E50000;
}

/* ---------- Slide-Out Bag Drawer ---------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 44rem;
  height: 100%;
  background: #ffffff;
  z-index: 101;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-drawer__close {
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__close:hover {
  background: #f1f5f9;
}

.cart-free-shipping-bar {
  padding: 1.2rem 2rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.3rem;
}

.cart-free-shipping-progress {
  height: 0.6rem;
  background: #E2E8F0;
  border-radius: 1rem;
  margin-top: 0.8rem;
  overflow: hidden;
}

.cart-free-shipping-progress__fill {
  height: 100%;
  background: #10B981;
  border-radius: 1rem;
  transition: width 0.3s ease;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item__thumb {
  width: 8rem;
  height: 8rem;
  background: #f8fafc;
  border-radius: 0.8rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.cart-item__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
}

.cart-item__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.cart-item__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #E50000;
  margin-bottom: 0.8rem;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 0.6rem;
  overflow: hidden;
}

.qty-control button {
  width: 2.8rem;
  height: 2.8rem;
  background: #f8fafc;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control button:hover {
  background: #e2e8f0;
}

.qty-control span {
  width: 3.2rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-item__remove {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item__remove:hover {
  color: #EF4444;
}

.cart-drawer__footer {
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.6rem;
}

.cart-subtotal-label {
  font-size: 1.6rem;
  font-weight: 700;
}

.cart-subtotal-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0F172A;
}

.btn-checkout {
  width: 100%;
  padding: 1.4rem;
  background: #E50000;
  color: #ffffff;
  border: none;
  border-radius: 10rem;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(229, 0, 0, 0.45);
  transition: all 0.15s ease;
}

.btn-checkout:hover {
  background: #B80000;
}

/* Toast notifications */
.toast-notice {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #ffffff;
  padding: 1.2rem 2.4rem;
  border-radius: 10rem;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notice.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer styling */
.site-footer {
  background: #0F172A;
  color: #F8FAFC;
  padding: 6rem 0 3rem;
  border-top: 1px solid #1E293B;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

@media screen and (min-width: 750px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer__brand-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  color: #ffffff;
}

.site-footer__tagline {
  color: #94A3B8;
  font-size: 1.45rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.site-footer__col-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin: 0 0 1.6rem;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__link {
  color: #94A3B8;
  font-size: 1.4rem;
  transition: color 0.15s ease;
}

.site-footer__link:hover {
  color: #ffffff;
}

.site-footer__bottom {
  padding-top: 3rem;
  border-top: 1px solid #1E293B;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #64748B;
  font-size: 1.3rem;
}
