/* Base */
/* body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;

  margin: 0;
  padding: 0;
  overflow-x: hidden;
} */



html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;          /* fallback */
}


a {
  text-decoration: none;
  color: inherit;
}

/* Promo Banner */
.promo-banner {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

.promo-banner a {
  color: #ffc107;
  font-weight: bold;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 5%;
  background-color: #ffffff;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links a {
  margin: 0 15px;
  color: #000;
  font-weight: 500;
}

.logo img {
  height: 45px;
  margin-bottom: -5px;
}

.nav-icons {
  display: flex;
  align-items: center;
}

.nav-icon {
  height: 25px;
  margin-left: 18px;
  cursor: pointer;
  margin-top: inherit;
}

/* .cart-icon-wrapper {
  position: relative;
  margin-top: 6px;
} */

.cart-icon-wrapper .badges {
  position: absolute;
  top: -1px;
  right: -3px;
  background: #f44336;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}



@media screen and (max-width: 767px) {
  .cart-icon-wrapper .badges {
    position: absolute;
    top: -1px;
    right: -3px;
    background: #f44336;
    color: #fff;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 50%;
  }
}










/* === Carousel Layout === */
.hero-carousel {
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%; /* Will be overridden in JS */
}

.carousel-slide {
  flex-shrink: 0;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 40px 0px;
}


/* Hero Content */
.hero-content {
  background: rgba(0, 0, 0, 0.5); /* Optional overlay */
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
}

.hero-content .highlight {
  color: #ff5722;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
}

.shop-btn {
  background: #ffffff;
  color: #000000;
  padding: 8px 35px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.shop-btn:hover {
  background: #3b82f6;
  color: white;
}

/* === Tablet View === */
@media screen and (min-width: 768px) {
  .carousel-slide {
    flex-direction: row;
    justify-content: space-between;
    padding: 60px 8%;
    text-align: left;
  }

  .hero-content {
    max-width: 600px;
    background: transparent;
    padding: 70px;
  }

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

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

/* === Desktop View === */
@media screen and (min-width: 1025px) {
  .carousel-slide {
    padding: 80px 1px;
  }

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

/* === Mobile Enhancements === */
@media screen and (max-width: 767px) {
  .carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.044);
    z-index: 1;
  }

  .hero-content {
    z-index: 2;
    position: relative;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 35px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-top: 2px;
  }

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


  .shop-btn {
    background: #ffffff;
    color: #000000;
    padding: 8px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
  }
}






/* sub-categories */

.subcategories {
  background-color: #000;
  padding: 5px 10px;
  overflow-x: auto;
}

.subcategory-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.subcategory-wrapper img {
  width: 200px;              /* force same width */
  height: 100px;             /* force same height */
  object-fit: cover;      /* maintains aspect ratio, avoids distortion */
  background-color: #fff;   /* fallback background for transparent images */
  border-radius: 8px;       /* optional: adds soft corners */
  padding: 5px;             /* optional: adds spacing inside */
  flex-shrink: 0;
  scroll-snap-align: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  overflow: hidden;
  padding: -0px;
}

.subcategory-wrapper img:hover {
  opacity: 1;
}


.subcategory-item {
  position: relative;
  display: inline-block;
}

/* Overlay + Text Label */
.subcategory-item::after {
  content: attr(title);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;       /* vertical center */
  justify-content: center;   /* horizontal center */
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  /* padding: 0 10px; */
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.subcategory-wrapper {
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE 10+ */
}

.subcategory-wrapper::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari, Opera */
}


.subcategory-scroll-container {
  position: relative;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 14px;
  padding: 10px;
  cursor: pointer;
  border-radius: 30%;
  display: none; /* Hidden by default */
}

.scroll-btn.left {
  left: 5px;
}

.scroll-btn.right {
  right: 5px;
}

/* Show buttons only on desktop */
@media screen and (min-width: 1024px) {
  .scroll-btn {
    display: block;
  }
}














/* === New Arrivals Section === */
.new-arrivals {
  padding: 10px 5%;
  background-color: #fff;
  margin-top: 15px;
  padding-left: 20px;
  padding-right: 10px;
}

.new-arrivals h2 {
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Carousel Wrapper */
.product-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.product-card {
  flex: 0 0 auto;
  width: 240px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-img {
  width: 100%;
  height: 260px;
  margin-bottom: 15px;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.add-cart-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-cart-btn:hover {
  background-color: #333;
}

.product-info {
  text-align: left;
}

.product-info .rating {
  color: #ffa500;
  font-size: 14px;
  margin-bottom: 5px;
}

.product-info h4 {
  font-size: 16px;
  margin: 5px 0;
  font-weight: 600;
}

.product-info p {
  font-size: 14px;
  color: #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clickable-stars {
  cursor: pointer;
}




/* Ensure the image scales nicely inside the fixed-height box */
.product-img img,
.product-img > picture,
.product-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Tablet & small laptops */
@media (max-width: 768px) {
  /* if your cards are in a grid/flex row, this gives 2 per row */
  .product-card {
    width: calc(50% - 10px);   /* two-up */
    padding: 12px;
    border-radius: 8px;
  }

  .product-img { height: 190px; }

  .badge {
    top: 10px; left: 10px;
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 4px;
  }

  .add-cart-btn {
    padding: 12px;
    font-size: 15px;
    border-radius: 6px;
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .product-info .rating { font-size: 13px; }
  .product-info h4 { font-size: 15px; margin: 4px 0; }
  .product-info p { font-size: 13px; }
}

/* Phones */
@media (max-width: 480px) {
  .product-card {
    width: 40%;               /* single column */
    max-width: 100%;
    padding: 12px;
    border-radius: 10px;
    /* nice snap if the parent is a horizontal scroller */
    scroll-snap-align: start;
  }

  .product-img { height: 170px; }

  .add-cart-btn {
    padding: 12px;
    font-size: 14px;
  }

  /* Optional: make a horizontal scroller row if you use one */
  .product-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .product-scroller::-webkit-scrollbar { height: 0; }
}




.new-arrivals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  flex-wrap: wrap; /* Allow wrap on smaller screens */
  gap: 10px;
}

.new-arrivals-header h2 {
  font-size: 18px;
  margin: 0;
  flex: 1 1 auto;
}

.new-arrivals-header .more-link {
  font-size: 14px;
  text-decoration: none;
  color: #9c27b0;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.new-arrivals-header .more-link:hover {
  color: #000;
}

.more-link i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.more-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .new-arrivals-header {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 8px;
  }

  .new-arrivals-header h2 {
    font-size: 16px;
  }

  .new-arrivals-header .more-link {
    font-size: 13px;
    margin-top: 5px;
  }
}



.rating-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.rating-modal.hidden {
  display: none;
}

.rating i {
  color: rgb(196, 168, 6);
  margin-right: 2px;
}




/* rating modal */
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  width: 70%;
  max-width: 400px;
  position: relative;
  text-align: center;
  padding-top: 8px;
}

.modal-content textarea {
  width: 100%;
  margin-top: 15px;
  padding: 1px;
  resize: vertical;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.stars i {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}

.stars i.selected {
  color: gold;
}

/* Example: only visible when .active is present */
.alert-modal-overlay {
  display: none;
  /* other styles... */
}

.alert-modal-overlay.active {
  display: flex; /* or block */
  justify-content: center;
  align-items: center;
}





/* Featured / “1 big left + 2 stacked right” */
.featured-products {
  padding: 60px 5%;
  background-color: #f6f7f9;
  padding-top: 35px;
  padding-bottom: 35px;
}

.featured-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;           /* big left, slim right */
  grid-template-areas:
    "main side1"
    "main side2";
  grid-auto-rows: 240px;                    /* row height (increase to make overall taller) */
  gap:20px;
}

/* cards */
.featured-item{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;                        /* keep overlay above image */
}

/* placement */
.featured-large { grid-area: main;  min-height: 480px; }   /* ← controls the big tile height */
.featured-side1 { grid-area: side1; }
.featured-side2 { grid-area: side2; }

/* image + overlay */
.featured-item img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}

.featured-item::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(0,0,0,.45);
  z-index:1;
}

.featured-text{
  position:relative; z-index:2;
  color:#fff; text-align:center; padding:20px;
}

.featured-text h3{ font-size:24px; font-weight:600; margin-bottom:2px; }
.featured-text a{ font-size:15px; color:#fff; font-weight:500; text-decoration:none; border-bottom:1px solid #fff; padding-bottom:2px; transition:.3s; }
.featured-text a:hover{ color:#ddd; border-color:#ddd; }

/* Mobile: collapse to single column */
@media (max-width: 768px){
  .featured-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side1"
      "side2";
    grid-auto-rows: 210px;
  }
  .featured-large{ min-height: 210px; }
}








/* Hot Deals Section */

.hot-deals {
  padding: 40px 5%;
  background-color: #fff;
}

.hot-deals h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card */
.hot-item {
  background-color: #f3f4f6;
  border-radius: 10px;
  padding: 8px;
  position: relative;
  transition: transform 0.3s ease;
}

.hot-item:hover {
  transform: translateY(-5px);
}

.hot-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.hot-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.hot-item .rating {
  color: #ffa500;
  font-size: 14px;
  margin-bottom: 5px;
}

.hot-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.hot-item p {
  font-size: 14px;
  color: #444;
  margin: 0;
}

/* Responsive: 2 per row on mobile */
@media screen and (max-width: 768px) {
  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }


}



.hot-deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0px;
  margin-bottom: 20px;
}

.hot-deals-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.view-all-link {
  font-size: 14px;
  font-weight: 500;
  color: #9c27b0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s ease;
}

.view-all-link:hover {
  color: #6b1786;
  border-color: #6b1786;
}


/* ✅ Mobile Styling */
@media screen and (max-width: 768px) {
  .hot-deals-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-top: -10px;
  }

  .hot-deals-header h2 {
    font-size: 16px;
    font-weight: 600;
  }

  .view-all-link {
    font-size: 13px;
  }

}




