/* ===== Fireflyslime-Style Shopify Dawn Theme ===== */
/* Matching https://fireflyslime.com/ design exactly */

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

:root {
  --color-base-text: #121212;
  --color-base-background-1: #ffffff;
  --color-base-background-2: #f7f4f0;
  --color-base-accent-1: #d4476a;
  --color-base-accent-2: #fce4ec;
  --color-link: #121212;
  --color-link-hover: #d4476a;
  --color-button: #121212;
  --color-button-text: #ffffff;
  --color-button-hover: #2a2a2a;
  --color-border: #e5e5e5;
  --color-sale-badge: #e74c3c;
  --color-soldout-badge: #9ca3af;
  --color-new-badge: #22a06b;
  --color-announcement-bar: #121212;
  --color-announcement-text: #ffffff;
  --color-footer-bg: #121212;
  --color-footer-text: #e5e5e5;
  --color-pink-section: #fdf2f8;
  --color-cream-section: #fefcf9;
  --radius-button: 30px;
  --radius-card: 0px;
  --radius-badge: 4px;
  --font-body: 'Assistant', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Assistant', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --product-grid-gap: 20px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-base-text);
  background-color: var(--color-base-background-1);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--color-announcement-bar);
  color: var(--color-announcement-text);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.announcement-slider {
  width: 100%;
  position: relative;
}

.announcement-slide {
  text-align: center;
  transition: opacity 0.5s ease;
}

.announcement-slide.hidden {
  display: none;
}

/* --- Header --- */
.site-header {
  background-color: var(--color-base-background-1);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.site-header__nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header__logo {
  text-align: center;
  flex-shrink: 0;
}

.site-header__logo a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-base-text);
  text-transform: lowercase;
}

.site-header__logo a:hover {
  color: var(--color-base-accent-1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-base-text);
  position: relative;
  padding: 4px 0;
}

.nav-menu a:hover {
  color: var(--color-base-accent-1);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-base-accent-1);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-icon {
  width: 22px;
  height: 22px;
  color: var(--color-base-text);
  transition: color 0.2s ease;
  cursor: pointer;
}

.header-icon:hover {
  color: var(--color-base-accent-1);
}

.cart-count {
  position: relative;
}

.cart-count::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-base-accent-1);
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-base-text);
  transition: 0.3s;
}

/* --- Main Content --- */
#MainContent {
  min-height: 400px;
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #f8f8f8;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 460px;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.65) 45%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.hero-banner__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 460px;
}

.hero-banner__content {
  max-width: 460px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 36px 40px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hero-banner h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.15;
  color: #111111;
}

.hero-banner p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 24px;
  line-height: 1.55;
}

.hero-banner__btn {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-button);
  color: var(--color-button-text);
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-banner__btn:hover {
  background-color: var(--color-button-hover);
  color: var(--color-button-text);
  transform: translateY(-1px);
}

/* --- Section --- */
.section {
  padding: 48px 24px;
}

.section--pink {
  background-color: var(--color-pink-section);
}

.section--cream {
  background-color: var(--color-cream-section);
}

.section--gray {
  background-color: var(--color-base-background-2);
}

.section__header {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  text-align: center;
}

.section__title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-base-text);
}

.section__subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.section__view-all {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-base-text);
  border-bottom: 1px solid var(--color-base-text);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.section__view-all:hover {
  color: var(--color-base-accent-1);
  border-bottom-color: var(--color-base-accent-1);
}

/* --- Shop by Category --- */
.shop-by-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-chip {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-base-text);
  transition: all 0.2s ease;
  background-color: white;
}

.category-chip:hover,
.category-chip.active {
  background-color: var(--color-base-accent-1);
  color: white;
  border-color: var(--color-base-accent-1);
}

/* --- Product Grid --- */
.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--product-grid-gap);
}

/* --- Product Card (matching fireflyslime exactly) --- */
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.product-card:hover {
  opacity: 0.85;
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f9f9f9;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-card__image--alt {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-card__image--alt {
  opacity: 1;
}

.product-card:hover .product-card__image--main {
  opacity: 0;
}

/* Badges */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-badge);
  z-index: 2;
}

.badge--sale {
  background-color: var(--color-sale-badge);
  color: white;
}

.badge--soldout {
  background-color: var(--color-soldout-badge);
  color: white;
}

.badge--new {
  background-color: var(--color-new-badge);
  color: white;
}

.product-card__info {
  padding: 12px 0;
  text-align: center;
}

.product-card__title {
  font-size: 14px;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--color-base-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-card__price {
  font-size: 14px;
  color: var(--color-base-text);
  font-weight: 600;
}

.product-card__price--sale .price-compare {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  margin-right: 6px;
}

.product-card__price--sale .price-sale {
  color: var(--color-sale-badge);
}

/* --- Promotional Banner --- */
.promo-banner {
  width: 100%;
  background-color: var(--color-pink-section);
  overflow: hidden;
}

.promo-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.promo-banner__text {
  flex: 1;
}

.promo-banner__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-base-accent-1);
  margin-bottom: 8px;
}

