/* Base Reset & Fonts */
:root {
  --primary-color: #00A84A;
  --secondary-color: #005bb8;
  --text-color: #1a1a1a;
  --text-subdued: #707070;
  --background-color: #ffffff;
  --border-color: #e5e5e5;
  --button-text-color: #ffffff;
  --announcement-bg: #f0d720;
  --announcement-text: #012b85;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.h1 { font-size: 2.5rem; }
.h2 { font-size: 2rem; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.bold { font-weight: 700; }
.text-subdued { color: var(--text-subdued); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

.prose p {
  margin-bottom: 1em;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.v-stack {
  display: flex;
  flex-direction: column;
}

.h-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Visibility / Media Queries */
@media (max-width: 639px) {
  .sm-max\:hidden { display: none !important; }
}
@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:gap-8 { gap: 2rem; }
}
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
}
@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
}

/* Header */
.header {
  background: #fff;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.header__logo {
  flex: 0 0 auto;
}

.header__logo-image {
  max-height: 40px;
  width: auto;
}

.header__main-nav {
  display: flex;
  align-items: center;
}

.header__link-list {
  display: none;
}

@media (min-width: 1024px) {
  .header__link-list {
    display: flex;
    gap: 2rem;
}
  
  .header__wrapper {
    padding: 1.5rem 2rem;
  }
  
  .header__logo-image {
    max-height: 50px;
  }
}

.header__link-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header__link-list a:hover {
  color: var(--primary-color);
}

.header__icon-list {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tap-area {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--announcement-bg);
  color: var(--announcement-text);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar__scrolling-list {
  display: flex;
  animation: marquee 20s linear infinite;
}

.announcement-bar__item {
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Components */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--button-text-color);
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.1s;
  cursor: pointer;
}

.button:hover {
  background-color: #008f3f;
}

.button:active {
  transform: translateY(1px);
}

.button--xl {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge--sold-out {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.badge--on-sale {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Drawers */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  visibility: hidden;
  transition: visibility 0.3s;
}

.drawer[open] {
  visibility: visible;
}

.drawer::part(overlay) {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  inset: 0;
}

.navigation-drawer .panel {
  background: #fff;
  height: 100%;
  max-width: 350px;
  width: 85%;
  position: relative;
  z-index: 2;
  transform: translateX(-100%);
  transition: transform 0.3s;
  padding: 2rem;
}

.navigation-drawer[open] .panel {
  transform: translateX(0);
}

/* Hero Section (Fallback/Overrides) */
.hero-slider-template {
  position: relative;
  overflow: hidden;
}

.hero-content-template {
  text-align: center;
  padding: 2rem;
}

.hero-heading-heading h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.hero-text-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Product Gallery */
.product-gallery__media img {
  border-radius: 8px;
  width: 100%;
}

.product-gallery__thumbnail-list {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.product-gallery__thumbnail {
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.product-gallery__thumbnail[aria-current="true"] {
  border-color: var(--primary-color);
}

.product-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  padding: 1rem 0;
}

.product-info__title {
  margin-bottom: 0.5rem;
}

.price-list {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
}

.sale-price {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.line-through {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Footer & Copyright */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-subdued);
}

/* Utility: Shape Circle */
.shape-circle {
  display: inline-block;
  border-radius: 50%;
  background-color: currentColor;
}
.shape--sm {
  width: 6px;
  height: 6px;
  margin: 0 0.5rem;
}

/* Instagram Gradient Text */
.instagram-text {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    display: inline-block;
    font-weight: bold;
}
