.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background: #1d72a0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.main-content {
  transition: margin-left 0.3s ease;
}

.menu-toggle {
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(transparent, rgba(151, 217, 232, 0.8));
  border-radius: 8px;
}

.menu-header {
  background: linear-gradient(135deg, #7bbed0 0%, #4b78a2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-header .menu-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: rgb(76, 124, 176);
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30%;
  transition: background 0.3s ease;
}

.menu-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.menu-header .menu-close:hover {
  background: rgb(255, 255, 255);
}

/* ===== SIDE MENU STYLES ===== */
.side-menu {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 400px;
  max-height: 60vh;
  background: #fff;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translate(0, -50%) translateY(-15px) scale(0.95);
  transform-origin: top left;
  transition: all 0.2s ease-out;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.side-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 10px) scale(1);
  overflow-y: auto;
}

.side-menu.closing {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 20px) translateX(-100%) scale(0.9);
  transition: all 0.25s ease-in;
}

.menu-content {
  opacity: 0;
  transition: opacity 0.15s ease;
  transition-delay: 0.1s;
}

.side-menu.active .menu-content {
  opacity: 1;
}

/* ===== SIDE MENU FILTER ===== */
.side-menu-filter {
  padding: 15px 20px;
  border-bottom: 2px solid #e0e0e0;
  background: #f8f9fa;
}

.side-menu-filter label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.side-filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.side-filter-select:hover {
  border-color: #4f8293;
}

.side-filter-select:focus {
  outline: none;
  border-color: #4f8293;
  box-shadow: 0 0 0 2px rgba(79, 130, 147, 0.1);
}

/* ===== FABRIC CATEGORIES ===== */
.fabric-category {
  border-bottom: 1px solid #eee;
}

.category-header {
  padding: 15px 20px;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.category-header:hover {
  background: #e9ecef;
}

.category-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.category-arrow {
  transition: transform 0.3s ease;
}

.category-header.active .category-arrow {
  transform: rotate(180deg);
}

.fabric-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.fabric-list.active {
  max-height: 500px;
}

.fabric-item {
  padding: 10px 20px 10px 40px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fabric-item:hover {
  background: #f8f9fa;
  color: #396b82;
}

.fabric-item:last-child {
  border-bottom: none;
}

.fabric-count {
  background: linear-gradient(transparent, rgba(151, 217, 232, 0.8));
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  position: relative;
  color: #38787f;
  text-decoration: none;
  font-weight: light;
  transition: color 0.3s ease;
  display: inline-block;
}

.breadcrumb a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 40%;
  width: 0;
  height: 1.5px;
  background: rgb(0, 195, 255);
  transition: width 0.7s ease;
  transform: translateX(-50%);
}

.breadcrumb a:hover {
  color: rgb(0, 195, 255);
}

.breadcrumb a:hover::before {
  width: 85%;
}


.nav-menu a span::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: rgb(0, 195, 255);
  transition: width 0.7s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover {
  color: #508ea1;
  text-shadow: white;
  background: transparent;
}

.nav-menu a:hover span::before {
  width: 100%;
}

.nav-menu a:not(:last-child):not(.nav-dropdown a)::after {
  content: "/";
  margin: 0 0.5rem;
  text-decoration: none;
  display: inline-block;
  pointer-events: none;
}






/* ===== HERO SECTION ===== */
.textiles-hero {
  position: relative;
  overflow: hidden;
  color: rgb(65, 64, 56);
  padding: 100px 0 80px;
  text-align: center;
  margin-top: 1px;
  min-height: 500px;
}

.textiles-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.textiles-hero-bg::before,
.textiles-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: floatImages 6s ease-in-out infinite;
}

.textiles-hero-bg::before { 
  opacity: var(--opa-a, 1); 
  background-image: var(--bg-a);
}

.textiles-hero-bg::after  { 
  opacity: var(--opa-b, 0);
  background-image: var(--bg-b); 
}

