.element-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  flex: 1;
}

  body {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
    margin: 0;
    background-color: rgb(241, 242, 244);
    color: #212121;
  }

  .admin-bar {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    text-align: center;
  }

  .page-container {
    max-width: 1600px;
    margin: 0 auto;
    background: #fff;
  }

  .page-container>h1 {
    font-size: 2em;
    padding: 0 20px;
  }

  .row {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 20px;
    padding: 0px 27px !important;
    box-sizing: border-box;
  }

  .column {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  
  .column.has-product-grid,
  .column.has-product-grid-vertical {
    padding: 0px; /* Removed excessive padding to increase card width and reduce overall gap */
    box-sizing: border-box;
  }

  /* Desktop Layout Rules */
  .row-layout-1 .column {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .row-layout-2 .column {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .row-layout-3 .column {
    flex: 0 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }

  .row.row-layout-4 {
    gap: 12px;
  }

  .row-layout-4 .column {
    flex: 0 1 calc(25% - 9px);
    max-width: calc(25% - 9px);
  }

  .row-layout-4 .column .element-container .product-grid-wrapper .product-grid-container .product-grid-card {
    height: 135px;
  }

  .row-layout-4 .column .element-container .product-grid-wrapper .product-grid-container .product-grid-card:not(.full-width-image) .card-image-wrapper {
    height: 95px;
  }

  /* For full-width images in 4-column layout, image should fill the space */
  .row-layout-4 .column .element-container .product-grid-wrapper .product-grid-container .product-grid-card.full-width-image {
    height: 160px;
    padding: 5px;
  }

  .row-layout-4 .column .element-container .product-grid-wrapper .product-grid-container .product-grid-card .card-title {
    font-size: 12px;
  }

  .row-layout-2 .column .element-container .product-grid-wrapper .product-grid-container .product-grid-card {
    height: 250px;
  }

  .row-layout-2 .column .element-container .product-grid-wrapper .product-grid-container .product-grid-card img {
    height: 180px;
  }

  .element-title {
    font-size: 1.5em;
    font-weight: 500;
    /* margin-bottom: 0px !important; */
    font-family: inherit;
    margin: 0px !important;
  }

  .element-container p,
  .text-editor-content p {
    margin-bottom: 8px;
  }

  .element-container p:last-child,
  .text-editor-content p:last-child {
    margin-bottom: 0;
  }

  .product-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px !important;
  }

  .view-all-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #2a55e5;
    color: white;
    border-radius: 50%;
  }

  .product-grid-wrapper {
    background-color: var(--bg, #fff);
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 20, 30, 0.06);
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .product-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-grid-card {
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, #fff);
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
  }
  .product-grid-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
  }

  .product-grid-card:not(.full-width-image) .card-image-wrapper {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
  }

  .product-grid-card:not(.full-width-image) img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
  }

  /* Full width image state - when no title or subtitle */
  .product-grid-card.full-width-image {
    height: 220px;
    padding: 0;
  }

  .product-grid-card.full-width-image .card-image-wrapper {
    margin: 0;
    height: 100%;
    width: 100%;
  }

  .product-grid-card.full-width-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  /* Hide text elements when using full-width image */
  .product-grid-card.full-width-image .card-title,
  .product-grid-card.full-width-image .card-subtitle {
    display: none;
  }

  /* Text styles for product-grid cards */
  .product-grid-card .card-texts {
    padding-top: 8px;
    flex: 0 0 auto;
    width: 100%;
  }

  .product-grid-card .card-title {
    font-weight: 700;
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-grid-card .card-subtitle {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    margin: 4px 0 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Optional hover effect */
  .product-grid-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Responsive adjustments for mobile */
  @media (max-width: 768px) {
    /* Convert multi-column rows into swipeable mobile sliders */
    .row {
      gap: 5px !important;
      padding: 0 15px !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none; /* Firefox */
    }
    
    .row::-webkit-scrollbar {
      height: 4px; /* Show native scrollbar visually */
    }
    
    .row::-webkit-scrollbar-thumb {
      background-color: #cccccc;
      border-radius: 4px;
    }

    .row-layout-1 .column {
      flex: 0 0 100% !important;
      width: 100% !important;
      max-width: 100% !important;
      scroll-snap-align: center;
      padding: 0 !important;
      margin: 0 !important;
      min-width: 0;
    }

    .row-layout-2 .column,
    .row-layout-3 .column,
    .row-layout-4 .column {
      flex: 0 0 calc(100% - 30px) !important; /* Slide width */
      width: calc(100% - 30px) !important;
      max-width: calc(100% - 30px) !important;
      scroll-snap-align: center;
      padding: 0 !important;
      margin: 0 !important;
      min-width: 0;
    }

    .element-container {
      padding: 0 !important;
      margin: 0 !important;
    }

    /* .product-grid-card {
      height: 240px;
    } */

    .product-grid-card:not(.full-width-image) .card-image-wrapper {
      height: 180px;
    }

    .item-carousel-wrapper {
      padding: 10px !important;
    }
  }

  .banner-wrapper,
  .product-carousel-instance {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--banner-width, 100%) !important;
    height: var(--banner-height, auto) !important;
    max-width: 100%;
    flex: none !important;
    margin: 0 auto;
    overflow: hidden;
  }

  .banner-carousel-instance,
  .product-carousel-instance {
    position: relative;
    overflow: hidden;
    height: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
  }

  .banner-carousel-instance .swiper-slide img,
  .product-carousel-instance .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--banner-fit, cover) !important;
    display: block;
  }

  @media (max-width: 768px) {
    .banner-wrapper {
      width: var(--banner-width-mobile, 100%) !important;
      height: var(--banner-height-mobile, auto) !important;
    }
    .banner-image {
      object-fit: var(--banner-fit-mobile, var(--banner-fit, cover)) !important;
    }
  }
  


  /* == MODIFICATION START: All-new CSS for Item Carousel == */
  .item-carousel-wrapper {
    background: #fff;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .item-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .item-carousel-instance {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 2px;
  }

  .item-carousel-instance .swiper-slide {
    height: auto;
    display: flex; 
    box-sizing: border-box;
    width: 220px !important;
    max-width: 100%;
  }

  .item-carousel-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .item-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect ratio enforces box exists regardless of flex/height logic */
    margin-bottom: 15px;
    background: #f8f9fa; /* Slight background makes it visible even if img fails */
    border-radius: 4px;
    overflow: hidden;
  }

  .item-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .item-card-title {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
  }

  .item-card-price {
    font-weight: 500;
  }

  .item-card-price .current-price {
    font-size: 1.1em;
    margin-right: 8px;
  }

  .item-card-price .original-price {
    font-size: 0.9em;
    color: #878787;
    text-decoration: line-through;
  }

  .item-carousel-instance .swiper-button-next {
    right: 0;
  }

  .item-carousel-instance .swiper-button-prev {
    left: 0;
  }

  .item-carousel-instance .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
  }

  @media (max-width: 768px) {
    .item-carousel-instance .swiper-slide {
      width: 140px !important;
    }

    .item-carousel-card {
      padding: 8px;
    }
    
    .item-card-image-wrapper {
      margin-bottom: 8px;
    }

    .item-card-title {
      font-size: 0.8em;
    }
    
    .item-card-price .current-price {
      font-size: 1em;
    }
  }

  /* == MODIFICATION START: CSS for Live Shopping Element with FIXED HEIGHTS == */
  .live-shopping-wrapper {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .live-shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
  }

  .live-shopping-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .live-shopping-header a {
    font-size: 14px;
    color: #8c53fe;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .live-shopping-body {
    display: flex;
    gap: 10px !important;
    height: 280px;
    /* CRITICAL: Sets a fixed height for the entire component */
  }

  .live-shopping-fixed-banner {
    flex-shrink: 0;
    width: 280px;
    /* Fixed width */
    height: 100%;
    /* Takes full height of the parent */
    border-radius: 6px;
    overflow: hidden;
  }

  .live-shopping-fixed-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .live-shopping-scroll-wrapper {
    flex-grow: 1;
    position: relative;
    min-width: 0;
    height: 100%;
    /* Takes full height of the parent */
  }

  .ls-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }

  .ls-nav-btn:hover {
    background: #8c53fe;
    color: #fff;
    border-color: #8c53fe;
  }

  .ls-prev { left: -16px; }
  .ls-next { right: -16px; }

  @media (max-width: 768px) {
    .ls-nav-btn { display: none !important; }
    
    .live-shopping-body {
      flex-direction: column !important;
      height: auto !important;
    }

    .live-shopping-fixed-banner {
      width: 100% !important;
      height: 200px !important;
      max-width: 100% !important;
      flex-shrink: 0 !important;
    }

    .live-shopping-fixed-banner img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
    }

    .live-shopping-scroll-wrapper {
      width: 100% !important;
      height: 160px !important;
    }

    .product-card-item {
      width: 150px !important;
    }

    .live-shopping-header h2 {
      font-size: 1.1em !important;
      font-weight: 500 !important;
    }

    .live-shopping-header a {
      font-size: 13px !important;
    }

    .product-card-title {
      -webkit-line-clamp: 2 !important;
      display: -webkit-box !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: normal !important;
      flex-shrink: 0 !important;
      height: 32px !important;
      font-size: 12px !important;
      line-height: 16px !important;
      margin-bottom: 4px !important;
    }
  }

  /* == LIVE PRODUCT CAROUSEL STYLES == */
  .live-carousel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 15px;
  }

  .carousel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-header a {
    font-size: 14px;
    color: #8c53fe;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .carousel-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
  }

  .carousel-left {
    flex: 0 0 320px;
    position: relative;
  }

  .carousel-left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px !important;
  }

  .carousel-right {
    position: relative;
    flex: 0 0 auto;
    width: calc((220px * 5) + (14px * 4));
  }

  .carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 5px;
    margin: -5px;
  }

  .carousel-track {
    display: flex;
    gap: 14px;
    transition: transform 0.4s ease;
    will-change: transform;
  }

  .live-product-card {
    flex: 0 0 calc((100% - (14px * 4)) / 5);
    max-width: calc((100% - (14px * 4)) / 5);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .live-product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
  }

  .title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
  }

  .mrp {
    margin-left: 0px;
    color: #94a3b8 !important;
  }

  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #8c53fe;
    font-size: 18px;
    padding: 0;
    z-index: 10;
  }

  .nav.prev {
    left: -16px;
  }

  .nav.next {
    right: -16px;
  }

  @media (max-width: 768px) {
    .carousel-header h2 {
      font-size: 1.1em !important;
      font-weight: 500 !important;
    }

    .carousel-header a {
      font-size: 13px !important;
    }

    .carousel-layout {
      justify-content: flex-start;
      flex-direction: row;
      overflow-x: auto;
      scroll-behavior: smooth;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    
    .carousel-layout::-webkit-scrollbar {
      display: none;
    }

    .carousel-left {
      flex: 0 0 120px;
    }

    .carousel-right {
      width: auto;
      flex: 1 1 auto;
      overflow: visible;
    }

    .carousel-viewport {
      width: auto;
      overflow: visible;
    }

    .carousel-track {
      transform: none !important;
      width: max-content;
    }

    .live-product-card {
      flex: 0 0 110px !important;
      max-width: 110px !important;
      padding: 8px !important;
      height: 160px !important;
      display: flex;
      flex-direction: column;
    }
    
    .live-product-card img {
      height: 80px !important;
      width: 100%;
      object-fit: contain;
    }
    
    .live-product-card .title {
      font-size: 11px !important;
      line-height: 1.3 !important;
      height: 26px !important;
      margin: 4px 0 !important;
      flex-shrink: 0;
    }

    .live-product-card .price {
      margin-top: auto !important;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .live-product-card .price strong {
      font-size: 12px !important;
      line-height: 1;
    }

    .live-product-card .mrp {
      font-size: 10px !important;
      line-height: 1;
      margin: 0 !important;
    }

    .nav.prev,
    .nav.next {
      display: none !important;
    }
  }

  /* == IMAGE GALLERY STYLES == */
  .image-gallery-stage {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .grid-mode-gallery-title {
    margin: 0 0 15px 0; 
    font-size: 20px; 
    font-weight: 700; 
    color: #111827;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .grid-mode-product-title {
    text-align: center;
    margin: 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-transform: capitalize;
    box-sizing: border-box;
  }

  .grid-mode-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
  }

  @media (max-width: 768px) {
    .image-gallery-stage { 
      padding: 0px !important; 
    }

    .grid-mode-gallery-title {
      font-size: 18px !important;
      margin-bottom: 10px !important;
    }

    .grid-mode-product-title {
      font-size: 13px !important;
      padding: 8px 12px !important;
    }

    .gallery-carousel-instance .grid-mode-image {
      height: 100px !important;
      padding: 5px !important;
    }

    .gallery-grid-container .grid-mode-image,
    .gallery-masonry-container .grid-mode-image {
      height: 130px !important;
      padding: 5px !important;
    }

    .gallery-wrapper {
      height: auto !important;
    }
  }

  .native-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
    /* Ensures container fills the wrapper */
  }

  .native-scroll-container::-webkit-scrollbar {
    display: none;
  }

  /* .native-scroll-content {
    display: flex;
    gap: 12px;
    height: 100%;
  } */

  .scroll-item {
    flex: 0 0 auto;
  }

  .product-card-item {
    width: 180px;
    /* Fixed width */
    height: 100%;
    /* CRITICAL: Takes full, fixed height of the parent */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
    /* Important for padding + fixed height */
  }

  .product-card-content {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .product-card-image {
    flex-grow: 1;
    /* Pushes text to the bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 0;
    /* Fix for flex item overflow */
  }

  .product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .product-card-badge {
    color: #B12704;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 4px;
  }

  .product-card-title {
    font-size: 0.9em;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-price {
    margin-top: auto;
  }

  .product-card-price .current-price {
    font-size: 1.1em;
    font-weight: bold;
  }

  .product-card-price .original-price {
    font-size: 0.8em;
    text-decoration: line-through;
    color: #555;
    margin-left: 5px;
  }

  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    transition: opacity 0.2s;
  }

  .scroll-btn:hover {
    background-color: #f7f7f7;
  }

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

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

  /* == MODIFICATION START: CSS for the new Image Gallery == */
  .image-gallery-container {
    display: grid;
    /* Creates a responsive grid that fits as many items as possible with a min width */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }

  .gallery-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    /* Ensures the image stays within the rounded corners */
    aspect-ratio: 1 / 1;
    /* Makes the gallery items square */
  }

  .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the square, cropping if necessary */
    transition: transform 0.3s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
    /* Adds a subtle zoom effect on hover */
  }

  /* == MODIFICATION START: CSS for the new advanced Image Gallery == */
  .gallery-wrapper {
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
  }

  .gallery-grid-container {
    display: grid;
  }

  .gallery-item-link {
    display: block;
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    /* For masonry */
    /* Fixed container size */
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .gallery-item-link img {
    /* Make image fill the container, but not exceed it */
    max-width: 100%;
    max-height: 100%;

    /* This ensures the whole image is visible without stretching */
    object-fit: contain;

    transition: transform 0.3s ease;
  }

  .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: white;
    font-size: 0.9em;
    text-align: center;
    transition: opacity 0.3s ease;
  }

  .gallery-carousel-instance .gallery-item-link {
    flex-direction: column;
  }

  .gallery-carousel-instance .gallery-item-link img {
    flex: 1;
    min-height: 0;
  }

  .gallery-carousel-instance .gallery-caption {
    position: static;
    width: 100%;
    flex-shrink: 0;
  }

  .gallery-carousel-instance {
    height: 100%;
    position: relative;
  }

  .gallery-carousel-instance .swiper-button-next,
  .gallery-carousel-instance .swiper-button-prev {
    top: 160px;
    transform: translateY(-50%);
    color: #8c53fe;
    /* dark gray */
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: #8c53fe !important;
  }

  .gallery-carousel-instance .swiper-button-prev {
    left: 5px;
  }

  .gallery-carousel-instance .swiper-button-next {
    right: 5px;
  }

  .banner-carousel-instance .swiper-pagination,
  .gallery-carousel-instance .swiper-pagination {
    display: none !important;
  }

  .gallery-carousel-instance .swiper-scrollbar {
    display: none !important;
  }


  .gallery-carousel-instance .swiper-slide {
    height: auto;
    display: flex !important;
    flex-direction: column !important;
    background-color: #fff;
    overflow: hidden;
  }

  /* == MODIFICATION END == */
  .text-editor-content h1,
  .text-editor-content h2,
  .text-editor-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
  }

  .text-editor-content p {
    margin: 0 0 1em 0;
  }

  .text-editor-content ul,
  .text-editor-content ol {
    padding-left: 25px;
    margin-bottom: 1em;
  }

  .text-editor-content li {
    margin-bottom: 0.5em;
  }

  .text-editor-content a {
    color: #007bff;
    text-decoration: underline;
  }

  .text-editor-content blockquote {
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
  }

  /* == Responsive styles for mobile devices (max-width 768px) == */
  @media (max-width: 768px) {
    .gallery-grid-container {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 10px !important;
    }
    
    .gallery-grid-container .gallery-item-link {
      height: auto !important;
      /* aspect-ratio: 2/3; */
    }

    .gallery-carousel-instance .gallery-item-link {
      height: auto !important;
    }

    .gallery-carousel-instance .swiper-button-next,
    .gallery-carousel-instance .swiper-button-prev {
      display: none !important;
      top: 130px !important;
    }

    .gallery-caption {
      padding: 6px !important;
      font-size: 14px !important;
      line-height: 1.2;
    }

    .product-title-above-image {
      font-size: 16px !important;
      margin-bottom: 5px !important;
    }

    .page-container {
      margin: 0;
    }

    .page-container>h1 {
      font-size: 1.2em;
      font-weight: 500;
      padding: 15px 10px;
    }

    /* Force rows to lose their horizontal gap */
    .row {
      gap: 0;
      padding: 0 0 10px 0;
      /* Adjust overall row padding */
    }

    .row.row-layout-1 {
      align-items: stretch !important;
    }

    .column {
      /* CRITICAL: Force column to be full width, overriding desktop calcs */
      flex-basis: 100% !important;
      flex-shrink: 0;
      /* Prevent squeezing */
    }

    /* Make product grids horizontally scrollable */
    .row.mobile-horizontal-slider,
    .row.mobile-horizontal-slider-banner {
      flex-direction: row !important;
      display: flex !important; /* CRITICAL requirement */
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      scroll-behavior: smooth;
      padding-left: 10px !important;
      padding-right: 10px !important;
      justify-content: flex-start !important;
      width: 100% !important;
      max-width: 100vw !important;
      box-sizing: border-box !important;
    }

    .row.mobile-horizontal-slider { gap: 8px !important; }
    .row.mobile-horizontal-slider-banner { gap: 15px !important; }

    .row.mobile-horizontal-slider::-webkit-scrollbar,
    .row.mobile-horizontal-slider-banner::-webkit-scrollbar {
      height: 4px;
    }
    
    .row.mobile-horizontal-slider::-webkit-scrollbar-thumb,
    .row.mobile-horizontal-slider-banner::-webkit-scrollbar-thumb {
      background-color: #cccccc;
      border-radius: 4px;
    }

    .row.mobile-horizontal-slider > .column {
      flex: 0 0 82% !important;
      max-width: 82% !important;
      flex-shrink: 0;
    }

    .row.mobile-horizontal-slider-banner > .column {
      flex: 0 0 100% !important;
      max-width: 100% !important;
      flex-shrink: 0;
    }

    .product-grid-wrapper {
      padding: 12px;
      border: 1px solid #eee;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(20, 20, 30, 0.05); /* Match slight shadow */
    }

    .product-grid-container {
      gap: 10px;
    }

    .product-grid-card {
      height: 170px !important;
    }

    .product-grid-card:not(.full-width-image) .card-image-wrapper {
      flex: 1;
      margin: 0;
    }

    .product-grid-card.full-width-image {
      height: 170px !important;
    }

    .product-grid-card .card-title {
      font-size: 13px;
      font-weight: 700;
      margin: 5px 0 0;
    }

    .product-grid-card .card-subtitle {
      font-size: 11px;
      color: #666;
      margin: 2px 0 0;
    }

    .element-title {
      font-size: 1.1em;
      margin-bottom: 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
      width: 36px !important;
      height: 36px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      margin-top: 0 !important;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
      font-size: 18px !important;
    }

    .swiper-button-next svg,
    .swiper-button-prev svg {
      width: 18px !important;
      height: 18px !important;
    }

    .gallery-wrap {
      padding: 8px !important;
      /* padding-bottom: 25px !important; */
    }

    /* Product Gallery 1 Mobile Header Refinement */
    .gallery-wrap .gallery-header {
      margin-bottom: 8px !important;
      align-items: center;
      display: flex;
      justify-content: space-between;
    }

    .gallery-wrap .gallery-title {
      font-size: 15px;
      /* font-weight: 800; */
      color: #111;
      /* line-height: 1.3; */
      /* flex: 1; */
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-bottom: 0px !important;
    }

    .gallery-wrap .view-more {
      /* padding: 8px 15px; */
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 13px;
      font-weight: 700;
      border-radius: 6px;
      flex-shrink: 0;
      white-space: nowrap;
      background: #bc75ff;
    }

    .gallery-wrap .product-img {
      height: 180px !important;
      width: 100% !important;
      padding: 0 !important;
      margin-bottom: 4px !important;
    }

    .gallery-wrap .product-img img {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
    }

    .gallery-wrap .product-card {
      padding: 8px !important;
      /* padding-bottom: 0px !important; */
      gap: 4px !important;
      border: 1px solid #eee !important;
      border-bottom: 2px solid #eee !important;
    }

    .gallery-wrap .product-name {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      min-height: auto !important;
      /* margin-bottom: 2px !important; */
      font-size: 13px !important;
      display: block !important;
    }

    .gallery-wrap .price-row {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 4px !important;
      /* margin-top: 4px !important; */
      width: 100% !important;
      overflow: hidden !important;
      justify-content: flex-start !important;
    }

    .gallery-wrap .selling {
      font-size: 14px !important;
      font-weight: 800 !important;
      color: #111 !important;
      order: 1 !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
    }

    .gallery-wrap .mrp {
      font-size: 0 !important; /* Hide 'MRP' text */
      color: #999 !important;
      order: 2 !important;
      white-space: nowrap !important;
      margin: 0 !important;
      flex-shrink: 1 !important;
    }

    .gallery-wrap .mrp span {
      font-size: 10px !important;
      white-space: nowrap !important;
      text-decoration: line-through !important;
      display: inline-block !important;
    }

    .gallery-wrap .discount {
      font-size: 10px !important;
      color: #16a34a !important;
      font-weight: 700 !important;
      order: 3 !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
    }

    .gallery-wrap .rating {
      font-size: 11px !important;
      gap: 3px !important;
    }

    .gallery-wrap .rating span {
      font-size: 11px !important;
    }

    /* Remove rateit range elements */
    div[id^="rateit-range-"] {
      display: none !important;
    }

    .gallery-wrap .badge {
      font-size: 14px !important;
      padding: 8px !important;
      margin-top: 2px !important;
      width: 100% !important;
      text-align: center !important;
    }

    .gallery-wrap .nav-arrows {
      display: none !important;
    }

    .gallery-wrap .slider-viewport {
      overflow-x: auto !important;
      scroll-snap-type: x mandatory !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none;
      padding-bottom: 15px !important; /* Allow card shadows to be visible */
      margin-bottom: -15px !important; /* Maintain container height */
    }

    .gallery-wrap .slider-viewport::-webkit-scrollbar {
      display: none;
    }

    .gallery-wrap .slider-track {
      transform: none !important;
      width: max-content !important;
      display: flex !important;
    }

    .gallery-wrap .product-card {
      scroll-snap-align: start !important;
      flex: 0 0 240px !important;
      min-width: 240px !important;
      border: 1px solid #eee !important;
    }

  }

  .simple-carousel-wrapper {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .simple-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
  }

  .simple-carousel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .simple-carousel-header a {
    font-size: 14px;
    color: #8c53fe;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .simple-carousel-header h2 {
      font-size: 1.1em !important;
      font-weight: 500 !important;
    }
    .simple-carousel-header a {
      font-size: 13px !important;
    }
    .simple-carousel-item {
      width: 140px;
      height: 140px;
      padding: 8px;
    }
  }

  .simple-carousel-item {
    display: block;
    height: 180px;
    width: 180px;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
  }

  .simple-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the whole image fits */
  }

  .sc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #8c53fe;
    transition: all 0.3s ease;
    padding: 0;
  }

  .sc-nav-btn:hover {
    background: #8c53fe;
    color: #fff;
    border-color: #8c53fe;
  }

  .sc-prev {
    left: -16px;
  }

  .sc-next {
    right: -16px;
  }

  @media (max-width: 768px) {
    .sc-nav-btn {
      display: none !important;
    }
  }

  /* Re-usable native scroll container styles */
  .native-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .native-scroll-container::-webkit-scrollbar {
    display: none;
  }

  .native-scroll-content {
    display: flex;
    gap: 10px;
    height: 100%;
    width: max-content;
  }

  /* == MODIFICATION END == */

  .amazon-carousel-wrapper {
    background-color: #fff;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .amazon-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    /* margin-bottom: 15px; */
  }

  .amazon-carousel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .amazon-carousel-header a {
    font-size: 14px;
    color: #8c53fe;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .amazon-carousel-header h2 {
      font-size: 1.1em !important;
      font-weight: 500 !important;
    }
    .amazon-carousel-header a {
      font-size: 13px !important;
    }
    .amazon-card-image {
      height: 140px !important; /* Specifically shortened for mobile */
    }
  }

  .amazon-card-item {
    width: 210px;
    /* Fixed width */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    /* For hover effect */
    padding: 10px;
  }

  .amazon-card-item:hover {
    border-color: #ddd;
  }

  .amazon-card-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .amazon-card-image {
    height: 200px;
    /* Fixed height for image container */
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .amazon-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Image will be contained */
  }

  .amazon-card-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
  }

  .amazon-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .amazon-card-brand {
    font-size: 0.9em;
    font-weight: 600;
    color: #007185;
    margin-bottom: 3px;
  }

  .amazon-card-title {
    font-size: 1.05em;
    color: #0f1111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .amazon-card-rating {
    font-size: 0.85em;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .amazon-card-rating .rating-num {
    color: #0f1111;
    font-weight: 700;
  }

  .amazon-card-rating .stars-wrap {
    display: flex;
    align-items: center;
    gap: 1px;
  }

  .amazon-card-rating .star {
    color: #ffa41c;
    font-size: 1.1em;
    line-height: 1;
  }

  .amazon-card-rating .star.empty {
    color: #e0e0e0;
  }

  .amazon-card-rating .star.half {
    background: linear-gradient(90deg, #ffa41c 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .amazon-card-rating .review-count {
    color: #007185;
  }

  .amazon-card-deal {
    background-color: #CC0C39;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    margin: 8px 0;
    display: inline-block;
  }

  .amazon-card-price {
    font-size: 1em;
    margin: 6px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .amazon-card-price .current-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #0f1111;
  }

  .amazon-card-price .text-muted {
    font-size: 0.85em;
    color: #565959;
    margin-left: 6px;
    margin-right: 3px;
  }

  .amazon-card-price .original-price {
    font-size: 0.85em;
    color: #565959;
    text-decoration: line-through;
    margin-left: 0;
  }

  .amazon-card-price .discount {
    font-size: 0.85em;
    color: #cc0c39;
    font-weight: 600;
    margin-left: 6px;
  }

  .amazon-card-delivery {
    font-size: 0.85em;
    color: #0f1111;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .amazon-card-delivery-prime {
    font-size: 0.85em;
    color: #00a8e1;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 8px;
  }

  .amazon-add-to-cart-btn {
    margin-top: auto;
    /* Pushes button to the bottom */
    padding: 6px 12px;
    background-color: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 0.9em;
  }

  .amazon-add-to-cart-btn:hover {
    background-color: #F7CA00;
  }

  /* == CSS for Info Card == */
  .info-card {
    width: var(--card-width, 100%);
    height: var(--card-height, 515px);
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 16px);
    border: var(--card-border, 1px solid rgba(0, 0, 0, 0.06));
    box-shadow: var(--card-shadow, 0 10px 25px rgba(0, 0, 0, 0.05));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  .hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 32px rgba(2, 6, 23, 0.12);
  }

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

  .hover-shadow:hover {
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.14);
  }

  .card-media {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .card-media img,
  .card-media iframe {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .card-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .card-texts {
    text-align: var(--text-align, center);
  }

  /* Text styles for info-card cards */
  .info-card .card-title {
    font-size: var(--title-size, 18px);
    color: var(--title-color, #111827);
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-family);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.2em;
  }

  .info-card .card-subtitle {
    font-size: 12px;
    color: var(--subtitle-color, #64748b);
    font-family: var(--font-family);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
  }

  .card-footer {
    display: flex;
    justify-content: var(--text-align, center);
    margin-top: 4px;
  }

  .card-button {
    border: none;
    background: var(--button-bg, #0ea5a4);
    color: var(--button-color, white);
    padding: 10px 24px;
    border-radius: var(--button-radius, 12px);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(14, 165, 164, 0.2); */
  }

  .card-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 164, 0.3);
  }

  @media (max-width: 768px) {
    .info-card {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      align-self: stretch !important;
      height: auto !important;
      min-height: 380px;
      margin: 0 auto;
    }
    
    .info-card .card-media {
      flex: 0 0 220px !important;
      min-height: 220px;
    }

    .info-card .card-body {
      padding: 16px !important;
      flex: 0 0 auto;
    }
    
    .info-card .card-title {
      font-size: clamp(16px, var(--title-size, 18px) * 0.85, 24px) !important;
      min-height: 1.2em;
    }

    .info-card .card-subtitle {
      font-size: clamp(13px, var(--subtitle-size, 14px) * 0.9, 16px) !important;
      -webkit-line-clamp: 2;
      min-height: 3em;
    }
    
    .info-card .card-button {
      width: 100%;
      text-align: center;
      padding: 12px 20px;
    }
  }

  /* Your custom CSS from the provided file */
  :root {
    --bg: #fff;
    --card-bg: #ffffff;
    --muted: #666;
    --accent: #1e90ff;
    --ribbon-bg: #ff5a5f;
    --deal-bg: #ffb400;
    --shadow: 0 6px 18px rgba(20, 20, 30, 0.06);
    --gallery-padding: 16px;
  }

  .page {
    padding: 18px;
  }

  .row {
    padding: 20px 0;
  }

  .gallery-wrap {
    background: var(--bg);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    /* padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 30px !important; */
    box-shadow: var(--shadow);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
  }

  .gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    text-align: left;
    /* margin-bottom: 15px !important; */
  }

  .gallery-wrap .product-card {
    border: 1px solid #eee !important;
    border-bottom: 2px solid #eee !important;
    /* padding-bottom: 15px !important; */
  }

  .gallery-body {
    display: flex;
    gap: 12px;
    align-items: stretch;
    position: relative;
  }

  .banner-left {
    width: 220px;
    flex: 0 0 220px;
  }

  .banner-top {
    width: 100%;
    margin-bottom: 12px;
  }

  .banner-frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
  }

  @media (max-width: 768px) {
    .banner-frame {
      height: 280px !important;
    }
  }

  .banner-frame img,
  .banner-frame video,
  .banner-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
  }

  .slider-viewport {
    overflow: hidden;
    flex: 1 1 auto;
    /* padding-bottom: 12px; */
    /* margin-bottom: -12px; */
  }

  .slider-track {
    display: flex;
    gap: 12px;
    align-items: stretch;
    transition: transform 0.6s ease;
  }

  .product-card {
    width: 220px;
    min-width: 220px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .product-img {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .product-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0px !important;
  }

  .price-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-top: 0px !important;
  }

  .mrp {
    color: var(--muted);
    font-size: 12px;
  }

  .selling {
    font-size: 16px;
    font-weight: 700;
    color: #111;
  }

  .discount {
    font-size: 12px;
    color: green;
    font-weight: 600;
  }

  .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .arrow-btn {
    border: 0;
    background: #fff;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(20, 20, 30, 0.1);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
  }

  .arrow-left {
    left: -22px;
  }

  .arrow-right {
    right: -22px;
  }

  .anim-slide {
    transition: transform 0.6s ease, opacity 0.6s ease;
  }

  .slider-viewport {
    overflow: hidden;
    flex: 1 1 auto;
  }

  .slider-track {
    display: flex;
    gap: 12px;
    align-items: stretch;
    transition: transform 0.6s ease;
    will-change: transform;
  }

  .product-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .product-card {
    width: 220px;
    min-width: 220px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
  }

  .product-img {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .product-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    min-height: 40px;
  }

  .price-row {
    display: flex;
    gap: 8px;
    align-items: end;
  }

  .mrp {
    color: var(--muted);
    font-size: 12px;
  }

  .selling {
    font-size: 16px;
    font-weight: 700;
    color: #111;
  }

  .discount {
    font-size: 12px;
    color: green;
    font-weight: 600;
  }

  .rating {
    font-size: 13px;
    color: #444;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .review-count {
    color: #666;
    font-size: 0.85em;
    margin-left: 2px;
  }

  .delivery {
    font-size: 12px;
    color: var(--muted);
  }

  .badge {
    font-size: 14px;
    padding: 6px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    background-color: #bc75ff !important;
  }

  .ribbon {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--ribbon-bg);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
  }

  .deal {
    position: absolute;
    right: 10px;
    top: 10px;
    background: var(--deal-bg);
    color: #222;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
  }

  .gallery2-wrap {
    background: var(--gallery-bg, #fff);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(13, 38, 76, 0.08);
    overflow: hidden;
    width: var(--gallery-width, 100%);

  }

  .gallery2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .gallery2-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: var(--title-size, 18px);
    color: var(--title-color, #0f172a);
  }

  .gallery2-title h2 {
    margin: 0;
    font-size: 16px
  }

  /* banner area */
  .gallery2-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    /* height: var(--gallery-height, 360px); */
  }

  .banner-area {
    width: var(--banner-width, 35%);
    height: var(--banner-height, 100%);
    flex: 0 0 320px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(15, 23, 42, 0.06);
  }

  .banner-preview {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .banner-preview img,
  .banner-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px
  }

  .banner-info {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding: 8px
  }

  /* products viewport */
  .products-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }

  .products-strip {
    display: flex;
    gap: 12px;
    transition: transform 400ms ease;
    will-change: transform;
    padding: 12px;
    align-items: stretch;
    user-select: none;
  }

  .product-card {
    background: #fff;
    border-radius: 10px;
    min-width: 200px;
    flex: 0 0 220px;
    box-shadow: 0 4px 10px rgba(12, 14, 20, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(10, 10, 10, 0.03);
  }

  .product-media {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff, #f6f7fb);
    position: relative;
    overflow: hidden;
  }

  .product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .ribbon {
    position: absolute;
    left: 10px;
    top: 10px;
    background: linear-gradient(90deg, #ff8a00, #ff3b30);
    padding: 6px 8px;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 6px 14px rgba(255, 59, 48, 0.18);
  }

  .product-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  .p-name {
    font-size: 14px;
    font-weight: 700;       
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
  }

  .p-rating {
    font-size: 12px;
    color: #ffc107;
    display: flex;
    gap: 6px;
    align-items: center
  }

  .prices {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    flex-wrap: wrap;
  }

  .mrp {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px
  }

  .sell {
    font-size: 15px;
    color: #111827
  }

  .discount {
    color: #059669;
    font-weight: 700;
    font-size: 11px
  }
  .p-actions .btn1 {
    flex: 1;
    padding: 3px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    border-radius: 5px;
    border: 1px solid #c5c5c5;
  }

  .btn1.alt {
    border: none !important;
    box-shadow: none
  }

  .tag-deal {
    background: #fff6ea;
    color: #b45309;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(180, 83, 9, 0.08)
  }

  .btn1 {
    appearance: none;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #0b79ff;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(11, 121, 255, 0.16);
  }

  .btn1.ghost {
    background: transparent;
    color: #0b79ff;
    box-shadow: none;
    border: 1px solid rgba(11, 121, 255, 0.12)
  }

  /* carousel nav */
  .nav-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-controls button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    padding: 8px;
    border-radius: 8px;
    margin: 8px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(2, 6, 23, 0.08)
  }

  /* view more */
  .view-more {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: #bc75ff;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .view-more:hover {
    background: #bc75ff;
    color: #fff;
  }

  .panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
  }

  .panel .left {
    display: flex;
    align-items: center;
    gap: 12px
  }

  .gallery-title3 h2 {
    font-size: var(--title-size);
    color: var(--title-color);
    font-weight: 700;
    margin: 0;
  }

  .controls {
    display: flex;
    gap: 10px
  }

  .btn {
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600
  }

  .btn.secondary {
    background: #fff;
    color: #111;
    border: 1px solid #ddd
  }

  /* Gallery box */
  .gallery-box3 {
    position: relative;
    border-radius: 12px;
    background: var(--gallery-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px;
    /* padding-left: 25px;
    padding-right: 25px; */
    min-height: var(--gallery-height);
    width: 100%;
    max-width: var(--gallery-width);
    margin: 0 auto;
  }

  .banner-wrap3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
  }

  .banner-img3,
  .banner-video3 {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px
  }

  .banner-right3 {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 220px;
    max-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center
  }

  .banner-left3 {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 220px;
    max-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center
  }

  /* product track (one row) */
  .product-track-viewport3 {
    overflow: hidden;
    /* padding: 6px 4px; */
    /* margin-top: 12px; */
    /* height: auto; implied */
  }

  .product-track3 {
    display: flex;
    gap: 11px;
    transition: transform 450ms ease;
    will-change: transform
  }

  .product-card3 {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex: 0 0 calc((100% - (var(--desktop-count) - 1) * var(--product-gap)) / var(--desktop-count));
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
  }

  /* product image block */
  .img-block3 {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    background: #f9f9f9;
  }

  .v-count3 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(188, 117, 255, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(188, 117, 255, 0.3);
  }

  .img-block3 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px
  }

  .card-body3 {
    padding: 8px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1
  }

  .product-name3 {
    font-size: 14px;
    font-weight: 600;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .rating3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
  }

  .stars3 {
    color: #f2b01e;
  }

  .price-row-wrap3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }

  .sell3 {
    color: #111;
    font-size: 18px;
    font-weight: 800;
  }

  .mrp3 {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
  }

  .discount3 {
    color: #388e3c;
    font-size: 12px;
    font-weight: 700;
    background: #e6f4ea;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .mini3 {
    font-size: 12px;
    color: #1a1a1a;
    margin-top: 4px;
    background: #fff9e6;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    border: 1px dashed #f59e0b;
  }

  .card-actions3 {
    display: flex;
    gap: 8px;
    margin-top: auto
  }

  .btn-ghost3 {
    flex: 1;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }

  .btn-primary3 {
    flex: 1;
    padding: 6px;
    border-radius: 6px;
    border: none;
    background: #996dff;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }

  /* ribbon */
  .ribbon3 {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--ribbon-bg, #ff4b4b);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  /* arrows */
  .nav-arrows {
    position: absolute;
    width: 100%;
    height: 0;
    left: 0;
    top: 50%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
  }

  .nav-arrows button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #996dff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-bottom: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(-50%);
  }
  
  .nav-arrows button:hover {
      background: #996dff;
      color: #fff;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 8px 25px rgba(153, 109, 255, 0.4);
  }

  .nav-arrows .prevBtn { margin-left: 5px; }
  .nav-arrows .nextBtn { margin-right: 5px; }

  /* view more overlays */
  .view-more-top {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer
  }

  .view-more-bottom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--accent);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer
  }

  .gallery-wrap4 {
    background: transparent;
    /* padding: 6px; */
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-width: var(--gallery-width);
    margin: 0 auto;
  }

  .gallery-title4 {
    flex: 1;
    min-width: 0;
  }

  .gallery-title4 h2 {
    font-size: var(--title-size);
    font-weight: 700;
    margin: 0;
  }


  .gallery-stage4 {
    display: block;
    border-radius: 12px;
    position: relative;
    background: var(--card-bg);
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 12px;
    /* padding-left: 25px;
    padding-right: 25px; */
  }


  .banner-area4 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px
  }

  .banner-area4 img,
  .banner-area4 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
  }

  .banner-controls4 {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px
  }

  .products-viewport4 {
    overflow: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .products-viewport4::-webkit-scrollbar {
    display: none;
  }

  .products-row4 {
    display: grid;
    grid-auto-flow: column;
    gap: var(--product-gap);
    align-items: stretch;
    transition: transform .35s ease
  }

  /* product card */
  .product-card4 {
    background: var(--card-bg);
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .product-media4 {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center
  }

  .product-media4 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
  }

  .badge-ribbon4 {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #ff3b30;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px
  }

  .deal-badge4 {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #bc75ff69;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px
  }

  .product-title4 {
    font-weight: 600;
    font-size: 14px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 4px;
  }

  .rating4 {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
  }

  .price-row4 {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
    overflow: hidden;
  }

  .price4 {
    font-weight: 800;
    font-size: 16px;
    color: #111;
  }

  .mrp4 {
    color: #999;
    font-size: 13px;
    text-decoration: line-through;
  }

  .discount4 {
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
    background: #e6f4ea;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
  }

  .variants-tag4 {
    font-size: 11px;
    color: #8c53fe;
    background: #f3efff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: auto;
  }

  /* view more button positions */
  .view-more4 {
    position: absolute;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none
  }

  .view-more4.pos-top {
    top: 12px;
    left: 50%;
    transform: translateX(-50%)
  }

  .view-more4.pos-bottom {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%)
  }

  .view-more4.pos-left {
    left: 12px;
    top: 50%;
    transform: translateY(-50%)
  }

  .view-more4.pos-right {
    right: 12px;
    top: 50%;
    transform: translateY(-50%)
  }


  .card-actions4 {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: auto;
    width: 100%;
  }

  .btn-cart4, .btn-now4 {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-cart4 {
    background: #996dff;
    color: #fff;
    border-radius: 8px;
    padding: 7px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-cart4:hover {
    background: #8354ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 109, 255, 0.3);
  }

  .btn-now4 {
    background: #ffffff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 7px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-now4:hover {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
  }

  @media (max-width: 768px) {
    .price-row4 {
      gap: 5px !important;
    }
    .price4 {
      font-size: 14px !important;
    }
    .mrp4 {
      font-size: 11px !important;
    }

    .rating4 {
      font-size: 11px !important;
      gap: 2px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
    }

    .rating4 svg {
      width: 12px !important;
      height: 12px !important;
    }

    .review-count4 {
      font-size: 10px !important;
      margin-left: 2px !important;
      white-space: nowrap !important;
      display: inline-block !important;
    }
    .product-title4 {
      font-size: 13px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      min-height: auto !important;
      display: block !important;
      margin-bottom: 2px !important;
    }
    .gallery-wrap4 .gallery-header {
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      margin-bottom: 10px !important;
    }

    .gallery-wrap4 .gallery-title4 h2 {
      font-size: 15px !important;
      margin-bottom: 0px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .gallery-wrap4 .view-more {
      width: auto !important;
      padding: 6px 12px !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      background: #bc75ff !important;
      color: white !important;
      border-radius: 6px !important;
      margin: 0 !important;
      display: inline-block !important;
      flex-shrink: 0 !important;
    }

    .gallery-wrap4 {
      --product-gap: 9px !important;
      padding: 0px !important;
    }

    .gallery-stage4 {
      padding-left: 12px !important;
      padding-right: 12px !important;
      padding-top: 10px !important;
      padding-bottom: 10px !important;
    }

    .gallery-wrap4 .nav-arrows {
      display: none !important;
    }

    .gallery-wrap4 .products-viewport4 {
      overflow-x: auto !important;
      scroll-snap-type: x mandatory !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .gallery-wrap4 .products-viewport4::-webkit-scrollbar {
      display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .gallery-wrap4 .products-row4 {
      transform: none !important;
      width: max-content !important;
      display: flex !important;
    }

    .gallery-wrap4 .product-card4 {
      scroll-snap-align: start !important;
      flex: 0 0 240px !important;
      min-width: 240px !important;
      gap: 0px !important;
      padding: 8px !important;
    }

    .product-title4 {
      margin-bottom: 0px !important;
    }

    .price-row4 {
      margin-top: 0px !important;
    }

    .discount4 {
      font-size: 9px !important;
      padding: 1px 4px !important;
    }

    .card-actions4 {
      gap: 5px !important;
      flex-wrap: nowrap !important;
      margin-top: 5px !important;
    }
    .btn-cart4, .btn-now4 {
      font-size: 9px !important;
      padding: 7px 6px !important;
      border-radius: 6px !important;
      /* height: 32px !important; */
      text-transform: uppercase !important;
      letter-spacing: 0.2px !important;
      font-weight: 800 !important;
    }
  }

/* Product Carousel Element */
.pc-outer {
  overflow: hidden !important;
  max-width: 100%;
}

.pc-wrapper {
  position: relative;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}

.pc-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.pc-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.pc-slide {
  flex: 0 0 calc(var(--pc-card-width, 25%) - 10px);
  min-width: calc(var(--pc-card-width, 25%) - 10px);
  box-sizing: border-box;
}

.pc-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.pc-card:hover { 
  box-shadow: 0 4px 16px rgba(0,0,0,0.10); 
}

.pc-card img {
  width: 100%;
  height: 155px;
  object-fit: contain;
  border-radius: 6px;
  background: #f9f9f9;
}

.pc-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-card .pc-price {
  font-size: 14px;
  font-weight: 700;
  color: #0f1111;
  margin: 0;
}

.pc-card .pc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.pc-card .pc-stars {
  display: flex;
  font-size: 14px;
}

.pc-card .pc-review-count {
  color: #888;
}

.pc-card .view-btn {
  display: block;
  margin-top: auto;
  padding: 7px 12px;
  background: #ffd814;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
}

.pc-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #8c53fe;
  user-select: none;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}

.pc-prev { left: 1px; }
.pc-next { right: 1px; }

@media (min-width: 768px) and (max-width: 1024px) {
  .pc-wrapper { padding: 10px 40px; }
  .pc-slide {
    flex: 0 0 calc(33.333% - 9px);
    min-width: calc(33.333% - 9px);
  }
  .pc-card img { height: 140px; }
}

@media (max-width: 767px) {
  .pc-wrapper { padding: 8px 32px; }
  .pc-track { gap: 8px; padding: 4px 0 10px; }
  .pc-slide {
    flex: 0 0 calc(50% - 5px);
    min-width: calc(50% - 5px);
  }
  .pc-card { padding: 8px; border-radius: 8px; gap: 5px; }
  .pc-card img  { height: 110px; }
  .pc-card h3   { font-size: 11px; }
  .pc-card .pc-price  { font-size: 12px; }
  .pc-card .pc-rating { font-size: 10px; }
  .pc-card .view-btn  { font-size: 11px; padding: 5px 8px; }
  .pc-prev,
  .pc-next { width: 28px; height: 28px; }
}

@media (max-width: 400px) {
  .pc-wrapper { padding: 8px 32px !important; }
  .pc-slide {
    flex: 0 0 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
  .pc-card img { height: 90px; }
}

/* Product Grid Vertical Styles */
.product-grid-vertical-wrapper {
    background-color: var(--bg, #fff);
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 20, 30, 0.06);
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
}

.product-vertical-card {
    background: var(--card-bg, #fff);
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product-vertical-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-grid-vertical-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
    width: 100%;
}

.product-grid-vertical-wrapper.grid-layout .product-grid-vertical-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: stretch;
    gap: 8px;
}

.product-grid-vertical-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.product-grid-vertical-header .element-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b173f0;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.product-grid-vertical-wrapper.vertical-layout .product-grid-vertical-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.product-vertical-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.product-tag {
    position: absolute;
    top: 35px;
    left: 5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
}

.product-main-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin: 10px 0;
    overflow: hidden;
}

.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-vertical-card:hover .product-main-image img {
    transform: scale(1.05);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    margin: 0px !important;
    display: block;
    width: 100%;
}

.product-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    margin: 5px 0;
    min-height: 20px;
}

.product-rating {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-bottom: 2px;
}

.star {
    color: #e4e5e9;
    font-size: 14px;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    position: relative;
    color: #e4e5e9;
}

.star.half:before {
    content: '?';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    margin-left: 5px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.review-count {
    margin-left: 5px;
    color: #666;
    font-size: 14px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 14px;
}

.discount-badge {
    background-color: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.additional-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 15px;
    width: 100%;
}

.additional-image-item {
    aspect-ratio: 1 / 1;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
}

.additional-image-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.additional-image-item.empty {
    background: #f8f9fa;
    border-style: dashed;
}

.thumbnail-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
    width: 100%;
}

.thumbnail-item {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 70px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #b173f0;
}

.thumbnail-item.selected {
    border-color: #b173f0;
    box-shadow: 0 0 0 2px rgba(177, 115, 240, 0.1);
    transform: translateY(-2px);
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-item.empty {
    background: #f8f9fa;
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.thumbnail-item.empty:after {
    content: '+';
    color: #adb5bd;
    font-size: 20px;
    font-weight: 300;
}

.product-name-below {
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mrp-label {
    font-size: 12px;
    color: #999;
    margin-right: 2px;
}

.product-grid-vertical-wrapper .see-more-link {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 8px 8px 0px !important;
    background: transparent !important;
    border-radius: 8px;
    color: #b173f0;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0px !important;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .product-grid-vertical-header .element-title {
        font-size: 24px;
    }
    .product-details {
        padding: 20px;
    }
    .product-vertical-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .product-details {
        padding: 0px !important;
    }
    .product-grid-vertical-wrapper {
        padding: 12px !important;
    }
    .product-grid-vertical-container {
        gap: 10px !important;
    }
    .additional-image-item, 
    .thumbnail-item {
        height: 55px;
        padding: 3px;
    }
}

@media (max-width: 480px) {
    .product-details {
        padding: 5px !important;
    }
    .product-subtitle {
        font-size: 11px;
        min-height: auto;
    }
    .current-price {
        font-size: 16px !important;
    }
    .discount-badge {
        font-size: 9px !important;
    }
    .additional-image-item,
    .thumbnail-item {
        height: 45px;
    }
    .simple-carousel-item {
        width: 110px;
        height: 110px;
        padding: 6px;
    }
}

  /* == INFO CARD STYLES == */
  /* Animation Keyframes */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
  }

  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  @keyframes zoomIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Responsive Design for Info Card */
  @media (max-width: 768px) {
    .info-card-container .info-card-layout {
      padding: 10px !important;
      gap: 12px !important;
    }

    .horizontal-layout {
      flex-direction: column !important;
    }

    .media-card {
      width: 100% !important;
      flex: none !important;
    }

    .media-wrapper {
      width: 100% !important;
      height: 180px !important;
    }

    .heading-overlay h3 {
      font-size: 20px !important;
      text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    .subtitle-overlay p {
      font-size: 14px !important;
      text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    }
  }

  @media (max-width: 480px) {
    .media-wrapper {
      height: 160px !important;
    }

    .heading-overlay h3 {
      font-size: 18px !important;
    }

    .subtitle-overlay p {
      font-size: 13px !important;
    }
  }

  /* Hover Effects */
  .media-card {
    transition: transform 0.3s ease;
  }

  .media-card:hover {
    transform: translateY(-5px);
  }

  .media-wrapper img,
  .media-wrapper video {
    transition: transform 0.5s ease;
  }

  .media-card:hover .media-wrapper img,
  .media-card:hover .media-wrapper video {
    transform: scale(1.05);
  }

  /* Text Shadow for better readability */
  .heading-overlay h3,
  .subtitle-overlay p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  /* Fix for aspect ratio on older browsers */
  .media-wrapper {
    position: relative;
  }

  .media-wrapper::before {
    content: '';
    display: block;
  }

  .media-wrapper>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* == CSS for Product Gallery 2 == */
  .has-product-gallery-1 .product-img {
    width: 100%;
  }

  /* == CSS for Product Gallery 2 == */
  .gallery2-wrap {
    width: 100% !important;
    max-width: var(--gallery-width);
    min-height: var(--gallery-height);
    background: var(--gallery-bg);
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0px auto;
    box-sizing: border-box;
    position: relative;
  }
    
  .gallery2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 25px; */
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
    
  .gallery2-title h2 {
    font-size: var(--title-size);
    color: var(--title-color);
    margin: 0 0 5px 0;
    font-weight: 700;
  }
    
  .gallery2-main {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
  }
  
  .gallery2-main.banner-right {
    flex-direction: row-reverse;
  }
  
  .banner-area {
    flex: 0 0 var(--banner-width);
    height: var(--banner-height);
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
  }
  
  .products-viewport {
    flex: 1;
    overflow: hidden;
    width: 100%;
    position: relative;
  }
    
  .swiper-container {
    width: 100%;
  }
  
  .swiper-wrapper {
    width: 100%;
  }
    
  .gallery2-wrap .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Allow Swiper to control dimensions via inline width */
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
    
  .gallery2-wrap .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .gallery2-wrap .product-image {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
    
  .gallery2-wrap .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
  }
    
  .gallery2-wrap .ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b6b;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
  }

  .gallery2-wrap .v-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(188, 117, 255, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(188, 117, 255, 0.3);
  }
  
  .gallery2-wrap .mrp {
    color: #999;
    font-size: 14px;
  }
  
  .gallery2-wrap .sell {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
  }
  
  .gallery2-wrap .discount {
    background: #ffebee;
    color: #e53935;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
  }
  
  .gallery2-wrap .tag-deal {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
  }
    
  .gallery2-wrap .p-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
  }
  
  .gallery2-wrap .addToCart {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
  }
    
  .gallery2-wrap .addToCart:hover {
    background: #e9ecef;
  }
  
  .gallery2-wrap .buyNow {
    background: #996dff;
    color: white;
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
  }
    
  .buyNow:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
  
  .btn1.alt {
    background: #996dff;
    color: white;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    color: #8c53fe !important;
    background: #fff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    top: 50%;
    transform: translateY(-50%);
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .swiper-button-next svg, .swiper-button-prev svg {
    height: 18px !important;
    width: 18px !important;
    object-fit: contain;
    transform-origin: center;
    fill: currentColor;
    pointer-events: none;
  }
  
  .swiper-button-next {
    right: 10px;
  }
  
  .swiper-button-prev {
    left: 10px;
  }
    
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 700 !important;
  }
  
  /* Hide navigation when not needed */
  .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
  }

  /* Swiper built-in lock classes */
  .swiper-button-lock,
  .swiper-pagination-lock {
    display: none !important;
  }
    
  .variant-name {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    border-left: 3px solid #667eea;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .gallery2-wrap {
      padding: 8px !important;
      margin: 0px !important;
      border: 1px solid #eee !important;
      border-radius: 8px !important;
      /* height: 315px !important; */
    }
      
    .gallery2-header {
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
      padding: 0 !important;
      margin-bottom: 8px !important;
    }

    .gallery2-title {
      flex: 1 !important;
      min-width: 0 !important;
      margin-right: 10px !important;
    }

    .gallery2-title h2 {
      font-size: 15px !important;
      margin-bottom: 0px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
      
    .gallery2-wrap .view-more {
      width: auto !important;
      padding: 8px 15px !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      border-radius: 6px !important;
      background: #bc75ff !important;
      color: white !important;
      text-align: center !important;
      display: inline-block !important;
      flex-shrink: 0 !important;
    }
      
    .gallery2-main {
      flex-direction: column !important;
      gap: 15px !important;
      height: auto !important;
    }
      
    .banner-area {
      width: 100% !important;
      height: 180px !important;
      margin-bottom: 0 !important;
      flex: none !important;
    }

    .gallery2-slide-wrapper {
      width: 100% !important;
    }
        
    .gallery2-wrap .product-card {
      padding: 8px !important;
      border-radius: 10px !important;
    }

    .gallery2-wrap .product-body {
      display: flex !important;
      flex-direction: column !important;
      gap: 0px !important;
    }

    .gallery2-wrap .product-image {
      height: 150px !important;
      padding: 5px !important;
      margin-bottom: 5px !important;
    }

    .gallery2-wrap .p-name {
      font-size: 13px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      margin-bottom: 0px !important;
      display: block !important;
    }

    .gallery2-wrap .v-count {
      bottom: 8px !important;
      right: 8px !important;
      padding: 3px 6px !important;
      font-size: 9px !important;
      border-radius: 4px !important;
    }

    .gallery2-wrap .p-rating {
      font-size: 11px !important;
      margin-bottom: 0px !important;
      display: flex !important;
      align-items: center !important;
      color: #f2b01e !important;
      min-height: 18px !important;
    }

    .gallery2-wrap .p-rating span {
      color: #666 !important;
      font-size: 11px !important;
      margin-left: 4px !important;
    }

    .gallery2-wrap .prices {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 5px !important;
      justify-content: flex-start !important;
      /* margin-bottom: 8px !important; */
    }

    .gallery2-wrap .sell {
      font-size: 15px !important;
      font-weight: 800 !important;
      color: #111 !important;
      order: 1 !important;
    }

    .gallery2-wrap .mrp {
      font-size: 0 !important;
      color: #999 !important;
      order: 2 !important;
    }

    .gallery2-wrap .mrp span {
      font-size: 11px !important;
      text-decoration: line-through !important;
    }

    .gallery2-wrap .discount {
      font-size: 10px !important;
      padding: 2px 5px !important;
      background: #e6f4ea !important;
      color: #137333 !important;
      border-radius: 4px !important;
      order: 3 !important;
    }

    .gallery2-wrap .p-actions {
      flex-direction: row !important;
      gap: 6px !important;
      /* margin-top: 8px !important; */
      width: 100% !important;
    }

    .gallery2-wrap .addToCart, 
    .gallery2-wrap .buyNow {
      padding: 0 4px !important;
      font-size: 9px !important;
      font-weight: 700 !important;
      flex: 1 !important;
      height: 28px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      white-space: nowrap !important;
      border-radius: 6px !important;
      border: none !important;
      text-transform: uppercase !important;
      letter-spacing: 0.2px !important;
    }

    .gallery2-wrap .addToCart {
      background: #f3f4f6 !important;
      color: #374151 !important;
    }

    .gallery2-wrap .buyNow {
      background: #bc75ff !important;
      color: white !important;
    }

    /* Native Scroll for Mobile */
    .gallery2-wrap .swiper-container {
      overflow-x: auto !important;
      scroll-snap-type: x mandatory !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none;
    }

    .gallery2-wrap .swiper-container::-webkit-scrollbar {
      display: none;
    }

    .gallery2-wrap .swiper-wrapper {
      transform: none !important;
      width: max-content !important;
      display: flex !important;
      /* gap: 12px !important; */
    }

    .gallery2-wrap .swiper-slide {
      scroll-snap-align: start !important;
      flex: 0 0 calc((100vw - 31px - 12px) / 2) !important;
      min-width: 166px !important;
    }

    /* Hide Buttons on Mobile */
    .gallery2-wrap .nav-arrows,
    .gallery2-wrap .swiper-button-next,
    .gallery2-wrap .swiper-button-prev {
      display: none !important;
    }

    .gallery2-wrap .nav-arrows .prevBtn {
      margin-left: -5px !important;
    }

    .gallery2-wrap .nav-arrows .nextBtn {
      margin-right: -5px !important;
    }
  }
    
  @media (min-width: 769px) and (max-width: 1400px) {
    .gallery2-wrap {
      width: 100% !important;
    }
      
    .gallery2-header,
    .gallery2-main {
      max-width: 95%;
    }
  }
  
  @media (min-width: 1401px) {
    .gallery2-wrap {
      width: 100% !important;
    }
      
    .gallery2-header,
    .gallery2-main {
      max-width: 1600px;
    }
  }
    
  /* Ensure swiper slides take equal width */
  .swiper-slide {
    height: auto;
    display: flex;
  }
    @media (max-width: 768px) {
      .gallery-box3 {
        padding: 0px !important;
        margin: 0px !important;
        border-radius: 8px !important;
      }

      .gallery-box3 .gallery-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 10px !important;
      }

      .gallery-box3 .gallery-title3 h2 {
        font-size: 15px !important;
        margin: 0 !important;
      }

      .gallery-box3 .view-more {
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        background: #bc75ff !important;
        color: white !important;
        border-radius: 6px !important;
        margin: 0 !important;
      }

      .gallery-box3 .img-block3 {
        height: 140px !important;
        padding: 5px !important;
        margin-bottom: 5px !important;
        position: relative !important;
      }

      .gallery-box3 .v-count3 {
        bottom: 8px !important;
        right: 8px !important;
        padding: 3px 6px !important;
        font-size: 9px !important;
        border-radius: 4px !important;
      }

      .gallery-box3 .product-card3 {
        scroll-snap-align: start !important;
        flex: 0 0 240px !important;
        padding: 8px !important;
        border-radius: 10px !important;
        min-width: 240px !important;
      }

      .gallery-box3 .nav-arrows {
        display: none !important;
      }

      .gallery-box3 .product-track-viewport3 {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
      }

      .gallery-box3 .product-track-viewport3::-webkit-scrollbar {
        display: none;
      }

      .gallery-box3 .product-track3 {
        transform: none !important;
        width: max-content !important;
        display: flex !important;
        gap: 13px !important;
      }

      .gallery-box3 .card-body3 {
        padding: 5px !important;
        gap: 0px !important;
      }

      .gallery-box3 .product-name3 {
        font-size: 13px !important;
        min-height: auto !important;
        height: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 0px !important;
        display: block !important;
        -webkit-line-clamp: initial !important;
      }

      .gallery-box3 .rating3 {
        font-size: 11px !important;
        gap: 4px !important;
        margin-bottom: 0px !important;
        min-height: 16px !important;
        color: #444 !important;
      }

      .gallery-box3 .stars3 {
        color: #f2b01e !important;
      }

      .gallery-box3 .rating-val3 {
        font-weight: 800 !important;
        color: #333 !important;
      }

      .gallery-box3 .reviews-count3 {
        color: #888 !important;
        font-size: 10px !important;
      }

      .gallery-box3 .price-row-wrap3 {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 5px !important;
        margin-bottom: 0px !important;
        margin-top: 0px !important;
      }

      .gallery-box3 .sell3 {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #111 !important;
      }

      .gallery-box3 .mrp3 {
        font-size: 11px !important;
        color: #999 !important;
        text-decoration: line-through !important;
      }

      .gallery-box3 .discount3 {
        font-size: 8px !important;
        font-weight: 800 !important;
        color: #137333 !important;
        background: #e6f4ea !important;
        padding: 2px 4px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
      }

      .gallery-box3 .card-actions3 {
        gap: 5px !important;
        margin-top: 5px !important;
      }

      .gallery-box3 .btn-ghost3,
      .gallery-box3 .btn-primary3 {
        padding: 4px 2px !important;
        font-size: 8px !important;
        font-weight: 800 !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        text-transform: uppercase !important;
      }

      .gallery-box3 .btn-ghost3 {
        background: #f3f4f6 !important;
        border: none !important;
        color: #4b5563 !important;
      }

      .gallery-box3 .btn-primary3 {
        background: #bc75ff !important;
      }

      /* Nav arrows adjustment */
      .gallery-box3 .nav-arrows button {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        background: #bc75ff !important;
        color: white !important;
        padding-bottom: 2px !important;
      }

      .gallery-box3 .nav-arrows .prevBtn { 
        margin-left: -10px !important; 
      }

      .gallery-box3 .nav-arrows .nextBtn { 
        margin-right: -10px !important; 
      }
    }
    
    .pg5-container {
      width: 100%;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
      font-family: 'Inter', sans-serif;
      padding: 12px;
      box-sizing: border-box;
      border: 1px solid #eee;
    }

    .pg5-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      border: none;
    }

    .pg5-title {
      font-size: 20px;
      font-weight: 700;
      color: #1a1a1a;
      margin: 0;
    }

    .pg5-tabs-nav {
      display: flex;
      gap: 10px;
    }

    .pg5-tab-btn {
      padding: 8px 12px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-weight: 600;
      font-size: 13px;
      color: #666;
      transition: all 0.3s ease;
    }

    .pg5-tab-btn:hover {
      color: #8c52ff;
    }

    .pg5-tab-btn.active {
      color: #8c52ff;
    }

    .pg5-viewport {
      min-height: 400px;
      position: relative;
    }
    
    .pg5-tab-content {
      display: none;
      position: relative;
    }

    .pg5-tab-content.active {
      display: block;
      animation: pg5FadeUp 0.5s ease forwards;
    }
    
    .pg5-slider-viewport {
      overflow: hidden;
      position: relative;
    }

    .pg5-slider-track {
      display: flex;
      gap: 20px;
      transition: transform 0.4s ease-out;
    }
    
    .pg5-card {
      flex: 0 0 calc((100% - (5 * 20px)) / 6);
      border: 1px solid #f0f0f0;
      border-radius: 10px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      background: #fff;
      display: flex;
      flex-direction: column;
      text-decoration: none !important;
    }

    .pg5-card-media {
      aspect-ratio: 1/1;
      overflow: hidden;
      background: #f9f9f9;
      position: relative;
    }

    .pg5-card-media img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 15px;
    }

    .pg5-card-info {
      padding: 10px;
      flex: 1;
    }

    .pg5-card-title {
      font-size: 13px;
      font-weight: 500;
      color: #333;
      margin-bottom: 8px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.4;
      height: 2.8em;
    }

    .pg5-card-price-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pg5-card-price {
      font-size: 14px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .pg5-card-mrp {
      font-size: 11px;
      color: #999;
      text-decoration: line-through;
    }

    .pg5-card-discount {
      background: #fff1f2;
      color: #e11d48;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
    }

    .pg5-free-shipping {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #f0fdf4;
      color: #16a34a;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      margin-top: 8px;
      letter-spacing: 0.2px;
    }

    .pg5-rating {
      display: flex;
      align-items: center;
      gap: 3px;
      margin-bottom: 8px;
    }

    .pg5-rating span {
      font-size: 11px;
      color: #888;
      margin-left: 3px;
    }

    .pg5-card-actions {
      display: flex;
      gap: 6px;
      padding: 0 10px 10px;
    }

    .pg5-btn-cart {
      flex: 1;
      padding: 7px 4px;
      font-size: 11px;
      font-weight: 600;
      border: 1.5px solid #8c52ff;
      background: #fff;
      color: #8c52ff;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .pg5-btn-cart:hover {
      background: #8c52ff;
      color: #fff;
    }

    .pg5-btn-now {
      flex: 1;
      padding: 7px 4px;
      font-size: 11px;
      font-weight: 600;
      border: none;
      background: #8c52ff;
      color: #fff;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .pg5-btn-now:hover {
      background: #7a3fe0;
    }
    
    .pg5-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #fff;
      border: 1px solid #eee;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      color: #8c52ff;
      font-size: 18px;
      transition: all 0.3s ease;
    }

    .pg5-nav-btn:hover {
      background: #8c52ff;
      color: #fff;
      border-color: #8c52ff;
    }

    .pg5-nav-btn.prev { left: -15px; }
    .pg5-nav-btn.next { right: -15px; }
    .pg5-nav-btn.disabled {
      opacity: 0;
      pointer-events: none;
    }

    .pg5-tabs-select-mobile {
      display: none;
      position: relative;
      width: 100%;
    }

    .custom-dropdown-trigger {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid #f0f0f0;
      border-radius: 4px;
      font-family: inherit;
      font-size: 14px;
      background-color: #fff;
      color: #333;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      box-sizing: border-box;
    }

    .custom-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #f0f0f0;
      border-top: none;
      border-radius: 0 0 4px 4px;
      z-index: 100;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      padding: 5px;
      box-sizing: border-box;
    }

    .custom-dropdown.open .custom-dropdown-menu {
      display: block;
    }

    .custom-dropdown.open .custom-dropdown-trigger {
      border-bottom-color: transparent;
    }

    .custom-dropdown.open .custom-dropdown-arrow {
      transform: rotate(180deg);
    }

    .custom-dropdown-item {
      padding: 12px 15px;
      cursor: pointer;
      font-size: 14px;
      border-radius: 4px;
      color: #777;
      transition: background 0.2s, color 0.2s;
      margin-bottom: 2px;
    }

    .custom-dropdown-item:last-child {
      margin-bottom: 0;
    }

    .custom-dropdown-item:hover, .custom-dropdown-item.selected {
      background: #f4f4f4;
      color: #003768;
      font-weight: 500;
    }

    .custom-dropdown-arrow {
      transition: transform 0.3s;
    }

    @keyframes pg5FadeUp {
      from { opacity: 0; transform: translateY(15px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @media (max-width: 1200px) {
      .pg5-card { flex: 0 0 calc((100% - (3 * 20px)) / 4); }
    }

    @media (max-width: 992px) {
      .pg5-card { flex: 0 0 calc((100% - (2 * 20px)) / 3); }
    }

    @media (max-width: 768px) {
      .pg5-container {
        padding: 10px !important;
      }

      .pg5-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
      }

      .pg5-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100%;
      }

      .pg5-tabs-nav {
        display: none;
      }

      .pg5-tabs-select-mobile {
        display: block;
        width: 100%;
      }

      .pg5-card { 
        flex: 0 0 240px !important; 
        min-width: 240px !important;
        scroll-snap-align: start;
      }

      .pg5-nav-btn { 
        display: none; 
      }
      
      .pg5-slider-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 15px; /* space for shadow */
      }

      .pg5-slider-viewport::-webkit-scrollbar {
        display: none;
      }

      .pg5-slider-track {
        transform: none !important;
      }
    }
    .lsc-wrap { 
      padding: 12px; 
      background:#fff; 
      border-radius: 12px;
      border: 1px solid #eee;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
      overflow:hidden !important; 
      position:relative; 
      box-sizing:border-box; 
      width:100% !important; 
      max-width:100% !important; 
      /* margin-bottom: 20px; */
    }

    .lsc-main-flex { 
      display:flex; 
      gap:0; 
      align-items:stretch; 
      width:100%; 
      max-width:100% !important; 
      overflow:visible !important; 
    }
    
    .lsc-head { 
      display:flex; 
      justify-content:space-between; 
      align-items:center; 
      margin-bottom:12px; 
    }

    .lsc-head h3 { 
      font-size:18px; 
      font-weight:700; 
      color:#111; 
      margin:0; 
      line-height: 1.3; 
      display: -webkit-box; 
      -webkit-line-clamp: 2; 
      -webkit-box-orient: vertical; 
      overflow: hidden; 
    }

    .lsc-head a { 
      font-size:14px; 
      color:#8c53fe; 
      font-weight:600; 
      text-decoration:none; 
      white-space: nowrap; 
      flex-shrink: 0; 
    }

    .lsc-row { 
      display:flex; 
      gap:12px; 
      overflow-x:auto !important; 
      padding:5px 0px; 
      scrollbar-width:none !important; 
      -ms-overflow-style:none !important; 
      align-items:stretch; 
      width: 100%; 
      box-sizing: border-box; 
    }

    .lsc-row::-webkit-scrollbar, 
    .lsc-wrap::-webkit-scrollbar,
    .lsc-main-flex::-webkit-scrollbar,
    .lsc-nav-wrap::-webkit-scrollbar { 
      display:none !important; 
      width:0 !important; 
      height:0 !important; 
    }

    .lsc-vid-card   {
      flex:0 0 360px;
      border-radius:14px;
      overflow:hidden;
      position:relative;
      background:#111;
      height:250px;
      margin-right: 15px;
    }

    .lsc-vid-card video,
    .lsc-vid-card iframe {
      width: 100%;
      height: 100%;
      display: block;
      border: none;
    }

    .lsc-vid-card iframe {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 177.78%;
      height: 177.78%;
      transform: translate(-50%, -50%);
      pointer-events: none;
    }

    .lsc-vid-card video { 
      object-fit: cover; 
    }

    .lsc-viewers    { 
      position:absolute; 
      top:8px; 
      right:8px; 
      color:#fff; 
      font-size:9px; 
      background:rgba(0,0,0,0.55); 
      padding:3px 7px; 
      border-radius:5px; 
      z-index:3; 
    }

    .lsc-vid-title  { 
      position:absolute; 
      top:30px; 
      left:0; 
      right:0; 
      padding:8px 10px; 
      color:#fff; 
      font-size:12px; 
      font-weight:700; 
      line-height:1.3; 
      text-shadow:0 2px 6px rgba(0,0,0,0.7); 
      z-index:3; 
      background:linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%); 
    }

    .lsc-watch-btn  { 
      position:absolute; 
      bottom:34px; 
      left:50%; 
      transform:translateX(-50%); 
      background:rgba(0,0,0,0.68); 
      color:#fff; 
      font-size:10px; 
      font-weight:700; 
      padding:6px 16px; 
      border-radius:22px; 
      white-space:nowrap; 
      border:none; 
      cursor:pointer; 
      display:flex; 
      align-items:center; 
      gap:6px; 
      z-index:4; 
    }

    .lsc-watch-btn svg { flex-shrink:0; }

    .lsc-ctrl-row   { 
      position:absolute; 
      bottom:9px; 
      left:9px; 
      display:flex; 
      gap:6px; 
      align-items:center; 
      z-index:4; 
    }

    .lsc-ctrl-btn   { 
      width:28px; 
      height:28px; 
      border-radius:50%; 
      background:rgba(0,0,0,0.55); 
      border:none; 
      color:#fff; 
      display:flex; 
      align-items:center; 
      justify-content:center; 
      cursor:pointer; 
      font-size:13px; 
      padding:0; 
    }

    .lsc-streamer   { 
      position:absolute; 
      bottom:9px; 
      right:9px; 
      color:rgba(255,255,255,0.9); 
      font-size:10px; 
      font-weight:600; 
      text-align:right; 
      text-shadow:0 1px 3px rgba(0,0,0,0.5); 
      z-index:3; 
      max-width:90px; 
    }

    .lsc-streamer small { 
      display:block; 
      font-size:9px; 
      color:rgba(255,255,255,0.6); 
      font-weight:400; 
    }

    .lsc-prod-card  {
      flex:0 0 calc((100% - 50px) / 6);
      min-width: 140px;
      height: 240px;
      border:1px solid #ddd;
      border-radius:8px;
      overflow:hidden;
      background:#fff;
      text-decoration:none;
      color:inherit;
      display:flex;
      flex-direction:column;
      transition: border-color 0.3s;
      box-sizing: border-box;
    }

    .lsc-prod-card:first-of-type { border: 1.5px solid #ff4d4f; }
    
    .lsc-prod-card img { 
      width:100%; 
      height:160px; 
      object-fit:contain; 
      background:#f9f9f9; 
      display:block; 
      padding:10px; 
    }
    
    .lsc-prod-info  {
      padding:10px 12px 14px;
      flex:1;
      display:flex;
      flex-direction:column;
      max-height: 120px;
      overflow: hidden;
    }

    .lsc-prod-badge {
      font-size: 8px;
      color:#ff4d4f;
      background: #fff2f0;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 600;
      text-transform: none;
      width: fit-content;
    }

    .lsc-prod-name  {
      font-size:11px;
      color:#111;
      line-height:1.4;
      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
      overflow:hidden;
      font-weight:500;
      height: 30px;
    }

    .lsc-prod-price {
      font-size:18px;
      font-weight:700;
      color:#111;
      margin-top: auto;
    }

    .lsc-prod-mrp { 
      font-size:11px; 
      color:#777; 
      text-decoration:line-through; 
      font-weight:400; 
    }

    .lsc-nav-wrap { 
      position:relative; 
      flex:1 1 0; 
      min-width:0; 
    }

    @media (max-width: 992px) {
      .lsc-vid-card { 
        flex: 0 0 300px; 
      }
    }

    @media (max-width: 768px) {
      .lsc-main-flex { 
        flex-direction: column; 
      }

      .lsc-vid-card { 
        flex: none; 
        width: 100%; 
        height: 200px; 
        margin-right: 0; 
        margin-bottom: 5px; 
      }

      .lsc-prod-card { 
        height: 200px; 
        min-width: 120px; 
      }
      
      .lsc-prod-card img { 
        height: 110px; 
      }
      
      .lsc-prod-info { 
        max-height: 90px; 
        padding: 6px 10px 10px; 
      }
    }
    .lsbc-container { 
      background:#fff; 
      border:1px solid #e7e7e7; 
      padding:12px; 
      /* margin-bottom:20px;  */
      font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
      overflow:hidden !important; 
      position:relative; 
      box-sizing:border-box; 
      width:100% !important; 
      max-width:100% !important; 
    }

    .lsbc-header { 
      display:flex; 
      align-items:center; 
      gap:25px; 
      padding-bottom:12px; 
    }

    .lsbc-logo-wrap { 
      border-right:1px solid #ededed; 
      padding-right:20px; 
      flex-shrink:0; 
    }

    .lsbc-logo      { 
      height:50px; 
      max-width:120px; 
      object-fit:contain; 
    }

    .lsbc-info-wrap { 
      display:flex; 
      flex-direction:row; 
      align-items:center; 
      justify-content:space-between; 
      gap:10px; 
      flex:1; 
    }

    .lsbc-info-wrap span { 
      font-size:18px; 
      font-weight:700; 
      color:#111; 
      line-height:1.3; 
      flex:1; 
      min-width:0; 
      display:-webkit-box; 
      -webkit-line-clamp:2; 
      -webkit-box-orient:vertical; 
      overflow:hidden; 
    }

    .lsbc-info-wrap a  { 
      font-size:14px; 
      color:#8c53fe; 
      font-weight:600; 
      text-decoration:none; 
      white-space:nowrap; 
      flex-shrink:0; 
    }

    .lsbc-info-wrap a:hover { 
      text-decoration:underline; 
    }

    .lsbc-body      { 
      display:flex; 
      background:transparent; 
      min-height:240px; 
      overflow:hidden; 
    }

    .lsbc-vid-side  { 
      flex:0 0 360px; 
      position:relative; 
      background:#000; 
      height:240px; 
      border-radius: 14px; 
      margin-right: 15px; 
      overflow: hidden; 
    }

    .lsbc-vid-side video, .lsbc-vid-side iframe { 
      width:100%; 
      height:100%; 
      object-fit:cover; 
      display:block; 
      border:none; 
      border-radius: 14px; 
    }

    .lsbc-vid-ctrls { 
      position:absolute; 
      bottom:12px; 
      right:12px; 
      display:flex; 
      gap:8px; 
      z-index:5; 
    }

    .lsbc-vid-btn   { 
      width:28px; 
      height:28px; 
      border-radius:50%; 
      background:rgba(0,0,0,0.5); 
      color:#fff; 
      display:flex; 
      align-items:center; 
      justify-content:center; 
      cursor:pointer; 
      font-size:12px; 
      border:none; 
      transition:0.2s; 
    }

    .lsbc-vid-btn:hover { 
      background:rgba(0,0,0,0.8); 
    }
    
    .lsbc-nav-wrap  { 
      position:relative; 
      flex:1; 
      min-width:0; 
    }
    
    .lsbc-prod-side { 
      display:flex; 
      gap:10px; 
      overflow-x:auto !important; 
      align-items:stretch; 
      height:240px; 
      scroll-behavior: smooth; 
      scrollbar-width: none !important; 
      -ms-overflow-style: none !important; 
    }
    
    .lsbc-prod-side::-webkit-scrollbar { 
      display: none !important; 
      width: 0 !important; 
      height: 0 !important; 
    }
    
    .lsbc-card      { 
      flex:0 0 160px; 
      background:#fff; 
      border:1px solid #ddd; 
      border-radius:8px; 
      padding:10px; 
      display:flex; 
      flex-direction:column; 
      text-decoration:none; 
      color:inherit; 
      height: 100%; 
      box-sizing: border-box; 
      transition: border-color 0.3s; 
    }
    
    .lsbc-card:first-of-type { 
      border: 1.5px solid #ff4d4f; 
    }
    
    .lsbc-card:hover { 
      border-color: #ff4d4f; 
    }

    .lsbc-scroll-btn { 
      position:absolute; 
      top:45%; 
      transform:translateY(-50%); 
      width:34px; 
      height:34px; 
      background:#fff; 
      border:1px solid #ddd; 
      border-radius: 50%; 
      box-shadow:0 4px 12px rgba(0,0,0,0.15); 
      display:flex; 
      align-items:center; 
      justify-content:center; 
      cursor:pointer; 
      z-index:10; 
      color:#8c53fe; 
      font-size:18px; 
      font-weight: 800; 
      transition:all 0.2s; 
    }
    
    .lsbc-scroll-btn:hover { 
      background: #fdfdfd; 
      color: #111; 
      box-shadow:0 4px 15px rgba(0,0,0,0.22); 
      transform: translateY(-50%) scale(1.05); 
    }
    
    .lsbc-scroll-btn.prev { 
      left: 0px; 
    }
    
    .lsbc-scroll-btn.next { 
      right: 0px; 
    }
    
    .lsbc-card img  { 
      width:100%; 
      height:140px; 
      object-fit:contain; 
      margin-bottom:10px; 
      background:#fafafa; 
    }
    
    .lsbc-card-name { 
      font-size:13px; 
      font-weight:500; 
      color:#111; 
      line-height:1.4; 
      height:2.8em; 
      overflow:hidden; 
      display:-webkit-box; 
      -webkit-line-clamp:2; 
      -webkit-box-orient:vertical; 
      margin-bottom:5px; 
    }
    
    .lsbc-rating    { 
      display:flex; 
      align-items:center; 
      gap:5px; 
      font-size:12px; 
      color:#666; 
      margin-bottom:5px; 
    }
    
    .lsbc-stars     { 
      color:#ffa41c; 
      letter-spacing:1px; 
    }
    
    .lsbc-price     { 
      font-size:15px; 
      font-weight:700; 
      color:#111; 
      margin-top:auto; 
    }
    
    .lsbc-footer    { 
      text-align:right; 
      font-size:11px; 
      color:#a0a0a0; 
      padding-top:8px; 
      display:flex; 
      justify-content:flex-end; 
      align-items:center; 
      gap:4px; 
    }

    @media (max-width: 992px) {
      .lsbc-vid-side { 
        flex:0 0 300px; 
      }
      
      .lsbc-header   { 
        gap:15px; 
      }
      
      .lsbc-logo     { 
        height:40px; 
      }
      
      .lsbc-info-wrap h2 { 
        font-size:15px; 
      }
    }
    
    @media (max-width: 768px) {
      .lsbc-body     { 
        flex-direction:column; 
      }
      
      .lsbc-vid-side { 
        flex:none; 
        height:200px; 
        width:100%; 
      }
      
      .lsbc-header   { 
        align-items:center; 
      }
      
      .lsbc-logo-wrap { 
        display: none; 
      }
      
      .lsbc-prod-side { 
        padding: 15px 15px 25px !important; 
      }
      
      .lsbc-scroll-btn { 
        display: none; 
      }
    }

/* ========================================== */
/* Synced Video Carousel (SVC) Styles         */
/* ========================================== */
.svc-wrap { padding: 12px; background: #fff; border-radius: 8px; width: 100%; box-sizing: border-box; overflow: hidden; }
.svc-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-main-slider { border-radius: 12px; overflow: hidden; background: #fff; height: 300px; position: relative; width: 100%; }
.svc-main-slider .swiper-slide { display: flex; align-items: center; justify-content: center; background: #fff; position: relative; }
.svc-main-slider video, .svc-main-slider iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-main-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.svc-vol-btn { position: absolute; bottom: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.svc-thumb-slider { margin-top: 0; width: 100%; padding-bottom: 5px; overflow: hidden !important; }

.svc-desktop-layout { display: flex; gap: 20px; align-items: stretch; width: 100%; box-sizing: border-box; }
.svc-desktop-layout .svc-main-slider { width: 25%; flex-shrink: 0; margin: 0; background: #fff; border-radius: 12px; height: auto; align-self: stretch; display: flex; }
.svc-desktop-layout .svc-main-slider .swiper-wrapper, .svc-desktop-layout .svc-main-slider .swiper-slide { height: 100%; }
.svc-desktop-layout .svc-thumb-slider-wrap { width: calc(75% - 20px); flex-grow: 1; position: relative; display: flex; align-items: center; box-sizing: border-box; overflow: hidden !important; }

/* Navigation Arrows */
.svc-nav-next, .svc-nav-prev, .svc-thumb-next, .svc-thumb-prev {
    background: rgba(255,255,255,0.8);
    color: #000;
    width: 30px; height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.svc-nav-next::after, .svc-nav-prev::after, .svc-thumb-next::after, .svc-thumb-prev::after { font-size: 14px; font-weight: bold; }

.svc-thumb-slider-wrap .svc-thumb-prev { left: 5px; top: 50%; transform: translateY(-50%); }
.svc-thumb-slider-wrap .svc-thumb-next { right: 5px; top: 50%; transform: translateY(-50%); }

.svc-thumb-slider .swiper-slide { width: 160px; height: auto; }
.svc-thumb-card { border: 2px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.2s; height: 100%; display: flex; flex-direction: column; position: relative; }
.svc-thumb-slider .swiper-slide:first-child .svc-thumb-card { border: 2px solid #ff7700; }
.svc-thumb-img-wrapper { position: relative; display: block; flex-shrink: 0; }
.svc-thumb-img { height: 150px; background: #f9f9f9; padding: 5px; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.svc-thumb-img img { width: 100%; height: 100%; object-fit: contain; }
.svc-thumb-info { padding: 8px 5px; border-top: 1px solid #f0f0f0; flex-grow: 1; display: flex; flex-direction: column; }
.svc-thumb-title { font-size: 11px; font-weight: 600; color: #333; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
.svc-thumb-title.svc-title-1line { height: 16px; -webkit-line-clamp: 1; }
.svc-thumb-title.svc-title-2lines { height: 28px; -webkit-line-clamp: 2; }

.svc-thumb-price-wrap { margin-top: auto; display: flex; align-items: center; gap: 0px; flex-wrap: wrap; }
.svc-thumb-price { font-size: 14px; font-weight: 700; color: #111; }
.svc-thumb-price::before { content: '?'; font-size: 11px; margin-right: 1px; color: #555;}
.svc-thumb-mrp-container { font-size: 10px; color: #888; font-weight: 400; display: inline-flex; align-items: center; }
.svc-thumb-mrp { text-decoration: line-through; margin-left: 4px; }
.svc-thumb-mrp::before { content: '?'; font-size: 9px; margin-right: 1px;}
.svc-thumb-discount { color: #cc0000; font-weight: 700; font-size: 10px; margin-left: 5px; white-space: nowrap; }

.svc-thumb-deal-banner { background-color: #cc0000 !important; color: #fff !important; font-size: 8px; font-weight: 700; padding: 3px 6px; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 5px; align-self: flex-start; }
.svc-thumb-slider a { text-decoration: none !important; }

@media(max-width: 768px) {
    .svc-wrap { padding: 5px 0 15px 0; border-radius: 0; border-top: 5px solid #f4f4f4; border-bottom: 5px solid #f4f4f4; }
    .svc-title { padding: 0 10px; font-size: 18px; margin-bottom: 15px; }
    .svc-desktop-layout { display: block; }
    .svc-desktop-layout .svc-main-slider { width: 100%; height: 56.25vw; min-height: 200px; border-radius: 0; }
    .svc-desktop-layout .svc-thumb-slider-wrap { width: 100%; padding: 10px 0 !important; margin-top: 10px; border-top: 5px solid #f4f4f4; }
    .svc-nav-next, .svc-nav-prev, .svc-thumb-next, .svc-thumb-prev { display: none !important; }

    .svc-thumb-slider { width: 100%; box-sizing: border-box; }
    .svc-thumb-card { border: 1px solid #e0e0e0; box-shadow: none; position: relative; }
    .svc-thumb-img { height: 85px; background: #fff; padding: 5px; }
    .svc-thumb-info { padding: 5px; border-top: none; }
    .svc-thumb-title { font-size: 10px; color: #555; }
    .svc-thumb-price { font-size: 13px !important; font-weight: 800 !important; }
    .svc-thumb-discount { color: #16a34a !important; }
}

.svc-main-slider .svc-nav-prev { left: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); }
.svc-main-slider .svc-nav-next { right: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); }
.svc-main-slider .svc-nav-prev::after, .svc-main-slider .svc-nav-next::after { font-size: 16px; }

/* Premium Showcase Styles */
.premium-showcase-wrap { 
  background: #fff; 
  width: 100%; 
  box-sizing: border-box; 
}

.premium-showcase-box  { 
  display: flex;
  width: 100%;
  height: 280px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #f0f0f0;
  text-decoration: none !important;
  color: inherit !important; 
}
    
.ps-hero {
  flex: 0 0 35%;
  position: relative;
  overflow: hidden;
}

.ps-hero-img-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ps-hero-content {
  position: relative;
  z-index: 2;
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

.ps-hero h3 { 
  font-size: 17px; 
  font-weight: 900; 
  color: #111; 
  line-height: 1.1; 
  margin: 0 0 4px; 
  white-space: pre-wrap; 
  font-family: inherit; 
}

.ps-hero p  { 
  font-size: 9px; 
  color: #333; 
  font-weight: 800; 
  text-transform: uppercase; 
  margin: 0; 
  letter-spacing: 0.3px; 
}

.ps-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-prod { 
  flex: 0 0 33%; 
  padding: 12px; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  border-left: 1px solid #f2f2f2; 
}

.ps-prod-img-box {
  height: 200px;
  width: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ps-prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-prod-title {
  font-size: 17px !important;
  line-height: 1.4;
  color: #111;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-rating-row { 
  display: flex; 
  align-items: center; 
  gap: 5px; }

.ps-rating-num {
  font-size: 14px !important;
  font-weight: 700;
  color: #333;
}

.ps-stars {
  color: #ffa41c;
  font-size: 14px !important;
}

.ps-review-count {
  font-size: 13px !important;
  color: #007185;
  font-weight: 500;
}

.ps-price-block { 
  margin-top: auto; 
  display: flex; 
  flex-direction: column; 
  gap: 3px; 
}

.ps-badge-row { 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 5px; 
}

.ps-discount-tag { 
  background: #cc0c39; 
  color: #fff; 
  font-size: 10px; 
  font-weight: 700; 
  padding: 3px 8px; 
  border-radius: 2px; 
}

.ps-badge-text { 
  color: #cc0c39; 
  font-size: 10px; 
  font-weight: 700; 
}

/* Brand Section (Right) */
.ps-brand { 
  flex: 1; 
  padding: 12px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 15px; 
  border-left: 1px solid #f2f2f2; 
}

.ps-logo-box {
  width: 100%;
  max-width: 150px;
  height: 100px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ps-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  
.ps-cta-link { 
  font-size: 14px; 
  font-weight: 700; 
  color: #007185; 
  text-align: center; 
  line-height: 1.2; 
  text-decoration: none; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.ps-sponsored { 
  position: absolute; 
  bottom: 6px; 
  right: 12px; 
  font-size: 9px; 
  color: #888; 
  display: flex; 
  align-items: center; 
  gap: 3px; 
}
    
/* Desktop enhancements */
@media (min-width: 992px) {
  .ps-hero h3 { font-size: 20px; }
  .ps-prod-title { font-size: 13px; }
  .ps-prod-img-box { height: 180px; }
}

@media (max-width: 768px) {
  .premium-showcase-box { flex-wrap: wrap; height: auto; }
  .ps-hero { flex: 0 0 100%; height: 160px; border-bottom: 1px solid #f2f2f2; }
  .ps-hero h3 { font-size: 16px; }
  .ps-prod { flex: 0 0 55%; padding: 10px; border-left: none; }
  .ps-prod-img-box { height: 100px; }
  .ps-prod-title { font-size: 14px !important; }
  .ps-price-block { gap: 2px; }
  .ps-brand { flex: 0 0 45%; padding: 10px; border-left: 1px solid #f2f2f2; }
  .ps-logo-box { height: 50px; }
  .ps-cta-link { font-size: 12px; }
  .ps-sponsored { right: 8px; bottom: 4px; }
}

@media (max-width: 400px) {
  .ps-hero h3 { font-size: 15px; }
  .ps-prod-img-box { height: 90px; }
  .ps-prod-title { font-size: 13px !important; }
}
