/* Your existing styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-wrap: pretty;
}
a{
  -webkit-tap-highlight-color: transparent;

}


body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none;

}

.only_mobile{
  display: none;
}
@media screen and (max-width: 1024px) {
  .only_mobile{
    display: block;
  }
}
/* ========================
   TABLE OF CONTENTS

   1. VARIABLES
   2. GLOBAL STYLES
   4. ANNOUNCEMENT BANNER
   5. HEADER SECTION
      5.1 Carousel
      5.2 Header Content
   6. MODAL
   7. MEDIA QUERIES
      7.1 Large Screens (1921px+)
      7.2 Medium-Large Screens (max-width: 1200px)
      7.3 Tablets (max-width: 768px)
      7.4 Small Tablets (481px - 768px)
      7.5 Mobile (max-width: 480px)
   ======================== */


/* ========================
   1. CSS VARIABLES
   ======================== */
:root {
  --nav-height: 60px;
  --announcement-height: 52px;
  --primary-color: #6cbcb7;
  --secondary-color: #ffffff;
  --text-color: #333;
  --light-bg: #fafafa;
  --border-color: #eeeeee;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.06);
  --transition-standard: all 0.3s ease;
}

/* ========================
   3. ANNOUNCEMENT BANNER
   ======================== */
.announcement-banner {
  width: 100%;
  /*background: linear-gradient(90deg, #31b3c1 0%, #5dc9d1 49%, #31b3c1 100%);*/
  /*background: linear-gradient(90deg, #98735B 0%, #EFB995 50%, #98735B 100%);*/
  /*background: linear-gradient(90deg, #ac846a 0%, #ecc1a6 40%, #ecc1a6 60%, #ac846a 100%);*/
  /*background: linear-gradient(to right, #e2c8b2, #fdf7e5, #fdf7e5, #e2c8b2);*/
  /*background: linear-gradient(to left, #EDD2B3, #F6E3C4);*/
  /*background: linear-gradient(70deg, #C19880FF 0%, #f5e2d4 65%, #eacdbf 70%, #c89d84 90%);*/
  /*background: linear-gradient(*/
  /*        70deg,*/
  /*        #c19880 0%,     */
  /*        #f5e2c5 65%,    */
  /*        #eacdaf 70%,    */
  /*        #c89d70 90%     */
  /*);*/
  background: linear-gradient(
          80deg,
          #bf9777 0%,
          #e3caa3 55%,
          #f2e7b8 65%,
          #c59a65 85%
  );

  padding: 6px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  /*box-shadow: 0 20px 60px rgb(255 255 255 / 70%), 0 0 30px rgb(255 255 255 / 60%);*/
  letter-spacing: 0.7px;
  text-shadow: none;
  font-family: 'Montserrat', sans-serif;
  color: #62473c;
  /*color: white;*/
  z-index: 9;
}

.announcement-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
          120deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.5) 50%,
          rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 4s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}
.announcement-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  height: auto;
  padding: 0 15px;
}

.announcement-slider {
  position: relative;
  width: 100%;
  height: 100%;
  animation: float 4s ease-in-out infinite alternate;
}

.announcement-slide {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  padding: 5px 0;
}

.announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
  padding: 6px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-1.5px);
  }
}

/* Tablet responsive */
@media (max-width: 768px) {
  .announcement-banner {
    font-size: 14px;
    padding: 5px 0;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .announcement-banner {
    font-size: 13px;
    padding: 4px 0;
  }

  .announcement-slide {
    line-height: 1.4;
  }
}

/* ========================
   7. MODAL
   ======================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 38px;
  font-weight: 300;
  cursor: pointer;
  color: white;
  z-index: 999;
}





body.has-announcement .container-header {
  height: calc(100vh - var(--nav-height) - var(--announcement-height));
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px; /* Smaller navbar on mobile if needed */
    --announcement-height: 48px; /* Smaller announcement banner on mobile */
  }

  /* Keep the container height dynamic for mobile as well */
  .container-header {
    height: calc(100vh - var(--nav-height));
  }
}

#title{
  font-size:3.5vw;
  font-weight: 500;
  text-align: center;
  margin: 40px 0 30px;
}

.sb-about-section {
  display: flex;
  flex-direction: column;
  background-color: #f0f0f2; /* Light gray background */
  padding: clamp(2rem, 5vw, 3.5rem) 5%; /* Responsive padding */
  font-family: 'Montserrat', 'Arial', sans-serif;
  width: 100%; /* Full width */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.sb-about-text-container {
  padding: 0.5rem;
  max-width: 1200px; /* Maximum content width */
  margin: 0 auto; /* Center the content */
  width: 100%;
}

.sb-about-heading {
  font-size: clamp(1.5rem, 3vw, 2rem); /* Responsive font size */
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  background: radial-gradient(circle, #EFB995 -20%, #98735B 110%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
  position: relative;
  text-align: center;
}

.heading-low {
  color: #303030;
}

.sb-about-paragraph-primary {
  font-size: clamp(0.9rem, 2vw, 1rem); /* Responsive font size */
  line-height: 1.7;
  color: #444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sb-about-section {
    padding: 2rem 4%;
    text-align: left;
  }

  .sb-about-heading {
    text-align: left;
    margin-bottom: 1rem;
  }

  .sb-about-paragraph-primary {
    text-align: justify;
    hyphens: auto;


    font-size: clamp(0.95rem, 3vw, 1.1rem); /* Slightly larger on small screens */
  }

  .sb-about-text-container {
    padding: 0;
  }
}

/* Extra adjustment for very small screens */
@media (max-width: 480px) {
  .sb-about-paragraph-primary {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;

  }
}
/* ========================================================================
   GLOBAL & BASE
======================================================================== */


/* Container */
.container-products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================================
   PRODUCT DISPLAY - ALL STYLES
======================================================================== */

/* Product Display Container */
#product_Display {
  display: flex;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  flex-direction: row;
}

/* Product Categories - Base Styles */
.product {
  flex: 1; /* Equal width distribution */
  position: relative;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
  cursor: pointer;
  color: #fff;
  font-size: 1.6em;
  text-align: center;
  overflow: hidden;
  background-color: #212529; /* Dark background by default */
}

/* Dark overlay */
.product::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: all 0.3s ease;
}

/* Category label styling */
.product::before {
  content: attr(data-label); /* Use data-label attribute */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 15px 30px;
  width: 60%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  color: #fff;
  z-index: 2;
  box-sizing: border-box;
  aspect-ratio: 10 / 13;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* Product Hover Overlay & Content */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  padding: 20px;
  box-sizing: border-box;
}

