/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .why-us__image {
    order: -1;
  }

  .references__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-arrow {
    display: none;
  }
}

/* Mobile Large (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;
  }

  .top-bar {
    overflow: hidden;
  }

  .top-bar .container {
    flex-direction: column;
    padding-top: 5px;
    padding-bottom: 5px;
    align-items: center;
  }

  .top-bar__left {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    margin-bottom: 5px;
    gap: 20px;
  }

  .top-bar__left a {
    flex-shrink: 0;
  }

  @keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
  }

  .top-bar__right {
    width: 100%;
    justify-content: center;
  }

  /* Header Mobile */
  .main-header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
  }

  .header-logo {
    grid-column: auto;
    margin-right: auto;
  }

  .site-logo {
    max-height: 60px;
    width: auto;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
    grid-column: auto;
    margin-top: 5px;
  }

  .header-actions .btn span {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Category Nav Mobile */
  .category-nav {
    border: none;
    top: auto;
  }

  .category-nav__list {
    display: none;
  }
  
  .category-nav__list.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .category-nav__link {
    width: 100%;
    display: block;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    font-size: 1rem;
    white-space: normal;
  }

  .category-nav__link::after {
    display: none;
  }

  /* Hero Mobile */
  .hero {
    height: 70vh;
    min-height: 450px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-text__buttons .btn {
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
  }

  /* Stories Mobile */
  .stories__grid {
    gap: var(--space-lg);
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 var(--space-md);
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stories__grid::-webkit-scrollbar {
    display: none;
  }

  .story-item__circle {
    width: 70px;
    height: 70px;
  }

  .story-item__label {
    font-size: 0.7rem;
  }

  /* Values Mobile */
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .value-card {
    padding: var(--space-lg) var(--space-sm);
  }

  /* Featured Mobile */
  .featured__grid {
    grid-template-columns: 1fr;
  }

  .featured__header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .featured__header .section-title {
    text-align: center;
    font-size: 1.6rem;
  }

  /* Categories Mobile */
  .categories__grid {
    grid-template-columns: 1fr;
  }

  /* Why Us Mobile */
  .why-us__content h2 {
    font-size: 1.7rem;
  }

  .why-us__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-item__number {
    font-size: 1.8rem;
  }

  /* References Mobile */
  .references__grid {
    grid-template-columns: 1fr;
  }

  /* Catalog CTA Mobile */
  .catalog-cta {
    background-attachment: scroll;
  }

  .catalog-cta h2 {
    font-size: 1.7rem;
  }

  /* Blog Mobile */
  .blog__grid {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-values .container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__col h4::after {
    left: 0;
  }

  /* Widgets Mobile */
  .fixed-widgets {
    bottom: 1rem;
    right: 1rem;
  }

  .widget-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .scroll-top {
    right: 4.5rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 380px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.88rem;
    display: none;
  }

  .hero-text__badge {
    font-size: 0.7rem;
  }

  .header-logo__text {
    font-size: 1.1rem;
  }

  .header-logo__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .value-card__title {
    font-size: 0.75rem;
  }

  .catalog-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .catalog-cta h2 {
    font-size: 1.4rem;
  }
}

/* Category & Contact Page Responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .contact-cta__grid {
    grid-template-columns: 1fr;
  }
  .contact-map {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Detail Page Responsive */
@media (max-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .product-detail__gallery {
    position: static;
  }
  .product-detail__title {
    font-size: 1.5rem;
  }
  .product-detail__cta {
    flex-direction: column;
  }
  .product-detail__trust {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
