/* Hero Section */
.hero {
  height: 550px;
  background-size: cover;
  display: flex;
  background-image: url("/static/images/perfume-3.jpg");
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.1);
  }
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.golden-btn {
  display: inline-block;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.products-grid {
  margin: 100px 20px 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}



.product-price {
  color: #d4af37;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Brands Section */
 .brands {
  padding: 80px 5%;
  background-color: #f9f9f9;
  text-align: center;
}

.brands-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.brand-logo {
  width: 150px;
  height: 100px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-5px);
}

.brand-logo img {
  max-width: 80%;
  max-height: 70%;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.card {
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}

.qty-input{
    width: 10%;
}


/* Featured Products */
 .featured-products {
  padding: 80px 5%;
  background-color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: #333;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #d4af37;
  margin: 15px auto;
}


.product-card {
  background: var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 250px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-info {
  background-color: var(--primary-color);
  padding: 20px;
  text-align: center;
}

.product-name {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.product-price {
  color: #d4af37;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Brands Section */
 .brands {
  padding: 80px 5%;
  background-color: #f9f9f9;
  text-align: center;
}

.brands-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.brand-logo {
  width: 150px;
  height: 100px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(-5px);
}

.brand-logo img {
  max-width: 80%;
  max-height: 70%;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.card {
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}

.qty-input{
    width: 10%;
}

/* Messages */
 .messages {
  list-style: none;
  padding: 15px;
  margin: 20px 5%;
  border-radius: 5px;
  background: #f8d7da;
  color: #721c24;
} 

/* Responsive Design */
@media(max-width: 768px) {
  .header-content {
      flex-direction: column;
      gap: 15px;
    }
  
  nav {
      flex-wrap: wrap;
      justify-content: center;
    }
  
  .hero h2 {
      font-size: 2.5rem;
    } 
  
  .brands-grid {
      gap: 20px;
    }
  
  .brand-logo {
      width: 120px;
      height: 80px;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 250px 1fr;
  height: 365px; 
  margin-bottom: 100px;
}

.item {
  background: var(--primary-color);
  color: black;
  font-size: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item img {
  width: 100%;
  height: auto;
}

.col-heading {
  writing-mode: vertical-rl;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.col-heading {
  transform: rotate(180deg);
  transform-origin: center; 
  font-size: 66px;
  font-weight: bold;
  color: #333;
  line-height: 80px;
}


.nested-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
}


.nested-item {
  padding: 5px;
  background: var(--accent-color);
  color: 333;
  font-size: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.golden-btn {
  background: linear-gradient(45deg, #b8860b, #ffd700, #daa520);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);


  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.golden-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg, 
    rgba(255, 255, 255, 0.6), 
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
}


.golden-btn:hover::before {
  left: 125%;
  transition: left 0.8s ease-in-out;
}


.golden-btn:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.try-fresh{
  font-weight: 400;
}

.blossom{
  font-weight: 900;
  letter-spacing: 2px;
}

.container-x {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 50px;
      gap: 40px;
    }

    .left {
      flex: 1.5;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    .left img {
      width: 250px;
      border-radius: 5px;
      box-shadow: 0px 8px 15px rgba(0,0,0,0.15);
      position: absolute;
    }

    .left img:nth-child(1) {
      border: 2px solid red;
      left: 10px;
      z-index: 2;

    }

    .left img:nth-child(2) {
      border: 2px solid green;
      left: 240px;
      z-index: 1;
      transform: scale(1.5);
    }

    .right {
      flex: 1;
      padding: 20px;
    }

    .subtitle {
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 15px;
    }

    .title {
      font-size: 50px;
      line-height: 1.2;
      font-weight: 400;
      margin-bottom: 20px;
    }

    .desc {
      font-size: 16px;
      line-height: 1.6;
      color: #444;
      margin-bottom: 30px;
      max-width: 400px;
    }

    .content-btn {
      display: inline-block;
      background: #000;
      color: #fff;
      padding: 15px 30px;
      text-decoration: none;
      font-weight: bold;
      border-radius: 4px;
      transition: 0.3s ease;
    }

    .content-btn:hover {
      background: #333;
    }


    @media(max-width: 900px) {
      .container-x {
        flex-direction: column;
        text-align: center;
      }

      .left {
        margin-bottom: 40px;
      }

      .left img {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin: 10px;
      }

      .right .title {
        font-size: 36px;
      }
    }

    /* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 40px 20px 20px;
  position: relative;
}

.filter-toggle {
  font-size: 14px;
  padding: 10px 20px;
}

/* Filter Panel */
.filter-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 50px;
  left: 0;
  width: 250px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 100;
}

.filter-panel.active {
  display: flex;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.price-input {
  width: 45%;
  padding: 6px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.sort-select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Responsive */
@media(max-width: 768px) {
  .filter-panel {
    width: 90%;
  }
}

/* ===== Mobile Optimization ===== */

/* Hero Section */
@media(max-width: 768px) {
    .hero {
        height: 400px;
        background-size: cover;
        padding: 0 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 90%;
    }

    .golden-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Products Grid */
@media(max-width: 768px) {
    .products-grid {
        margin: 50px 10px;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-card {
        padding: 10px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
    }

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

/* Brands Section */
@media(max-width: 768px) {
    .brands {
        padding: 50px 5%;
    }

    .brands-grid {
        gap: 20px;
    }

    .brand-logo {
        width: 100px;
        height: 70px;
    }
}

/* Grid Section (Try Fresh / Blossom) */
@media(max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        height: auto;
        margin-bottom: 50px;
    }

    .item, .nested-item {
        padding: 15px;
        font-size: 16px;
    }

    .col-heading {
        font-size: 36px;
        line-height: 1.2;
        writing-mode: horizontal-tb;
        transform: none;
    }
}

/* Right & Left Section */
@media(max-width: 900px) {
    .container-x {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .left {
        margin-bottom: 30px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .left img {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 150px;
        margin: 5px;
    }

    .right .title {
        font-size: 32px;
    }

    .right .desc {
        max-width: 100%;
        font-size: 14px;
    }
}

/* Filter Bar & Panel */
@media(max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 20px 10px 10px;
    }

    .filter-panel {
        width: 90%;
        top: 60px;
        left: 5%;
    }

    .price-input {
        width: 45%;
        margin: 5px 0;
    }

    .sort-select {
        width: 100%;
        margin-top: 5px;
    }
}

/* Messages Section */
@media(max-width: 768px) {
    .messages {
        margin: 10px 5%;
        font-size: 14px;
        padding: 10px;
    }
}


@media(max-width: 768px) {
.left img:nth-child(2) {
    border: 2px solid green;
    left: 0;
    z-index: 2;
    transform: scale(1.5);
    width: 35%;
}

.left img:nth-child(2) {
  left: -16px;
}
}