.product-description {
  font-size: clamp(0.5rem, 0.5rem + 0.5vw, 0.8rem);
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 85%;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.view-products {
  font-size: 0.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: #fff;
  font-weight: 400;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.view-products::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.view-products:hover::after {
  transform: translateX(5px);
}

/* Mobile indicator text (hidden on desktop) */
.mobile-indicator {
  display: none;
}

/* Product Loading States */
.product.loading {
  position: relative;
}

.product.loading::after {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Desktop Hover Effects */
@media (min-width: 769px) {
  .product:hover {
    flex: 1.2;
    background-color: #f8f9fa; /* Light background on hover */
  }

  .product:hover::after {
    background-color: rgba(0, 0, 0, 0);
  }

  .product:hover::before {
    opacity: 0;
  }

  .product:hover .product-overlay {
    color: #212529; /* Dark text on hover */
    background-color: rgba(248, 249, 250, 0.9); /* Light overlay on hover */
    opacity: 1;
    transform: translateY(0);
  }

  .product:hover .product-description {
    color: #495057; /* Dark text on hover */
    opacity: 1;
    transform: translateY(0);
  }

  .product:hover .view-products {
    color: #212529; /* Dark text on hover */
    border-bottom: 1px solid rgba(33, 37, 41, 0.5); /* Dark border */
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Product Styles */
@media (max-width: 768px) {
  /* Mobile Product Display Layout */
  #product_Display {
    flex-direction: column;
    height: auto;
    gap: 16px;
    padding: 16px;
  }

  .product {
    flex: none;
    min-height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: min-height 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
  }

  /* Expanded state */
  .product.expanded {
    min-height: 350px;
    background-color: #f8f9fa; /* Same light background as desktop hover */
  }

  /* Dark overlay for better text contrast */
  .product::after {
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
  }

  /* Remove overlay when expanded (same as desktop) */
  .product.expanded::after {
    background-color: rgba(0, 0, 0, 0);
  }

  /* Category title - simple and centered */
  .product::before {
    top: 40%;
    border: none;
    font-size: 1.4rem;
    padding: 10px;
    width: 80%;
    transition: opacity 0.3s ease;
  }

  /* Hide category name when expanded (same as desktop) */
  .product.expanded::before {
    opacity: 0;
  }

  /* Mobile Interaction Indicators */
  .mobile-indicator {
    display: block;
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #fff;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  /* Hide the indicator when expanded */
  .product.expanded .mobile-indicator {
    opacity: 0;
  }

  /* Mobile Product Overlay Behavior */
  .product-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    justify-content: center;
    transition: opacity 0.3s ease, background-color 0.3s ease;
  }

  /* Show overlay when product is expanded - match desktop style */
  .product.expanded .product-overlay {
    color: #212529; /* Dark text on light background */
    background-color: rgba(248, 249, 250, 0.9); /* Light overlay (same as desktop) */
    opacity: 1;
    transform: translateY(0);
  }

  .product-description {
    font-size: 0.9rem; /* Larger text on mobile when expanded */
    max-width: 90%;
    margin-bottom: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Show description when expanded */
  .product.expanded .product-description {
    color: #495057; /* Dark text on light background (same as desktop) */
    opacity: 1;
    transform: translateY(0);
  }

  .view-products {
    font-size: 0.8rem; /* Larger text for button on mobile */
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }

  /* Show view products button when expanded */
  .product.expanded .view-products {
    color: #212529; /* Dark text on light background (same as desktop) */
    border-bottom: 1px solid rgba(33, 37, 41, 0.5); /* Dark border */
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================================================
   SEARCH & FILTER SECTION
======================================================================== */


.search-container-products {
  width: 100%;
  margin-bottom: 15px;
}

/* Filter Section */
.filter-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 20px;
}

.filter-section-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-right: 15px;
  margin-left: 30px;
}

.filter-container-products-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}


/* Desktop Checkboxes (hidden visually, custom styling applied) */
.filter-checkbox {
  display: none;
}

.filter-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.2s ease;
  font-family: Montserrat;
}

.checkbox-custom {
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  background: #fff;
}

/* Checkmark style */
.filter-checkbox:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 3.5px;
  width: 5px;
  height: 9px;
  border: solid #4aa3a3;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.filter-checkbox:checked ~ .filter-name {
  color: #4aa3a3;
  font-weight: 500;
}

/* Mobile Filter Dropdown */
.filter-dropdown {
  display: flex;
}



/* ========================================================================
   PRODUCT GRID & CARD (for products list)
======================================================================== */
:root {
  --primary-color: #4aa3a3;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-focus: 0 5px 15px rgba(0, 0, 0, 0.15);
  --border-radius-card: 12px;
  --border-radius-sm: 8px;
  --border-radius-pill: 20px;
  --border-color: #e0e0e0;
  --text-color-secondary: #666;
}

.product-section {
  width: 90%;
  margin: 0 auto 40px;
  position: relative;
  font-family: Montserrat;
}

.product-section-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 20px 10px;
  font-family: Montserrat;
}

/* Product Grid */
.product-grid {
  display: grid;
  padding: 10px 0;
}

/* Desktop Grid */
@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* Mobile Grid & Swipe Layout */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    /* overflow: hidden; */
  }

  .product-grid-container {
    overflow: hidden;
    position: relative;
  }

  .product-grid-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
  }

  .product-grid-page {
    width: 100%;
    flex-shrink: 0;
  }

  .search-filter-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-section {
    width: fit-content;
    margin-left: 5vw;
    margin-top:20px;
  }

  /* Mobile Pagination */
  .pagination {
    display: none;
  }

  .mobile-pagination-indicators {
    display: flex;
  }

  .mobile-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-light);
  }

  .mobile-arrow-left {
    left: -20px;
  }

  .mobile-arrow-right {
    right: -20px;
  }
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-card:focus {
  outline: 2px solid var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-focus);
}

/* "NEW" Badge */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--border-radius-pill);
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

/* Product Image */
.product-image {
  width: 100%;
  height: 240px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.product-image img {
  max-width: 160%;
  max-height: 160%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img,
.product-card:focus .product-image img {
  transform: scale(1.05);
}

/* Product Text Info */
.product-name {
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
}

.product-size {
  font-size: 12px;
  color: var(--text-color-secondary);
  margin-top: 5px;
}

.product-price {
  font-size: 20px;
  color: var(--primary-color);
  text-align: right;
  margin-top: auto;
}

/* ========================================================================
   PAGINATION & MOBILE NAVIGATION
======================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 5px;
  position: relative;
}

.page-btn,
.page-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover,
.page-arrow:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.page-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Pagination Indicators */
.mobile-pagination-indicators {
  display: none;
  justify-content: center;
  margin-top: 20px;
}

.mobile-pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  transition: background 0.3s ease;
}

.mobile-pagination-dot.active {
  background: var(--primary-color);
}
/* ========================================================================
   MODAL OVERLAY & CONTENT
======================================================================== */
/* Original CSS with size adjustments */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 2px;
  padding: 0;
  width: 70%;
  height: fit-content;
  min-height: 400px;
  max-height: 80vh;
  max-width: 1200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideIn 0.3s ease;
  display: flex;
  /*gap: 3%;*/
  overflow: auto;

  /* These properties prevent the scrolling bounce effect */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto; /* Override iOS momentum scrolling if needed */
  scroll-behavior: smooth;
}

/* Make modal wider if content is too tall */
.modal-content.extended {
  width: 80%;
  max-width: 1400px;
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 18px; /* Reduced by 25% from 24px */
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-product-image {
  flex: 0.8;
  display: flex;
  align-items: stretch; /* Changed from center */
  justify-content: center;
  background: #f9f9f9;
  position: relative;
  min-height: 100%; /* Ensure minimum height matches parent */
  align-self: stretch; /* Always stretch to match parent height */
}

/* Fixed image to cover entire height of modal */
.modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute; /* Use absolute instead of sticky */
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* For extended modals, ensure the image div takes full height */
.modal-content.extended {
  height: auto;
  max-height: 85vh; /* Slightly increased for more content */
  overflow-y: auto;
}

.modal-content.extended .modal-product-image {
  position: sticky; /* Make the image container sticky */
  top: 0;
  height: 100vh; /* Full viewport height */

}
.modal-product-details {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  overflow-y: scroll;
}

.modal-product-category {
  color: #4aa3a3;
  font-size: 10.5px; /* Reduced by 25% from 14px */
  text-transform: uppercase;
  /*margin-bottom: 10px;*/
}

.modal-product-title {
  font-size: 18px; /* Reduced by 25% from 24px */
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-product-size {
  display: inline-block;
  font-size: 10px;
  color: #2A9D8F;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 3px 6px;
  border: 1px solid #2A9D8F;
  border-radius: 6px;
  background-color: rgba(42, 157, 143, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-right: 8px;
  width: fit-content;
}
.modal-content,
.modal-product-details {
  /* Alternative approach for browsers that don't support overscroll-behavior */
  -ms-scroll-chaining: none;
}

/* For iOS Safari specifically */
@supports (-webkit-touch-callout: none) {
  .modal-content,
  .modal-product-details {
    /* iOS specific scroll settings */
    -webkit-overflow-scrolling: auto;
  }
}

/* For large screens (over 1500px) */
@media screen and (min-width: 1500px) {
  .modal-product-size {
    font-size: 14px; /* Reduced by 15% from 20px */
    padding: 6px 9px;
  }
}

.modal-product-size:hover {
  background-color: rgba(42, 157, 143, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-product-size:active {
  transform: translateY(0);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.modal-product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.modal-rating-stars {
  color: #F8B84E;
  font-size: 13.5px; /* Reduced by 25% from 18px */
  margin-right: 10px;
}

.modal-rating-score {
  font-weight: bold;
  margin-right: 5px;
}

.modal-rating-count {
  color: #666;
  font-size: 11.9px; /* Reduced by 15% from 14px */
}

.modal-product-price {
  font-size: 18px; /* Reduced by 25% from 24px */
  margin-bottom: 20px;
}

.modal-product-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 5px 0;
  width: 100%;
}

.modal-product-description {
  font-size: calc(11.9px + 0.5vw); /* Reduced by 15% from 14px + 0.5vw */
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
  text-justify: auto;
  hyphens: auto;



}

.modal-product-specs {
  margin-bottom: 25px;
  margin-top: 20px;
}

.modal-spec-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0;
  gap: 5px;
}

.modal-spec-label {
  flex: .5;
  font-weight: 500;
  color: #555;
  font-size: 14px; /* Reduced by 15% from original */
}

.modal-spec-value {
  flex: 2;
  color: #333;
  text-align: justify;
  hyphens: auto;
  font-size: 14px;
}

#value-upper{
  flex:1;
}

.modal-add-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #4aa3a3;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 12px; /* Reduced by 25% from 16px */
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: auto;
}

.modal-add-btn:hover {
  background: #3d8a8a;
}

/* Hide all search-related elements */
.search-container-products,
#searchInput {
  display: none;
}

/* Loading state */
.loading-indicator {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.loading-indicator.active {
  display: block;
}

/* ========================================================================
   MODAL RESPONSIVE ADJUSTMENTS - UPDATED FOR UNIFIED SCROLLING
======================================================================== */

/* Base modal styles - ensure unified scrolling */
.modal-content {
  display: flex;
  overflow-y: auto; /* Allow entire modal to scroll */
  max-height: 90vh; /* Prevent modal from exceeding viewport */
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 163, 163, 0.3) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(74, 163, 163, 0.3);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(74, 163, 163, 0.5);
}

/* Remove individual scrolling from product details */
.modal-product-details {
  overflow-y: visible; /* Remove individual scrolling */
  max-height: none; /* Remove height restrictions */
  flex: 1;
}

@media (min-width: 1500px) {
  .modal-content {
    /* width: 65%; */
    height: fit-content;
    max-width: 1400px;
    max-height: 90vh; /* Ensure it doesn't exceed viewport */
    overflow-y: auto; /* Unified scrolling */
  }

  .modal-product-category {
    font-size: 15px; /* Reduced by 25% from 20px */
  }
  .modal-product-title {
    font-size: 29.25px; /* Reduced by 25% from 39px */
    margin-bottom: 5px;
  }
  /**/
  .modal-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  .modal-rating-stars {
    color: #F8B84E;
    font-size: 18.75px; /* Reduced by 25% from 25px */
    margin-right: 10px;
  }
  .modal-rating-score {
    font-weight: bold;
    margin-right: 5px;
  }
  .modal-rating-count {
    color: #666;
    font-size: 17px; /* Reduced by 15% from 20px */
  }
  .modal-product-price {
    font-size: 25.5px; /* Reduced by 25% from 34px */
    margin-bottom: 20px;
  }
  .modal-product-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
    width: 100%;
  }
  .modal-product-description {
    font-size: 17px; /* Reduced by 15% from 20px */
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
    hyphens: auto;
  }
  .modal-product-specs {
    margin-bottom: 25px;
  }
  .modal-spec-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
  }

  .modal-spec-value {
    flex: 2;
    color: #333;
    font-size: 14px; /* Reduced by 15% from 18px */
  }
  .modal-add-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4aa3a3;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15.6px; /* Reduced by 25% from 20.8px */
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto;
  }
  .modal-add-btn:hover {
    background: #3d8a8a;
  }
}

