
/* HERO */
.products-hero{
  padding:100px 3rem 60px;
  background:linear-gradient(135deg,#ffffff,#f57d0d);
  color:#535353;
  
}
.products-hero h1{
  font-size:2.8rem;
  font-weight:800;
  margin-top: 25px;
}
.products-hero p{
  max-width:720px;
  font-weight: bold;
  color:#444343;
  margin-top:.8rem;
}

/* LAYOUT */
.products-wrapper{
  position: relative; /* IMPORTANT */
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 80px 3rem;
  background: #f7f7f7;
  overflow: hidden;
}

.view-cta{
  margin-top:.4rem;
  font-size:.75rem;
  font-weight:700;
  color:#ff7a00;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  letter-spacing:.3px;
}

.view-cta span{
  transition:transform .25s ease;
}

.product-item:hover .view-cta span{
  transform:translateX(6px);
}


.products-main{
  background:#fff;
  border-radius:22px;
  padding:2rem;
}

/* SIDEBAR */
.products-sidebar{
  position:sticky;
  top:100px;
}
.products-sidebar h3{
  font-size:1.2rem;
  margin-bottom:1rem;
}
.category-btn{
  width:100%;
  background:#fff;
  border:1px solid #eee;
  padding:1rem;
  margin-bottom:.8rem;
  border-radius:12px;
  text-align:left;
  cursor:pointer;
  font-weight:600;
  transition:.3s;
}
.category-btn:hover,
.category-btn.active{
  border-color:#ff7a00;
  background:rgba(255,122,0,0.05);
}

/* PRODUCTS GRID */
.products-content{
  display:none;
  animation:fadeUp .5s ease forwards;
}
.products-content.active{display:block}

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
}
.product-item{
  background:#fff;
  border-radius:18px;
  padding:1.3rem;
  border:1px solid #eee;
  transition:.35s;
  position:relative;
  display:flex;
  gap:1.2rem;
  align-items:center;
   cursor:pointer;
}

.product-item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:#ff7a00;
  opacity:0;
  transition:.35s;
  border-radius:18px 0 0 18px;
}

.product-item:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.product-item:hover::before{
  opacity:1;
}

/* IMAGE */
.product-thumb{
  width:80px;
  height:80px;
  border-radius:14px;
  overflow:hidden;
  flex-shrink:0;
}

.product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s ease;
}

.product-item:hover .product-thumb img{
  transform:scale(1.08);
}

/* TEXT */
.product-info h4{
  font-size:1.05rem;
  margin-bottom:.35rem;
  font-weight:600;
  color:#111;
}

.product-info span{
  font-size:.85rem;
  color:#666;
}


/* CTA */
.products-cta{
  background:#5c5c5c;
  color:#fff;
  text-align:center;
  padding:80px 2rem;
}
.products-cta h2{
  font-size:2.2rem;
  font-weight:800;
}
.products-cta a{
  display:inline-block;
  margin-top:1.5rem;
  background:#ff7a00;
  color:#fff;
  padding:1rem 2.2rem;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
}

/* ANIM */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

/* =========================================================
   PRODUCTS PAGE - RESPONSIVE
   Desktop design remains unchanged
   ========================================================= */


/* ================= TABLET ================= */

