* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --second: #3f37c9;
    --green: #2f8b4b;
    --green-dark: #26733f;
    --light-green: #f3f8f4;
    --primary-dark: #26733f;
    --primary-color: #2f8b4b;
    --secondary-color: #2f8b4b;
    --accent-color: #2f8b4b;
    --text-dark: #101010;
    --text-light: #626262;
    --background: #f8f9fa;
    --white: #ffffff;
    --success: #2e7d32;
    --success-bg: #e8f5e8;
    --error: #c62828;
    --error-bg: #ffebee;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

html {
    scroll-padding-top: 150px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.3;
    color: var(--text-dark);
    background-color: var(--background);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.whatsapp-float {
  position: absolute;
  bottom: 3px;
  right: 16px;
  width: 35px;
  height: 35px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 10;
  cursor: pointer;
}

.whatsapp-float img {
  width: 18px;
  height: 18px;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

/* Disabled state */
.whatsapp-float.disabled {
  background: #bdbdbd;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ensure card allows floating elements */
.product-card {
  position: relative;
  overflow: visible;
}


    /* ── Site header (clean nav bar) ── */
    .site-header {
      background: var(--white);
      min-height: 82px;
      position: sticky;
      top: 0;
      z-index: 50;
    }
    .site-header-row {
      max-width: 1275px;
      width: calc(100% - 80px);
      height: 82px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
    .site-logo img {
      height: 52px;
      width: auto;
      max-width: 100%;
      display: block;
      object-fit: contain;
      border-radius: 8px;
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .site-logo:hover img {
      transform: scale(1.045);
      box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    .site-nav { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
    .site-nav-link { font-size: 14px; font-weight: 700; color: var(--text-dark); text-decoration: none; transition: color .2s; position: relative; }
    .site-nav-link:hover, .site-nav-link.active { color: var(--green); }
    .site-nav-link.active::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--green);
    }

    /* Shop category dropdown (desktop nav only — mobile nav lists categories flat) */
    .site-nav-dropdown { position: relative; }
    .site-nav-dropdown > .site-nav-link { display: inline-flex; align-items: center; gap: 5px; }
    .site-nav-dropdown > .site-nav-link i { font-size: 9px; transition: transform .2s ease; }
    .site-nav-dropdown:hover > .site-nav-link i { transform: rotate(180deg); }
    .site-nav-dropdown-menu {
      position: absolute; top: 100%; left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: var(--white); border: 1px solid #eee; border-radius: 10px;
      box-shadow: var(--shadow-hover); padding: 8px; margin-top: 8px; min-width: 240px;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity .18s ease .3s, transform .18s ease .3s,
                  visibility 0s linear .3s, pointer-events 0s linear .3s;
      z-index: 200;
    }
    .site-nav-dropdown:hover .site-nav-dropdown-menu,
    .site-nav-dropdown:focus-within .site-nav-dropdown-menu {
      opacity: 1; visibility: visible; pointer-events: auto;
      transform: translateX(-50%) translateY(0);
      transition-delay: 0s;
    }
    .site-nav-dropdown-menu a {
      display: block; padding: 9px 14px; border-radius: 6px;
      font-size: 13px; font-weight: 600; color: var(--text-dark);
      text-decoration: none; white-space: nowrap;
    }
    .site-nav-dropdown-menu a:hover { background: var(--light-green); color: var(--green); }
    .site-nav-dropdown-menu .site-nav-dropdown-sep {
      height: 1px; background: #eee; margin: 6px 4px;
    }

    .site-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
    .site-help { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #555; }
    .site-help i { font-size: 21px; color: var(--green); flex-shrink: 0; }
    .site-help span { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.3; }
    .site-help strong { font-size: 12.5px; color: var(--text-dark); order: -1; }
    .btn-request-service {
      background: var(--green);
      color: var(--white);
      font-size: 13px; font-weight: 700;
      padding: 11px 20px; border-radius: 5px;
      text-decoration: none; white-space: nowrap;
      transition: var(--transition);
    }
    .btn-request-service:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
    .site-login-btn {
      background: none; border: 1.5px solid #ddd; color: var(--text-dark);
      font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px;
      cursor: pointer; transition: var(--transition);
    }
    .site-login-btn:hover { border-color: var(--green); color: var(--green); }

    .hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; font-size: 22px; color: var(--text-dark); }

    /* Inline search, sits on the same row as the rest of the nav. Input border/height
       come from the shared #search-bar rule further down this file. */
    .site-search-inline { flex: 1 1 140px; min-width: 100px; max-width: 240px; }
    .site-search-inline #search-bar { width: 100%; }

    /* Nav, "need help" and inline search all collapse to the hamburger together —
       there isn't room to keep any one of them alone once the others still show. */
    @media (max-width: 1150px) {
      .site-nav { display: none; }
      .site-help { display: none; }
      .site-search-inline { display: none; }
      .hamburger-btn { display: block; }
    }
    @media (max-width: 600px) {
      .btn-request-service { display: none; }
      .site-logo img { height: 40px; }
    }
    .site-header .cart-icon { color: var(--text-dark); font-size: 20px; }
    .site-header .cart-icon i { font-size: 20px; }
    .site-header .cart-icon:hover { background: rgba(0,0,0,0.05); }
    .site-header #cart-count { border-color: var(--white); background: var(--green); width: 16px; height: 16px; font-size: 9px; }

.navbar {
    display: flex;
    height: auto;
    min-height: 70px;
    padding: 0.75rem 1rem;
    justify-content: space-between;
    align-items: center;
    margin-right: 5px;
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: auto;
    max-width: 120px;
    margin-left: 0;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.logo img,
.logo svg {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--success);
}

.logo:hover { transform: translateY(-2px); }

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgb(73, 191, 31);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 700;
    position: relative;
}

.nav-links a:hover {
    color: var(--second);
    transform: translateY(-2px);
}

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    background: none;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    display: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--primary-dark);
}

.out-of-stock-overlay {
    position: absolute;
    font-size: 12px;
    top: 10px;
    right: 0;
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 3px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.hamburger-menu:hover {
    background: rgba(241, 40, 40, 0.1);
    border-radius: 6px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 88%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.4rem 1.4rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active { left: 0; }

.mobile-close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    background: var(--light-green);
    border: none;
    color: var(--green);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    margin-bottom: 0.8rem;
    z-index: 1;
    flex-shrink: 0;
}

.mobile-close:hover,
.mobile-close:focus {
    background: var(--green);
    color: var(--white);
    transform: rotate(90deg);
    outline: none;
}

.mobile-close:active { transform: rotate(90deg) scale(0.9); transition: transform 0.1s ease; }

.mobile-search { margin-bottom: 1rem; }

.mobile-search #search-bar {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e6e4;
    border-radius: 10px;
    font-size: 14px;
}

.mobile-search #search-bar:focus { outline: none; border-color: var(--green); }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.active {
    background: var(--light-green);
    color: var(--green);
    border-left-color: var(--green);
    padding-left: 1.25rem;
    outline: none;
}

.mobile-nav-link:active { background: var(--light-green); }

.mobile-nav-link i {
    font-size: 1.05rem; width: 20px;
    text-align: center; color: var(--green);
}

.mobile-nav-section-label {
    margin: 1rem 0 0.3rem;
    padding: 0 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.mobile-nav-links > .mobile-nav-section-label:first-child { margin-top: 0; }

.mobile-nav .user-section {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--light-green);
}

.mobile-nav .user-dropdown {
    background: var(--light-green);
    border: 1px solid #e2ede4;
    border-radius: 10px;
}

.mobile-nav .user-dropdown a,
.mobile-nav .dropdown-item { color: var(--text-dark); font-size: 14px; }

.mobile-nav .dropdown-item:hover { background: rgba(47, 139, 75, 0.12); color: var(--green); }
.mobile-nav .dropdown-divider { background: #dbe6de; }
.mobile-nav .logout-btn { color: var(--error); }


.mobile-nav .login-btn {
    width: 100%;
    background: var(--green);
    margin: 0;
}

.mobile-nav .login-btn:hover { background: var(--green-dark); }

.mobile-nav::-webkit-scrollbar { width: 5px; }
.mobile-nav::-webkit-scrollbar-track { background: transparent; }
.mobile-nav::-webkit-scrollbar-thumb { background: #d3dbd6; border-radius: 3px; }
.mobile-nav::-webkit-scrollbar-thumb:hover { background: var(--green); }

.mobile-nav-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(16, 16, 16, 0.5);
    z-index: 1999; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .mobile-nav, .mobile-nav-link, .mobile-close { transition: none; }
}

@supports (padding: max(0px)) {
    .mobile-nav {
        padding-left:   max(1.4rem, env(safe-area-inset-left));
        padding-right:  max(1.4rem, env(safe-area-inset-right));
        padding-top:    max(1.4rem, env(safe-area-inset-top));
        padding-bottom: max(2rem,   env(safe-area-inset-bottom));
    }
}

/* ── Main layout ─────────────────────────────────────────────────── */
main {
    min-height: calc(100vh - 200px);
    padding: 0.6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* ── Shop page hero ──────────────────────────────────────────────── */
.shop-page-hero {
    background: var(--light-green);
    text-align: center;
    padding: 44px 20px 30px;
}
.shop-page-hero h1 { font-size: 30px; font-weight: 900; color: #111; margin-bottom: 10px; }
.shop-page-hero p { font-size: 14px; color: var(--text-light); max-width: 560px; margin: 0 auto 22px; }
.shop-page-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════
   PRODUCTS SECTION 
   ══════════════════════════════════════════════════════════════════ */
.products-section {
    width: 100%;
    overflow-x: hidden;
}


@media (min-width: 1400px) {
    .products-section .container { max-width: 1600px; }
}
@media (min-width: 1700px) {
    .products-section .container { max-width: 1900px; }
}

#section-title { font-size: 1rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 0.85rem;
    width: 100%;
    align-items: stretch;
}

/* ── Product card ── */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    padding: 0.6rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);

    width: 100%;
    min-height: 0;          /* let content set height */
    box-sizing: border-box;
}

.product-card:hover { transform: translateY(-4px); }

/* ── Image container: aspect-ratio driven ── */
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    flex-shrink: 0;
}