@keyframes floatImages {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.textiles-hero h1 {
  z-index: 100;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.textiles-hero p {
  z-index: 10;
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto;
}

.hero-text-container {
  transition: color 0.8s ease;
}

/* ===== MARQUEE SECTION ===== */
.marquee-section {
  background: linear-gradient(transparent, rgba(151, 217, 232, 0.8));
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  height: 35px;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  color: rgb(7, 7, 7);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  height: 100%;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  margin-right: 100px;
  min-width: max-content;
}

.marquee-icon {
  margin-right: 10px;
  font-size: 1.3rem;
}

@keyframes marqueeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== FILTER SECTION ===== */
.filter-section {
  background: #f8f9fa;
  padding: 30px 20px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.search-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  margin-left: 0;
  padding: 0 70px 0 20px; /* Added left padding to avoid hamburger overlap */
}

.search-input-wrapper {
  position: relative;
  width: 600px;
}

#fabric-search-input {
  width: 100%;
  padding: 12px 45px 12px 15px; /* Reset to original padding */
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease;
  background: #0b070796
}

#fabric-search-input:focus {
  border-color: #4f8293;
  box-shadow: 0 0 0 3px rgba(79, 130, 147, 0.1);
}

#fabric-search-input::placeholder {
  color: #c1b7b7;
  font-style: italic;
}

