:root {
  --bg:       #0d0d0d;
  --surface:  #141414;
  --card:     #1a1a1a;
  --border:   rgba(255,255,255,0.07);
  --card-glass: rgba(255,255,255,0.07);
  --accent:   #c8f04a;
  --accent2:  #4af0a0;
  --text:     #f0ede6;
  --muted:    #888;
  --serif:    'DM Serif Display', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --radius:   12px;
  --radius-lg:20px;
  --header-h: 70px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

  .cate{
    width: 90%;
    padding: 10px;
    background: var(--surface);
    color: var(--text);
    margin-left: auto;
    letter-spacing: 2px;
    margin-right: auto;
    margin-top: 0.6rem;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  .cates{
    width: 90%;
    padding: 10px;
    background: var(--surface);
    border-radius: 5px;
    color: var(--text);
    margin-left: auto;
    letter-spacing: 2px;
    margin-right: auto;
    text-align: center;
  }
.body {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 0.5rem;
}

.body.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 5px 15px rgba(14, 55, 54, 0.3), 0 2px 5px rgba(14, 55, 54, 0.2), 0 -2px 2px rgba(14, 55, 54, 0.1);
  left: 0;
  background: var(--card);
  right: 0;
  margin-top: 0px;
  z-index: 999;
}
.alert {
    padding: 20px;
    background-color: #1e3a1e;
    color: var(--text);
    width: 93.5%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 10px;
}
  
.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}
  
.closebtn:hover {
    color: black;
}
/* Style the search box inside the navigation bar */
.search {
  transition: all 0.3s ease;
  display: flex;
  margin-right: auto;
  margin-left: auto;
  width: 90%;
  padding: 10px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border) !important;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.search:focus-within {
    box-shadow: 0 6px 30px rgba(143, 121, 223, 0.15);
    border-color: rgba(143, 121, 223, 0.3);
    transform: translateY(-2px);
}

.search form{
  display: flex;
  width: 70%;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.search form button{
  min-width: 100px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, rgb(200, 34, 48) 0%, rgb(60, 189, 31) 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 34, 48, 0.3);
  white-space: nowrap;
}

.search form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 34, 48, 0.4);
    background: linear-gradient(135deg, rgb(60, 189, 31) 0%, rgb(200, 34, 48) 100%);
}