.product-image-container.img-loaded {
    background: none;
    animation: none;
}



.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;   
    display: block;
    background: #f9f9f9;     
    transition: transform 0.3s ease, opacity 0.3s ease;
              
}

.product-image.img-loading { opacity: 0; }
.product-image.img-loaded  { opacity: 1; }

.product-card:hover .product-image { transform: scale(1.04); }

/* ── Product info ── */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.3rem 0.1rem 0;
}

.product-name {
   
     font-size: clamp(15px, 1.4vw, 12px);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: clamp(0.7rem, 2vw, 1.05rem);
    font-weight: 700;
    color: #1d5fa3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
}

.product-description {
    color: var(--text-light);
     font-size: clamp(10px, 1.8vw, 10px);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stock-info {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: clamp(9px, 1.6vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    align-self: flex-start;
    margin: 0.15rem 0;
}

.stock-info.in-stock  { background: var(--success-bg); color: var(--success); display: none; }
.stock-info.out-of-stock { background: var(--error-bg); color: var(--error); }

/* ── Add to cart row ── */
.add-to-cart-info {
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.add-to-cart-btn {
    border: none;
    cursor: pointer;
    /* width: 100%; */
    padding: 0.45rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    font-weight: 600;
    font-size: clamp(9px, 1.8vw, 12px);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-to-cart-btn:hover  { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(39,174,96,0.3); }
.add-to-cart-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════ */

/* Tablets landscape and up */
@media (min-width: 1025px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
}

/* Tablets portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.8rem; }
    .nav-links { font-size: 0.5rem; padding: 0 2px; margin: 0; }
}

/* Hide search on medium screens (legacy .navbar layout only — home.html/splash.html) */
@media (max-width: 992px) {
    .navbar #search-bar { display: none; }
    .user-section { margin: 0; }
}

/* Tablet / large phone */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem; min-height: 60px; gap: 0.5rem; }
    .nav-links { display: none; }
    #username-text { margin: 0; padding: 0; font-size: 8px; }
    .logo { max-width: 120px; }
    .navbar #search-bar { display: none; }
    .login-btn { padding: 6px 12px; font-size: 14px; margin: 0; }
    .cart-icon { font-size: 1.2rem; padding: 0.25rem; }
    .products-section { padding: 0.75rem 0; }
    .products-section h1 { font-size: 1rem; margin-bottom: 1rem; }

   
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

/* Phones */
@media (max-width: 640px) {
    .navbar { min-height: 55px; padding: 0.5rem 0.75rem; }
    .logo { max-width: 110px; }
    .login-btn { padding: 5px 10px; font-size: 13px; }
    .cart-icon { font-size: 1.1rem; }

    /* Tight 2-col on phones */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
        padding: 0 0.4rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .navbar { min-height: 50px; padding: 0.35rem 0.5rem; }
    .logo { max-width: 90px; }
    .logo img, .logo svg { max-height: 42px; }
    .hamburger-menu { padding: 0.2rem; margin-left: 0.25rem; }
    .login-btn { padding: 4px 8px; font-size: 12px; }
    .cart-icon { font-size: 1rem; padding: 0.2rem; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.35rem;
    }
}

/* Very small phones — single column */
@media (max-width: 360px) {
    .navbar { min-height: 48px; gap: 0.25rem; }
    .logo { max-width: 70px; }
    .logo img, .logo svg { max-height: 38px; }
    .login-btn { padding: 3px 6px; font-size: 11px; }
    .hamburger-menu { padding: 0.15rem; margin-left: 0.1rem; }
    .cart-icon { font-size: 0.9rem; padding: 0.15rem; }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}

/* Portrait on very small screens — keep 2-col if wide enough */
@media (max-width: 400px) and (orientation: portrait) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
        padding: 0 0.2rem;
    }
}

/* Landscape small screens */
@media (max-height: 500px) and (orientation: landscape) {
    .product-description { -webkit-line-clamp: 1; }
}

/* ── Modal Styles ──────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 3000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background-color: var(--white);
    margin: 5% auto; padding: 0;
    border-radius: var(--border-radius);
    width: 100%; max-width: 800px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.close {
    color: #aaa; float: right; font-size: 2rem; font-weight: bold;
    position: absolute; right: 15px; top: 10px; z-index: 1001;
    cursor: pointer; transition: var(--transition);
    padding: 0.5rem; border-radius: 6px;
}
.close:hover { color: #000; background: rgba(0,0,0,0.1); }

#checkoutModal .modal-content { max-width: 500px; text-align: center; padding: 2rem; }

.modal-buttons {
    display: flex; gap: 1rem; justify-content: center;
    margin-top: 2rem; flex-wrap: wrap;
}

.modal-buttons button {
    padding: 12px 24px; border: none; border-radius: 8px;
    cursor: pointer; font-size: 1rem; font-weight: 600;
    transition: var(--transition); min-width: 120px;
}

#proceedCheckout { background: var(--secondary-color); color: var(--white); }
#proceedCheckout:hover { background: var(--success); transform: translateY(-2px); }
#cancelCheckout { background: #6c757d; color: var(--white); }
#cancelCheckout:hover { background: #5a6268; transform: translateY(-2px); }

/* ── Footer ── */
footer {
    background: var(--primary-dark); color: var(--white);
    margin-top: 4rem;
}
.site-footer-inner {
    max-width: 1275px; margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 46px 20px 34px;
}
.footer-col h4 {
    font-size: 13px; font-weight: 800; letter-spacing: .4px;
    margin-bottom: 16px; color: var(--white);
}
.footer-col a {
    display: block; color: rgba(255,255,255,0.75);
    font-size: 13px; text-decoration: none; margin-bottom: 11px;
    transition: color .2s; cursor: pointer;
}
.footer-col a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-icon {
    width: 38px; height: 38px; border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-brand-icon i { color: var(--white); font-size: 17px; }
.footer-brand-name { font-size: 17px; font-weight: 900; color: var(--white); letter-spacing: -.3px; line-height: 1; }
.footer-brand-tag { font-size: 8.5px; font-weight: 800; color: rgba(255,255,255,0.6); letter-spacing: 1.5px; margin-top: 3px; }
.footer-about { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 320px; }

.footer-col address { display: flex; flex-direction: column; font-style: normal; }
.footer-col address a, .footer-col address span {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.75); font-size: 13px; margin-bottom: 11px; text-decoration: none;
}
.footer-col address a:hover { color: var(--white); }
.footer-col address i { width: 14px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.footer-hours { color: rgba(255,255,255,0.55) !important; font-size: 12px !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center; padding: 16px 20px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Loading states ──────────────────────────────────────────────── */
.loading {
    text-align: center; padding: 3rem;
    color: var(--text-light); font-size: 1.1rem;
}

.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }

@keyframes dots {
    0%,20%  { color: transparent; }
    40%     { color: var(--text-light); }
    60%     { content: '.'; }
    80%     { content: '..'; }
    100%    { content: '...'; }
}

.error-message {
    text-align: center; padding: 2rem;
    background: var(--error-bg); color: var(--error);
    border-radius: var(--border-radius); margin: 2rem 0;
    border-left: 4px solid var(--error);
}

.no-products {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-light); font-style: italic;
    grid-column: 1 / -1; font-size: 1.1rem;
}

button:focus-visible,
.nav-link:focus-visible,
.admin-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ── Forms ── */
.checkout-form { max-width: 100%; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%; padding: 8px; border: 1px solid #ddd;
    border-radius: 4px; font-size: 14px;
}
.form-group textarea { height: 80px; resize: vertical; }
.customer-info, .payment-info {
    margin: 20px 0; padding: 15px;
    border: 1px solid #eee; border-radius: 5px; text-align: left;
}
.customer-info h4, .payment-info h4 { margin-top: 0; color: #333; }

/* ── Search ── */
#search-bar {
    display: flex;
    width: clamp(140px, 16vw, 220px);
    padding: 7px 10px;
    border-color: #afb1b3; border-radius: 6px;
    margin-right: 0; font-size: 13px;
}
#search-bar:focus { outline: none; border-color: #007bff; }

/* ── Order / profile modals ── */
.order-modal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); justify-content: center; align-items: center;
}
.order-modal-content {
    background: #fff; padding: 20px 25px; border-radius: 10px;
    width: 90%; max-width: 500px; animation: fadeIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn { float: right; font-size: 24px; font-weight: bold; color: #444; cursor: pointer; }
.close-btn:hover { color: red; }
.order-details-content ul { list-style: none; padding-left: 0; }
.order-details-content li { margin-bottom: 8px; }

.profile-modal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.profile-modal.show { display: flex; }
.profile-modal-content {
    background: #fff; padding: 20px 25px; border-radius: 10px;
    width: 90%; margin: 10% auto; max-width: 500px;
    animation: fadeIn 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-header {
    padding: 16px 20px; background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: #333; }
.modal-body { padding: 20px; }
#profile-modal-body p { color: #666; margin: 20px 0; }
#settings-modal .btn {
    width: 100%; padding: 12px; background: #1c6fc3; color: #fff;
    border: none; border-radius: 5px; font-size: 15px; cursor: pointer;
}
#settings-modal .btn:hover { background: #15579c; }

/* ── Auth buttons ── */
.login-btn {
    background-color: #007bff; color: #fff;
    border: none; outline: none; font-size: 15px;
    border-radius: 25px; padding: 8px 18px; margin: 15px;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.login-btn:hover { background-color: #0056b3; transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,0.2); }

/* ── Category section ── */
.category-section {
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(0,168,232,0.08), rgba(255,107,53,0.05));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px; overflow: hidden;
}
.category-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.category-btn {
    padding: 11px 20px; border-radius: 8px;
    background: rgba(0,196,232,0.1);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600; font-size: 13px; cursor: pointer;
    transition: var(--transition-bounce); white-space: nowrap;
}
.category-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-light);
    color: rgb(16,148,249);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,168,232,0.3);
}

/* ── Categories + Services carousel ── */
.catsvc-section {
    padding: 10px 0 6px;
    background: var(--background);
}
.catsvc-scroll-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}
.catsvc-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 14px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f0f0f0;
}
.catsvc-scroll::-webkit-scrollbar { height: 4px; }
.catsvc-scroll::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
.catsvc-scroll::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 2px; }
.catsvc-arrow {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: var(--white);
    cursor: pointer;
    font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 2;
}
.catsvc-arrow:hover { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }
.catsvc-card {
    position: relative;
    scroll-snap-align: start;
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid #e8ecf0;
    border-radius: var(--border-radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.catsvc-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}
.catsvc-tag {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 10px;
    color: var(--white);
}
.catsvc-tag.shop { background: var(--secondary-color); }
.catsvc-tag.service { background: var(--accent-color); }
.catsvc-icon {
    width: 44px; height: 44px;
    margin: 6px auto 10px;
    border-radius: 50%;
    background: rgba(46,139,75,0.1);
    display: flex; align-items: center; justify-content: center;
}
.catsvc-icon svg { width: 21px; height: 21px; fill: var(--secondary-color); }
.catsvc-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ── Services section ── */
.services-section {
    max-width: 1248px;
    margin: auto;
    padding: 40px 20px 26px;
}
.services-section .section-title { text-align: center; margin-bottom: 20px; }
.services-section .section-title h2 { color: #111; font-size: 30px; line-height: 1.2; font-weight: 900; }
.services-section .section-title h2 span { color: var(--green); }
.services-section .section-title p { margin-top: 8px; font-size: 14px; color: #444; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    transition: .2s;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.1);
}
/* Source images are ~2.9:1 wide strips — match the container to that shape
   so the image fills it fully instead of shrinking inside tall letterboxing. */
.service-image { aspect-ratio: 2.9 / 1; height: auto; overflow: hidden; background: #f2f2f2; }
.service-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.service-icon {
    /* In-flow + pulled up by half its own height, so it straddles the image's
       bottom edge regardless of the image's actual (now aspect-ratio-driven,
       variable) height — no hardcoded pixel offset to keep in sync. */
    position: relative;
    margin: -21px 0 -21px 14px;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--white);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 17px;
    z-index: 2;
}
.service-content { padding: 30px 16px 18px; }
.service-content h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 6px; }
.service-content p { min-height: 40px; font-size: 12.5px; line-height: 1.5; color: #555; }
.service-content a { display: inline-block; margin-top: 8px; color: var(--green); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.service-content a:hover { color: var(--green-dark); }

@media (max-width: 1100px) { .services-grid { gap: 15px; } }
@media (max-width: 850px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { gap: 10px; } }
@media (max-width: 420px) { .services-grid { gap: 8px; } .service-content { padding: 26px 10px 14px; } }



#username-text { color: var(--white); cursor: pointer; font-weight: bold; padding: 6px; }

.user-menu-container { position: relative; display: inline-block; margin: 0 10px; }
.navbar-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.user-section { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }

.user-dropdown {
    position: absolute; top: 100%; right: 0; padding-bottom: 10px;
    border: 1px solid #ddd; border-radius: 8px;
     background: var(--light-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 200px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 1000;
}
.user-dropdown a { color: rgb(14, 13, 13); font-size: 12px; padding: 12px; font-weight: 600; }
.dropdown-item {
    display: flex; align-items: center; padding: 12px 16px;
    text-decoration: none; color: #fdfbfb;
    border: none; background: none; width: 100%;
    text-align: left; cursor: pointer;
    transition: background-color 0.2s ease; font-size: 14px;
}
.dropdown-item:hover { background-color: rgb(210, 239, 210); }
.dropdown-icon { margin-right: 5px; font-size: 12px; width: 20px; text-align: center; }
.dropdown-divider { height: 5px; background-color: #fdfefb; margin: 4px 0; }
.logout-btn { color: var(--error); font-size: 12px; font-weight: 600; }

.mobile-user-menu .user-dropdown {
    display: block; position: static;
    box-shadow: none; border: none;
    opacity: 1; visibility: visible; transform: none;
}

#mobile-username-text, #username-text { color: var(--second); font-size: 12px; font-weight: 500; }

#user-menu-container {
    display: inline-block !important; visibility: visible !important;
    opacity: 1 !important; transform: none !important;
}

.user-menu-container:hover .user-dropdown {
    opacity: 1 !important; visibility: visible !important;
    transform: translateY(0) !important; display: block !important;
}

/* ── Product detail modal ── */
.product-detail-modal { max-width: 900px; width: 90%; }
.product-detail-container { padding: 10px; }
.product-main {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 30px; margin-bottom: 30px;
}
.product-image img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; }
.product-info h2 { margin: 0 0 10px 0; color: #333; }
.order-context { background: #f8f9fa; padding: 15px; border-radius: 8px; margin: 20px 0; }
.order-context h4 { margin: 0 0 10px 0; color: #333; }
.product-actions { display: flex; gap: 10px; margin-top: 20px; }

.btn-buy-again, .btn-view-similar, .btn-add-to-cart {
    border: none; border-radius: 5px; cursor: pointer; font-weight: bold;
}
.btn-buy-again  { background: #2c5aa0; color: white; }
.btn-view-similar { background: #6c757d; color: white; }
.btn-add-to-cart { background: #28a745; color: white; font-size: 12px; }

/* ── Spinners ──────────────────────────────────────────────────── */
.spinner, .modal-loader .spinner {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.spinner-sm { width: 30px; height: 30px; border-width: 3px; border-top-width: 3px; border-top-color: #3498db; border-color: #f3f3f3; border-radius: 50%; animation: spin 1s linear infinite; }
.spinner-lg { width: 60px; height: 60px; border-width: 6px; border-top-width: 6px; border-top-color: #3498db; border-color: #f3f3f3; border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Hero Section ── */
.hero-section { overflow: hidden; background: var(--white); }

.hero-grid {
    max-width: 1376px;
    margin: auto;
    display: grid;
    grid-template-columns: 48% 52%;
    min-height: 420px;
}

.hero-copy {
    padding: 68px 30px 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-title {
    color: #0d0d0d;
    font-size: 51px;
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 900;
    margin-bottom: 23px;
}

.hero-subtitle {
    max-width: 575px;
    color: #444;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 28px;
}

.hero-cta-row { display: flex; gap: 20px; margin-bottom: 55px; flex-wrap: wrap; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.hero-btn-primary { background: var(--green); color: var(--white); border: 1px solid var(--green); }
.hero-btn-primary:hover { background: var(--green-dark); }
.hero-btn-outline { border: 1.5px solid var(--green); color: var(--green); background: var(--white); }
.hero-btn-outline:hover { background: var(--green); color: var(--white); }

.hero-trust-row { display: flex; align-items: center; gap: 20px; font-size: 12px; color: #222; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-trust-item i { color: var(--green); font-size: 14px; }
.hero-trust-sep { width: 1px; height: 16px; background: #ddd; }

/* Right-side hero image */
.hero-visual { position: relative; overflow: hidden; height: 420px; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.hero-visual::before {
    content: "";
    position: absolute; z-index: 2;
    left: 0; top: 0; bottom: 0; width: 160px;
    /* background: linear-gradient(90deg, white 0%, rgba(255,255,255,.7) 28%, rgba(255,255,255,0) 100%); */
}

/* Slow ambient zoom on the active hero image — restarts naturally each time the
   <img> element is replaced on slide change. Subtle, premium "Ken Burns" feel. */
.hero-visual img { animation: heroKenBurns 10s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate; }
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.26); }
}

/* Hero slide rotation (admin-managed via Hero Banner)
   Image fades in place (with a gentle scale for depth); text slides in from the
   side. Animated independently so each element gets its own motion instead of
   the whole grid moving as one. Touch-friendly: horizontal swipes are handled
   in JS, so vertical page scroll is left untouched. */
.hero-section, .hero-visual { touch-action: pan-y; }
.hero-visual.hero-img-fade-out { opacity: 0; transform: scale(.97); transition: opacity .35s cubic-bezier(0.22, 1, 0.36, 1), transform .35s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-visual.hero-img-fade-in { animation: heroImgFadeIn .6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes heroImgFadeIn {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

.hero-copy.hero-text-slide-out { opacity: 0; transform: translateX(-28px); transition: opacity .35s cubic-bezier(0.22, 1, 0.36, 1), transform .35s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-copy.hero-text-slide-in { animation: heroTextSlideIn .6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes heroTextSlideIn {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual img { animation: none; }
    .hero-visual.hero-img-fade-in, .hero-copy.hero-text-slide-in { animation: none; opacity: 1; transform: none; }
}

.hero-indicators { display: flex; gap: 8px; justify-content: center; padding: 6px 0 26px; }
.hero-indicator {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
    background: #d8e3da; cursor: pointer; transition: all .25s ease;
}
.hero-indicator:hover { background: #b7cabb; }
.hero-indicator.active { background: var(--green); width: 22px; border-radius: 5px; }

@media (max-width: 1100px) {
    .hero-copy { padding-left: 40px; }
    .hero-title { font-size: 42px; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 55px 30px 40px; }
    .hero-title { font-size: 45px; }
    .hero-visual { height: 360px; }
    .hero-visual img { min-height: 360px; }
    .hero-visual::before {
        width: 100%; height: 80px; bottom: auto;
        background: linear-gradient(180deg, white, transparent);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 600px) {
    .hero-copy { padding: 42px 20px 35px; }
    .hero-eyebrow { font-size: 11px; }
    .hero-title { font-size: 35px; letter-spacing: -1.4px; }
    .hero-subtitle { font-size: 13px; }
    .hero-cta-row { flex-direction: column; gap: 10px; margin-bottom: 30px; }
    .hero-trust-row { flex-direction: column; align-items: flex-start; gap: 9px; }
    .hero-trust-sep { display: none; }
    .hero-visual { height: 280px; }
    .hero-visual img { min-height: 280px; }
}
.pulse { animation: pulse 1.5s ease-in-out infinite; }

.modal-loader {
    display: none; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); text-align: center; z-index: 9999;
    background: rgba(255,255,255,0.95); padding: 40px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); min-width: 150px;
}
.modal-loader.active { display: block; }
.modal-loader .spinner { margin: 0 auto 15px; }
.modal-loader p { color: #666; margin: 10px 0 0; font-size: 14px; }

/* ── Image shimmer ── */
.image-loader {
    position: relative; overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fade-in { animation: fadeIn 0.3s ease-in-out; }

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}
.skeleton-text { height: 15px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-image { width: 100%; height: 200px; border-radius: 8px; margin-bottom: 10px; }

.progress-bar-container {
    width: 100%; height: 3px; background: #e0e0e0;
    position: fixed; top: 0; left: 0; z-index: 9998; display: none;
}
.progress-bar-container.active { display: block; }
.progress-bar {
    height: 100%; background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%; transition: width 0.3s ease;
}

/* Modal content visibility */
#modal-content { opacity: 0; transition: opacity 0.3s ease-in-out; }
#modal-content.loaded { opacity: 1; }
img { transition: opacity 0.3s ease-in-out; }
img.loaded { opacity: 1; }
img.loading { opacity: 0; }

/* ── Skeleton shimmer on product cards ── */
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Load-more pagination ── */
.pagination-load-more {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    padding: 24px 16px 40px;
}
.pg-progress { width: 200px; height: 4px; background: #e9ecef; border-radius: 99px; overflow: hidden; }
.pg-progress-bar { height: 100%; background: #1d5fa3; border-radius: 99px; transition: width 0.4s ease; }
.pg-count { font-size: 12px; color: #888; margin: 0; }
.pg-load-more-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 28px; background: #fff; color: #1d5fa3;
    border: 2px solid #1d5fa3; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.pg-load-more-btn:hover { background: #1d5fa3; color: #fff; }
.pg-load-arrow { font-size: 16px; transition: transform .2s; }
.pg-load-more-btn:hover .pg-load-arrow { transform: translateY(3px); }
.pg-end-msg { font-size: 13px; color: #aaa; margin: 0; padding: 16px 0 32px; }

/* ── Shop Technical Products (teaser) ─────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 20px; border-radius: 5px;
    font-size: 13px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }

.products-teaser { padding: 10px 20px 22px; }
.products-inner {
    max-width: 1248px; margin: auto;
    display: grid; grid-template-columns: 270px 1fr;
    gap: 28px; align-items: center;
}
.products-intro h2 { font-size: 24px; line-height: 1.15; font-weight: 900; color: #111; }
.products-intro h2 span { color: var(--green); }
.products-intro p { font-size: 12.5px; line-height: 1.5; margin: 8px 0 14px; color: #444; }
.products-intro-actions { display: flex; align-items: center; gap: 10px; }
.products-refresh {
    width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid #e5e7eb; background: var(--white); color: #888;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s;
}
.products-refresh:hover { border-color: var(--green); color: var(--green); }

.trending-scroll-wrap { position: relative; min-width: 0; }
.trending-scroll {
    display: flex; gap: 14px;
    overflow-x: auto; padding: 4px 4px 16px;
    scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.trending-scroll::-webkit-scrollbar { display: none; }

.trending-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: white; border: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all .2s; font-size: 14px; color: #444;
}
.trending-arrow:hover { border-color: var(--green); color: var(--green); }
.trending-arrow.left  { left: -4px; }
.trending-arrow.right { right: -4px; }

.trending-card {
    flex: 0 0 160px; min-width: 160px; background: white;
    border: 1px solid #e8ecf0; border-radius: 12px;
    overflow: hidden; cursor: pointer; transition: all .22s; position: relative;
}
.trending-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 6px 20px rgba(46,139,75,0.15); }
.trending-card-badge {
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white; font-size: 9px; font-weight: 700;
    padding: 2px 7px; border-radius: 10px; letter-spacing: 0.5px;
    text-transform: uppercase; box-shadow: 0 2px 6px rgba(255,69,0,0.4); z-index: 2;
}
.trending-card-img { width: 100%; height: 130px; object-fit: cover; display: block; background: #f3f4f6; }
.trending-card-img-placeholder {
    width: 100%; height: 130px;
    background: linear-gradient(135deg, #f0f4ff, #e8ecf0);
    display: flex; align-items: center; justify-content: center; font-size: 32px; color: #ccc;
}
.trending-card-body { padding: 10px 10px 12px; text-align: center; }
.trending-card-name {
    font-size: 12px; font-weight: 600; color: #1a1a2e; line-height: 1.35; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trending-card-price { font-size: 14px; font-weight: 800; color: var(--green); }
.trending-card-stock { font-size: 10px; color: #888; margin-top: 2px; }
.trending-card-stock.low { color: #e67e22; font-weight: 600; }
.trending-card-stock.out { color: #e74c3c; font-weight: 600; }

.trending-skeleton { flex: 0 0 160px; min-width: 160px; background: white; border: 1px solid #e8ecf0; border-radius: 12px; overflow: hidden; }
.trending-skeleton-img { width: 100%; height: 130px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.trending-skeleton-line { height: 10px; border-radius: 4px; margin: 10px 10px 6px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.trending-skeleton-line.short { width: 60%; height: 8px; }

@media (max-width: 850px) {
    .products-inner { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
    .trending-card { flex: 0 0 140px; min-width: 140px; }
    .trending-card-img { height: 110px; }
}

/* ── Recent Projects (public gallery, services.html) ──────────────── */
.recent-projects-section {
    max-width: 1275px;
    margin: auto;
    padding: 46px 20px 60px;
}
.rp-filter-tabs {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 28px;
}
.rp-filter-tab {
    padding: 9px 18px; border-radius: 20px;
    border: 1.5px solid #e0e0e0; background: var(--white);
    font-size: 12.5px; font-weight: 600; color: var(--text-dark);
    cursor: pointer; transition: var(--transition);
}
.rp-filter-tab:hover { border-color: var(--green); color: var(--green); }
.rp-filter-tab.active { background: var(--green); border-color: var(--green); color: var(--white); }

.rp-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.rp-public-card {
    background: var(--white);
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    transition: .2s;
}
.rp-public-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.rp-public-img { position: relative; height: 170px; background: var(--background); }
.rp-public-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-public-noimg {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 28px;
}
.rp-public-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--green); color: var(--white);
    font-size: 10.5px; font-weight: 700;
    padding: 3px 10px; border-radius: 10px;
}
.rp-public-body { padding: 14px 16px 16px; }
.rp-public-body strong { display: block; font-size: 14px; color: #111; margin-bottom: 5px; }
.rp-public-body p { font-size: 12.5px; color: #555; line-height: 1.5; }

.rp-loading, .rp-empty {
    grid-column: 1/-1; text-align: center; padding: 40px 20px; color: var(--text-light);
}
.rp-empty a { color: var(--green); font-weight: 600; }

/* ── About / Why Choose ─────────────────────────────────────────── */
.about-section {
    background: var(--light-green);
    padding: 40px 20px 46px;
}
.about-inner {
    max-width: 1275px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 260px 1.85fr;
    gap: 55px;
    align-items: center;
}
.mini-title { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .5px; margin-bottom: 6px; }
.about-copy h2, .why-copy h2 { color: #111; font-size: 24px; line-height: 1.2; font-weight: 900; margin-bottom: 10px; }
.about-copy p { color: #333; font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
.about-copy ul { list-style: none; }
.about-copy li { color: #333; font-size: 12.5px; line-height: 2; }
.about-copy li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 7px; }

.about-photo { height: 220px; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 22px; }
.why-grid div { display: flex; flex-direction: column; }
.why-grid i { color: var(--green); font-size: 24px; margin-bottom: 8px; }
.why-grid strong { color: #222; font-size: 12.5px; margin-bottom: 3px; }
.why-grid span { color: #555; font-size: 11px; line-height: 1.35; }

@media (max-width: 1100px) {
    .about-inner { grid-template-columns: 1fr 220px 1.5fr; gap: 25px; }
}
@media (max-width: 850px) {
    .about-inner { grid-template-columns: 1fr; }
    .about-photo { height: 230px; }
}
@media (max-width: 600px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/*576px minor tweaks */
@media (max-width: 576px) {
    .logo { max-width: 100px; }
    .logo img, .logo svg { max-height: 45px; }
}