@media (max-width: 1450px) {
  .modal-content {
    height: fit-content;
    max-width: 1400px;
    max-height: 90vh; /* Ensure it doesn't exceed viewport */
    overflow-y: auto; /* Unified scrolling */
  }

  .modal-product-category {
    font-size: 10.5px; /* Reduced by 25% from 14px */
  }
  .modal-product-title {
    font-size: 17.85px; /* Reduced by 25% from 23.8px */
    margin-bottom: 5px;
  }

  .modal-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  .modal-rating-stars {
    color: #F8B84E;
    font-size: 13.125px; /* Reduced by 25% from 17.5px */
    margin-right: 10px;
  }
  .modal-rating-score {
    font-weight: bold;
    margin-right: 5px;
  }
  .modal-rating-count {
    color: #666;
    font-size: 11.9px; /* Reduced by 15% from 14px */
  }
  .modal-product-price {
    font-size: 17.85px; /* Reduced by 25% from 23.8px */
    margin-bottom: 20px;
  }
  .modal-product-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
    width: 100%;
  }
  .modal-product-description {
    font-size: 11.9px; /* Reduced by 15% from 14px */
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
    hyphens: auto;
  }
  .modal-product-specs {
    margin-bottom: 25px;
  }
  .modal-spec-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
  }

  .modal-spec-label {
    font-size:12px;
  }
  .modal-spec-value {
    font-size: 12px; /* Reduced by 15% from 12.6px */
  }
  .modal-add-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4aa3a3;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 10.92px; /* Reduced by 25% from 14.56px */
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto;
  }
  .modal-add-btn:hover {
    background: #3d8a8a;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    height: auto;
    max-height: 85vh; /* Increased for mobile to use more screen space */
    flex-direction: column;
    overflow-y: auto; /* Unified scrolling for mobile too */
    gap: 12px;
    border-radius: 0px;
  }

  .modal-spec-row {
    gap: 8px;
  }

  .modal-content.extended .modal-product-image {
    position: relative;
    height: auto;
  }

  .modal-product-details {
    padding: 16px 20px;
    overflow-y: visible; /* Remove individual scrolling on mobile */
    max-height: none; /* Remove height restrictions */
  }

  .modal-product-image {
    min-height: 240px;
    position: relative;
    flex: none;
    overflow: hidden;
  }

  .modal-product-category {
    margin-bottom: 4px;
    font-size: 12px;
    color: #777;
  }

  .modal-product-title {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .modal-product-image img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .desktop-filter {
    display: none;
  }

  /* Enhanced user-friendly mobile filter */
  .mobile-filter-section {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
  }

  .mobile-filter-label {
    font-size: 13px;
    color: #666;
    margin-right: 8px;
  }

  .mobile-filter-dropdown {
    position: relative;
    width: auto;
    max-width: 180px;
  }

  .mobile-filter-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background-color: rgba(74, 163, 163, 0.06);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #4aa3a3;
  }

  .mobile-filter-selected:hover,
  .mobile-filter-selected:focus {
    background-color: rgba(74, 163, 163, 0.12);
  }

  /* Visual cue to suggest it's clickable */
  .mobile-filter-selected:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    border: 1px solid transparent;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .mobile-filter-selected:hover:before {
    border-color: rgba(74, 163, 163, 0.2);
  }

  .mobile-filter-selected span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
  }

  /* Add an icon to suggest filtering */
  .mobile-filter-selected span:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'%3E%3C/polygon%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }

  .mobile-filter-selected svg {
    width: 14px;
    height: 14px;
    stroke: #4aa3a3;
    transition: transform 0.25s ease;
    margin-left: 4px;
    opacity: 0.8;
  }

  .mobile-filter-selected.active {
    background-color: rgba(74, 163, 163, 0.15);
  }

  .mobile-filter-selected.active svg {
    transform: rotate(180deg);
  }

  /* Subtle pulse animation to draw attention when dropdown is active */
  @keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(74, 163, 163, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(74, 163, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 163, 163, 0); }
  }

  .mobile-filter-selected.active {
    animation: pulse-glow 1.5s infinite;
  }

  .mobile-filter-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: auto;
    min-width: 160px;
    background-color: white;
    border-radius: 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.3, 0, 0.2, 1);
  }

  /* Add a subtle arrow pointing to the selector */
  .mobile-filter-options:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: white;
    transform: rotate(45deg);
    border-top-left-radius: 2px;
  }

  .mobile-filter-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-filter-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    border-radius: 4px;
    margin: 2px 4px;
  }

  /* Remove borders between options for a cleaner look */
  .mobile-filter-option:not(:last-child) {
    border-bottom: none;
  }

  .mobile-filter-option:hover {
    background-color: rgba(74, 163, 163, 0.08);
    color: #4aa3a3;
  }

  .mobile-filter-option.selected {
    color: #4aa3a3;
    background-color: rgba(74, 163, 163, 0.1);
    font-weight: 500;
  }

  /* Add a checkmark for selected option */
  .mobile-filter-option.selected:after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }

  /* Add hint text below the dropdown */
  .mobile-filter-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 11px;
    color: #888;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .mobile-filter-dropdown:hover .mobile-filter-hint,
  .mobile-filter-selected.active + .mobile-filter-hint {
    opacity: 1;
  }

  /* Add active filters display */
  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }

  .active-filter-tag {
    background-color: rgba(74, 163, 163, 0.12);
    color: #4aa3a3;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .active-filter-tag svg {
    width: 12px;
    height: 12px;
    stroke: #4aa3a3;
    cursor: pointer;
  }

  .active-filter-tag:hover svg {
    stroke-width: 2.5;
  }
}

@media (min-width: 769px) {
  .mobile-filter-dropdown {
    display: none;
  }
}


