/* Shopify Dawn & Horizon Theme Inspired Modern Design Tokens */
:root {
  --color-primary: #121212;
  --color-primary-hover: #262626;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-surface: #ffffff;
  --color-background: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-sale: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Announcement Ticker */
.announcement-bar {
  background: #09090b;
  color: #f4f4f5;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* Header Styles */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

/* Product Card */
.shopify-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.shopify-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}

.card-image-wrap img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.shopify-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  line-height: 1;
}

.badge-bestseller {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-instant {
  background: #ecfdf5;
  color: #047857;
}

.badge-verified {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Drawer Transitions */
.drawer-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Radio Pill Selector for Variants */
.variant-pill {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.variant-pill:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

.variant-pill.selected {
  border-color: #0f172a;
  background-color: #f8fafc;
  box-shadow: 0 0 0 1px #0f172a;
}

/* Pulsing In-Stock Dot */
.pulsing-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
}

.pulsing-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #10b981;
  opacity: 0.6;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Shopify Checkout Input styling */
.shopify-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shopify-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Category Pill */
.category-btn {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.category-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