.promo-banner__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.promo-banner__desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.promo-banner__btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-base-text);
  border-radius: var(--radius-button);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-base-text);
  transition: all 0.2s ease;
}

.promo-banner__btn:hover {
  background-color: var(--color-base-text);
  color: white;
}

/* --- Gift Card Section --- */
.gift-card-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}

.gift-card-section__image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-pink-section);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gift-card-section__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gift-card-section__price {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

/* --- Care Tips Section --- */
.care-tips {
  max-width: var(--max-width);
  margin: 0 auto;
}

.care-tips__header {
  text-align: center;
  margin-bottom: 32px;
}

.care-tips__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.care-tips__intro {
  font-size: 14px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.care-tips__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.care-tip {
  text-align: center;
  padding: 20px 12px;
}

.care-tip__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.care-tip__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.care-tip__desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* --- Press / As Seen On --- */
.press-section {
  text-align: center;
  padding: 48px 24px;
  background-color: var(--color-base-background-2);
}

.press-section__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: #555;
}

.press-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.press-item {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  max-width: 300px;
  text-align: left;
}

.press-item:hover {
  color: var(--color-base-accent-1);
  border-bottom-color: var(--color-base-accent-1);
}

/* --- Mission Section --- */
.mission-section {
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.mission-section__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mission-section__text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 60px 24px 24px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  color: white;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-footer-text);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-base-accent-1);
}

.footer-newsletter p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 300px;
}

.footer-newsletter__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #444;
  background-color: #222;
  color: white;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-family: inherit;
}

.footer-newsletter__input::placeholder {
  color: #888;
}

.footer-newsletter__btn {
  padding: 10px 20px;
  background-color: white;
  color: var(--color-footer-bg);
  border-radius: var(--radius-button);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.footer-newsletter__btn:hover {
  background-color: var(--color-base-accent-1);
  color: white;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--color-base-accent-1);
  background-color: var(--color-base-accent-1);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-footer-text);
}

.footer-social a:hover svg {
  fill: white;
}

.site-footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}

.footer-payment-icons {
  display: flex;
  gap: 8px;
}

.footer-payment-icons span {
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid #444;
  border-radius: 3px;
}

/* --- Product Detail Page --- */
.product-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.breadcrumb {
  font-size: 12px;
  margin-bottom: 24px;
  color: #888;
}

.breadcrumb a {
  color: #888;
}

.breadcrumb a:hover {
  color: var(--color-base-accent-1);
}

.breadcrumb span {
  margin: 0 6px;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 80px;
  align-self: start;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f9f9f9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  background-color: #f9f9f9;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: var(--color-base-text);
}

/* Product Info */
.product-info h1 {
  font-size: 28px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-info__price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-info__price .price-compare {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  margin-right: 8px;
}

.product-info__shipping {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.product-info__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

/* Variant Selector */
.variant-selector {
  margin-bottom: 16px;
}

.variant-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.variant-options {
  display: flex;
  gap: 8px;
}

.variant-option {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: white;
}

.variant-option.active,
.variant-option:hover {
  border-color: var(--color-base-text);
  background-color: var(--color-base-text);
  color: white;
}

/* Stock & Add to Cart */
.product-stock {
  font-size: 13px;
  color: #22a06b;
  margin-bottom: 12px;
  font-weight: 500;
}

.btn-add-cart {
  width: 100%;
  padding: 16px;
  background-color: var(--color-button);
  color: var(--color-button-text);
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
  margin-bottom: 8px;
}

.btn-add-cart:hover {
  background-color: var(--color-button-hover);
}

.btn-add-cart:disabled {
  background-color: var(--color-soldout-badge);
  cursor: not-allowed;
}

.more-payment {
  text-align: center;
  font-size: 13px;
  margin-bottom: 24px;
}

.more-payment a {
  color: var(--color-base-accent-1);
  text-decoration: underline;
}

/* Product Description */
.product-description {
  margin-top: 24px;
}

.product-description p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

.product-description strong {
  font-weight: 600;
}

.product-description .description-label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 20px;
  margin-bottom: 8px;
  display: block;
}

.product-description .safety-note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  padding: 16px;
  background-color: #fdf2f8;
  border-radius: 8px;
  margin-top: 16px;
}

/* Related Products */
.related-products {
  margin-top: 60px;
}

.related-products__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-align: center;
}

/* --- Collection Page --- */
.collection-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.collection-header {
  text-align: center;
  margin-bottom: 40px;
}

.collection-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.collection-header p {
  font-size: 15px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .care-tips__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .care-tips__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .product-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .product-gallery {
    position: static;
  }
  
  .promo-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-banner h1 {
    font-size: 26px;
  }
  
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  
  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .section {
    padding: 32px 16px;
  }
  
  .hero-banner h1 {
    font-size: 22px;
  }
  
  .care-tips__grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-thumb {
    width: 60px;
    height: 60px;
  }
}