/* ========================================================================
   ELEGANT MINIMALISTIC MEDIA GALLERY STYLES - ENHANCED
======================================================================== */

/* Media Viewer Container */
.media-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.media-viewer img,
.media-viewer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-viewer video {
  object-fit: contain;
}

/* Currently Selected Media Enhancement */
.media-viewer .current-media {
  opacity: 1;
  filter: brightness(1.02) contrast(1.01);
}

/* Thumbnails Container */
.media-thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.3s ease;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
  backdrop-filter: blur(2px);
}

.media-thumbnails::-webkit-scrollbar {
  display: none;
}

.media-thumbnails.thumbnails-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Individual Thumbnail */
.media-thumbnail {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: thumbnailFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes thumbnailFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-thumbnail.fade-out {
  animation: thumbnailFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes thumbnailFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.media-thumbnail:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Active/Selected Thumbnail - Enhanced Visual Distinction */
.media-thumbnail.active {
  border-color: rgba(68, 170, 179, 0.8);
  border-width: 2px;
  transform: translateY(-4px) scale(1.08);
  box-shadow:
          0 8px 25px rgba(0, 0, 0, 0.2),
          0 0 0 1px rgba(68, 170, 179, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(68, 170, 179, 0.1);
}

.media-thumbnail.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(68, 170, 179, 0.3), rgba(68, 170, 179, 0.1));
  border-radius: 6px;
  z-index: -1;
  opacity: 0.6;
}

.thumbnail-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}

.thumbnail-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.media-thumbnail:hover .thumbnail-content img {
  transform: scale(1.02);
}

.media-thumbnail.active .thumbnail-content img {
  transform: scale(1.03);
  filter: brightness(1.05) saturate(1.1);
}

