/* ============================================
   MORE INDUSTRIAL TOOLS - RESPONSIVE STYLESHEET
   Breakpoints: 768px | 1024px | 1200px
   Mobile-first approach
   ============================================ */

/* ---- LARGE SCREENS (1200px+) ---- */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

/* ---- TABLET (769px - 1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --nav-height: 76px;
  }

  .topbar {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .topbar-brand {
    font-size: 0.92rem;
  }

  .topbar-brand::before {
    width: 20px;
    height: 20px;
  }

  .nav-logo-icon {
    width: 48px;
    height: 48px;
  }

  .nav-logo-main {
    font-size: 1.22rem;
  }

  /* Navigation */
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(249,245,237,0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-dark-3);
  }

  /* Products layout */
  .products-layout {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.mobile-open {
    display: block;
    margin-bottom: 20px;
  }

  .mobile-filter-btn {
    display: flex;
  }

  /* About split */
  .about-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-img-wrap img {
    height: 360px;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Features strip */
  .features-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta-card {
    padding: 12px 14px;
    max-width: 250px;
  }

  .footer-logo-area::before {
    width: 40px;
    height: 40px;
  }
}

/* ---- LAPTOP (1025px - 1366px) ---- */
@media (min-width: 1025px) and (max-width: 1366px) {
  :root {
    --nav-height: 80px;
  }

  .topbar {
    padding: 10px 20px;
    font-size: 0.84rem;
  }

  .topbar-brand {
    font-size: 0.98rem;
  }

  .topbar-brand::before {
    width: 22px;
    height: 22px;
  }

  .nav-logo {
    gap: 14px;
  }

  .nav-logo-icon {
    width: 50px;
    height: 50px;
  }

  .nav-logo-main {
    font-size: 1.32rem;
  }

  .footer-logo-area::before {
    width: 46px;
    height: 46px;
  }
}

/* ---- MOBILE + SMALL TABLET (max 768px) ---- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .topbar {
    padding: 6px 10px;
    gap: 6px 12px;
    font-size: 0.72rem;
    flex-direction: row;
    align-items: flex-start;
  }

  .topbar-left,
  .topbar-right {
    flex: 1 1 0;
  }

  .topbar-left {
    align-items: flex-start;
    text-align: left;
  }

  .topbar-right {
    align-items: flex-end;
    text-align: right;
  }

  .topbar-address,
  .topbar-time,
  .topbar-phone {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-container {
    padding: 0 12px;
    gap: 8px;
    justify-content: flex-start;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo-icon {
    width: 38px;
    height: 38px;
  }

  .nav-logo-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-logo-main {
    font-size: 1.04rem;
  }

  .nav-logo-sub {
    display: none;
  }

  .topbar-brand {
    font-size: 0.74rem;
  }

  .topbar-brand::before {
    width: 16px;
    height: 16px;
  }

  .topbar-address,
  .topbar-time,
  .topbar-phone {
    font-size: 0.7rem;
  }

  .nav-actions {
    display: none;
  }

  .nav-cart-btn {
    padding: 7px 10px;
    font-size: 0;
    gap: 0;
  }

  .nav-cart-btn svg {
    width: 16px;
    height: 16px;
  }

  .nav-hamburger {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    aspect-ratio: 7 / 3;
    min-height: 280px;
  }

  .hero-cta-card {
    padding: 0;
    max-width: 220px;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 0.76rem;
    display: block;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero-btns .btn {
    width: auto;
    max-width: none;
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .slider-btn-prev { left: 12px; }
  .slider-btn-next { right: 12px; }

  /* Features strip */
  .features-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    padding: 16px;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-card {
    padding: 12px;
  }

  .catalog-thumb {
    height: 74px;
    margin-bottom: 10px;
    font-size: 0.86rem;
  }

  .catalog-title {
    font-size: 0.86rem;
  }

  .catalog-meta {
    font-size: 0.74rem;
    margin-bottom: 10px;
    min-height: 2.1em;
  }

  .catalog-actions .btn {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 7px 8px;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-info-card {
    padding: 16px;
  }

  .home-info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-logo-area::before {
    width: 34px;
    height: 34px;
  }

  /* Contact */
  .contact-form-wrap {
    padding: 24px 20px;
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Page hero */
  .page-hero {
    padding: 90px 0 40px;
  }

  /* About */
  .about-img-wrap img {
    height: 280px;
  }

  /* Stats */
  .stat-number {
    font-size: 2.4rem;
  }

  /* Nav actions */
  .nav-actions .btn-primary {
    display: none;
  }

  /* Section header */
  .section-header {
    margin-bottom: 36px;
  }

  /* Cart sidebar */
  .cart-sidebar {
    width: 100vw;
    right: -100vw;
  }

  /* Products toolbar */
  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: calc(var(--nav-height) + 6px);
    z-index: 1200;
    background: var(--color-white);
    margin: 0 -8px 10px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-quick-controls {
    display: flex;
    width: 100%;
  }

  #mobile-filter-btn-desktop,
  .products-toolbar > div:last-child {
    display: none !important;
  }

  .products-toolbar > div:first-child {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-search-inline {
    display: block;
  }

  .hero-search-wrap {
    display: none;
  }

  .mobile-filter-btn,
  .mobile-pill-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .filter-sidebar.mobile-open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 2002;
    overflow: auto;
    background: var(--color-white);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    max-height: 78vh;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    margin: 0;
  }

  .filter-mobile-actions {
    display: flex;
  }
}

/* ---- MOBILE (max 480px) ---- */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .topbar {
    gap: 4px 8px;
    padding: 6px 8px;
  }

  .topbar-brand,
  .topbar-address,
  .topbar-time,
  .topbar-phone {
    font-size: 0.66rem;
  }

  .topbar-brand::before {
    width: 14px;
    height: 14px;
  }

  .nav-container {
    padding: 0 10px;
  }

  .nav-logo-main {
    font-size: 0.94rem;
    letter-spacing: 0.2px;
  }

  .nav-logo-icon {
    width: 34px;
    height: 34px;
  }

  .nav-hamburger {
    padding: 6px;
  }

  .section {
    padding: 44px 0;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card,
  .featured-product-card {
    border-radius: var(--radius-sm);
  }

  .product-body {
    padding: 8px;
    gap: 4px;
  }

  .product-img-wrap {
    aspect-ratio: 1.1;
  }

  .product-brand {
    font-size: 0.58rem;
    letter-spacing: 1px;
  }

  .product-name {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .product-tag {
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .product-note {
    display: none;
  }

  .product-meta {
    display: none;
  }

  .product-size-row {
    margin-top: 2px;
    gap: 6px;
  }

  .product-size-label {
    font-size: 0.64rem;
  }

  .product-size-select {
    font-size: 0.66rem;
    padding: 4px 6px;
  }

  .product-price {
    font-size: 0.72rem;
  }

  .qty-label {
    font-size: 0.65rem;
  }

  .qty-input {
    width: 44px;
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .product-actions {
    grid-template-columns: 1fr;
    padding: 6px 8px 8px;
    gap: 4px;
  }

  .btn-whatsapp-price {
    display: none;
  }

  .btn-add-cart {
    font-size: 0.64rem;
    padding: 6px 4px;
    gap: 4px;
    min-height: 30px;
    border: 1px solid var(--color-orange);
    background: var(--color-white);
    color: var(--color-orange);
  }

  .card-qty-stepper {
    display: none;
    grid-template-columns: 26px 1fr 26px;
    gap: 0;
    border: 1px solid var(--color-orange);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: 30px;
  }

  .card-qty-stepper.active {
    display: grid;
  }

  .card-qty-btn {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: rgba(126,184,207,0.1);
    color: var(--color-orange);
    font-size: 0.94rem;
  }

  .in-card-qty {
    border: none;
    border-radius: 0;
    background: var(--color-white);
    color: var(--color-orange);
    font-size: 0.78rem;
    min-width: 0;
    padding: 0;
    display: grid;
    place-items: center;
  }

  /* Features strip */
  .features-strip-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-cta-card {
    padding: 0;
  }

  .hero-btns .btn {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.68rem;
  }

  .hero {
    aspect-ratio: 7 / 3;
    min-height: 220px;
  }

  /* Section title */
  .section-title {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-main {
    padding: 44px 0 28px;
  }

  .footer-logo-area::before {
    width: 30px;
    height: 30px;
  }

  /* Form */
  .contact-form-wrap {
    padding: 20px 16px;
  }

  /* Stat cards */
  .stat-card {
    padding: 24px 16px;
  }

  /* Nav logo text hide on very small */
  .nav-logo-sub {
    display: none;
  }

  /* Touch targets */
  .btn {
    min-height: 44px;
  }

  .nav-link {
    min-height: 48px;
  }

  /* Product badge */
  .product-badge {
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  /* Filter button */
  .mobile-filter-btn,
  .mobile-pill-btn {
    width: auto;
    justify-content: center;
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Hero btns */
  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Brand slider */
  .brand-logo-item {
    width: 136px;
    height: 52px;
    padding: 0 10px;
    font-size: 0.84rem;
    letter-spacing: 0.45px;
  }

  .featured-product-body {
    padding: 8px;
  }

  .featured-product-brand {
    font-size: 0.58rem;
  }

  .featured-product-name {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .featured-product-price {
    font-size: 0.68rem;
    margin-top: 4px;
  }

  .home-info-title {
    font-size: 0.95rem;
  }

  .home-info-text {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .home-info-list-item {
    font-size: 0.7rem;
    padding: 8px 6px;
  }

  .bottom-cart-bar-inner {
    padding: 8px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .bottom-cart-summary {
    font-size: 0.76rem;
  }

  .bottom-cart-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .bottom-cart-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-quick-controls {
    display: flex;
    width: 100%;
  }

  #mobile-filter-btn-desktop,
  .products-toolbar > div:last-child {
    display: none !important;
  }

  .products-toolbar > div:first-child {
    width: 100%;
    justify-content: space-between;
  }

  .products-count {
    font-size: 0.8rem;
  }
}

/* ---- PRINT STYLES ---- */
@media print {
  .navbar,
  .cart-overlay,
  .cart-sidebar,
  .slider-btn,
  .slider-dots,
  .hero-btns,
  .mobile-filter-btn,
  footer { 
    display: none !important; 
  }

  body {
    padding-top: 0 !important;
  }

  .page-hero {
    padding: 20px 0;
  }
}

/* ---- HIGH-CONTRAST / REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- SERVICES GRID (defined here for cascade control) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- ACHIEVEMENTS STATS GRID ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .products-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- FOCUS STYLES FOR ACCESSIBILITY ---- */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}


