/* =====================================================
   HERO SECTION
===================================================== */

.hero {

    width: 100%;
    height: 100vh;
}

.hero-video {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   PRODUCTS HEADING (WHITE BACKGROUND)
===================================================== */

.products-heading {
    background: #ffffff;
    padding: 10px 0;
    text-align: center;
}



/* =====================================================
   PRODUCTS GRID WRAPPER (BLACK BACKGROUND)
===================================================== */

.products-grid-wrapper {
    background: #fff;
    padding: 0;
}

/* GRID LAYOUT */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 10px 0;
}

/* =====================================================
   PRODUCT CARD (PERFECT SQUARE)
===================================================== */

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #000000;
    padding: 24px 15px;
    border-radius: 10px;
    text-align: center;
}

/* =====================================================
   PRODUCT IMAGE
===================================================== */

.product-image {
    height: 308px;
    width: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
}

.product-image img {
    height: 300px;
    width: auto;
    max-height: 100%;
    transition: opacity 0.4s ease;
    object-fit: cover;
}

/* HOVER IMAGE */
.product-image .hover-img {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
}

.product-card:hover .hover-img,
.product-ingredients-card:hover .hover-img {
    opacity: 1;
}

.product-card:hover img:first-child,
.product-ingredients-card:hover img:first-child {
    opacity: 0;
}

/* =====================================================
   PRODUCT TEXT
===================================================== */


.product-card p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.price {
    display: block;
    font-size: 18px;
    color: #ffffff;
    margin-block: 15px;
    position: relative;
}

.product-card p::after {
    content: "";
    display: block;
    width: 200px;
    height: 2px;
    background: #ffffff;
    margin: 10px auto 0;
}


/* =====================================================
   ADD TO CART BUTTON
===================================================== */

.add-to-cart {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 26px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.add-to-cart:hover {
    background: #c00000;
    border-color: #c00000;
}

/* COMPANY INFO */
.info-heading {
    padding: 20px 0;
    text-align: center;
}

.info-video-section {
    background-color: #000;
    margin-top: 20px;
}

.info-video-section video {
    width: 100%;
    height: auto;
    display: block;
}

.product-image {
    background-color: #000;
}

.ingredients-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 50px;
    margin: 40px 0;
}

.product-ingredients-card {
    height: 100%;
    grid-column: span 5;
    background-color: #000;
}

.ingredients-content {
    grid-column-start: 6;
    grid-column-end: 13;
}