/* Video Play Overlay */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.media-thumbnail:hover .play-overlay {
  background: rgba(0, 0, 0, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.media-thumbnail.active .play-overlay {
  background: rgba(68, 170, 179, 0.9);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.05);
}

/* ========================================================================
   MINIMALISTIC MEDIA NAVIGATION ARROWS - ENHANCED
======================================================================== */

.media-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  z-index: 10;
  opacity: 0.8;
  visibility: visible;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.media-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.media-nav-prev {
  left: 12px;
}

.media-nav-next {
  right: 12px;
}

/* SVG icon styling */
.media-nav-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.media-nav-arrow:hover svg {
  transform: scale(1.1);
}

/* ========================================================================
   RESPONSIVE ADJUSTMENTS - ENHANCED
======================================================================== */

/* Tablet screens */
@media (max-width: 1024px) {
  .modal-content {
    max-height: 92vh; /* Slightly more space on tablets */
  }

  .media-thumbnails {
    height: 16%;
    gap: 1px;
    padding: 6px 12px;
    align-items: center;
  }

  .media-thumbnail {
    height: 85%;
    border-radius: 4px;
  }

  .media-nav-arrow {
    width: 44px;
    height: 44px;
  }

  .media-nav-prev {
    left: 16px;
  }

  .media-nav-next {
    right: 16px;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .media-thumbnails {
    height: 18%;
    gap: 0;
    padding: 4px 8px;
  }

  .play-overlay {
    width: 24%;
    height: 24%;
    min-width: 18px;
    min-height: 18px;
  }

  .media-thumbnail {
    -webkit-tap-highlight-color: transparent;
    height: 90%;
  }

  .media-thumbnails {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .media-thumbnail {
    scroll-snap-align: center;
  }

  .media-thumbnail:active {
    transform: translateY(-1px) scale(1.02);
    opacity: 0.9;
  }

  .media-nav-arrow {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
  }

  .media-nav-prev {
    left: 12px;
  }

  .media-nav-next {
    right: 12px;
  }

  .media-nav-arrow svg {
    width: 18px;
    height: 18px;
  }

  .media-nav-arrow:active {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(0.9);
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .modal-content {
    max-height: 98vh; /* Use almost full screen on very small devices */
  }

  .media-nav-arrow {
    width: 36px;
    height: 36px;
  }

  .media-nav-prev {
    left: 8px;
  }

  .media-nav-next {
    right: 8px;
  }

  .media-nav-arrow svg {
    width: 16px;
    height: 16px;
  }

  .media-thumbnails {
    height: 20%;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .thumbnail-content img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}


/* ========================================================================
   ACCESSIBILITY & PREFERENCES - ENHANCED
======================================================================== */

/* Focus states for keyboard navigation */
.media-thumbnail:focus,
.media-nav-arrow:focus {
  outline: 2px solid rgba(68, 170, 179, 0.8);
  outline-offset: 2px;
}

.media-thumbnail:focus-visible,
.media-nav-arrow:focus-visible {
  outline: 2px solid rgba(68, 170, 179, 1);
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .media-thumbnail,
  .thumbnail-content img,
  .play-overlay,
  .media-viewer img,
  .media-viewer video,
  .media-nav-arrow,
  .media-nav-arrow svg,
  .media-thumbnails {
    transition: none;
    animation: none;
  }

  .media-thumbnail:hover,
  .media-thumbnail.active,
  .media-nav-arrow:hover,
  .media-nav-arrow:active {
    transform: none;
  }

  .media-nav-arrow:hover svg {
    transform: none;
  }

  .media-thumbnail:hover .thumbnail-content img,
  .media-thumbnail.active .thumbnail-content img {
    transform: none;
  }

  .media-thumbnail {
    opacity: 1;
  }
}

/* Dark mode support - Enhanced */
@media (prefers-color-scheme: dark) {
  .media-viewer {
    background: transparent;
  }

  .media-thumbnails {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  }

  .media-thumbnail {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
  }

  .media-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .media-thumbnail.active {
    border-color: rgba(68, 170, 179, 0.9);
    box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(68, 170, 179, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(68, 170, 179, 0.15);
  }

  .play-overlay {
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
  }

  .media-thumbnail:hover .play-overlay {
    background: rgba(255, 255, 255, 0.95);
  }

  .media-thumbnail.active .play-overlay {
    background: rgba(68, 170, 179, 0.95);
    color: #ffffff;
  }

  .media-nav-arrow {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .media-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .media-thumbnail {
    border-width: 2px;
  }

  .media-thumbnail.active {
    border-width: 3px;
  }

  .media-nav-arrow {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
  }
}








/* Root variables with clamp for smooth scaling without media queries */
:root {
  --base-font-size: clamp(.8em, 0.8em + 0.3vw, 1.1em);
  --title-font-size: clamp(1.5em, 1.4em + 2vw, 3.3em);
  --quote-font-size: clamp(1em, 1em + 1vw, 2em);
  --button-font-size: clamp(0.8em, 0.85em + 0.2vw, 1.1em);
}

/* Base styles */
#About_us {
  display: grid;
  grid-template-columns: 42% 58%;
  height: 88vh;
  gap: 5vw;
  max-width: 100%;
  overflow: hidden;
  width: 97%;
  margin-left: auto;
  margin-top: 120px;
  margin-bottom: 50px;
}

/* Text container styles */
.About_us_text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 5%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Custom scrollbar for About_us_text */
.About_us_text::-webkit-scrollbar {
  width: 5px;
}

.About_us_text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.About_us_text::-webkit-scrollbar-thumb {
  background: rgba(152, 115, 91, 0.3);
  border-radius: 10px;
}

.About_us_text::-webkit-scrollbar-thumb:hover {
  background: rgba(152, 115, 91, 0.5);
}

/* About us section styling */
.About_us_main {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
}

.quote_about {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5vh;
  font-family: Playfair, serif;
  color: #272727;
  font-size: var(--quote-font-size);
  gap: 5px;
  height: 100%;
  flex: 1;
}

#About_us_title {
  font-size: var(--title-font-size);
  text-transform: uppercase;
  font-weight: 400;
  background: radial-gradient(circle, #EFB995 -20%, #98735B 110%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 2vh;
}

/* Content styling */
.description-container {
  position: relative;
  overflow: visible;
}

.main-description-wrapper {
  position: relative;
}

/* Paragraph styling */
.About_us_main p {
  margin-bottom: 2vh;
  line-height: 1.5em;
  font-size: var(--base-font-size);
  text-align: justify;
  hyphens: auto;
  color: #767070;
  font-family: Montserrat, sans-serif;
  margin-right: 10px;
}

/* Base styling for content paragraphs */
.main-description {
  margin-bottom: 1vh;
}

/* Progressive content display */
.first-paragraph-content,
.second-paragraph-content,
.third-paragraph-content {
  display: none;
}

/* Read more button styling */
.read-more-btn {
  background: radial-gradient(circle, #EFB995 -20%, #98735B 110%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: var(--button-font-size);
  margin-top: 1vh;
  align-self: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Additional content toggle functionality */
.additional-content {
  max-height: 0;
  overflow: auto;
  transition: max-height 0.5s ease;
}

.additional-content.expanded {
  max-height: 500px;
  padding-top: 1vh;
}

/* Image carousel styling */
.carousel-imagini {
  display: flex;
  height: 100%;
  gap: 2.5vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  align-items: center;
}

.carousel-imagini.grabbing {
  cursor: grabbing;
}

.carousel-imagini::-webkit-scrollbar {
  display: none;
}

.carousel-imagini::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
  transparent 0%,
  rgba(80, 151, 161, 0.1) 30%,
  rgba(80, 151, 161, 0.2) 70%,
  transparent 100%);
  opacity: 0.4;
  pointer-events: none;
}

/* Image styling */
.carousel-imagini img {
  width: 60%;
  height: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  pointer-events: none;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-imagini img:hover {
  transform: scale(1.02);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  #About_us {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    gap: 5vh;
    width: 100%;
    margin-top:40px;
  }

  .About_us_text {
    padding-left: 5%;
    padding-right: 5%;
    height: auto;
  }

  .About_us_main,
  .quote_about {
    margin-bottom: 2vh;
  }

  /* Show only the first part of content on mobile */
  .first-paragraph-content {
    display: block;
  }

  #About_us_title {
    text-align: center;
  }

  .quote_about {
    text-align: center;
    width: fit-content;
    margin: 3vh auto 3vh;
  }

  .carousel-imagini {
    padding: 0 5%;
    height: 65vh;
    position: relative;
  }

  .carousel-imagini img {
    width: 75vw;
    height: 100%;
  }

  .read-more-btn {
    display: block;
    margin: 0 auto;
  }
}

/* Tablet and small desktop styles */
@media screen and (min-width: 769px) and (max-width: 1280px) {
  /* Show first and second paragraphs for Air M1 type devices */
  .first-paragraph-content,
  .second-paragraph-content {
    display: block;
  }
}

/* Large desktop styles */
@media screen and (min-width: 1281px) {
  /* Show all three paragraphs on large desktops */
  .first-paragraph-content,
  .second-paragraph-content,
  .third-paragraph-content {
    display: block;
  }
}

@media screen and (max-width: 500px) {
  .carousel-imagini img {
    width: 85vw;
  }

  .carousel-imagini {
    height: 55vh;
  }
}

@media screen and (min-width: 1825px) {
  .quote_about{
    width: 80%;
  }
}





.title-ingredients h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  background: radial-gradient(circle, #EFB995 -20%, #98735B 110%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
  margin: 50px 0 20px;
}

.title-ingredients p {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(14px, 0.9375rem, 18px);
  font-weight: 500;
  color: #62473c;
  padding: .8em 20%;
  /*background: linear-gradient(90deg, #31b3c1 0%, #5dc9d1 49%, #31b3c1 100%);*/
  /*background: linear-gradient(90deg, #98735B 0%, #EFB995 50%, #98735B 100%);*/

  background: linear-gradient(
          80deg,
          #bf9777 0%,
          #e3caa3 55%,
          #f2e7b8 65%,
          #c59a65 85%
  );

  /*border-radius: 10px;*/
  margin-bottom: 5vh;
}

.diagram-container {
  position: relative;
  width: 800px;
  height: 800px;
  max-width: 100%;
  margin: 17.5vh auto 0;
}

.diagram-container img {
  max-width: 55vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.center-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: #CCF8FA;
  opacity: 0.9;
  filter: blur(300px);
}

.center-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 600px;
  height: 600px;
  border: 3px solid rgba(84, 156, 156, 0.6);
  border-radius: 50%;
}

.center-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 80px);
  color: #5a9b9b;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: #5a9b9b;
  border-radius: 50%;
  z-index: 1;
}

.card {
  position: absolute;
  width: 240px;
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
  color: #5a9b9b;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.card-content {
  font-size: 14px;
  text-align: center;
  color: #555;
}

/* Position dots around the circle with explicit classes */
.dot-top { top: 11%; left: 49%; }
.dot-top-right { top: 27%; left: 79%; }
.dot-right { top: 50%; left: 86%; }
.dot-bottom-right { top: 73%; left: 77%; }
.dot-bottom { top: 85.5%; left: 49%; }
.dot-bottom-left { top: 73%; left: 20.5%; }
.dot-left { top: 50%; left: 11%; }
.dot-top-left { top: 27%; left: 18%; }

/* Position cards around the circle with explicit classes */
.card-top { top: -8%; left: 50%; transform: translateX(-50%); }
.card-top-right { top: 20%; right: -17%; }
.card-right { top: 42%; right: -38%; transform: translateX(-50%); }
.card-bottom-right { bottom: 13%; right: -15%; }
.card-bottom { bottom: -7%; left: 52%; transform: translateX(-50%); }
.card-bottom-left { bottom: 13%; left: -15%; }
.card-left { top: 42%; left: -38%; transform: translateX(50%); }
.card-top-left { top: 15%; left: -17%; }

@media screen and (max-width: 950px) {
  #Beneficii_ingredients {
    width: 100%;
  }
  .title-ingredients h1 {
    /*font-size: 2em;*/
  }
  .title-ingredients p {
    width: 100%;
    font-size: 14px;
    border-radius: 0px;
    padding: 0.6em;
    margin-bottom:10px;
    line-height:1.4;
  }
  /* Hide desktop version on mobile */
  .desktop-only {
    display: none;
  }
  .mobile-version {
    display: block;
  }
  /* New semi-circle container */
  .diagram-container {
    width: 100%;
    height: auto;
    position: relative;
    margin: 5vh auto 2vh;
    padding-bottom: 0;
    display: block;
    overflow: visible;
  }
  .semi-circle-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
  }
  .center-blur {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background-color: #CCF8FA;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(150px);
  }
  .semi-circle-container img {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 100%;
    margin: 0 auto;
    min-width: 300px;
    z-index: 3;
  }
  .dot {
    display: none;
  }
  /* Carousel container */
  .cards-container {
    width: 100%;
    height: 320px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-x; /* Allow horizontal swiping */
  }
  /* Card base styling - updated for consistent size */
  .card {
    position: absolute;
    width: 280px; /* Fixed width for all cards */
    height: 250px; /* Fixed height for all cards */
    background-color: white;
    border-radius: 15px;
    box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.12),   /* bottom shadow */
            0 -4px 8px rgba(0, 0, 0, 0.08);   /* top shadow */
    padding: 20px;
    transition: transform 500ms ease, opacity 500ms ease;
    transform-origin: center;
    will-change: transform, opacity;
    left: 50%;
    top: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    text-align: center; /* Center text horizontally */
  }
  /* Active (center) card */
  .card.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 3;
    /*box-shadow: 0 10px 20px rgba(90, 155, 155, 0.4);*/
  }
  /* Previous card (left side) */
  .card.prev {
    transform: translateX(-108%) scale(0.85);
    opacity: 0.7;
    z-index: 2;
  }
  /* Next card (right side) */
  .card.next {
    transform: translateX(8%) scale(0.85);
    opacity: 0.7;
    z-index: 2;
  }
  /* Hidden cards */
  .card.hidden {
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }
  /* Card content styling */
  .card-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #015C5F;
    text-align: center;
  }
  .card-content {
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
    text-align: center;
    margin: 0 auto;
  }
}




/* Replace your existing .certification-container rule with this: */
.certification-container {
  width: 90%;
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 2rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  /* Improved mobile scrolling */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Custom scrollbar for desktop only */
  scrollbar-width: thin;
  scrollbar-color: #878787 #f0f0f0;
}

/* Add this to your .certification-card rule: */
.certification-card {
  flex: 0 0 auto;
  width: 220px;
  height: 300px;
  background-color: white;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  touch-action: pan-x pinch-zoom;
  margin-top: 5px;
  transition: transform 500ms ease, opacity 500ms ease;
}
@media (min-width: 768px){
  .certification-card:hover {
    transform: translateY(-5px);
  }
}

/* Replace your mobile media query section with this: */
@media (max-width: 768px) {
  #certifications-showcase {
    flex-direction: column;
    align-items: center;
  }

  #certifications-showcase p {
    max-width: 100%;
    order: 2;
  }

  #certifications-showcase img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    order: 1;
  }

  .certification-container {
    width: 90%;
    padding: 1rem 0.5rem;
    gap: 1rem;
    scroll-snap-type: none;
    /* Add these lines: */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .certification-container::-webkit-scrollbar {
    display: none;
  }

  .certification-card {
    width: 180px;
    height: 250px;
    transition: none;
  }

  .preview-modal-content {
    width: 95%;
  }
}



