/* =========================================================
   Theme tokens — light (default) + dark
   ========================================================= */
:root,
[data-theme="light"] {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #1a1d23;
  --text-muted: #6b7280;
  --border: rgba(0, 0, 0, .08);
  --accent: #e11d48;
  --accent-soft: #fde2e7;
  --price: #d97706;
  --shadow: rgba(0, 0, 0, .06);
  --shadow-hover: rgba(0, 0, 0, .10);
}

[data-theme="dark"] {
  --bg: #14161c;
  --surface: #1e2128;
  --surface-2: #262a33;
  --text: #f1f2f4;
  --text-muted: #9aa1ab;
  --border: rgba(255, 255, 255, .08);
  --accent: #fb7185;
  --accent-soft: #3a1d24;
  --price: #f6ad55;
  --shadow: rgba(0, 0, 0, .35);
  --shadow-hover: rgba(0, 0, 0, .5);
}

.shop-body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}

.shop-body .text-muted {
  color: var(--text-muted) !important;
}

/* =========================================================
   Hero
   ========================================================= */
.shop-hero-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(251, 113, 133, .25), transparent 55%),
    linear-gradient(135deg, #1a0d12 0%, #2b0f16 45%, #120a0d 100%);
  color: #fdf2f4;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .75rem;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent);
  font-style: italic;
}

.hero-copy {
  color: rgba(253, 242, 244, .75);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .65rem 1.6rem;
  font-weight: 600;
}

.btn-hero-primary:hover {
  background: #be123c;
  color: #fff;
}

.btn-hero-outline {
  border: 1px solid rgba(253, 242, 244, .4);
  color: #fdf2f4;
  border-radius: 999px;
  padding: .65rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-hero-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Signature element: photo framed by soft floating color blobs */
.hero-badge {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(253, 242, 244, .9);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
  animation: float 5s ease-in-out infinite;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .8;
  z-index: 1;
}

/* Outlined text that circles around the rounded hero photo */
.hero-ring-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  animation: spin-ring 30s linear infinite;
}

.hero-ring-text text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  fill: none;
  stroke: #fdf2f4;
  stroke-width: .6px;
  paint-order: stroke fill;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring-text { animation: none; }
}

.hero-blob-1 {
  width: 130px;
  height: 130px;
  top: -10px;
  right: 10px;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #f59e0b);
  animation: drift 7s ease-in-out infinite;
}

.hero-blob-2 {
  width: 90px;
  height: 90px;
  bottom: 10px;
  left: -15px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #6366f1);
  animation: drift 9s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 70px;
  height: 70px;
  bottom: -20px;
  right: 40px;
  background: radial-gradient(circle at 30% 30%, #fb7185, var(--accent));
  animation: drift 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -12px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .hero-blob { animation: none; }
}

/* =========================================================
   Search bar
   ========================================================= */
.search-bar-wrap .form-control,
.search-bar-wrap .input-group-text {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.search-bar-wrap .form-control::placeholder {
  color: var(--text-muted);
}

.search-bar-wrap .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem var(--accent-soft);
}

/* =========================================================
   Category filter
   ========================================================= */
.category-filter-wrap .btn-category {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .875rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.category-filter-wrap .btn-category:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-filter-wrap .btn-category.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-category-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  font-size: .7rem;
  padding: .3rem .6rem;
  border-radius: 999px;
}

/* =========================================================
   Product cards
   ========================================================= */
.product-card {
  border: none;
  border-radius: .7rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px var(--shadow-hover);
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
}

.product-card .product-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 2rem;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
}

.product-card h6 {
  color: var(--text);
}

.product-price {
  font-weight: 700;
  color: var(--price);
}

/* =========================================================
   Cart
   ========================================================= */
.cart-line-item img,
.cart-line-item .cart-line-placeholder {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: .4rem;
  background: var(--surface-2);
}

.qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
}

.offcanvas {
  background: var(--surface);
  color: var(--text);
}

/* =========================================================
   Pagination
   ========================================================= */
#paginationControls .page-link {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

#paginationControls .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#paginationControls .page-item.disabled .page-link {
  background: var(--surface-2);
  color: var(--text-muted);
}

/* =========================================================
   Thanks / end section
   ========================================================= */
.thanks-section {
  background: linear-gradient(135deg, #9f1239 0%, #be123c 50%, #7f1d1d 100%);
  color: #fff;
  padding: 4rem 0;
  margin-top: 2rem;
}

.thanks-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fecdd3;
}

.thanks-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: .75rem;
}

.thanks-copy {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, .85);
}

.thanks-brand {
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 1.5rem;
}

.site-footer {
  background: var(--surface);
  color: var(--text-muted);
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

/* Theme toggle button icon swap */
.theme-toggle i.fa-sun { display: none; }
[data-theme="dark"] .theme-toggle i.fa-moon { display: none; }
[data-theme="dark"] .theme-toggle i.fa-sun { display: inline-block; }