/* === Promo Banner Section Enhancements === */
/* === Promo Banner Section Enhancements === */

.promo-banner-section {
  background-color: #F44336;
  /* padding: 60px 5%; */
}

.promo-banner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Image Block */
.promo-image {
  flex: 1;
  height: 100%; /* Take full height of the container */
  overflow: hidden;
}



.promo-image img {
  width: 100%;
  max-width: 750px;
  height: 100%;
  object-fit: cover;  /* Crop edges but fill full container */
  display: block;
}

/* Text Block */
.promo-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
}

.promo-label {
  font-weight: bold;
  color:rgb(255, 255, 255);
  text-transform: uppercase;
  font-size: 14px;
}

.promo-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #111;
}

.promo-sub {
  font-size: 16px;
  color: #444;
  margin: 5px 0 15px;
}

.promo-timer-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  margin-top: -15px
}

.promo-timer {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  max-width: 500px
}

.promo-timer div {
  background-color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex: 1 1 60px;
}

.promo-timer span {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

.promo-timer p {
  font-size: 12px;
  margin: 0;
  color: #666;
}

.promo-btn {
  background-color: #000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.promo-btn:hover {
  background-color: #333;
}

/* 📱 Responsive Mobile Layout */
@media screen and (max-width: 768px) {
  .promo-banner-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* padding: 20px; */
  }

  .promo-content {
    padding: 0;
    align-items: center;
  }

  .promo-timer {
    justify-content: center;
  }

  .promo-btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px
  }
}


