/* ===== FONTS ===== */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap'); */
    
    /* ===== BASIC RESET ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary-color: #ff7b00;
      --secondary-color: #cc6300;
      --accent-color: #ff9500;
      --text-dark: #333;
      --text-light: #666;
      --bg-light: #fffaf3;
      --bg-white: #ffffff;
      --shadow: 0 5px 15px rgba(0,0,0,0.1);
      --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    }

    html, body {
      font-family: 'Poppins', sans-serif;
      background-color: var(--bg-light);
      color: var(--text-dark);
      overflow-x: hidden !important;
      scroll-behavior: smooth;
      width: 100%;
      max-width: 100%;
      position: relative;
    }

    /* ===== LOADING SCREEN ===== */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  gap: 15px;
  font-family: Arial, sans-serif;
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 123, 0, 0.25);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

    /* ===== HEADER ===== */
    header {
      background-color: var(--bg-white);
      color: var(--primary-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 50px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: var(--shadow);
      transition: all 0.3s ease;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    header.scrolled {
      padding: 8px 5%;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    header img {
       height: 70px;
      width: auto;
      object-fit: contain;
      transition: transform 0.3s ease;
      max-width: 150px;
    }

    header img:hover {
      transform: scale(1.05);
    }

    nav {
      display: flex;
      align-items: center;
    }

    nav a {
      color: var(--primary-color);
      text-decoration: none;
      margin: 0 15px;
      font-weight: 600;
      position: relative;
      transition: color 0.3s;
      white-space: nowrap;
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--primary-color);
      transition: width 0.3s;
    }

    nav a:hover::after {
      width: 100%;
    }

    nav a:hover {
      color: var(--secondary-color);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 24px;
      color: var(--primary-color);
      cursor: pointer;
      z-index: 101;
      transition: transform 0.3s ease;
    }

    .mobile-menu-btn:hover {
      transform: scale(1.1);
    }

    /* ===== MOBILE MENU OVERLAY ===== */
    .menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 98;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    /* ===== BREADCRUMB ===== */
    .breadcrumb {
      padding: 20px 5%;
      background-color: var(--bg-white);
      font-size: 0.9em;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .breadcrumb a {
      color: var(--text-light);
      text-decoration: none;
      transition: color 0.3s;
    }

    .breadcrumb a:hover {
      color: var(--primary-color);
    }

    .breadcrumb span {
      margin: 0 8px;
      color: var(--text-light);
    }

    .breadcrumb .current {
      color: var(--primary-color);
      font-weight: 600;
    }

    /* ===== PRODUCTS HERO ===== */
    .products-hero {
      background-image: 
        linear-gradient(135deg, rgba(255,123,0,0.7), rgba(255,149,0,0.5)),
        url('https://images.unsplash.com/photo-1585032226651-759b368d7246?auto=format&fit=crop&w=1600&q=80');
      background-size: cover;
      background-position: center;
      height: 60vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 100%;
    }

    .products-hero h2 {
      font-size: 3em;
      font-weight: 800;
      text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
      margin-bottom: 20px;
      letter-spacing: -1px;
      padding: 0 20px;
    }

    .products-hero p {
      max-width: 700px;
      margin: 0 auto;
      font-size: 1.2em;
      line-height: 1.6;
      font-weight: 400;
      padding: 0 20px;
    }

    /* ===== PRODUCTS SECTION ===== */
    .products-section {
      padding: 50px 5%;
      background-color: var(--bg-white);
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .products-container {
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
    }

    /* ===== FILTERS ===== */
    .filters-container {
      display: flex;
      justify-content: space-between;
      margin-bottom: 40px;
      flex-wrap: wrap;
      gap: 20px;
      width: 100%;
      box-sizing: border-box;
    }

    .filter-group {
      display: flex;
      align-items: center;
      gap: 15px;
      flex-wrap: wrap;
    }

    .filter-label {
      font-weight: 600;
      color: var(--text-dark);
      white-space: nowrap;
    }

    .filter-select {
      padding: 10px 15px;
      border: 1px solid #ddd;
      border-radius: 8px;
      background-color: var(--bg-white);
      font-family: inherit;
      font-size: 0.95em;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 150px;
    }

    .filter-select:hover {
      border-color: var(--primary-color);
    }

    .filter-select:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.2);
    }

    .search-box {
      position: relative;
      width: 300px;
      flex-shrink: 0;
    }

    .search-box input {
      width: 100%;
      padding: 10px 15px 10px 40px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.95em;
      transition: all 0.3s ease;
      box-sizing: border-box;
    }

    .search-box input:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.2);
    }

    .search-box i {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-light);
    }

    /* ===== PRODUCTS GRID ===== */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
      width: 100%;
      box-sizing: border-box;
    }

    .product-card {
      background-color: var(--bg-white);
      border-radius: 15px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: all 0.3s ease;
      position: relative;
      width: 100%;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .product-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-hover);
    }

    .product-badge {
      position: absolute;
      top: 15px;
      right: 15px;
      background-color: var(--primary-color);
      color: white;
      padding: 5px 10px;
      border-radius: 20px;
      font-size: 0.8em;
      font-weight: 600;
      z-index: 1;
    }

    .product-image {
      height: 280px;
      overflow: hidden;
      position: relative;
      width: 100%;
      flex-shrink: 0;
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.5s ease;
    }

    .product-card:hover .product-image img {
      transform: scale(1.1);
    }

    .product-content {
      padding: 15px;
      width: 100%;
      box-sizing: border-box;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .product-category {
      color: var(--text-light);
      font-size: 0.9em;
      margin-bottom: 5px;
    }

    .product-name {
      font-size: 1.1em;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 10px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      line-height: 1.2;
    }

    .product-description {
      color: var(--text-light);
      font-size: 0.85em;
      line-height: 1.4;
      margin-bottom: 15px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      text-overflow: ellipsis;
      flex-grow: 1;
    }

    .product-link {
      color: var(--primary-color);
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      transition: all 0.3s ease;
      margin-top: auto;
    }

    .product-link i {
      margin-left: 5px;
      transition: transform 0.3s ease;
    }

    .product-link:hover i {
      transform: translateX(5px);
    }

    /* ===== NO RESULTS MESSAGE ===== */
    .no-results {
      grid-column: 1 / -1;
      text-align: center;
      padding: 40px;
      background-color: var(--bg-light);
      border-radius: 10px;
      margin: 20px 0;
    }

    .no-results h3 {
      color: var(--text-dark);
      margin-bottom: 10px;
    }

    .no-results p {
      color: var(--text-light);
    }

    /* ===== FOOTER ===== */
    footer {
      background-color: #333;
      color: white;
      padding: 60px 5% 20px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .footer-content {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      max-width: 1200px;
      margin: 0 auto 40px;
      width: 100%;
      box-sizing: border-box;
    }

    .footer-section {
      flex: 1;
      min-width: 250px;
      margin-bottom: 30px;
      padding-right: 30px;
      box-sizing: border-box;
    }

    .footer-section h3 {
      color: var(--primary-color);
      font-size: 1.3em;
      margin-bottom: 20px;
      position: relative;
      padding-bottom: 10px;
    }

    .footer-section h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 50px;
      height: 2px;
      background-color: var(--primary-color);
    }

    .footer-section p,
    .footer-section ul {
      color: #ccc;
      line-height: 1.8;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 10px;
      transition: transform 0.3s ease;
    }

    .footer-section ul li:hover {
      transform: translateX(5px);
    }

    .footer-section a {
      color: #ccc;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer-section a:hover {
      color: var(--primary-color);
    }

    .social-links {
      display: flex;
      gap: 15px;
      margin-top: 20px;
    }

    .social-link {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      transition: all 0.3s ease;
    }

    .social-link:hover {
      background: var(--primary-color);
      transform: translateY(-5px);
    }

    .footer-bottom {
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: #aaa;
      font-size: 0.9em;
      width: 100%;
      box-sizing: border-box;
    }

    /* ===== BACK TO TOP BUTTON ===== */
    .back-to-top {
      position: fixed;
      bottom: 100px;
      right: 30px;
      width: 50px;
      height: 50px;
      background: var(--primary-color);
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.2em;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 99;
      cursor: pointer;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .back-to-top.active {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background: var(--secondary-color);
      transform: translateY(-5px);
    }

    /* ===== WHATSAPP BUTTON ===== */
    .whatsapp-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 60px;
      height: 60px;
      background-color: #25D366;
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.8em;
      z-index: 100;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      text-decoration: none;
      opacity: 0;
      visibility: hidden;
    }

    .whatsapp-btn.active {
      opacity: 1;
      visibility: visible;
    }

    .whatsapp-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
      background-color: #128C7E;
    }

    .whatsapp-btn i {
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.1);
      }
      100% {
        transform: scale(1);
      }
    }

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 768px) {
      header {
        padding: 10px 15px;
      }

      .mobile-menu-btn {
        display: block;
      }

      nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
        overflow-y: auto;
      }

      nav.active {
        right: 0;
      }

      nav a {
        margin: 15px 0;
        font-size: 1.2em;
        width: 100%;
      }

      .products-hero h2 {
        font-size: 2.5em;
      }

      .products-hero p {
        font-size: 1.1em;
      }

      .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
      }

      .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }

      .search-box {
        width: 100%;
      }

      /* Mobile grid layout - 2 columns */
      .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 5px;
      }

      .product-card {
        border-radius: 10px;
        height: 100%;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      .product-image {
        height: 160px;
      }

      .product-content {
        padding: 10px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }

      .product-name {
        font-size: 0.9em;
        margin-bottom: 6px;
        line-height: 1.1;
      }

      .product-description {
        font-size: 0.75em;
        line-height: 1.3;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        flex-grow: 1;
      }

      .product-link {
        font-size: 0.75em;
        margin-top: auto;
      }

      .footer-content {
        flex-direction: column;
      }

      /* WhatsApp button adjustments for mobile */
      .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6em;
      }
      
      .back-to-top {
        bottom: 85px;
        right: 20px;
      }
    }

    @media (max-width: 576px) {
      .products-hero h2 {
        font-size: 2em;
      }

      .products-section {
        padding: 40px 15px;
      }

      .breadcrumb {
        padding: 15px 15px;
      }

      /* Mobile grid layout - 2 columns for small screens */
      .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 2px;
      }

      .product-card {
        border-radius: 8px;
      }

      .product-image {
        height: 140px;
      }

      .product-content {
        padding: 8px;
      }

      .product-name {
        font-size: 0.85em;
        margin-bottom: 4px;
        line-height: 1.1;
      }

      .product-description {
        font-size: 0.7em;
        line-height: 1.2;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .product-link {
        font-size: 0.7em;
      }
    }

    /* Very small devices (320px and up) */
    @media (max-width: 380px) {
      .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 1px;
      }

      .product-image {
        height: 120px;
      }

      .product-content {
        padding: 6px;
      }

      .product-name {
        font-size: 0.8em;
        line-height: 1.1;
      }

      .product-description {
        font-size: 0.65em;
        line-height: 1.2;
      }

      .product-link {
        font-size: 0.65em;
      }
    }

    /* Comprehensive mobile fix for white space */
    @media (max-width: 768px) {
      * {
        box-sizing: border-box;
      }
      
      html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
      }
      
      .products-section, .products-hero, .breadcrumb, header, footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
      }
      .footer-section{
        margin-left:10px;
      }
      .products-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
      }
      
      .products-grid {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
      }
      
      .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      
      .filters-container {
        width: 100% !important;
        box-sizing: border-box !important;
      }
      
      .filter-group {
        width: 100% !important;
        box-sizing: border-box !important;
      }
      
      .search-box {
        width: 100% !important;
        box-sizing: border-box !important;
      }
    }

    @media (max-width: 576px) {
      .products-section, .products-hero, .breadcrumb, header, footer {
        padding-left: 10px !important;
        padding-right: 10px !important;
      }
      
      .products-grid {
        padding: 0 2px !important;
        gap: 10px !important;
      }
    }

    @media (max-width: 380px) {
      .products-section, .products-hero, .breadcrumb, header, footer {
        padding-left: 5px !important;
        padding-right: 5px !important;
      }
      
      .products-grid {
        padding: 0 1px !important;
        gap: 8px !important;
      }
    }