/* ============================================================
   ISEO - Iluminacion y Suministros Electricos de Oaxaca
   Main Stylesheet  —  v3.0  (Stitch Design)
   Color scheme: Navy Blue / White / Dark Blue
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --primary:      #164070;   /* dark navy blue */
  --nav:          #2b6191;   /* medium blue */
  --box:          #122b49;   /* darkest blue */
  --cyan:         #00BCD4;   /* keep for accents */
  --white:        #FFFFFF;
  --black:        #000000;
  --gray-light:   #F0F0F0;
  --gray-mid:     #cccccc;
  --gray-text:    #555555;
  --whatsapp:     #25D366;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.18);
  --shadow-md:    0 4px 8px rgba(0,0,0,0.22);
  --shadow-lg:    0 10px 30px rgba(0,0,0,0.4);
  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-lg:    10px;
  --transition:   0.25s ease;
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

/* ----------------------------------------------------------
   3. Utilities
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-main {
  flex: 1;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--nav);
  margin: 10px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--box); color: var(--white); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}
.btn-whatsapp:hover { background: #1ebe57; color: var(--white); }

.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.breadcrumb {
  font-size: 0.88rem;
  color: var(--gray-text);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--nav); }

.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  border-left: 4px solid var(--nav);
  padding-left: 12px;
}

.page-description { color: var(--gray-text); margin-top: 8px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-text); }
.empty-state p { margin-bottom: 18px; font-size: 1.05rem; }

/* ----------------------------------------------------------
   4. HEADER — site-header  (Stitch Design)
   ---------------------------------------------------------- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* 4a. Top bar: Social | Logo+Title | Social */
.header-top {
  padding: 12px 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Social icons (left/right of logo) */
.header-social {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--nav);
}

.social-icon img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

/* Center: logo + title */
.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 641px) {
  .header-center {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

.header-logo { flex-shrink: 0; }

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.header-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
}

.header-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  justify-content: center;
}

.subtitle-badge {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   5. NAVIGATION — main-nav  (Stitch: blue bar)
   ---------------------------------------------------------- */
.main-nav {
  background: var(--nav);
  width: 100%;
}

.main-nav .container {
  position: relative;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  letter-spacing: 0.06em;
}

/* Nav: flex-wrap centered */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-btn {
  display: block;
  padding: 10px 12px;
  text-align: center;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.3);
  transition: background var(--transition), color var(--transition);
}

.nav-btn:last-child { border-right: none; }

.nav-btn:hover,
.nav-btn.active {
  background: rgba(0,0,0,0.25);
  color: var(--white);
}

/* ----------------------------------------------------------
   6. DOUBLE BORDER helper (Stitch style)
   ---------------------------------------------------------- */
.double-border {
  border: 4px solid var(--box);
  padding: 4px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* ----------------------------------------------------------
   7. HERO SECTION  (Stitch 3-column layout)
   ---------------------------------------------------------- */
.hero-section {
  background: var(--white);
  padding: 24px 0;
}

/* 3-column layout: left-image | slider | right-images */
.hero-layout {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: 16px;
  align-items: start;
}

/* Left single image */
.hero-left-img {
  height: 100%;
  min-height: 460px;
}

.hero-left-img .double-border {
  height: 100%;
  padding: 4px;
}

.hero-left-img .double-border img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Center: slider + contact boxes */
.hero-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.hero-slider .double-border {
  padding: 4px;
}

.slider-track {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
}

/* Slide caption overlay */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(18,43,73,0.82));
  padding: 32px 16px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slide-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slide-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.slide a {
  display: block;
}

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  line-height: 1;
}
.slider-btn:hover { background: var(--primary); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100,100,100,0.4);
  cursor: pointer;
  transition: background var(--transition);
}
.dot.active { background: var(--primary); }

/* Contact boxes below slider */
.hero-contact-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-box .double-border {
  height: 100%;
}

.contact-box-inner {
  background: var(--box);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-box-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 6px;
  width: 100%;
  text-align: center;
}

.contact-box-inner .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.4;
}