@media (max-width: 768px) {
  #certifications-showcase {
    flex-direction: column;
    align-items: center;
  }

  #certifications-showcase p {
    /* flex: 1; */
    max-width: 100%;
    order: 2;

  }

  #certifications-showcase img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    order: 1;
  }

  .certification-container {
    padding: 1rem 0;
    gap: 1rem;
  }

  .certification-card {
    transition: none;

    width: 180px;
    height: 250px;
  }
}





@media (max-width: 500px) {
  #contacteaza{
    width: 90%;
    max-height: 80vh;
    margin-bottom: 10px;
  }
}




#container-feedback {
  margin-top: 100px;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  #container-feedback {
    margin-top: 50px;
    margin-bottom: 45px;

  }
}


/* ==========================================================================
   1. Base Styles & Reset
   ========================================================================== */
.neorev-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.neorev-container {
  background-color: #f8f8f8;
  font-size: clamp(0.9rem, 2vw, 1rem); /* Base responsive font size */
}

/* ==========================================================================
   2. Layout & Container Structure
   ========================================================================== */
.neorev-review-container {
  width: 90%;
  margin: 0 auto;
}

.neorev-review-wrapper {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .neorev-review-wrapper {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .neorev-review-container {
    width: 100%;
    margin: 0 auto;
    padding: 0px;
  }
}

/* ==========================================================================
   3. Summary Panel (Left Side)
   ========================================================================== */
.neorev-summary-panel {
  background: linear-gradient(135deg, #EFB995 -20%, #98735B 110%);
  color: white;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .neorev-summary-panel {
    width: 20%;
    margin-right: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
  }
}

.neorev-summary-panel h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  margin-bottom: 12px;
}

.neorev-average-rating {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: bold;
  margin-bottom: 4px;
}

.neorev-review-count {
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
}

.neorev-reviews-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  color: #f8f8f8;
}

.neorev-reviews-logo .neorev-star {
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  margin-right: 5px;
  color: #e3b04b;
  height: auto;
  width: auto;
}

/* ==========================================================================
   4. Star Rating Components
   ========================================================================== */
.neorev-star-rating {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  line-height: 1;
}

.neorev-star {
  color: #d4d4d4;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 0 2px;
  display: inline-block;
  height: auto;
  width: auto;
  line-height: 1;
  overflow: visible;
  text-align: center;
}

.neorev-filled {
  color: #ffffff;
}

.neorev-review-rating {
  display: flex;
  line-height: 1;
  height: auto;
  overflow: visible;
  flex: 0 0 auto;
}

.neorev-review-rating .neorev-star {
  font-size: clamp(0.7rem, 1.6vw, 0.75rem);
  color: #e3b04b;
  height: auto;
  width: auto;
}

/* ==========================================================================
   5. Reviews Slider & Grid - Updated for Mobile Single Card
   ========================================================================== */
.neorev-reviews-slider {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
  padding: 0 35px;
}

.neorev-reviews-grid {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 -10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 10px; /* Space for scrollbar */
}

.neorev-reviews-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Mobile: Center single card and hide overflow */
@media (max-width: 767px) {
  .neorev-reviews-grid {
    justify-content: center;
    overflow: hidden; /* Hide overflow to prevent showing next card */
    margin: 0; /* Remove negative margins */
  }
}

