/* ==========================================================================
   MyPetMarket - Pure Vanilla CSS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --primary-dark: #064e3b;

  --secondary: #f59e0b;
  --secondary-hover: #d97706;
  --secondary-light: #fffbeb;
  --secondary-dark: #78350f;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Borders */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 35px -10px rgba(16, 185, 129, 0.18);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.2;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Signature Bone Button Component */
.bone-button {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2.5px solid #d97706;
  color: #78350f;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 0.75rem 1.8rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 40px;
  position: relative;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.22);
  font-size: 0.95rem;
  user-select: none;
}

.bone-button::before,
.bone-button::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fef3c7;
  border: 2.5px solid #d97706;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.bone-button::before {
  left: -10px;
}

.bone-button::after {
  right: -10px;
}

.bone-button:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  color: #451a03;
  border-color: #b45309;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.35);
}

.bone-button:hover::before {
  transform: translateY(-50%) scale(1.25);
}
.bone-button:hover::after {
  transform: translateY(-50%) scale(1.25);
}

/* General Buttons */
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.32);
}

.btn-dark {
  background-color: var(--slate-900);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-dark:hover {
  background-color: var(--slate-800);
  transform: translateY(-2px);
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--slate-950);
  color: var(--slate-300);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-tag {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #2dd4bf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-icon {
  transform: scale(1.06);
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.logo-title span {
  color: var(--primary);
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-top: -0.2rem;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input {
  width: 100%;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Header Cart Button */
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--slate-100);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--secondary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Category Navigation Sub-bar */
.cat-subnav {
  background-color: rgba(248, 250, 252, 0.9);
  border-top: 1px solid var(--slate-200);
  padding: 0.4rem 0;
}

.cat-subnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
}

.cat-pill {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate-600);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-pill:hover {
  color: var(--primary);
  background-color: var(--slate-200);
}

.cat-pill.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #fffbeb 0%, #ecfdf5 50%, var(--slate-50) 100%);
  padding: 3.5rem 0 5rem;
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--secondary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--slate-900);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* Hero Media Image Card */
.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background-color: var(--slate-900);
}

.hero-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

.hero-card-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Catalog Section */
.catalog-section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  flex-col md:flex-row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.filter-bar {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.store-select {
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-700);
  outline: none;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.4);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  background-color: var(--slate-100);
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--secondary);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.card-brand-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-store {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4rem;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-price {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.card-original-price {
  font-size: 0.75rem;
  color: var(--slate-400);
  text-decoration: line-through;
}

.card-actions {
  padding: 0 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-card-cart {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-card-cart:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-card-wa {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-card-wa:hover {
  background-color: var(--primary-hover);
}

/* Store Owners Section */
.vendor-section {
  background-color: var(--slate-900);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .vendor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vendor-feature-card {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

/* Vendor Pricing Plans */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background-color: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
  transform: scale(1.04);
}

.pricing-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--slate-950);
  font-weight: 900;
  font-size: 0.65rem;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 1rem 0 0.5rem;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--slate-300);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 900;
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: var(--slate-400);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
}

.modal-close:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.1);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

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

.cart-header {
  background-color: var(--slate-900);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  gap: 0.85rem;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--slate-200);
  background-color: var(--slate-50);
}

/* Footer */
.site-footer {
  background-color: var(--slate-950);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--slate-900);
  font-size: 0.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--slate-900);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}