.search-reset-external {
  background: #f8f9fa;
  border: 2px solid #ddd;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.search-reset-external:hover {
  background: #e9ecef;
  color: #333;
  border-color: #6d9d8c;
  transform: scale(1.05);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  border: none;
  padding: 8px;
  border-radius: 50px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.search-button:hover {
  background: linear-gradient(135deg, #bfc7c4 0%, #718ca9 100%);
  transform: translateY(-52%);
}

.filter-bar {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.filter-bar-content {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10px;
  width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
}

.filter-select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-select:hover {
  border-color: #ff6b6b;
}

.filter-select:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.clear-all-filters {
  background: transparent;
  border: 1px solid #4f8293;
  color: #4f8293;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.clear-all-filters:hover {
  background: #4f8293;
  color: white;
}

.results-count {
  margin-left: auto;
  color: #666;
}

/* ===== PRODUCTS LISTING ===== */
.products-listing {
  padding: 30px 0;
  background: white;
}

.products-listing .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.products-listing .product-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.products-listing .product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coming-soon-badge {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
  opacity: 0.7;
}

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge.new {
  background: #ff6b6b;
  color: white;
}

.badge.eco {
  background: #4caf50;
  color: white;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-details h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.spec {
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  color: #555;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.availability {
  font-size: 0.9rem;
  color: #4caf50;
  font-weight: 500;
}

.enquire-btn {
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.75rem;
}

.enquire-btn:hover {
  background: linear-gradient(135deg, #595a92 0%, #828733 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 157, 140, 0.3);
}

/* ===== FABRIC VIEW TOGGLE ===== */
.fabric-view-toggle {
  padding: 1rem 0 0.5rem;
  background: white;
}

.view-toggle-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.view-toggle-buttons .results-count {
  margin-left: auto;
  margin-right: 20px;
  color: #666;
  font-size: 0.9rem;
}

.toggle-btn {
  padding: 12px 24px;
  border: 2px solid #6d9d8c;
  background: white;
  color: #6d9d8c;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.toggle-btn:hover {
  background: #6d9d8c;
  color: white;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  color: white;
  border-color: transparent;
}

/* ===== FABRIC CATEGORIES SECTION ===== */
.fabric-categories-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 300;
}

.section-header p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.fabric-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.fabric-category-card {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.fabric-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-image,
.category-image.cotton-bg,
.category-image.linen-bg,
.category-image.wool-bg,
.category-image.blend-bg,
.category-image.heritage-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 25%, #e8e8e8 50%, #f4f4f4 75%, #fafafa 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .category-image::before {
  content: "Coming Soon";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: none;
  color: white;
  padding: 2rem 2rem 2rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.fabric-category-card:hover .category-overlay {
  transform: translateY(0);
}

.category-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.category-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.fabric-count {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.explore-btn {
  background: linear-gradient(transparent, rgba(76, 111, 119, 0.8));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.explore-btn:hover {
  background: linear-gradient(135deg, #595a92 0%, #828733 100%);
  transform: translateY(-2px);
}

/* ===== FABRIC CATEGORY MODAL ===== */
.fabric-category-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(0,0,0,0.8);
}

.fabric-category-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-header h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 25%, #a8a8a8 50%, #d4d4d4 75%, #f0f0f0 100%);
  color: #000000;
  margin: 0;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6c757d;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f1f3f4;
  color: #2c3e50;
}

.modal-body {
  padding: 2rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.category-description {
  margin-bottom: 2rem;
  text-align: center;
}

.category-description p {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.6;
}

.modal-search-bar {
  display: flex;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.modal-search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  outline: none;
}

.modal-search-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-search-btn:hover {
  background: linear-gradient(135deg, #595a92 0%, #828733 100%);
}

.modal-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.modal-filters select {
  padding: 10px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: white;
}

.modal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
  margin-top: 2rem;
}

.modal-prev-btn,
.modal-next-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-prev-btn:hover,
.modal-next-btn:hover {
  background: linear-gradient(135deg, #595a92 0%, #828733 100%);
  transform: translateY(-2px);
}

.modal-page-info {
  font-weight: 500;
  color: #6c757d;
}

/* ===== FABRIC ENQUIRY MODAL ===== */
.fabric-enquiry-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  background: rgba(0,0,0,0.8);
}

.fabric-enquiry-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enquiry-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.enquiry-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.enquiry-modal-header h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 25%, #a8a8a8 50%, #d4d4d4 75%, #f0f0f0 100%);
  color: #000000;
  margin: 0;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 8px;
}

.enquiry-modal-body {
  padding: 2rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.fabric-enquiry-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

.fabric-enquiry-info p {
  margin: 0 0 0.5rem 0;
  color: #6c757d;
  font-size: 1rem;
}

.fabric-enquiry-info p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.fabric-enquiry-info strong {
  color: #2c3e50;
  font-weight: 600;
}

.elegant-form .form-group {
  margin-bottom: 1.5rem;
}

.elegant-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.9rem;
}

.elegant-form input,
.elegant-form select,
.elegant-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.elegant-form input:focus,
.elegant-form select:focus,
.elegant-form textarea:focus {
  outline: none;
  border-color: #6d9d8c;
  box-shadow: 0 0 0 3px rgba(109, 157, 140, 0.1);
}

.elegant-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.form-actions button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.form-cancel-btn {
  background: white;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.form-cancel-btn:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.form-submit-btn {
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  color: white;
  border: none;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #595a92 0%, #828733 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 157, 140, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* ===== COMBINED SECTION ===== */
.combined-section {
  background: linear-gradient(transparent, rgba(151, 217, 232, 0.8));
  color: rgb(34, 33, 33);
  padding: 1rem 0;
  border-top: 1px solid #7b9ec2;
}

.combined-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-content h2 {
  font-size: 2.2rem;
  color: #252222;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.1rem;
  color: #2a2828;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 140px;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  color: white;
  border: 2px solid transparent;
}

.cta-btn.primary:hover {
  background: linear-gradient(135deg, #595a92 0%, #828733 100%);
  border-color: none;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid #6d9d8c;
}

.cta-btn.secondary:hover {
  background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
  border-color: #6d9d8c;
  transform: translateY(-2px);
}

.footer-content {
  text-align: right;
  padding-left: 2rem;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #353232;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #426b7f 0%, #53d7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  font-size: 1.1rem;
  color: #302e2e;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-copyright {
  opacity: 0.8;
  font-size: 0.9rem;
  color: #544e4e;
  line-height: 1.4;
}

/* ===== PAGINATION ===== */
.pagination {
  background: #f8f9fa;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.page-btn {
  padding: 10px 15px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  min-width: 45px;
}

.page-btn:hover:not(:disabled) {
  background: #71a2d1;
  color: white;
  border-color: #337780;
}

.page-btn.active {
  background: #71a2d1;
  color: white;
  border-color: #337780;
}

.page-btn:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

.page-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-dots {
  padding: 0 10px;
  color: #666;
  font-weight: bold;
}

.prev-btn,
.next-btn {
  font-weight: 500;
  padding: 10px 20px;
}

.pagination-info {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.current-page,
.total-pages {
  font-weight: 600;
  color: #333;
}

/* ===== SEARCH SUGGESTIONS ===== */
#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-suggestion-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.search-suggestion-item:hover {
  background: #f8f9fa;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.suggestion-text {
  flex: 1;
  font-weight: 500;
  color: #333;
}

.suggestion-category {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== NO RESULTS STATE ===== */
.no-search-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.no-results-text {
  font-size: 16px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.search-analytics {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14px;
  color: #666;
}

.popular-searches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.popular-search-tag {
  background: white;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popular-search-tag:hover {
  background: #4f8293;
  color: white;
  border-color: #4f8293;
}

/* ===== DARK THEME SUPPORT ===== */
body.dark-theme .menu-toggle {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

body.dark-theme .hamburger span {
  background: #e0e0e0;
}

body.dark-theme .side-menu {
  background: #1a1a1a;
}

body.dark-theme .category-header {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-theme .category-header h3 {
  color: #e0e0e0;
}

body.dark-theme .fabric-item {
  color: #b0b0b0;
  border-bottom-color: #3a3a3a;
}

body.dark-theme .fabric-item:hover {
  background: #2a2a2a;
  color: #efc6c6;
}

body.dark-theme .fabric-list {
  background: #1a1a1a;
}

body.dark-theme .marquee-section {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-theme .filter-section {
  background: #1a202c;
  border-bottom-color: #2d3748;
}

body.dark-theme .filter-select {
  background: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

body.dark-theme .filter-group label {
  color: #e2e8f0;
}

body.dark-theme .products-listing {
  background: #0d1117;
}

body.dark-theme .products-listing .product-card {
  background: #1a202c;
  border-color: #2d3748;
}

body.dark-theme .product-details h3 {
  color: #e2e8f0;
}

body.dark-theme .product-description {
  color: #a0aec0;
}

body.dark-theme .spec {
  background: #2d3748;
  color: #a0aec0;
}

body.dark-theme .product-footer {
  border-top-color: #2d3748;
}

body.dark-theme .pagination {
  background: #1a202c;
  border-top-color: #2d3748;
}

body.dark-theme .page-btn {
  background: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

body.dark-theme .page-btn:hover:not(:disabled) {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

body.dark-theme .page-btn:disabled {
  background: #1a202c;
  color: #4a5568;
  border-color: #2d3748;
}

body.dark-theme .pagination-info {
  color: #a0aec0;
}

body.dark-theme .current-page,
body.dark-theme .total-pages {
  color: #e2e8f0;
}

body.dark-theme .page-dots {
  color: #a0aec0;
}

body.dark-theme #fabric-search-input {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-theme #fabric-search-input::placeholder {
  color: #a0aec0;
}

body.dark-theme #search-suggestions {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-theme .search-suggestion-item {
  border-bottom-color: #4a5568;
}

body.dark-theme .search-suggestion-item:hover {
  background: #374151;
}

body.dark-theme .suggestion-text {
  color: #e2e8f0;
}

body.dark-theme .suggestion-category {
  background: #4a5568;
  color: #a0aec0;
}

body.dark-theme .no-search-results {
  color: #a0aec0;
}

body.dark-theme .no-results-title {
  color: #e2e8f0;
}

body.dark-theme .popular-search-tag {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-theme .popular-search-tag:hover {
  background: #4f8293;
  color: white;
}

/* ===== AMAZON-STYLE MOBILE LAYOUT ===== */

/* Hide bottom search on larger screens, show desktop hamburger */
@media (min-width: 751px) {
  .bottom-search-row {
    display: none !important;
  }

  .desktop-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: 15px;
    background: linear-gradient(transparent, rgba(151, 217, 232, 0.8));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .desktop-menu-toggle:hover {
    background: linear-gradient(rgba(151, 217, 232, 0.6), rgba(151, 217, 232, 1));
  }

  .search-row {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .search-input-wrapper {
    flex: 1;
  }
}

/* Mobile-first: Sticky bottom filter bar for small screens (250px - 750px) */
@media (max-width: 750px) {

  /* Hide desktop hamburger on mobile */
  .desktop-menu-toggle {
    display: none !important;
  }

  /* Move filter section to bottom as sticky */
  .filter-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 15px 10px 10px;
    margin: 0;
  }

  /* Adjust main content to account for sticky bottom filter */
  .main-content {
    margin-bottom: 120px; /* Space for sticky bottom filter */
  }

  /* Compact filter layout */
  .search-row {
    display: none; /* Hide search from top, will be in bottom sticky */
  }

  /* Compact bottom filter bar */
  .filter-bar {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
  }

  /* Search in bottom sticky bar with hamburger */
  .bottom-search-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
  }

  .bottom-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1;
  }

  .bottom-search-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    background: #f8f9fa;
  }

  /* Hamburger next to search bar */
  .menu-toggle {
    padding: 6px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .bottom-search-reset-external {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
  }

  .bottom-search-reset-external:hover {
    background: #e9ecef;
    color: #333;
    border-color: #6d9d8c;
    transform: scale(1.05);
  }

  .bottom-search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #6d9d8c 0%, #558fcb 100%);
    border: none;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    color: white;
  }

  /* Compact filter controls - single row */
  .filter-bar-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding: 0 5px;
    width: 100%;
  }

  .filter-select {
    padding: 4px 6px;
    font-size: 0.7rem;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    flex: 1 1 auto;
    min-width: 60px;
    display: inline-block;
  }

  .clear-all-filters {
    padding: 4px 6px;
    font-size: 0.65rem;
    border-radius: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 45px;
    display: inline-block;
  }

  .results-count {
    display: none; /* Hide on mobile to save space */
  }

  /* Side menu adjustments - opens from bottom to top */
  .side-menu {
    position: fixed;
    bottom: 120px; /* Above the sticky filter bar */
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 70vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    border-radius: 12px 12px 0 0;
  }

  .side-menu.active {
    transform: translateY(0);
  }

  /* Ensure content doesn't scroll behind sticky bottom bar */
  body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* Prevent horizontal overflow */
  .container {
    overflow-x: hidden;
  }
}

/* ===== CONSOLIDATED RESPONSIVE DESIGN ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .fabric-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .fabric-category-card {
    height: 280px;
  }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
  .fabric-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .fabric-category-card {
    height: 260px;
  }
}

/* Tablet (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
  .fabric-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .fabric-category-card {
    height: 240px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .view-toggle-buttons {
    gap: 0.8rem;
  }

  .toggle-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .search-row {
    padding: 0 70px 0 40px; /* Adjusted for hamburger menu */
  }

  .search-input-wrapper {
    width: 500px;
  }

  .combined-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    text-align: left;
    padding-left: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    justify-content: flex-start;
  }
}

/* Center breadcrumb on smaller tablets and mobile */
@media (max-width: 800px) {
  .breadcrumb {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
  .fabric-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fabric-category-card {
    height: 220px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .view-toggle-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .toggle-btn {
    width: 100%;
    max-width: 300px;
  }

  .side-menu {
    position: fixed;
    bottom: 120px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 70vh;
    transform: translateY(100%);
    border-radius: 12px 12px 0 0;
  }

  .side-menu.active {
    transform: translateY(0);
  }

  .search-row {
    padding: 0 70px 0 20px; /* Maintain hamburger spacing */
    margin-bottom: 20px;
  }

  .search-input-wrapper {
    width: 100%;
  }

  .filter-bar-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .filter-select {
    width: 100%;
  }

  .results-count {
    margin-left: 0;
    text-align: center;
    margin-top: 10px;
  }

  .textiles-hero {
    padding: 60px 20px 40px;
    min-height: 350px;
  }

  .textiles-hero h1 {
    font-size: 1.8rem;
  }

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

  .products-listing .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
  }

  .product-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .enquire-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 40px;
  }

  .prev-btn,
  .next-btn {
    padding: 8px 15px;
  }

  .page-numbers {
    gap: 3px;
  }

  .marquee-content {
    font-size: 0.95rem;
    animation-duration: 20s;
  }

  .marquee-item {
    margin-right: 80px;
  }

  .combined-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .footer-content {
    text-align: left;
    padding-left: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
  }

  .footer-logo {
    font-size: 2rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    gap: 6px;
  }
}

/* Mobile Medium (320px - 480px) */
@media (max-width: 480px) {
  .fabric-category-card {
    height: 200px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .modal-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .category-overlay h3 {
    font-size: 1.3rem;
    padding: 6px 12px;
  }

  .explore-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .side-menu {
    position: fixed;
    bottom: 120px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 70vh;
    transform: translateY(100%);
    border-radius: 12px 12px 0 0;
  }

  .side-menu.active {
    transform: translateY(0);
  }

  .menu-header {
    padding: 15px;
  }

  .menu-header h2 {
    font-size: 1.3rem;
  }

  .textiles-hero {
    padding: 40px 15px 30px;
    min-height: 300px;
  }

  .textiles-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .textiles-hero p {
    font-size: 0.9rem;
  }

  .filter-section {
    padding: 20px 0;
  }

  .search-row {
    padding: 0 70px 0 15px; /* Adjusted for fixed hamburger */
  }

  .search-input-wrapper {
    width: 100%;
    max-width: 600px;
    min-width: auto;
  }

  #fabric-search-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px 40px 10px 12px;
  }

  .search-button {
    right: 5px;
    padding: 5px 8px;
  }

  .products-listing {
    padding: 20px 0;
  }

  .products-listing .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-image {
    height: 200px;
  }

  .product-details {
    padding: 15px;
  }

  .product-details h3 {
    font-size: 1.2rem;
  }

  .product-description {
    font-size: 0.9rem;
  }

  .pagination {
    padding: 30px 0;
  }

  .pagination-controls {
    flex-direction: column;
    gap: 15px;
  }

  .page-numbers {
    order: 1;
  }

  .prev-btn {
    order: 2;
    width: 100%;
    max-width: 200px;
  }

  .next-btn {
    order: 3;
    width: 100%;
    max-width: 200px;
  }

  .combined-section {
    padding: 1.5rem 0;
  }

  .combined-content {
    gap: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }

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

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-text {
    font-size: 1rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
    gap: 4px;
    justify-content: center;
  }

  .no-results-title {
    font-size: 20px;
  }

  .no-results-text {
    font-size: 14px;
  }

  .popular-search-tag,
  .search-suggestion-chip {
    font-size: 11px;
    padding: 4px 8px;
  }

  .combined-content {
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

/* Mobile Small (250px - 399px) */
@media (max-width: 399px) {
  .fabric-category-card {
    height: 180px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .category-overlay h3 {
    font-size: 1.2rem;
  }

  .category-overlay p {
    font-size: 0.9rem;
  }

  .fabric-count {
    font-size: 0.8rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .side-menu {
    position: fixed;
    bottom: 120px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 70vh;
    transform: translateY(100%);
    border-radius: 12px 12px 0 0;
  }

  .side-menu.active {
    transform: translateY(0);
  }

  .menu-header {
    padding: 12px;
  }

  .menu-header h2 {
    font-size: 1.2rem;
  }

  .category-header {
    padding: 12px 15px;
  }

  .fabric-item {
    padding: 8px 15px 8px 30px;
  }

  .product-details {
    padding: 12px;
  }

  .cta-content h2 {
    font-size: 1.2rem;
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .footer-logo {
    font-size: 1.6rem;
  }

  .marquee-content {
    font-size: 0.85rem;
  }
}

/* Specific breakpoint adjustments */

/* 950px - 1050px */
@media (max-width: 1050px) and (min-width: 950px) {
  .search-input-wrapper {
    width: 550px;
  }
}

/* 850px - 950px */
@media (max-width: 950px) and (min-width: 850px) {
  .search-input-wrapper {
    width: 500px;
  }
}

/* 750px - 850px */
@media (max-width: 850px) and (min-width: 750px) {
  .search-input-wrapper {
    width: 450px;
  }
}

/* 560px - 750px */
@media (max-width: 750px) and (min-width: 560px) {
  .bottom-search-input {
    padding: 12px 40px 12px 15px;
    font-size: 15px;
  }

  .main-content {
    margin-bottom: 140px;
  }
}

/* 550px - 560px */
@media (max-width: 560px) and (min-width: 550px) {
  .bottom-search-input {
    padding: 11px 38px 11px 14px;
    font-size: 14px;
  }

  .filter-select {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

/* 450px - 550px */
@media (max-width: 550px) and (min-width: 450px) {
  .bottom-search-input {
    padding: 10px 35px 10px 12px;
    font-size: 14px;
  }

  .filter-bar-content {
    gap: 8px;
  }
}

/* 350px - 450px */
@media (max-width: 450px) and (min-width: 350px) {
  .bottom-search-input {
    padding: 9px 32px 9px 11px;
    font-size: 13px;
  }

  .filter-select {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .menu-toggle {
    left: 8px;
    top: 12px;
    padding: 6px;
  }
}

/* 250px - 350px */
@media (max-width: 350px) and (min-width: 240px) {

  .marquee-section {
    height:25px;
  }

  .marquee-content {
    font-size: 0.55rem;
  }
  .bottom-search-input {
    padding: 8px 30px 8px 10px;
    font-size: 12px;
    width: 100%;
  }

  .bottom-search-button {
    right: 3px;
  }

  .bottom-search-wrapper {
    width: 100%;
    max-width: 280px;
  }

  .filter-section {
    padding: 12px 8px 8px;
  }

  .filter-bar-content {
    gap: 6px;
    padding: 0 2px;
  }

  .filter-select {
    padding: 4px 6px;
    font-size: 0.7rem;
  }

  .clear-all-filters {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .menu-toggle {
    padding: 6px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    width: 16px;
    height: 12px;
  }

  .main-content {
    margin-bottom: 110px;
  }
}

/* Extra Small Screens (below 250px) */
@media (max-width: 249px) {
  /* Contact bar stays sticky at top */
  .contact-bar {
    position: sticky !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: none !important;
    height: 20px !important; /* Set a specific height */
    z-index: 1002 !important;
  }

  /* Navigation sticks right below contact bar */
  nav {
    position: sticky !important;
    top: 20px !important; /* Stick right below contact bar height */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    z-index: 1001 !important;
  }

  /* Remove any gap between them */
  .contact-bar + nav {
    margin-top: -1px !important; /* Pull nav up slightly to eliminate gap */
  }

  /* Force remove any body margins that might cause gaps */
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove any potential container margins */
  .container {
    margin: 0 auto !important;
    padding: 0 10px !important;
  }

  .nav-container {
    padding: 8px 10px;
    margin-top: -2px !important; /* Pull nav closer to contact bar */
  }

  /* Additional gap elimination */
  .contact-bar-content {
    margin: 0 !important;
    padding: 4px 10px !important;
  }

  /* Force adjacency */
  nav {
    transform: translateY(-1px) !important; /* Move nav up slightly */
  }

  /* Remove any default margins from navigation elements */
  .logo-container,
  .breadcrumb {
    margin: 0 !important;
  }

  /* Compact the logo area */
  .logo-link {
    gap: 4px !important;
  }

  /* Hamburger positioning for very small screens */
  .menu-toggle {
    left: 5px;
    top: 8px;
    padding: 4px;
  }

  .hamburger {
    width: 10px;
    height: 8px;
  }

  /* Hero section adjustments */
  .textiles-hero {
    padding: 30px 10px 20px;
    min-height: 250px;
  }

  .textiles-hero h1 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .textiles-hero p {
    font-size: 0.8rem;
  }

  /* Bottom filter adjustments */
  .bottom-search-input {
    padding: 6px 25px 6px 8px;
    font-size: 10px;
  }

  .bottom-search-button {
    right: 2px;
    padding: 3px 6px;
  }

  .filter-section {
    padding: 8px 5px 5px;
  }

  .filter-select {
    padding: 3px 5px;
    font-size: 0.65rem;
  }

  .clear-all-filters {
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .main-content {
    margin-bottom: 100px;
  }

  /* Marquee section */
  .marquee-section {
    height: 20px;
    padding: 4px 0;
  }

  .marquee-content {
    font-size: 0.5rem;
  }

  /* Breadcrumb adjustments */
  .breadcrumb {
    font-size: 0.7rem;
    gap: 2px;
  }

  /* Logo adjustments */
  .logo {
    font-size: 1.2rem;
  }

  .logo-img {
    width: 25px;
    height: 25px;
  }
}

/* Mobile Extra Small (250px - 319px) */
@media (max-width: 319px) and (min-width: 250px) {
  .fabric-categories-section {
    padding: 2rem 0;
  }

  .fabric-category-card {
    height: 160px;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-header p {
    font-size: 0.8rem;
  }

  .category-overlay {
    padding: 1rem 0.5rem 0.5rem;
  }

  .category-overlay h3 {
    font-size: 1.1rem;
    padding: 4px 8px;
  }

  .explore-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .textiles-hero h1 {
    font-size: 1.3rem;
  }

  .textiles-hero p {
    font-size: 0.85rem;
  }

  .bottom-search-input {
    padding: 7px 28px 7px 9px;
    font-size: 11px;
    width: 100%;
  }

  .bottom-search-wrapper {
    width: 100%;
    max-width: 260px;
  }

  .bottom-search-row {
    padding: 0 10px;
  }

  .filter-section {
    padding: 10px 5px 6px;
  }

  .menu-toggle {
    padding: 5px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    width: 14px;
    height: 10px;
  }

  /* Maintain sticky behavior while fixing gap for 250-319px screens */
  .contact-bar {
    position: sticky !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    height: 24px !important; /* Set specific height */
    z-index: 1002 !important;
  }

  nav {
    position: sticky !important;
    top: 24px !important; /* Stick right below contact bar */
    margin: 0 !important;
    z-index: 1001 !important;
  }

  /* Remove gap between contact bar and nav */
  .contact-bar + nav {
    margin-top: -1px !important;
  }

  .nav-container {
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
  }
}