@media (min-width: 768px) {
  .neorev-reviews-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ==========================================================================
   6. Review Cards - Updated for Mobile Single Card
   ========================================================================== */
.neorev-review-card {
  width: 80%;
  flex: 0 0 auto;
  padding: 10px;
}

/* Mobile: Single centered card */
@media (max-width: 767px) {
  .neorev-review-card {
    width: 100%; /* Full width on mobile */
    max-width: 400px; /* Maximum width for better readability */
    flex: 0 0 100%; /* Take full width of container */
    padding: 0 15px; /* Horizontal padding for breathing room */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .neorev-review-card {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .neorev-review-card {
    width: 25%; /* Keep this at 25% to maintain 4 cards per row as in original */
  }
}

.neorev-review-content {
  background-color: #ffffff;
  padding: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover effects only for non-touch devices (desktop) */
@media (hover: hover) and (pointer: fine) {
  .neorev-review-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Make mobile cards smaller */
@media (max-width: 576px) {
  .neorev-review-content {
    padding: 12px;
  }
}

.neorev-review-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 5px;
}

.neorev-reviewer-name {
  font-weight: 600;
  color: #333;
  width: 50%;
  font-size: clamp(0.85rem, 1.9vw, 0.95rem);
}

@media (max-width: 320px) {
  .neorev-reviewer-name {
    flex-basis: 100%;
    margin-bottom: 5px;
  }

  .neorev-review-rating {
    margin-left: 0;
  }

  .neorev-review-header {
    gap: 3px;
  }
}

.neorev-verified-badge {
  height:10px;
  display: flex;
  align-items: center;
  font-size: clamp(0.7rem, 1.6vw, 0.75rem);
  color: #777;
  margin-bottom: 8px;
}

.neorev-verified-badge i {
  margin-right: 5px;
}

.neorev-review-text {
  font-size: clamp(0.8rem, 1.8vw, 0.875rem);
  color: #333;
  margin-bottom: 15px;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

@media (max-width: 576px) {
  .neorev-review-text {
    line-height: 1.3;
    margin-bottom: 10px;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .neorev-star-rating {
    margin-bottom: 10px;
  }

  .neorev-verified-badge {
    margin-bottom: 6px;
  }
}

.neorev-review-date {
  font-size: clamp(0.7rem, 1.6vw, 0.75rem);
  color: #777;
  margin-top: auto;
}
/* ==========================================================================
   7. Navigation Controls - Updated for Mobile
   ========================================================================== */
.neorev-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 1;
  opacity: 0.7;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Mobile-specific navigation button styles */
@media (max-width: 767px) {
  .neorev-nav-button {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 0.8;
    /* Better positioning for mobile */
    top: 50%;
    transform: translateY(-50%);
  }

  .neorev-nav-button:active {
    transform: translateY(-50%) scale(0.9);
    opacity: 1;
  }
}

/* Hover effects only for non-touch devices (desktop) */
@media (hover: hover) and (pointer: fine) {
  .neorev-nav-button:hover {
    opacity: 1;
  }
}

.neorev-nav-button.neorev-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .neorev-nav-button.neorev-disabled {
    opacity: 0.2;
    background-color: transparent;
  }
}

.neorev-prev-button {
  left: 0;
}

.neorev-next-button {
  right: 0;
}

/* Mobile positioning adjustments */
@media (max-width: 767px) {
  .neorev-prev-button {
    left: 10px;
  }

  .neorev-next-button {
    right: 10px;
  }
}

.neorev-chevron {
  width: 12px;
  height: 12px;
  border-style: solid;
  border-width: 2px 2px 0 0;
  display: inline-block;
  color: #333;
}

/* Larger chevrons for mobile */
@media (max-width: 767px) {
  .neorev-chevron {
    width: 16px;
    height: 16px;
    border-width: 3px 3px 0 0;
    color: #555;
  }
}

.neorev-chevron-left {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.neorev-chevron-right {
  transform: rotate(45deg);
  margin-right: 5px;
}

/* Mobile chevron positioning */
@media (max-width: 767px) {
  .neorev-chevron-left {
    margin-left: 2px;
  }

  .neorev-chevron-right {
    margin-right: 2px;
  }
}

/* Remove scroll indicator since we're keeping arrows */
.neorev-scroll-indicator {
  display: none;
}
/* ==========================================================================
   8. Modal Styles - Optimized for MacBook Air M1
   ========================================================================== */
:root {
  --modal-base-font: 0.875rem; /* 14px base font size */
  --modal-spacing-unit: 0.75rem; /* 8px base spacing unit */
  --modal-padding: calc(var(--modal-spacing-unit) * 4); /* 32px padding */
  --modal-primary-color: #333;
  --modal-accent-color: #4cb8b8;
}

.neorev-modal-overlay .social-links {
  position: relative;
  margin-top: calc(var(--modal-spacing-unit) * 3); /* 24px */
  display: flex;
  justify-content: center;
  gap: calc(var(--modal-spacing-unit) * 2.5); /* 20px */
  opacity: 1;
}

.neorev-modal-overlay .social-links a {
  color: var(--modal-primary-color);
  font-size: calc(var(--modal-base-font) * 1.2); /* ~16.8px */
  border: none;
  width: fit-content;
  transition: color 0.2s ease;
}

.neorev-modal-overlay .social-links a svg {
  width: calc(var(--modal-base-font) * 1.1); /* ~15.4px */
  height: calc(var(--modal-base-font) * 1.1); /* ~15.4px */
  transition: color 0.2s ease;
}

.neorev-modal-overlay .social-links a:hover {
  color: var(--modal-accent-color);
}

/* Social media icon specific styles */
.neorev-modal-overlay .social-links .instagram-icon svg,
.neorev-modal-overlay .social-links .facebook-icon svg,
.neorev-modal-overlay .social-links .tiktok-icon svg {
  width: calc(var(--modal-base-font) * 1.3); /* ~18.2px */
  height: calc(var(--modal-base-font) * 1.3); /* ~18.2px */
}

.neorev-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.neorev-modal-overlay.neorev-active {
  opacity: 1;
  visibility: visible;
}

.neorev-modal {
  background-color: white;
  max-width: 900px;
  width: 50%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--modal-padding); /* 32px */
  box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.2);
  transform: translateY(1.25rem); /* 20px */
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  position: relative;
  /*border-radius: 0.5rem; !* 8px *!*/
}

.neorev-modal-overlay.neorev-active .neorev-modal {
  transform: translateY(0);
  opacity: 1;
}

.neorev-modal-close {
  position: absolute;
  top: calc(var(--modal-spacing-unit) * 2.5); /* 20px */
  right: calc(var(--modal-spacing-unit) * 2.5); /* 20px */
  background: none;
  border: none;
  font-size: calc(var(--modal-base-font) * 1.4); /* ~19.6px */
  color: #999;
  cursor: pointer;
  width: calc(var(--modal-base-font) * 1.8); /* ~25.2px */
  height: calc(var(--modal-base-font) * 1.8); /* ~25.2px */
  line-height: calc(var(--modal-base-font) * 1.8); /* ~25.2px */
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: color 0.2s;
  padding: 0;
}

.neorev-modal-close:hover {
  color: var(--modal-primary-color);
}

.neorev-modal-header {
  margin-bottom: calc(var(--modal-spacing-unit) * 2.5); /* 20px */
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
}

/* Adjusted reviewer photo size */
.neorev-modal-avatar {
  width: calc(var(--modal-base-font) * 2.3); /* ~32.2px */
  height: calc(var(--modal-base-font) * 2.3); /* ~32.2px */
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: calc(var(--modal-spacing-unit) * 2); /* 16px */
  background-color: #f0f0f0;
  flex-shrink: 0;
  border: 1px solid #eaeaea;
}

.neorev-modal-info {
  flex-grow: 1;
}

.neorev-modal-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--modal-spacing-unit); /* 8px */
  gap: calc(var(--modal-spacing-unit) * 0.5); /* 4px */
}

.neorev-modal-name {
  font-size: calc(var(--modal-base-font) * 1.05); /* ~14.7px */
  font-weight: bold;
  color: var(--modal-primary-color);
  margin-right: calc(var(--modal-spacing-unit) * 1.25); /* 10px */
}

.neorev-modal-rating {
  display: flex;
  line-height: 1;
}

.neorev-modal-rating .neorev-star {
  font-size: calc(var(--modal-base-font) * 0.95); /* ~13.3px */
  height: calc(var(--modal-base-font) * 0.95); /* ~13.3px */
  width: calc(var(--modal-base-font) * 0.95); /* ~13.3px */
  color: #ffc107;
}

.neorev-modal-verified {
  display: flex;
  align-items: center;
  font-size: calc(var(--modal-base-font) * 0.85); /* ~11.9px */
  color: #555;
  margin-bottom: var(--modal-spacing-unit); /* 8px */
}

.neorev-modal-verified i {
  font-size: calc(var(--modal-base-font) * 0.8); /* ~11.2px */
  background-color: var(--modal-primary-color);
  color: white;
  border-radius: 50%;
  width: calc(var(--modal-base-font) * 1); /* 14px */
  height: calc(var(--modal-base-font) * 1); /* 14px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: calc(var(--modal-spacing-unit) * 0.6); /* ~4.8px */
}

.neorev-modal-date {
  font-size: calc(var(--modal-base-font) * 0.85); /* ~11.9px */
  color: #777;
  margin-top: calc(var(--modal-spacing-unit) * 1.5); /* 12px */
  text-align: right;
}

.neorev-modal-body {
  margin-bottom: calc(var(--modal-spacing-unit) * 2); /* 16px */
}

.neorev-modal-text {
  font-size: calc(var(--modal-base-font) * 0.95); /* ~13.3px */
  line-height: 1.5;
  color: var(--modal-primary-color);
  margin-bottom: calc(var(--modal-spacing-unit) * 2); /* 16px */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.neorev-modal-photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--modal-spacing-unit); /* 8px */
  margin-top: calc(var(--modal-spacing-unit) * 1.5); /* 12px */
}

/* Adjusted photo sizes while maintaining ratio */
.neorev-modal-photo {
  overflow: hidden;
  width: calc(16.666% - 0.7rem); /* Adjusted for gap */
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1); /* 2px 4px */
  border-radius: 0.25rem; /* 4px */
}

.neorev-modal-helpful {
  margin-top: calc(var(--modal-spacing-unit) * 2); /* 16px */
  font-size: calc(var(--modal-base-font) * 0.85); /* ~11.9px */
  color: #555;
  display: flex;
  align-items: center;
  gap: calc(var(--modal-spacing-unit) * 0.75); /* 6px */
}

.neorev-modal-helpful-button {
  background: none;
  border: 1px solid #ddd;
  padding: calc(var(--modal-spacing-unit) * 0.5) calc(var(--modal-spacing-unit) * 1); /* 4px 8px */
  border-radius: 0.25rem; /* 4px */
  font-size: calc(var(--modal-base-font) * 0.8); /* ~11.2px */
  cursor: pointer;
  margin-left: var(--modal-spacing-unit); /* 8px */
  color: #555;
}

.neorev-modal-helpful-button:hover {
  background-color: #f5f5f5;
}

@media (max-width: 767px) {
  :root {
    --modal-base-font: 0.8125rem; /* 13px base font for smaller screens */
    --modal-spacing-unit: 0.4375rem; /* 7px base spacing */
    --modal-padding: calc(var(--modal-spacing-unit) * 3.5); /* 24.5px */
  }

  .neorev-modal {
    width: 85%;
    padding: var(--modal-padding);
  }

  /* Improved social links styling for mobile */
  .neorev-modal-overlay .social-links {
    margin-top: calc(var(--modal-spacing-unit) * 4); /* Increased top margin */
    gap: calc(var(--modal-spacing-unit) * 3.5); /* Increased gap between icons */

     bottom: 0;
     left: 0;
     width: 100%;
  }

  .neorev-modal-overlay .social-links a svg {
    width: calc(var(--modal-base-font) * 1.4); /* Larger icons ~18.2px */
    height: calc(var(--modal-base-font) * 1.4); /* Larger icons ~18.2px */
  }

  /* Make specific social icons even slightly bigger */
  .neorev-modal-overlay .social-links .instagram-icon svg,
  .neorev-modal-overlay .social-links .facebook-icon svg,
  .neorev-modal-overlay .social-links .tiktok-icon svg {
    width: calc(var(--modal-base-font) * 1.6); /* ~20.8px */
    height: calc(var(--modal-base-font) * 1.6); /* ~20.8px */
  }

  .neorev-modal-photo {
    width: calc(25% - 0.5rem); /* 4 photos per row on smaller screens */
  }
}

@media (max-width: 400px) {
  :root {
    --modal-base-font: 0.75rem; /* 12px base font for mobile */
    --modal-spacing-unit: 0.375rem; /* 6px base spacing */
    --modal-padding: calc(var(--modal-spacing-unit) * 3); /* 18px */
  }

  .neorev-modal {
    width: 95%;
  }

  .neorev-modal-avatar {
    width: calc(var(--modal-base-font) * 2.1); /* ~25.2px */
    height: calc(var(--modal-base-font) * 2.1); /* ~25.2px */
  }

  /* Further enhanced social links for very small screens */
  .neorev-modal-overlay .social-links {
    margin-top: calc(var(--modal-spacing-unit) * 5); /* Increased top margin more */
    gap: calc(var(--modal-spacing-unit) * 4); /* Increased gap between icons more */
  }

  .neorev-modal-overlay .social-links a svg {
    width: calc(var(--modal-base-font) * 1.6); /* Even larger icons ~19.2px */
    height: calc(var(--modal-base-font) * 1.6); /* Even larger icons ~19.2px */
  }

  /* Make specific social icons even bigger on smallest screens */
  .neorev-modal-overlay .social-links .instagram-icon svg,
  .neorev-modal-overlay .social-links .facebook-icon svg,
  .neorev-modal-overlay .social-links .tiktok-icon svg {
    width: calc(var(--modal-base-font) * 1.8); /* ~21.6px */
    height: calc(var(--modal-base-font) * 1.8); /* ~21.6px */
  }

  .neorev-modal-photo {
    width: calc(33.333% - 0.5rem); /* 3 photos per row on mobile */
  }
}
/* ==========================================================================
   9. Status Messages
   ========================================================================== */