@media (max-width: 900px) {

  .products-wrapper {
    grid-template-columns: 1fr;
    padding: 60px 2rem;
  }

  .products-sidebar {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: .8rem;
  }

  .products-sidebar h3 {
    margin-bottom: .5rem;
  }

}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

  /* ---------------------------------------------------------
     HERO
     --------------------------------------------------------- */

  .products-hero {
    padding: 70px 1.2rem 42px;
    text-align: center;
  }

  .products-hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .products-hero p {
    max-width: 100%;
    font-size: .9rem;
    line-height: 1.55;
    margin-top: .8rem;
  }


  /* ---------------------------------------------------------
     MAIN LAYOUT
     --------------------------------------------------------- */

  .products-wrapper {
    display: block;
    padding: 35px 1rem 45px;
    overflow: hidden;
  }


  /* ---------------------------------------------------------
     CATEGORY AREA
     --------------------------------------------------------- */

  .products-sidebar {
    position: relative;
    top: auto;

    display: flex;
    flex-wrap: nowrap;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    gap: .7rem;

    padding: 55px 0 12px;

    margin-bottom: 1.5rem;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .products-sidebar::-webkit-scrollbar {
    display: none;
  }


  /* CATEGORY HEADING */

  .products-sidebar h3 {
    position: absolute;

    top: 0;
    left: 0;

    margin: 0;

    font-size: 1.2rem;
    line-height: 1.15;

    color: #111;

    z-index: 2;
  }


  /* SWIPE INDICATOR */

  .products-sidebar::after {
    content: "Swipe to explore →";

    position: absolute;

    right: 0;
    bottom: -1px;

    font-size: .68rem;
    font-weight: 600;

    color: #999;

    background: #f7f7f7;

    padding-left: 12px;

    pointer-events: none;
  }


  /* CATEGORY BUTTONS */

  .category-btn {
    flex: 0 0 auto;

    width: auto;
    min-width: 155px;

    margin: 0;

    padding: .75rem .9rem;

    font-size: .82rem;

    line-height: 1.3;

    border-radius: 10px;

    white-space: normal;

    text-align: left;
  }


  .category-btn:hover,
  .category-btn.active {
    border-color: #ff7a00;
    background: rgba(255, 122, 0, 0.05);
  }


  /* ---------------------------------------------------------
     MAIN PRODUCT CONTAINER
     --------------------------------------------------------- */

  .products-main {
    width: 100%;

    padding: 1rem;

    border-radius: 16px;

    box-sizing: border-box;
  }


  /* ---------------------------------------------------------
     PRODUCT GRID
     --------------------------------------------------------- */

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }


  /* ---------------------------------------------------------
     PRODUCT CARD
     --------------------------------------------------------- */

  .product-item {
    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    gap: .8rem;

    padding: 1rem;

    box-sizing: border-box;
  }


  /* ---------------------------------------------------------
     PRODUCT IMAGE
     --------------------------------------------------------- */

  .product-thumb {
    width: 100%;
    height: 160px;

    border-radius: 12px;
  }


  .product-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }


  /* ---------------------------------------------------------
     PRODUCT TEXT
     --------------------------------------------------------- */

  .product-info {
    width: 100%;
  }

  .product-info h4 {
    font-size: 1rem;

    line-height: 1.35;

    margin-bottom: .35rem;
  }

  .product-info span {
    font-size: .8rem;

    line-height: 1.5;
  }


  /* ---------------------------------------------------------
     VIEW PRODUCT
     --------------------------------------------------------- */

  .view-cta {
    font-size: .78rem;

    margin-top: .45rem;
  }


  /* ---------------------------------------------------------
     CTA
     --------------------------------------------------------- */

  .products-cta {
    padding: 50px 1rem;
  }

  .products-cta h2 {
    font-size: 1.6rem;

    line-height: 1.3;
  }

  .products-cta a {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: .9rem 1rem;

    font-size: .9rem;

    border-radius: 10px;
  }

}


/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {

  .products-hero {
    padding: 60px 1rem 38px;
  }

  .products-hero h1 {
    font-size: 1.65rem;
  }

  .products-hero p {
    font-size: .85rem;
  }


  .products-wrapper {
    padding: 30px .8rem 40px;
  }


  /* CATEGORY SECTION */

  .products-sidebar {
    padding-top: 52px;
    margin-bottom: 1.2rem;
  }

  .products-sidebar h3 {
    font-size: 1.15rem;
  }


  .category-btn {
    min-width: 145px;

    padding: .7rem .8rem;

    font-size: .78rem;
  }


  .products-sidebar::after {
    font-size: .62rem;
  }


  /* PRODUCT CONTAINER */

  .products-main {
    padding: .8rem;

    border-radius: 15px;
  }


  /* PRODUCT CARD */

  .product-item {
    padding: .85rem;

    border-radius: 15px;
  }


  .product-thumb {
    height: 140px;

    border-radius: 11px;
  }


  .product-info h4 {
    font-size: .95rem;
  }

  .product-info span {
    font-size: .76rem;
  }


  .view-cta {
    font-size: .75rem;
  }


  /* CTA */

  .products-cta {
    padding: 45px .9rem;
  }

  .products-cta h2 {
    font-size: 1.45rem;
  }

}
