@import url('base.css');

/* ========================
   Full-Width Hero
   ======================== */
.hero-full {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 4rem 2rem 2rem 2rem;
  max-width: 800px;
  margin-top: 10vh;
}

.hero-content .hero-tagline {
  display: block;
  font-family: 'HelveticaNeueBold', Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 4.5rem;
  opacity: 1;
  letter-spacing: -0.05em;
}

.hero-content h1 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}

.hero-content>p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  transform: translateY(-5vh);
}

/* ========================
   Buttons (Updated)
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Times New Roman, serif;
  font-weight: 500;
}

.primary-btn {
  background-color: #000;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: Times New Roman, serif;
  font-weight: 300;
  padding: 0.6rem 2rem;
}

.primary-btn:hover {
  background-color: transparent;
  border: 1px solid #fff;
}

.outline-btn {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.outline-btn:hover {
  background-color: #EFEEEA;
  color: #1a1a1a;
  border-color: #fff;
}

.text-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  padding: 0;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.text-btn:hover {
  opacity: 0.7;
}

/* ========================
   Section Labels
   ======================== */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: none;
  color: #888;
  margin-bottom: 0.8rem;
}

.section-header-center {
  text-align: left;
  margin-bottom: 3rem;
}

.section-header-center h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
}

/* ========================
   Categories Grid
   ======================== */
.categories {
  padding: 5rem 1.5rem;
  background-color: #EFEEEA;
}

.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  display: block;
  text-align: center;
}

.category-image {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1rem;
  max-width: 300px;
  /* Resize images smaller */
  margin-left: auto;
  margin-right: auto;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #1a1a1a;
}

/* ========================
   New In Section
   ======================== */
.new-in {
  padding: 5rem 1.5rem;
  background-color: #EFEEEA;
}

.new-in-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.new-in-image img {
  width: 100%;
  height: auto;
}

.new-in-content {
  padding: 2rem 0;
}

.new-in-content h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.new-in-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #444;
}

.new-in-content .secondary-text {
  color: #666;
  margin-bottom: 2rem;
}

.new-in .section-label {
  letter-spacing: 0;
}

/* ========================
   Collections Grid
   ======================== */
.collections {
  padding: 5rem 1.5rem;
  background-color: #EFEEEA;
}

.collections-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  height: 600px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.collection-card.large {
  grid-row: span 2;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.collection-overlay span {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: none;
}

/* ========================
   Featured Products
   ======================== */
.featured {
  padding: 5rem 1.5rem;
  background-color: #EFEEEA;
}

.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background: #fff;
  text-align: center;
}

.product-image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.product-details h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: calc(0.4rem - 4px); /* reduced gap by 4px as requested */
}

.product-price {
  font-size: 0.9rem;
  color: #666;
}

/* Nudge product price slightly upward for better visual spacing */
.product-price {
  display: inline-block;
  transform: translateY(-3%);
}

.view-all-wrap {
  text-align: center;
  margin-top: 3rem;
}

.view-all-wrap .outline-btn {
  color: #1a1a1a;
  border-color: #1a1a1a;
  letter-spacing: 0;
}

.featured .section-label {
  letter-spacing: 0;
}

.view-all-wrap .outline-btn:hover {
  background-color: #1a1a1a;
  color: #fff;
}

/* ========================
   Testimonial
   ======================== */
.testimonial {
  padding: 6rem 1.5rem;
  background-color: #EFEEEA;
}

.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: Times New Roman, serif;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #333;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0;
  color: #888;
}

/* ========================
   About Preview
   ======================== */
.about-preview {
  padding: 5rem 1.5rem;
  background-color: #EFEEEA;
}

.about-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-content h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-preview-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-preview-image img {
  width: 100%;
  height: auto;
}

.about-preview .section-label {
  letter-spacing: 0;
}

.about-preview .text-btn {
  letter-spacing: 0;
}

/* ========================
   Newsletter
   ======================== */