.neorev-loading {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 16px;
}

.neorev-error-message {
  text-align: center;
  padding: 20px;
  color: #e74c3c;
  font-size: 16px;
  background-color: #fdf2f2;
  margin: 20px 0;
}












#product-3 img{
  margin-bottom:25%;
}
#product-7 img{
  margin-top:25%;
}
#product-4 img{
  margin-top:10%;
}
#product-6 img{
  max-width: 160%;
  max-height: 190%;
  margin-left: 25%;
}
#product-9 img{
  max-height: 150%;
  margin-top: 16%;}
#product-10 img{
  max-height: 170%;
}
#product-11 img{
  max-height: 150%;
  max-width: 180%;
  margin-top: 13%;
}

/* Refine product card for mobile */
@media (max-width: 768px) {
  .product-card {
    padding: 10px;  /* Reduce padding on mobile */
  }

  /* Make images better fit the smaller cards */
  .product-image {
    height: 180px;  /* Reduce height on mobile */
  }

  .product-image img {
    max-width: 150%;
    max-height: 150%;
  }

  /* Adjust specific product image overrides for mobile */
  #product-3 img {
    margin-bottom: 15%;
  }

  #product-7 img {
    margin-top: 15%;
  }

  #product-4 img {
    margin-top: 5%;
  }

  #product-6 img {
    max-width: 140%;
    max-height: 160%;
    margin-left: 15%;
  }

  #product-9 img {
    max-height: 130%;
    margin-top: 10%;
  }

  #product-10 img {
    max-height: 140%;
  }

  #product-11 img {
    max-height: 130%;
    max-width: 150%;
    margin-top: 10%;
  }

  /* Fix grid spacing */
  .product-grid {
    gap: 10px;
    padding: 5px 0;
  }

  /* Adjust text sizes */
  .product-name {
    font-size: 13px;
  }

  .product-size {
    font-size: 11px;
  }
}

/* Fix grid container on mobile */
@media (max-width: 768px) {
  .product-section {
    width: 95%;  /* Increase width slightly on mobile */
    margin: 0 auto 30px;
  }

  .product-grid-wrapper {
    padding: 0 5px;  /* Add slight padding to prevent cutoff */
  }
}

.wrapper-blog {
  margin: 60px 0;
  background: #fafafa;
  padding: 80px 0;
}

.container-blog {
  width: 90%;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 50px;
  text-align: center;
}

.blog-header span {
  color: #888;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.blog-header h2 {
  font-size: 2.25rem;
  color: #111;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.5px;
}

.blog-layout {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
  align-items: stretch;
}

/* Common post styles */
.featured-post,
.post-item {
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  cursor: pointer;
}

.featured-post:hover,
.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.featured-post {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1;
}

.featured-caption {
  background: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

/* Common meta styles */
.featured-meta,
.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.post-meta {
  gap: 12px;
  margin-bottom: 10px;
}

/* Common date styles */
.featured-date,
.post-date {
  color: #999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-date {
  font-size: 0.6875rem;
}

.post-date {
  font-size: 0.625rem;
  color: #aaa;
}

/* Common heading styles */
.featured-caption h3,
.post-content h3 {
  color: #111;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
}

.post-content h3 {
  font-size: 1rem;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

/* Common excerpt styles */
.featured-intro,
.post-excerpt {
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-intro {
  font-size: 0.875rem;
}

.post-excerpt {
  font-size: 0.8125rem;
  color: #777;
  line-height: 1.4;
  margin-bottom: 12px;
  text-overflow: ellipsis;
}

/* Common read more styles */
.read-more {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.featured-caption .read-more {
  font-size: 0.6875rem;
  letter-spacing: 1.5px;
  align-self: flex-start;
}

.post-content .read-more {
  font-size: 0.625rem;
  letter-spacing: 1.5px;
}

.read-more::after {
  content: '→';
  font-size: 0.75rem;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.post-content .read-more::after {
  margin-left: 6px;
}

.read-more:hover::after {
  transform: translateX(4px);
}

.post-content .read-more:hover::after {
  transform: translateX(3px);
}

.post-list {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  display: flex;
  align-items: stretch;
  padding: 0;
  flex: 1;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.post-item img {
  width: 13vw;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.8vw, 22px);
}

.blog-footer {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.view-all-btn {
  display: inline-block;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 30px;
  border: 1px solid #666;
  background-color: transparent;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: #666;
  color: white;
}

.top-link {
  display: none;
}

/* Desktop scaling for very large screens only */
@media (min-width: 1500px) {
  .blog-header span,
  .featured-date,
  .post-date {
    font-size: 0.75rem;
  }

  .blog-header h2 {
    font-size: 2.5rem;
  }

  .featured-caption h3 {
    font-size: 1.75rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .featured-intro {
    font-size: 1rem;
  }

  .post-excerpt {
    font-size: 0.9375rem;
  }

  .featured-caption .read-more,
  .post-content .read-more,
  .view-all-btn {
    font-size: 0.75rem;
  }

  .read-more::after {
    font-size: 0.875rem;
  }
}

@media (max-width: 992px) {
  .wrapper-blog {
    padding: 60px 0;
  }

  .featured-caption .read-more{
    font-size: 0.625rem;
    letter-spacing: 1.5px;


  }
  .featured-caption .read-more::after {
    font-size: 0.75rem;
  }



  .blog-layout {
    flex-direction: column;
    gap: 40px;
  }

  .featured-post {
    height: auto;
    overflow: visible;
    position: static;
  }

  .featured-post img {
    height: 300px;
  }

  .featured-caption {
    position: static;
    background: white;
    padding: 20px;
    height: auto;
  }

  .post-list {
    flex: none;
    gap: 20px;
  }

  .post-item {
    padding: 0;
  }

  .post-content {
    padding: clamp(18px, 2.8vw, 22px);
  }

  .post-item img {
    width: 30%;
    height: auto;
    min-height: 100%;
  }

  .blog-footer {
    padding-top: 30px;
  }
}

@media (max-width: 576px) {
  .wrapper-blog {
    padding: 40px 0;
  }

  .blog-header {
    margin-bottom: 30px;
  }

  .blog-header h2 {
    font-size: 1.75rem;
  }

  .blog-layout {
    gap: 30px;
  }

  .featured-post img {
    height: 250px;
  }

  .featured-caption {
    padding: 15px;
  }

  .featured-caption h3 {
    font-size: 1rem;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
  }

  .post-item {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .post-content {
    padding: clamp(18px, 2.8vw, 22px);
  }

  .post-item img {
    width: 100%;
    height: 150px;
    min-height: auto;
  }

  .post-excerpt, .featured-intro {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .view-all-btn {
    padding: 12px 25px;
    font-size: 0.625rem;
  }
}




/* Elegant Minimalistic Scroll to Top Button - CSS */
.scroll-to-top {
  position: fixed;
  bottom: 2.25rem;
  right: 2.25rem;
  height: 2.5rem;
  width: 2.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 0.15rem 0.35rem rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transform: translateY(0.75rem);
}

/* Arrow icon - using a single consistent approach */
.scroll-to-top svg {
  width: 1rem;
  height: 1rem;
  fill: rgba(0, 0, 0, 0.6);
  transition: fill 0.2s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-0.15rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.12);
}

.scroll-to-top:hover svg {
  fill: rgba(0, 0, 0, 0.8);
}

.scroll-to-top:active {
  transform: translateY(0);
  box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .scroll-to-top {
    bottom: 1.75rem;
    right: 1.75rem;
    height: 2.25rem;
    width: 2.25rem;
  }

  .scroll-to-top svg {
    width: 0.85rem;
    height: 0.85rem;
  }
}

@media (max-width: 400px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    height: 2rem;
    width: 2rem;
  }

  .scroll-to-top svg {
    width: 0.75rem;
    height: 0.75rem;
  }
}



