/* ==========================================================================
   THE SACRED CODE — Home Page Section Styles
   Ancient Wisdom. Modern Living.
   ========================================================================== */

/* ---------- Hero Section ---------- */
#hero-section {
  position: relative;
  width: 100%;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #3F5B2B;
}

#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
}

#hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(251, 246, 242, 0.40) 0%,
    rgba(251, 246, 242, 0.18) 45%,
    transparent 75%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 0.5s ease;
}

#hero-section.slide-align-right::before {
  background: linear-gradient(
    270deg,
    rgba(251, 246, 242, 0.40) 0%,
    rgba(251, 246, 242, 0.18) 45%,
    transparent 75%
  );
}

#hero-section.slide-align-center::before {
  background: radial-gradient(
    circle at center,
    rgba(251, 246, 242, 0.42) 0%,
    rgba(251, 246, 242, 0.15) 60%,
    transparent 100%
  );
}

#hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 80px;
  max-width: 620px;
  transition: all 0.4s ease;
}

#hero-content.content-align-left,
#hero-content:not(.content-align-right):not(.content-align-center) {
  margin-left: max(0px, calc((100% - 1360px) / 2));
  margin-right: auto;
  text-align: left;
}
#hero-content.content-align-left .hero-desc,
#hero-content:not(.content-align-right):not(.content-align-center) .hero-desc {
  margin-left: 0;
  margin-right: auto;
}

#hero-content.content-align-right {
  margin-left: auto;
  margin-right: max(0px, calc((100% - 1360px) / 2));
  text-align: right;
}
#hero-content.content-align-right .hero-desc {
  margin-left: auto;
  margin-right: 0;
}

#hero-content.content-align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#hero-content.content-align-center .hero-desc {
  margin-left: auto;
  margin-right: auto;
}

#hero-content h1 {
  font-size: 40px;
  color: #6E8D56;
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

#hero-content .hero-sub {
  font-size: 14px;
  color: #6E8D56;
  font-weight: 700;
  font-family: var(--font-family-sans);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

#hero-content .hero-desc {
  font-size: 13px;
  color: #6E8D56;
  font-family: var(--font-family-sans);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 420px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 12px;
  font-family: var(--font-family-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(184, 134, 75, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-btn:hover {
  background: rgba(110, 141, 86, 0.1);
  border-color: #6E8D56;
  color: #6E8D56 !important;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #6E8D56, 0 6px 20px rgba(110, 141, 86, 0.4);
}

.btn-tsc-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-tsc-outline:hover {
  background: rgba(110, 141, 86, 0.1);
  color: #6E8D56 !important;
  border-color: #6E8D56;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #6E8D56, 0 4px 14px rgba(110, 141, 86, 0.25);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.hero-arrow:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-left {
  left: 24px;
}

.hero-arrow-right {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(17, 48, 26, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* ---------- Collections Section ---------- */
#collections-section {
  padding: 60px 24px;
  background: var(--background);
  max-width: 1200px;
  margin: 0 auto;
}

#collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  max-width: 220px;
  width: 100%;
  margin: 0 auto;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: transparent;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(184, 134, 11, 0.16);
}

.collection-card-label {
  font-size: 11.5px;
  font-family: var(--font-family-sans);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #3F5B2B;
  font-weight: 700;
  text-align: center;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.collection-card:hover .collection-card-label {
  color: var(--primary);
}

/* ---------- Featured Artwork Section ---------- */
#featured-art-section {
  padding: 70px 40px;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#featured-art-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
}

#featured-art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

#featured-art-img-col {
  height: 100%;
  min-height: 400px;
  background: var(--secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#featured-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

#featured-art-card:hover #featured-art-img {
  transform: scale(1.04);
}

#featured-art-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-rule {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-rule::after {
  content: "";
  height: 1px;
  width: 40px;
  background: var(--primary);
}

#featured-art-title {
  font-size: 36px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

#featured-art-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  font-family: var(--font-family-sans);
  line-height: 1.7;
  margin-bottom: 24px;
}

#featured-art-price {
  font-size: 26px;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-family-sans);
  margin-bottom: 28px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Best Sellers Section ---------- */
#best-sellers-section {
  --card: #F4E8DC;
  padding: 80px 40px;
  background: var(--background);
  max-width: 1440px;
  margin: 0 auto;
}

#bestsellers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#featured-product {
  display: flex;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