.ingredients-details p {
    margin-top: 15px;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.ingredients-details ul {
    margin: 15px 0;
    font-size: 16px;
    padding-left: 20px;
    line-height: 2;
    opacity: 0.7;
}

.learn-more {
    align-self: flex-start;
    padding: 12px 28px;
    background: #000;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px 0 0 0;
    border: 1px solid transparent;
}

.learn-more:hover {
    background-color: transparent;
    border: 1px solid  #000;
    color: #000;
    transition: 0.4s ease-in-out;
}
.product-ingredients {
  position: relative;
  
}

/* EACH INGREDIENT SECTION */
.ingredients-grid {
    height: 730px;
  position: sticky;
  top: 100px;            /* header height */
  background: #ffffff;  /* MUST be solid */
  isolation: isolate;   /* 🔑 creates new stacking context */
  box-shadow: 0 0 0 1px #fff; /* prevents bleed-through */
}

/* spacing between layers */
.ingredients-grid:not(:first-child) {
  margin-bottom: 40px;
  padding-top: 40px;
}

/* STACK ORDER — IMPORTANT */
.ingredients-grid:nth-of-type(1) { z-index: 1; }
.ingredients-grid:nth-of-type(2) { z-index: 2; }
.ingredients-grid:nth-of-type(3) { z-index: 3; }
.ingredients-grid:nth-of-type(4) { z-index: 4; }

.ingredients-content h3 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ingredients-grid.is-active .ingredients-content h3 {
  opacity: 1;
  transform: translateY(0);
}
.ingredients-grid.is-active .ingredients-content p {
  opacity: 0.7;
}

.ingredients-grid.is-active .ingredients-content ul {
  opacity: 0.7;
}
.blue {
    color: #1A20E6;
}

.black {
    color: #000000;
}

.gold {
    color: #A06F07;
}

.red {
    color: #D21111;
}

.bar {
    height: 4px;
    width: 100%;
    background-color: #000;
    margin-bottom: 40px;
}

.svg {
    display: flex;
    justify-content: center;
}

/* ================= TESTIMONIAL CARD ================= */

/* CORNER BORDERS */

.border-top,
.border-bottom {
    width: 100%;
    height: 30px;
}

.extra-height {
    height: 50px;
}

.border-top {
    top: 0;
    left: 0;
    border-top: 4px solid #c00000;
    border-left: 4px solid #c00000;
    border-right: 4px solid #c00000;
}

.border-bottom {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #c00000;
    border-right: 4px solid #c00000;
    border-left: 4px solid #c00000;
}

/* GRID LAYOUT */
.testimonial-grid {
    grid-template-columns: repeat(8, 1fr);
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 0 0 0;
}

.testimonial-card {
    grid-column: span 2;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.min {
    width: 50px;
    height: auto;
    margin-bottom: 20px;
    fill: #D21111;
}

.testimonial-name {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 400;
    color: var(--heading-color);
}

.testimonial-text {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 2px;
    color: #000;
    margin-top: 15px;
}

/* =====================================================
   LOOP GALLERY
   ===================================================== */


.viewport {
  overflow: hidden;
  padding: 20px 0;

  /* 8 columns */
  width: 100%;

  /* 2 rows */
  height: auto;
}

.track {
  display: grid;

  /* 2 rows */
  grid-template-rows: repeat(2, 300px);
  /* flow horizontally */
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 5px;
  width: max-content;
  will-change: transform;
}

.track img {
  width: 100%;
  height: 300px;
  border-radius: 5px;
  object-fit: fill;
  transition: all 0.3s ease-in-out;
}

.track img:hover {
  transform: scale(1.01);
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
}


.nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 30px;
    z-index: 10;
    background: black;
}
.prev{
    left: 10px;
}
.next{
    right: 10px;
}
/* =====================================================
    FOOTER SECTION
===================================================== */

.footer{
  background-color: #000;
    padding: 50px 0;
    margin: 20px 0 0 0;
}

.footer-grid{
    grid-template-columns: 2fr 1fr 1fr 1fr;
    
}
.footer-card{
    padding: 10px;
    color: #fff;
}

.f-card-heading{
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-card-data{
    margin-bottom:30px;
    font-size: 16px;
}

.contact-email{
    margin-top: 10px;
    gap: 5px;
}
.contact-email span{
    font-size: 13px;
}
.email{
    font-size: 14px;
}
.f-nav-text{
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1.5px;
}
.nav-context ul{
    margin-top: 20px;
}
.f-list-items{
    padding: 10px 0;
}
.f-nav-text {
  position: relative;
}
.email{
    position: relative;
}

.f-nav-text::after, .email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 100%;
  height: 2px;
  background-color: #fff;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.35s ease;
}

.f-nav-text:hover::after, .email:hover::after {
  transform: scaleX(1);
}
.f-nav-text:hover , .email:hover::after{
    opacity: 0.7;
}
.office p, .address p{
    font-size: 15px;
    margin-top: 30px;
    letter-spacing: 2px;
}
.social-list li{
    margin-top: 20px;
}
/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */

/* TABLET */
.inner-hero {
  position: relative;
  overflow: hidden;
}

.inner-hero img {
  width: 100%;
  height: auto;
  display: block;

  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.9;

  transition:
    filter 1.2s ease,
    transform 1.2s ease,
    opacity 1.2s ease;
}

/* Page loaded state */
.page-loaded .inner-hero img {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

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