/* =============================================
   FrostBuddy — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --blue:        #32649E;
  --blue-light:  #65ACD4;
  --blue-dark:   #1e4a7a;
  --bg:          #FFFFFF;
  --bg-subtle:   #EAF3FA;
  --text:        #1A1A1A;
  --text-muted:  #666666;
  --border:      #e0e0e0;
  --placeholder: #D9D9D9;
  --radius:      8px;
  --font:        'Montserrat', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* =============================================
   ANNOUNCEMENT BANNER
   ============================================= */
.sticky-top-wrapper {
  position: sticky;
  top: 0;
  z-index: 110;
}

.announcement-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  gap: 16px;
}

/* Logo */
.site-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span {
  color: var(--blue-light);
}
.logo-img {
  height: 22px;
  width: auto;
  display: block;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.18s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
}

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-icons button {
  background: none;
  color: #fff;
  font-size: 20px;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.header-icons button:hover { opacity: 0.75; }

/* =============================================
   HERO / COLLECTION BANNER
   ============================================= */
.collection-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18,40,72,0.92) 0%, rgba(50,100,158,0.70) 55%, rgba(101,172,212,0.40) 100%);
  z-index: 1;
}

/* Decorative gradient accent */
.collection-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at right center, rgba(101,172,212,0.35) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.collection-badge {
  display: inline-block;
  background: var(--blue-light);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--blue-light);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover {
  background: #7cc0e8;
  transform: translateY(-1px);
}

/* =============================================
   COLLECTION TOOLBAR (filters + sort)
   ============================================= */
.collection-toolbar {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 101px;
  z-index: 90;
}

.toolbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  overflow-x: auto;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-btn svg { width: 10px; height: 10px; }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.item-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.sort-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.04em;
  padding: 6px 30px 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--blue); }

/* =============================================
   PRODUCT GRID
   ============================================= */
.collection-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  scroll-margin-top: 165px;
}

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

/* Product Card */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s, transform 0.18s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(50,100,158,0.14);
  transform: translateY(-3px);
}

/* Placeholder image */
.product-image {
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  box-sizing: border-box;
}
.product-image span {
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  pointer-events: none;
  user-select: none;
}

/* Color dot (decorative) */
.color-swatch {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.product-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.product-variant {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 4px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-add {
  flex: 1;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 8px;
  border-radius: 4px;
  transition: background 0.18s;
}
.btn-add:hover { background: var(--blue-dark); }

.btn-choose {
  flex: 1;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1.5px solid var(--blue);
  transition: background 0.18s, color 0.18s;
}
.btn-choose:hover {
  background: var(--bg-subtle);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
}

/* Newsletter strip */
.footer-newsletter {
  background: var(--blue);
  padding: 48px 24px;
  text-align: center;
}
.footer-newsletter h2 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-newsletter p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  font-size: 14px;
  font-family: var(--font);
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.newsletter-form button {
  background: var(--blue-light);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 0 4px 4px 0;
  transition: background 0.18s;
}
.newsletter-form button:hover { background: #7cc0e8; }

/* Footer columns */
.footer-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-brand .logo span { color: var(--blue-light); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 240px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  transition: background 0.18s;
}
.social-links a:hover { background: var(--blue-light); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  padding: 48px 24px 52px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-policy-links {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-policy-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-policy-links a:hover { color: #fff; }

/* =============================================
   HERO PRODUCT IMAGE (desktop only)
   ============================================= */
.hero-product-img {
  position: absolute;
  right: 7%;
  bottom: 0;
  height: 92%;
  z-index: 3;
  pointer-events: none;
}
.hero-product-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(-4px 6px 28px rgba(0,0,0,0.55));
}

/* =============================================
   HAMBURGER + MOBILE MENU
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.mobile-menu a:hover,
.mobile-menu a.active { background: rgba(255,255,255,0.1); }

/* =============================================
   CLEARANCE BANNER
   ============================================= */
.clearance-banner {
  background: #b52025;
  color: #fff;
  text-align: center;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(0,0,0,0.12);
}

/* =============================================
   SALE PRICING
   ============================================= */
.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.price-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.price-sale {
  font-size: 18px;
  font-weight: 900;
  color: #b52025;
}

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: #b52025;
  background: #fde8e6;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Buy It Now Button */
.btn-buy {
  display: block;
  margin-top: 12px;
  padding: 10px 0;
  background: #c0221d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.btn-buy:hover { background: #a01a16; color: #fff; }

/* Product Card Link Button */
.product-card-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  padding: 9px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.18s;
}
.product-card:hover .product-card-link,
.product-card-link:hover {
  background: var(--blue-dark);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-body { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-product-img { display: none; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .collection-hero { min-height: 240px; }
  .hero-content { padding: 36px 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .collection-section { padding: 24px 16px 48px; }
  .filter-group { gap: 6px; }
  .footer-body { grid-template-columns: 1fr 1fr; padding: 32px 16px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-actions { flex-direction: column; }
  .footer-body { grid-template-columns: 1fr; }
}
