/* InfinitySwirl - Premium Ice Cream Makers
   Brand Colors:
   - Primary: #1a1a2e (midnight blue)
   - Accent: #e94560 (coral pink)
   - Light: #f5f5f7
   - Rose Gold: #b76e79
   - Ocean Mist: #5fb3b3
   - Sunset Orange: #ff7849
*/

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

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --light: #f5f5f7;
  --rose-gold: #b76e79;
  --ocean-mist: #5fb3b3;
  --sunset-orange: #ff7849;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --border: #e0e0e0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.header {
  background: var(--primary);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

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

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--white);
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #d63a52;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.section-light {
  background: var(--light);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-image {
  background: linear-gradient(135deg, var(--light) 0%, #e8e8ea 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Retailers */
.retailer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.retailer-logo {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Store Locator */
.store-search {
  max-width: 500px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 1rem;
}

.store-search input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.store-search input:focus {
  border-color: var(--accent);
}

/* Store List */
.store-list {
  max-width: 800px;
  margin: 0 auto;
}

.store-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.store-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.store-address {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.store-phone {
  color: var(--accent);
  font-weight: 500;
}

.store-hours {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.inventory-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.inventory-badge.low {
  background: #fff3e0;
  color: #e65100;
}

.inventory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.inventory-item:last-child {
  border-bottom: none;
}

.inventory-product {
  font-weight: 500;
}

.inventory-color {
  font-size: 0.85rem;
  color: var(--text-light);
}

.inventory-stock {
  text-align: right;
}

.inventory-qty {
  font-weight: 600;
  color: #2e7d32;
}

.inventory-qty.low {
  color: #e65100;
}

.inventory-price {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* City Links */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.city-link {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.city-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.city-link h3 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.city-link span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.product-gallery {
  background: var(--light);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}

.product-details h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-details .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-details .desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.color-options {
  margin-bottom: 2rem;
}

.color-options h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.color-swatches {
  display: flex;
  gap: 0.5rem;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
}

.swatch.active {
  border-color: var(--primary);
}

.swatch.black { background: #1a1a1a; }
.swatch.white { background: #f5f5f5; border: 3px solid var(--border); }
.swatch.rose-gold { background: var(--rose-gold); }
.swatch.ocean-mist { background: var(--ocean-mist); }
.swatch.sunset-orange { background: var(--sunset-orange); }

/* Features */
.features {
  list-style: none;
  margin-bottom: 2rem;
}

.features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: bold;
}

/* Reviews */
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffc107;
  font-size: 1.25rem;
}

.rating-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-light);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 2rem;
  background: var(--light);
  font-size: 0.9rem;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  color: var(--text);
  margin: 0 0.5rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.about-content h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Support Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-card h3 {
  color: var(--primary);
  margin: 1rem 0 0.5rem;
}

.contact-icon {
  font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