.newsletter {
  padding: 5rem 1.5rem;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.newsletter p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  max-width: 300px;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .primary-btn {
  background-color: #EFEEEA;
  color: #1a1a1a;
  border-color: #fff;
}

.newsletter-form .primary-btn:hover {
  background-color: transparent;
  color: #fff;
}

/* ========================
   Footer (Updated)
   ======================== */
footer {
  background-color: #EFEEEA;
  border-top: none;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #1a1a1a;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-links-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: none;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #1a1a1a;
}

.footer-bottom {
  border-top: 1px solid #e5e0da;
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collections-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .collection-card.large {
    grid-row: span 1;
  }

  .collection-card {
    aspect-ratio: 4/3;
  }
}

/* Desktop alignment tweaks: ensure category images align with other section images */
@media (min-width: 1025px) {
  /* Remove auto-centering so left/right edges align with grid columns */
  .categories-grid .category-image {
    margin-left: 0;
    margin-right: 0;
  }

  /* Left category: ensure it sits flush to the left column */
  .categories-grid .category-card:nth-child(1) .category-image {
    max-width: none;
    width: 100%;
  }

  /* Middle category: keep its existing visual position (small image) */
  .categories-grid .category-card:nth-child(2) .category-image {
    max-width: none;
    width: 70%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Right category: fill its column so its right edge aligns with featured images */
  .categories-grid .category-card:nth-child(3) .category-image {
    max-width: none;
    width: 100%;
  }
}

/* Make all three category images the same visual size on desktop while preserving left/right alignment */
@media (min-width: 1025px) {
  .categories-grid .category-image {
    width: 360px; /* set a consistent visual width */
    height: 300px; /* consistent visual height */
    max-width: none;
    overflow: hidden;
  }

  .categories-grid .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Positioning: left image flush left, middle centered, right flush right */
  .categories-grid .category-card:nth-child(1) .category-image {
    margin-left: 0;
    margin-right: auto;
  }

  .categories-grid .category-card:nth-child(2) .category-image {
    margin-left: auto;
    margin-right: auto;
  }

  .categories-grid .category-card:nth-child(3) .category-image {
    margin-left: auto;
    margin-right: 0;
  }
}

/* Mobile: stack category cards vertically and add horizontal padding to home sections (except hero) */
@media (max-width: 1024px) {
  .categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .categories-grid .category-card {
    width: 100%;
    display: block;
  }

  .categories-grid .category-image {
    width: 100% !important;
    max-width: none;
    height: 280px;
    margin: 0 0 0.75rem 0;
  }

  .categories-grid .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Increase horizontal padding for all main sections except the full-width hero */
  .site-wrapper main > section:not(.hero-full) {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .hero-full {
    height: 100vh;
    min-height: 500px;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content>p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .categories {
    padding: 4rem 1rem;
  }

  .categories-grid {
    gap: 3rem; /* increased gap between category cards on mobile */
  }

  .category-title {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  /* Make category images full-width on small screens while keeping a fixed visual height */
  .category-image {
    max-width: none;
    width: 100%;
    height: 300px; /* preserve current visual height */
    aspect-ratio: auto;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .new-in-inner,
  .about-preview-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .new-in {
    padding: 4rem 1rem;
  }

  .new-in-content h2 {
    font-size: 2rem;
  }

  .new-in-image {
    order: -1;
  }

  .new-in-content {
    display: contents;
  }

  .new-in-content h2 {
    order: -2;
    margin-bottom: 1rem;
  }

  .collections {
    padding: 4rem 1rem;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .collection-card {
    aspect-ratio: 16/9;
  }

  .featured {
    padding: 4rem 1rem;
  }

  .section-header-center h2 {
    font-size: 1.8rem;
  }

  .testimonial {
    padding: 4rem 1rem;
  }

  .testimonial blockquote {
    font-size: 1.2rem;
  }

  .about-preview {
    padding: 4rem 1rem;
  }

  .about-preview-inner {
    gap: 2rem;
  }

  .about-preview-content h2 {
    font-size: 1.8rem;
  }

  .newsletter {
    padding: 4rem 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .newsletter h2 {
    font-size: 1.7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1rem;
    text-align: left;
  }

  /* Redesigned Brand Section */
  .footer-brand-section {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }

  .footer-logo {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }

  .footer-tagline {
    margin-bottom: 0;
    max-width: none;
    font-size: 0.85rem;
    line-height: 1.5;
    padding-right: 0.5rem;
  }

  .footer-social {
    align-self: center;
  }

  .footer-links-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input {
    max-width: 100%;
    width: 100%;
  }

  .newsletter-form .primary-btn {
    width: 100%;
  }

  .newsletter {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
  }
}

@media (max-width: 480px) {
  .hero-full {
    height: 100vh;
    min-height: 400px;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-tagline {
    font-size: 0.75rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 3rem; /* larger vertical spacing for single-column mobile layout */
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-image {
    max-width: none;
    width: 100%;
    height: 280px; /* slightly shorter on very small screens */
    aspect-ratio: auto;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .product-card {
    max-width: 100%;
  }

  .product-details h3 {
    font-size: 1rem;
    /* Smaller text for 2-column */
  }

  .product-price {
    font-size: 0.85rem;
  }

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