/* ─── PawGlow Shared Styles ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --honey: #E8A832;
  --honey-light: #FFF3D6;
  --honey-glow: #FBBF24;
  --warm-cream: #FDF8EF;
  --warm-brown: #3D2B1F;
  --soft-brown: #6B4C3B;
  --muted: #9A8576;
  --white: #FFFFFF;
  --off-white: #FEFCF8;
  --danger: #DC2626;
  --success: #16A34A;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--warm-brown);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(253, 248, 239, 0.92);
  border-bottom: 1px solid rgba(232, 168, 50, 0.1);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--warm-brown);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--honey); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft-brown);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--honey);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--honey);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--warm-brown);
  color: var(--warm-cream);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.cart-link:hover {
  background: var(--soft-brown);
}

.cart-badge {
  background: var(--honey);
  color: var(--warm-brown);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ─── PAGE WRAPPER ─── */
.page-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* ─── SECTION STYLES ─── */
.section-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--honey);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--warm-brown);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── PRODUCT GRID ─── */
.products-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(232, 168, 50, 0.25);
  border-radius: 100px;
  background: var(--white);
  color: var(--soft-brown);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--honey);
  color: var(--honey);
}

.filter-btn.active {
  background: var(--warm-brown);
  color: var(--warm-cream);
  border-color: var(--warm-brown);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(232, 168, 50, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--honey), var(--honey-glow));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(61, 43, 31, 0.08);
}

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

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--honey-light);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .card-image {
  transform: scale(1.05);
}

.card-image-wrap .card-emoji {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--honey-light);
}

.card-image-wrap .card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-emoji {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--honey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.card-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--honey-light);
  color: var(--honey);
}

.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--warm-brown);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
}

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

.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--warm-brown);
}

.price-compare {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.btn-add-cart {
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  background: var(--warm-brown);
  color: var(--warm-cream);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-add-cart:hover {
  background: var(--honey);
  color: var(--warm-brown);
}

.btn-add-cart.added {
  background: var(--success);
  color: white;
}

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-image-area {
  background: var(--white);
  border-radius: 24px;
  padding: 0;
  text-align: center;
  border: 1px solid rgba(232, 168, 50, 0.1);
  position: sticky;
  top: 100px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px 24px 0 0;
  max-height: 420px;
  object-fit: cover;
}

.product-image-area .product-category-label {
  padding: 20px 0;
}

.product-emoji-large {
  font-size: 6rem;
  margin-bottom: 16px;
  padding-top: 60px;
}

.product-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--honey);
  padding: 6px 16px;
  background: var(--honey-light);
  border-radius: 100px;
  display: inline-block;
}

.product-info h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-info .short-desc {
  font-size: 1.05rem;
  color: var(--soft-brown);
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-price {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--warm-brown);
}

.detail-compare {
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-save {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(22, 163, 74, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

.product-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--soft-brown);
  margin-bottom: 32px;
}

.features-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--honey);
  margin-bottom: 16px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--warm-brown);
}

.features-list li::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--honey-light);
  color: var(--honey);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.btn-add-cart-large {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 14px;
  background: var(--warm-brown);
  color: var(--warm-cream);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-add-cart-large:hover {
  background: var(--honey);
  color: var(--warm-brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 168, 50, 0.3);
}

.btn-add-cart-large.added {
  background: var(--success);
  color: white;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--honey); }

/* ─── CART PAGE ─── */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(232, 168, 50, 0.1);
  transition: all 0.2s;
}

.cart-item:hover {
  box-shadow: 0 4px 16px rgba(61, 43, 31, 0.05);
}

.cart-item-emoji {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--honey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-name a:hover { color: var(--honey); }

.cart-item-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(232, 168, 50, 0.25);
  background: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--warm-brown);
}

.qty-btn:hover {
  background: var(--honey-light);
  border-color: var(--honey);
}

.qty-value {
  font-weight: 700;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(232, 168, 50, 0.15);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.cart-summary-row.total {
  border-top: 2px solid var(--honey-light);
  margin-top: 8px;
  padding-top: 20px;
}

.cart-summary-label {
  font-size: 0.95rem;
  color: var(--soft-brown);
}

.cart-summary-value {
  font-weight: 700;
  font-size: 1rem;
}

.cart-total-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-total-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--honey);
}

.btn-checkout {
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: 14px;
  background: var(--warm-brown);
  color: var(--warm-cream);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  margin-top: 24px;
  letter-spacing: 0.5px;
}

.btn-checkout:hover {
  background: var(--honey);
  color: var(--warm-brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 168, 50, 0.3);
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty-emoji {
  font-size: 4rem;
  margin-bottom: 24px;
}

.cart-empty h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--muted);
  margin-bottom: 32px;
}

.btn-shop {
  display: inline-flex;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--warm-brown);
  color: var(--warm-cream);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-shop:hover {
  background: var(--honey);
  color: var(--warm-brown);
}

/* ─── LOADING ─── */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  font-size: 0.95rem;
}

.loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--honey-light);
  border-top-color: var(--honey);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--warm-brown);
  color: var(--warm-cream);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(61, 43, 31, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 40px 24px;
  background: var(--warm-brown);
  text-align: center;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-cream);
  margin-bottom: 8px;
}

.footer-brand span { color: var(--honey-glow); }

.footer-note {
  font-size: 0.8rem;
  color: rgba(253, 248, 239, 0.35);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .nav-logo { font-size: 1.3rem; }
  .nav-links { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px 60px;
  }
  .product-image-area {
    position: static;
    padding: 0;
  }
  .product-image {
    max-height: 300px;
  }
  .product-emoji-large { font-size: 4rem; padding-top: 40px; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-price { min-width: auto; }
}