.contact-box-inner .contact-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right side: 2 stacked images */
.hero-right-imgs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-right-imgs .double-border {
  height: 220px;
  padding: 4px;
}

.hero-right-imgs .double-border img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------
   8. SLOGAN BAR / FOOTER BANNER
   ---------------------------------------------------------- */
.slogan-bar {
  padding: 50px 0;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.04);
}

.slogan-bar p {
  color: var(--primary);
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   9. HOME CATEGORIES
   ---------------------------------------------------------- */
.home-categories {
  padding: 60px 0;
  background: var(--gray-light);
}

.categories-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-mid);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
  color: var(--black);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--nav);
  color: var(--black);
}

.category-card-inner {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}

.category-card-inner h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.category-card-inner p {
  font-size: 0.83rem;
  color: var(--gray-text);
  flex: 1;
}

.category-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nav);
  margin-top: auto;
}

.category-card:hover .category-link { color: var(--primary); }

/* ----------------------------------------------------------
   10. PAGE SECTION
   ---------------------------------------------------------- */
.page-section { padding: 50px 0; }

/* ----------------------------------------------------------
   11. PRODUCT GRID (category page)
   ---------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--nav);
}

.product-image {
  background: var(--gray-light);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 12px 14px;
  border-top: 2px solid var(--primary);
}

.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   12. GALLERY
   ---------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.gallery-watermark {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 24px 10px 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* ----------------------------------------------------------
   13. QUIÉNES SOMOS
   ---------------------------------------------------------- */
.about-content {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-text p {
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: #333;
}

.about-cta {
  font-size: 1.1rem !important;
  color: var(--primary) !important;
  text-align: center;
  border: 2px dashed rgba(22,64,112,0.3);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: 10px !important;
}

.about-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.contact-card {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 18px;
  border-left: 3px solid var(--nav);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.contact-card a { color: var(--primary); }

/* ----------------------------------------------------------
   14. CONTACT PAGE
   ---------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrapper h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  border-left: 3px solid var(--nav);
  padding-left: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--nav);
  box-shadow: 0 0 0 2px rgba(43,97,145,0.15);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-map h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--box);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
}

.footer-col em { color: rgba(255,255,255,0.9); }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ----------------------------------------------------------
   16. FLOATING WHATSAPP BUTTON
   ---------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--whatsapp);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(0,0,0,0.4);
}

/* ----------------------------------------------------------
   17. PRODUCT / GALLERY MODALS
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-text);
  line-height: 1;
}
.modal-close:hover { color: var(--black); }

.modal-image {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   18. ADMIN LOGIN PAGE
   ---------------------------------------------------------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  padding: 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  height: 80px;
  width: auto;
  margin: 0 auto;
}

.login-card h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   19. RESPONSIVE — Tablet
   ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-left-img {
    min-height: 200px;
  }

  .hero-left-img .double-border img {
    min-height: 200px;
    height: 200px;
  }

  .hero-right-imgs {
    flex-direction: row;
  }

  .hero-right-imgs .double-border {
    flex: 1;
    height: 160px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------------------------------------
   20. RESPONSIVE — Mobile
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .header-top-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .header-title {
    font-size: 1rem;
  }

  .header-social { gap: 8px; }

  .social-icon {
    width: 36px;
    height: 36px;
  }
  .social-icon img {
    width: 36px;
    height: 36px;
  }

  /* Nav toggle visible, grid hidden by default */
  .nav-toggle { display: block; }

  .nav-grid {
    display: none;
    flex-direction: column;
  }

  .nav-grid.open { display: flex; }

  .nav-btn {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: left;
    padding-left: 16px;
  }

  /* Hero: stack all */
  .hero-left-img { display: none; }

  .slide img { height: 220px; }

  .hero-contact-boxes {
    grid-template-columns: 1fr;
  }

  .hero-right-imgs {
    flex-direction: row;
    overflow-x: auto;
  }

  .hero-right-imgs .double-border {
    height: 120px;
    min-width: 150px;
  }

  /* Categories */
  .categories-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* About */
  .about-contact-cards { grid-template-columns: 1fr; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .section-title { font-size: 1.25rem; }
}