.promo-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.promo-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}


.promo-banner-container {
  flex: 0 0 100%;
  box-sizing: border-box;
}


.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #111;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.promo-nav.prev {
  left: 20px;
}

.promo-nav.next {
  right: 20px;
}

@media screen and (max-width: 768px) {
  .promo-nav {
    font-size: 20px;
    padding: 8px;
    top: auto;
    bottom: 10px;
    transform: none;
  }

  .promo-nav.prev {
    left: 10px;
  }

  .promo-nav.next {
    right: 10px;
  }
}

/* *,
*::before,
*::after {
  box-sizing: border-box;
} */


.promo-timer-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  margin-top: -15px; /* <-- semicolon added */
}


.promo-content {
  max-width: 600px;
}




/* shipping and phone */

.features-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #f6f7f9;
  padding: 40px 5%;
  gap: 20px;
}

.feature-box {
  background-color: #dfe4e8cc;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box .icon {
  margin-bottom: 15px;
}

.feature-box .icon i {
  font-size: 32px;
  color: #111;
}

.feature-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.feature-box p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

@media screen and (max-width: 992px) {
  .features-section {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 per row */
  }
}

@media screen and (max-width: 600px) {
  .features-section {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 per row */
    gap: 16px;
    padding: 30px 4%;
  }

  .feature-box {
    padding: 20px 10px;
  }

  .feature-box h4 {
    font-size: 16px;
  }

  .feature-box p {
    font-size: 13px;
  }

  .feature-box .icon i {
    font-size: 28px;
  }
}




.hero-content h1{
  white-space: normal;      /* allow wrapping */
  word-break: break-word;   /* break long words if needed */
  max-width: 24ch;          /* tune for your layout; remove if you want wider */
}

.hero-content p{
  max-width: 40ch;          /* keep subtitle measure readable */
}






/* ===== Uniform image boxes for product cards ===== */

/* Shop grid cards */
.shop-item .thumb-link{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio: 1 / 1;          /* perfect square */
  overflow:hidden;
  border-radius: 8px;
  background:#fff;              /* fallback bg */
}
.shop-item .thumb-link img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;             /* crop to fill */
  display:block;
}

/* Featured (HOT) cards */
.hot-item .hot-thumb{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  border-radius: 10px;
  background:#fff;
}
.hot-item .hot-thumb img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

/* Optional: slightly taller image box on small screens */
@media (max-width: 480px){
  .shop-item .thumb-link,
  .hot-item .hot-thumb { aspect-ratio: 5 / 5; }  /* 4:5 portrait */
}

/* Fallback for very old browsers without aspect-ratio */
.shop-item .thumb-link::before,
.hot-item .hot-thumb::before{
  content:"";
  display:block;
  padding-top:100%; /* square; overridden by aspect-ratio when supported */
}
@media (max-width:480px){
  .shop-item .thumb-link::before,
  .hot-item .hot-thumb::before{ padding-top:125%; } /* 4:5 */
}