#featured-product-img {
  width: 48%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#featured-product-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
  box-sizing: border-box;
}

#featured-product-info h3 {
  font-size: 22px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

#featured-product-info p {
  font-size: 13px;
  color: var(--muted-foreground);
  font-family: var(--font-family-sans);
  line-height: 1.6;
  margin: 0;
}

#featured-product-info .price {
  font-size: 18px;
  color: var(--foreground);
  font-weight: 700;
  font-family: var(--font-family-sans);
}

#featured-product-info .price .price-compare,
.small-product-actions .price .price-compare {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-foreground);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

#small-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.small-product-card {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  height: 200px;
  width: 100%;
  box-sizing: border-box;
}

.small-product-card img {
  width: 38%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.small-product-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 6px;
  box-sizing: border-box;
}

.best-seller-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 9px;
  font-family: var(--font-family-sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.stars {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 1px;
}

.small-product-info h4 {
  font-size: 15px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.small-product-actions .price {
  font-size: 14px;
  color: var(--foreground);
  font-weight: 700;
  font-family: var(--font-family-sans);
}

.product-icon-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-icon-actions a,
.product-icon-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.product-icon-actions a:hover,
.product-icon-actions button:hover {
  color: #ffffff;
  background: #6E8D56;
  border-color: #6E8D56;
}

/* ---------- Gift Banner / Slider Section ---------- */
#gift-slider-section {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #3F5B2B;
}

#gift-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
}

#gift-slider-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(251, 246, 242, 0.40) 0%,
    rgba(251, 246, 242, 0.18) 45%,
    transparent 75%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 0.5s ease;
}

#gift-slider-section.slide-align-left::before {
  background: linear-gradient(
    90deg,
    rgba(251, 246, 242, 0.40) 0%,
    rgba(251, 246, 242, 0.18) 45%,
    transparent 75%
  );
}

#gift-slider-section.slide-align-center::before {
  background: radial-gradient(
    circle at center,
    rgba(251, 246, 242, 0.42) 0%,
    rgba(251, 246, 242, 0.15) 60%,
    transparent 100%
  );
}

#gift-content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
  max-width: 580px;
  transition: all 0.4s ease;
}

#gift-content.content-align-right,
#gift-content:not(.content-align-left):not(.content-align-center) {
  margin-left: auto;
  margin-right: max(0px, calc((100% - 1360px) / 2));
  text-align: center;
}

#gift-content.content-align-left {
  margin-left: max(0px, calc((100% - 1360px) / 2));
  margin-right: auto;
  text-align: center;
}

#gift-content.content-align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#gift-content h2 {
  font-size: 42px;
  color: #6E8D56;
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.gift-desc {
  font-size: 15px;
  color: #6E8D56;
  font-family: var(--font-family-sans);
  margin-bottom: 28px;
  line-height: 1.6;
}

.gift-arrow,
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.gift-arrow:hover,
.testimonial-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.gift-arrow-left { left: 24px; }
.gift-arrow-right { right: 24px; }
.testimonial-arrow-left { left: 24px; }
.testimonial-arrow-right { right: 24px; }

/* ---------- Testimonials Section ---------- */
#testimonials-section {
  padding: 80px 40px;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#testimonials-grid {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-track {
    display: flex;
    gap: 28px;
    width: 100%;
    transition: transform 0.5s ease;
  }

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  flex: 0 0 calc((100% - 56px) / 3);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.testimonial-quote {
  font-size: 40px;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-card .reviewer {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-family-sans);
  margin-top: 16px;
  font-weight: 700;
}

#testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- Instagram Section ---------- */
#instagram-section {
  padding: 80px 40px;
  background: var(--background);
  max-width: 1440px;
  margin: 0 auto;
}

#instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 190px));
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.instagram-post {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.instagram-post:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  #bestsellers-layout {
    gap: 20px;
  }
  #featured-product-info {
    padding: 24px 20px;
  }
  .small-product-info {
    padding: 14px 16px;
  }
}