.search form button:active {
    transform: translateY(0);
}

 input[type=text] {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
    border: 2px solid rgba(143, 121, 223, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: var(--card);
    color: var(--text);
    background-image: url('images/search-alt-regular-24.png');
    background-position: 15px center; 
    background-repeat: no-repeat;
    background-size: 20px;
    padding: 12px 20px 12px 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
  }
  
 input[type=text]:focus {
    border-color: rgb(143, 121, 223);
    box-shadow: 0 0 0 4px rgba(143, 121, 223, 0.1);
    background-color: var(--card);
  }

 input[type=text]::placeholder {
    color: #999;
    font-weight: 400;
  }
  .search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.search-item {
    width: 200px;
    padding: 10px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.search-item img {
    width: 100%;
    height: auto;
}

.search-item h2 {
    font-size: 16px;
    margin: 10px 0;
}

.search-item p {
    color: var(--muted);
    font-weight: bold;
}

.search-item a {
    text-decoration: none;
    color: var(--text);
}

.search-item a:hover {
    color: #007bff;
}
.search .tools{
  width: 20%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.search .tools a{
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search .tools a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(143, 121, 223, 0.1);
    transition: left 0.3s ease;
}

.search .tools a:hover::before {
    left: 0;
}

.search .tools a:hover {
    color: rgb(143, 121, 223);
    transform: translateY(-2px);
}

.search .tools a i{
    font-size: 22px;
    color: rgb(143, 121, 223);
    transition: transform 0.3s ease;
}

.search .tools a:hover i {
    transform: scale(1.2);
}
/*slideshowing images*/
.main-container {
  display: flex;
  align-items: stretch; /* Make all children same height */
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  gap: 10px;
  padding: 10px 0;
  background: rgba(200,240,74,0.06);
  border: 1px solid rgba(200,240,74,0.2) !important;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.category-container {
  width: 30%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.category-container .category-item {
  background: linear-gradient(135deg, var(--surface) 0%, var(--card) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px;
  border-radius: 12px;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 0; /* Allow grid to shrink */
  overflow: hidden; /* Prevent overflow */
  flex: 1; /* Take available space */
}

.category-container .category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-container .category-item h2 {
  color: yellow;
}

.category-item .categories-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 3px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  min-height: 0; /* Allow item to shrink */
  overflow: hidden; /* Prevent content overflow */
}

.category-item .categories-items:hover {
  background: linear-gradient(135deg, rgba(143, 121, 223, 0.1) 0%, rgba(143, 121, 223, 0.2) 100%);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(143, 121, 223, 0.2);
  border-color: rgba(143, 121, 223, 0.3);
}

.category-item .categories-items .bx {
  font-size: 25px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 8px;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}

.category-item .categories-items:hover .bx {
  transform: scale(1.15);
  color: rgb(60, 189, 31);
}

.categories-items .caption {
  text-align: center;
  line-height: 1.1;
  margin-top: 3px;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.6em; /* Approximately 2 lines */
}

.category-item .categories-items:hover .caption {
  color: rgb(245, 122, 124);
}

.slide {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 10px;
  box-sizing: border-box;
}

.slideshow-container {
  position: relative;
  max-width: 800px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  background-color: var(--card);
  flex: 1; /* Take available space */
  display: flex;
  flex-direction: column;
}

.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes swipeIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.slides {
  display: none;
  position: relative;
  flex: 1;
  flex-direction: column;
}

.slides.active {
  display: flex;
  animation: swipeIn 0.5s ease-out;
}

.slides img {
  width: 100%;
  height: 100%;
  flex: 1;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.slides:hover img , .slides:hover video{
  transform: scale(1.05);
}

.slides .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  color: #fff;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.slides:hover .caption {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search{
    width:99%;
  }
  .promo-banner{
    width: 95%;
  }
  .search .tools{
    display: none;
  }
  .search form{
    width: 100%;
  }
  .search form button{
    width: 25%;
  }
  input[type=text]:focus {
    width: 73%;
  }
}

/* Navigation arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  height: 80px;
  align-items: center;
  justify-content: center;
  width: 60px;
  transform: translateY(-50%);
  padding: 20px;
  color: #322525;
  font-weight: bold;
  font-size: 25px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  cursor: pointer;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #EAE6E6;
}

/* Navigation dots - positioned inside slideshow container at bottom */
.dot-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.activedot, .dot:hover {
  background-color: #ffffff;
  width: 24px;
  border-radius: 4px;
  transform: scale(1.1);
}

/* Fade animation */
.category-item .categories-items:hover {
  animation: fade 1s ease-in-out;
}


.picture-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  width: 23%;
  gap: 10px;
  min-height: 0; /* Allow container to shrink */
}

.picture-div,
.picture-divs {
  height: 48%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.picture-div:hover,
.picture-divs:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.picture-div img,.picture-div video,
.picture-divs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.picture-div:hover img,
.picture-divs:hover img {
  transform: scale(1.05);
}

.picture-divs img {
  display: none;
  /* Hide all images initially */
}

.picture-divs img.active {
  display: block;
  /* Only show the active image */
}

/* Responsive design */

/* Large screens - ensure no overflow */
@media (min-width: 1400px) {
  .category-container .category-item {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 18px;
  }
  .category-item .categories-items {
    padding: 10px 8px;
    font-size: 13px;
  }
  .category-item .categories-items .bx {
    font-size: 30px;
  }
}

@media (max-width: 1200px) {
  .main-container {
    gap: 12px;
  }
  .category-container .category-item {
    grid-template-columns: repeat(4, 1fr);
    padding: 12px;
    gap: 6px;
  }
  .category-item .categories-items {
    padding: 10px 6px;
    font-size: 11px;
  }
  .category-item .categories-items .bx {
    font-size: 28px;
  }
}

@media (max-width: 1024px) {
  .main-container {
    width: 95%;
    gap: 10px;
  }
  .category-container{
    max-height: 600px;
  }
  .category-container .category-item{
    grid-template-columns: repeat(3, 1fr);
    padding: 12px;
  }
  .slideshow-container{
    max-height: 300px;
  }
  .picture-container{
    max-height: 300px;
  }
  .dot-container {
    bottom: 10px;
    padding: 6px 10px;
  }
  .dot {
    height: 6px;
    width: 6px;
  }
}

@media (max-width: 992px) {
  .main-container {
    flex-wrap: wrap;
  }
  .category-container {
    width: 100%;
    max-height: none;
  }
  .category-container .category-item{
    grid-template-columns: repeat(4, 1fr);
    height: auto;
    min-height: 200px;
  }
  .slide {
    width: 100%;
    order: -1;
  }
  .picture-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: 200px;
  }
  .picture-div,
  .picture-divs {
    flex: 1;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 5px;
  }
  .cates{
    width: 99%;
  }
  .category-container {
    width: 100%;
    padding: 5px;
  }
  .category-container .category-item {
    grid-template-columns: repeat(4, 1fr);
    padding: 10px;
    gap: 5px;
    border-radius: 10px;
  }
  .category-item .categories-items {
    padding: 8px 4px;
    font-size: 10px;
    border-radius: 8px;
  }
  .category-item .categories-items .bx {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .categories-items .caption {
    font-size: 10px;
    line-height: 1.2;
  }
  .picture-container {
    display: none;
  }
  .slide {
    width: 100%;
    padding: 5px;
    order: -1;
  }
  .slides img, .slides video{
    height: 250px;
    object-fit: fill;
  }
  .slideshow-container {
    width: 100%;
    border-radius: 10px;
  }
  .slides .caption {
    font-size: 14px;
    padding: 12px;
  }
  .dot-container {
    bottom: 12px;
    padding: 6px 10px;
    gap: 6px;
  }
  .dot {
    height: 7px;
    width: 7px;
  }
  .activedot, .dot:hover {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .main-container {
    gap: 10px;
  }
  .category-container .category-item {
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
    gap: 4px;
  }
  .category-item .categories-items {
    padding: 6px 3px;
    font-size: 9px;
  }
  .category-item .categories-items .bx {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .categories-items .caption {
    font-size: 9px;
  }
  .slides img, .slides video {
    height: 200px;
    object-fit: fill;
  }
  .slides .caption {
    font-size: 12px;
    padding: 10px;
  }
  .dot-container {
    bottom: 10px;
    padding: 5px 8px;
    gap: 5px;
  }
  .dot {
    height: 6px;
    width: 6px;
  }
  .activedot, .dot:hover {
    width: 18px;
  }
}

@media (max-width: 320px) {
  .category-container .category-item {
    grid-template-columns: repeat(2, 1fr);
    padding: 6px;
  }
  .category-item .categories-items {
    padding: 8px 4px;
  }
  .category-item .categories-items .bx {
    font-size: 22px;
  }
  .picture-container {
    flex-direction: column;
  }
  .slide {
    width: 100%;
    padding: 3px;
  }
  .slides img {
    height: 180px;
  }
  .slideshow-container {
    width: 100%;
  }
  .slides .caption {
    font-size: 11px;
    padding: 8px;
  }
  .dot-container {
    bottom: 8px;
    padding: 4px 6px;
  }
}
.product-container {
  width: 90%;
  margin: 20px auto;
  padding: 10px;
}


/* phones Brand container styles */

.brand-container {
    margin-bottom: 10px;
    padding: 1rem;
    background: rgba(200,240,74,0.06);
    border: 1px solid rgba(200,240,74,0.2) !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-container h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text);
    text-align: center;
}

.brand-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--surface);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.brand-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-item .caption {
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.official-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 5px;
    font-weight: normal;
}

/* official stores brands css */
.official-stores-container {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(200,240,74,0.06);
    border: 1px solid rgba(200,240,74,0.2) !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.official-stores-container .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.official-stores-container .heading h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.official-stores-container .heading a {
    color: #ff6700;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.official-stores-container .heading a:hover {
    color: #e05a00;
}

.official-stores-container .heading a i {
    margin-left: 5px;
    font-size: 1.1rem;
}

.official-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.official-store-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.official-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.store-logo {
    width: 100%;
    height: 120px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card);
}

.store-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.store-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
}

.official-store-badge {
    background-color: #ff6700;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.store-info p {
    margin: 0 0 0.75rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.view-official-store {
    margin-top: auto;
    color: #ff6700;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.3rem 0;
    position: relative;
}

.view-official-store:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6700;
    transition: width 0.2s;
}

.official-store-card:hover .view-official-store:after {
    width: 100%;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .official-stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .official-stores-container {
        padding: 0.75rem;
    }
    
    .official-stores-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .store-logo {
        height: 100px;
    }
}

@media screen and (max-width: 576px) {
    .official-stores-container .heading h2 {
        font-size: 1.25rem;
    }
    
    .store-info h3 {
        font-size: 0.95rem;
    }
}
            
.products-div{
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
}
.similar-products {
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
  background-color: var(--card);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

.similar-products.visible {
  opacity: 1;
  transform: translateY(0);
}

.similar-products.fade-out {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Ensure child elements don't affect the animation */
.similar-products .heading,
.similar-products .products {
    opacity: 1;
    transform: none;
}
.similar-products ::-webkit-scrollbar{
  display: none;
}
.similar-products .heading {
  width: 100%;
  background: rgba(200,240,74,0.06);
  border: 1px solid rgba(200,240,74,0.2) !important;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  align-items: center;
  font-size: 15px;
}

.similar-products .heading h2{
  width: 45%;
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 16px;
}
.similar-products .heading a{
  color: rgb(212, 135, 52);
  width: 45%;
  margin: auto;
  text-align: right;
  font-size: 15px;
  font-weight: bold;
}

.similar-products .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Responsive grid */
  margin-left: 5px; 
  margin-right: 5px;
  overflow-x: auto; /* Allow horizontal scrolling */
  gap: 20px;
  padding-bottom: 6px; /* Padding for scrollbar */
}

.similar-products .products .product {
    display: flex;
    flex-direction: column;
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft depth */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.price-info {
  display: flex;
  flex-direction: column; 
  gap: 5px;
  margin-top: 5px;
  padding: 6px;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9em;
}

.current-price {
  color: #29c526;
  font-weight: bold;
}

.similar-products .products .product img {
  width: 100%;
  height: 110px; /* Fixed height for images */
  object-fit: contain;
}

.similar-products .products .product .discount-banner {
  position: absolute;
  top: 10px;
  left: -35px;
  background: #094906;
  color: white;
  padding: 5px 40px;
  transform: rotate(-45deg);
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.similar-products .products .product:hover {
  transform: scale(1.05);
  
}
.similar-products .products .product .product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.similar-products .products .product h2 {
  font-size: 12px;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-products .products .product p {
  font-size: 15px;
  margin: 0;
  flex-grow: 1;
}

/* Add a media query for smaller screens */
@media (max-width: 768px) {
    .similar-products .products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Responsive grid */
    }
  .brand-item img{
    width: 100px;
    height: 100px;
  }

  .similar-products .heading h2{
    width: 75%;
    font-size: 13px;
  }

  .similar-products .heading a{
    width: 25%;
  }

  .similar-products .heading {
    font-size: 13px;
  }

  .similar-products .products .product img {
      height: 130px; /* Smaller image height for mobile devices */
  }
}
@media (max-width:768px) {
  .product-container{
      flex-direction: column;
      padding: 0;
      width: 100%;
  }
  .product-details{
      width: 100%;
  }
  .product-description{
      width: 100%;
  }
}


.hot-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--card);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hot-category {
  /* Style the hot category links */
  margin: 20px;
  position: relative;
  display: inline-block;
}

.hot-category img {
  /* Style the images */
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s; /* Add a transition effect for the dimming effect */
}

.hot-category:hover img {
  /* Dim the images on hover */
  opacity: 0.5;
}

.hot-category .caption {
  /* Style the captions */
  position: absolute;
  bottom: 6%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  left: 50%;
  transform: translate(-50%);
  text-align: center;
  align-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 10px;
}
.hot-category .captions {
  /* Style the captions */
  position: absolute;
  bottom: 5%;
  width: 120px;
  height: 40px;
  left: 50%;
  transform: translate(-50%);
  text-align: center;
  align-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 10px 10px; /* Top-left, top-right, bottom-right, bottom-left */
}

/* Flash Deals */
.flash-deals, .featured-vendors, .testimonials, .app-download, .trust-badges {
  margin: 10px 0;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.flash-deals .heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: red;
  color: white;
  padding: 10px;
  width: 100%;
  font-size: 12px;
}

.countdown {
  background: #000;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.flash-deals .products {
  display: flex;
  margin-left: 5px;
  margin-right: 5px;
  overflow-x: auto;
  gap: 5px;
  padding-bottom: 6px; /* Add some padding to account for potential scrollbar */
}

.flash-deals .products .product-card {
  flex: 0 0 170px;
  height: 250px;
  display: flex;
  color: var(--text);
  padding: 6px;
  flex-direction: column;
  background-color: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
  position: relative;
}

.flash-deals .products .product-card img {
  width: 100%;
  height: 110px; /* Fixed height for images */
  object-fit: contain;
}

.flash-deals .products .product-card:hover {
  transform: scale(1.05);
}

.flash-deals .products .product-card .product-info {
  padding: 5px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.flash-deals .products .product-card h4 {
  font-size: 12px;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-deals .products .product-card p {
  font-size: 13px;
  margin: 0;
  flex-grow: 1;
}

.flash-deals .products .product-card .price-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flash-deals .products .product-card .original-price {
  font-weight: bold;
  color: #e05b5b;
  text-decoration: line-through;
}

.flash-deals .products .product-card .discounted-price {
  font-weight: bold;
  color: #208308;
}


/* New styles for the discount banner */
.discount-banner {
  position: absolute;
  top: 10px;
  left: -35px;
  background: #ff4444;
  color: white;
  padding: 5px 40px;
  transform: rotate(-45deg);
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* New styles for the progress bar */
.quantity-progress-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 90%;
  height: 5px;
  background-color: var(--surface);
  border-radius: 5px;
}

.quantity-progress-bar {
  height: 100%;
  background-color: green; /* Change color as needed */
  border-radius: 5px;
}

/* Quantity remaining text */
.quantity-remaining {
  position: absolute;
  bottom: 20px;
  left: 10px;
  color: var(--muted);
  font-weight: bold;
  font-size: 12px;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(45deg, #2196F3, #3f51b5);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.newsletter form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.newsletter button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: #ff4444;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter button:hover {
    background: #ff1111;
}

/* Featured Vendors */
.featured-vendors {
    padding: 2rem;
    background: var(--card);
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-vendors h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
}

.featured-vendors h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ff4444;
    margin: 10px auto;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.vendor-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.vendor-card:hover {
    transform: translateY(-5px);
}

.vendor-info {
    text-align: center;
    margin-bottom: 1rem;
}

.vendor-info h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.vendor-rating {
    color: #ffd700;
    margin: 0.5rem 0;
}

.vendor-rating span {
    color: var(--muted);
    margin-left: 0.5rem;
}

.featured-product {
    margin: 1rem 0;
    text-align: center;
}

.featured-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.product-info h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.product-info p {
    color: #ff4444;
    font-weight: bold;
}

.view-store {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #ff4444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.view-store:hover {
    background: #ff2020;
}

.no-vendors {
    text-align: center;
    color: var(--muted);
    grid-column: 1 / -1;
    padding: 2rem;
}

@media (max-width: 768px) {
    .vendor-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .vendor-card {
        padding: 1rem;
    }
}
 
/* Testimonials */
.testimonials {
    padding: 40px 20px;
    background: var(--card);
}

.testimonial-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 8px;
    margin: 20px;
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* App Download Section */
.app-download {
    display: flex;
    align-items: center;
    padding: 60px 20px;
    background: var(--surface);
}

.app-content {
    flex: 1;
    padding: 20px;
}

.app-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.app-button img {
    height: 40px;
}

.app-image {
    flex: 1;
    text-align: center;
}

.app-image img {
    max-width: 150px;
    border-radius: 10px;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background: var(--card);
}

.badge {
    text-align: center;
    padding: 20px;
}

.badge i {
    font-size: 2.5em;
    color: #2196F3;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter form {
        flex-direction: column;
    }
    
    .app-download {
        flex-direction: column;
        text-align: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
}

/* Recently Viewed Section */
.recently-viewed-section {
    padding: 20px;
    margin: 20px 0;
    background: var(--card);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.recently-viewed-section h2 {
    font-size: 1.5em;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.recently-viewed-section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ff4444;
    margin: 10px auto;
}

.recently-viewed-products {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 10px 0; /* Add some padding to account for potential scrollbar */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.recently-viewed-section ::-webkit-scrollbar{
  display: none;
}

.recent-product {
  flex: 0 0 150px;
  height: 250px;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: var(--accent);
  transition: transform 0.3s ease;
}

.recent-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recent-product .product-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.recent-product .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-product:hover .product-image img {
    transform: scale(1.05);
}

.recent-product .product-info {
    padding: 15px;
}

.recent-product h3 {
    font-size: 0.9em;
    margin: 0 0 10px 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-product .price {
    color: #ff4444;
    font-weight: bold;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recently-viewed-products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .recent-product .product-info {
        padding: 10px;
    }

    .recent-product h3 {
        font-size: 0.8em;
    }
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recent-product {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: backwards;
}

/* Stagger the animation for each product */
.recent-product:nth-child(1) { animation-delay: 0.1s; }
.recent-product:nth-child(2) { animation-delay: 0.2s; }
.recent-product:nth-child(3) { animation-delay: 0.3s; }
.recent-product:nth-child(4) { animation-delay: 0.4s; }
.recent-product:nth-child(5) { animation-delay: 0.5s; }
.recent-product:nth-child(6) { animation-delay: 0.6s; }

/* Promotional Banner Styling */
.promo-banner.free-delivery {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 50%, #00b894 100%);
  background-size: 200% 200%;
  color: white;
  padding: 28px 32px;
  border-radius: 16px;
  margin: 20px auto;
  width: 85%;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(0, 184, 148, 0.25), 0 4px 15px rgba(0, 184, 148, 0.15);
  text-align: center;
  animation: gradientShift 3s ease infinite, pulse 2s infinite;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-banner.free-delivery.early_bird {
  background: linear-gradient(135deg, #4a90e2 0%, #67b26f 50%, #4a90e2 100%);
  background-size: 200% 200%;
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.25), 0 4px 15px rgba(74, 144, 226, 0.15);
}

.promo-banner.free-delivery.first_purchase {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 50%, #00b894 100%);
  background-size: 200% 200%;
  box-shadow: 0 8px 30px rgba(0, 184, 148, 0.25), 0 4px 15px rgba(0, 184, 148, 0.15);
}

.free-delivery .promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.free-delivery .promo-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.free-delivery .promo-content p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.5;
}

.spots-left {
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
  margin: 10px 0;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
  will-change: transform;
}
.free-delivery .cta-button {
  background: var(--card);
  color: var(--text);
  padding: 12px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.free-delivery.early_bird .cta-button {
  color: #4a90e2;
}

.free-delivery.first_purchase .cta-button {
  color: #00b894;
}

.free-delivery .cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.free-delivery .cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Animations */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}
@media (max-width: 768px) {
  .promo-banner.free-delivery{
    width: 95%;
  }
}


.move-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: rgba(66, 37, 37, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background-color 0.3s;
  z-index: 1001;
}

.move-to-top:hover {
  background-color: rgb(66, 37, 37);
}

.move-to-top.show {
  opacity: 1;
}

.arrow-up {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

/* Black Friday Deals Section - Modern Styling */
.black-friday-section-modern {
  width: 100%;
  margin: 30px auto;
  padding: 30px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.black-friday-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ff6b6b, #ff0000);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.section-header-modern.bf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 107, 107, 0.3);
}

.header-content-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-modern {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
  letter-spacing: 1px;
}

.bf-icon {
  font-size: 36px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.countdown-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff6b6b;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 107, 107, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.countdown-modern i {
  font-size: 20px;
  color: #ff6b6b;
}

.countdown-modern strong {
  color: #ffffff;
  font-size: 18px;
  margin-left: 4px;
}

.view-all-btn-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.view-all-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.view-all-btn-modern:hover::before {
  left: 100%;
}

.view-all-btn-modern:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
}

.view-all-btn-modern i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.view-all-btn-modern:hover i {
  transform: translateX(4px);
}

.products-grid-modern.bf-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card-modern.bf-product-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.product-card-modern.bf-product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.25);
}

.product-link-modern {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image-wrapper-modern {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--surface);
}

.product-image-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-modern.bf-product-card:hover .product-image-modern {
  transform: scale(1.1);
}

.discount-badge-modern.bf-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  z-index: 2;
  animation: pulse-badge 2s infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.discount-text {
  display: block;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.quantity-indicator-modern {
  position: absolute;
  bottom: 40px;
  left: 12px;
  right: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
}

.quantity-bar-modern {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff0000);
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.quantity-text-modern {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.product-info-modern {
  padding: 16px;
  background: var(--card);
}

.product-name-modern {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

.price-wrapper-modern {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.original-price-modern {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.current-price-modern {
  font-size: 18px;
  font-weight: 800;
  color: #ff0000;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.current-price-modern::before {
  content: '🔥';
  font-size: 14px;
}

.no-products-modern {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #ffffff;
}

.no-products-modern i {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  display: block;
}

.no-products-modern p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive Design for Black Friday Section */
@media (max-width: 1024px) {
  .black-friday-section-modern {
    width: 95%;
    padding: 25px;
  }
  
  .section-title-modern {
    font-size: 28px;
  }
  
  .products-grid-modern.bf-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .black-friday-section-modern {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
  }
  
  .section-header-modern.bf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .section-title-modern {
    font-size: 24px;
  }
  
  .bf-icon {
    font-size: 28px;
  }
  
  .countdown-modern {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .countdown-modern strong {
    font-size: 16px;
  }
  
  .view-all-btn-modern {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
  }
  
  .products-grid-modern.bf-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .product-info-modern {
    padding: 12px;
  }
  
  .product-name-modern {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .current-price-modern {
    font-size: 16px;
  }
  
  .discount-badge-modern.bf-badge {
    padding: 6px 10px;
    font-size: 12px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .black-friday-section-modern {
    padding: 15px;
  }
  
  .section-title-modern {
    font-size: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .products-grid-modern.bf-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-image-wrapper-modern {
    padding-top: 100%; /* Square aspect ratio on mobile */
  }
  
  .no-products-modern {
    padding: 40px 15px;
  }
  
  .no-products-modern i {
    font-size: 48px;
  }
  
  .no-products-modern p {
    font-size: 16px;
  }
}