@media (max-width: 991px) {
  #hero-section {
    min-height: 380px;
  }
  #hero-content {
    padding: 40px 30px;
    max-width: 100%;
  }
  #hero-content h1 {
    font-size: 32px;
  }
  .hero-btn {
    font-size: 13px;
    padding: 16px 36px;
  }
  .hero-arrow,
  .gift-arrow,
  .testimonial-arrow {
    width: 44px;
    height: 44px;
  }
  #featured-art-grid {
    grid-template-columns: 1fr;
  }
  #featured-art-img-col {
    height: 320px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #featured-art-info {
    padding: 36px 28px;
    text-align: center;
    align-items: center;
  }
  .eyebrow-rule {
    justify-content: center;
  }
  .eyebrow-rule::after {
    display: none;
  }
  .btn-row {
    justify-content: center;
  }
  #gift-slider-section {
    min-height: 340px;
  }
  #gift-content {
    margin: 0 auto;
    padding: 40px 24px;
  }
  #gift-content h2 {
    font-size: 32px;
  }
  .gift-desc {
    font-size: 16px;
  }
  #collections-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 100%;
  }
  .collection-card {
    max-width: 100%;
  }
  .collection-card-label {
    font-size: 13px;
  }
  .testimonial-card {
    flex: 0 0 calc((100% - 28px) / 2);
  }
  .testimonial-quote {
    font-size: 32px;
  }
  #collections-section, #featured-art-section, #best-sellers-section, #testimonials-section, #instagram-section {
    padding: 50px 20px;
  }
  #bestsellers-layout {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  #featured-product {
    flex-direction: column;
  }
  #featured-product-img {
    width: 100%;
    height: 380px;
  }
  #featured-product-info {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  #featured-art-img-col {
    height: 280px;
  }
  .section-title-wrap h2 {
    font-size: 28px;
  }
  .section-title-wrap p {
    font-size: 15px;
  }
  .testimonial-card {
    flex: 0 0 100%;
  }
  .testimonial-quote {
    font-size: 28px;
  }
  .testimonial-card {
    padding: 24px;
  }
  #featured-product-img {
    height: 300px;
  }
  #featured-product-info {
    padding: 24px 20px;
  }
  .small-product-card {
    height: 170px;
  }
  .small-product-info {
    padding: 12px 14px;
  }
  .product-icon-actions a,
  .product-icon-actions button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  #hero-section {
    min-height: 460px;
  }
  #hero-content {
    padding: 40px 24px;
  }
  #hero-content h1 {
    font-size: 30px;
  }
  #hero-content .hero-sub {
    font-size: 14px;
  }
  #hero-content .hero-desc {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .hero-btn {
    font-size: 13px;
    padding: 16px 36px;
  }
  .hero-arrow {
    width: 44px;
    height: 44px;
  }
  .hero-arrow-left { left: 12px; }
  .hero-arrow-right { right: 12px; }

  #hero-section::before {
    background: linear-gradient(
      180deg,
      rgba(251, 246, 242, 0.48) 0%,
      rgba(251, 246, 242, 0.22) 55%,
      transparent 100%
    );
  }
  #gift-slider-section::before {
    background: linear-gradient(
      0deg,
      rgba(251, 246, 242, 0.48) 0%,
      rgba(251, 246, 242, 0.22) 55%,
      transparent 100%
    );
  }

  #collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
  }
  .collection-card {
    max-width: 100%;
  }
  .collection-card-label {
    font-size: 11px;
    letter-spacing: 0.8px;
  }
  .section-title-wrap h2 {
    font-size: 24px;
  }
  .section-title-wrap p {
    font-size: 13px;
  }
  #bestsellers-layout {
    gap: 16px;
  }
  #featured-product-img {
    height: 280px;
  }
  #featured-product-info {
    padding: 20px 16px;
  }
  #featured-product-info h3 {
    font-size: 20px;
  }
  .small-product-card {
    flex-direction: column;
    height: auto;
  }
  .small-product-card img {
    width: 100%;
    height: 220px;
  }
  .small-product-info {
    padding: 16px;
  }
  #instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 150px));
    gap: 14px;
  }
}

@media (max-width: 576px) {
  #gift-slider-section {
    min-height: 440px;
  }
  #gift-content {
    padding: 40px 24px;
    width: 100%;
    max-width: 360px;
  }
  #gift-content h2 {
    font-size: 30px;
  }
  .gift-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .gift-arrow {
    width: 44px;
    height: 44px;
  }
  .testimonial-arrow {
    width: 44px;
    height: 44px;
  }
  .gift-arrow-left { left: 12px; }
  .gift-arrow-right { right: 12px; }
  .testimonial-arrow-left { left: 12px; }
  .testimonial-arrow-right { right: 12px; }
}
