/* ==========================================================================
   Loving Crafts - Responsive Stylesheet
   Breakpoints: 1024px (Tablet Landscape), 768px (Tablet Portrait), 480px (Mobile)
   ========================================================================== */

/* Mobile Hamburger Toggle (hidden by default on desktop) */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--lc-text-dark);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1000;
  box-shadow: 5px 0 25px rgba(0,0,0,0.15);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  left: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--lc-transition);
}

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

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lc-border-light);
  margin-bottom: 20px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lc-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.mobile-sub-list {
  list-style: none;
  padding-left: 14px;
  margin-top: 6px;
  display: none;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--lc-gold-light);
}

.mobile-sub-list.show {
  display: flex;
}

.mobile-sub-link {
  font-size: 0.88rem;
  color: var(--lc-text-muted);
}

/* Large Laptop (max-width: 1200px) - Reduce nav spacing */
@media (max-width: 1200px) {
  .nav-link {
    padding: 26px 6px;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
  }
  
  .nav-list {
    gap: 0;
  }

  .search-input-wrap {
    width: 200px;
  }
}

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 3;
    margin-top: 20px;
  }

  .main-nav {
    display: none;
  }

  .header-search {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .header-inner {
    height: 68px;
  }
}

/* Mobile & Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    display: none; /* Hidden, accessible via mobile drawer */
  }

  .header-search {
    display: none; /* Move to mobile search dropdown/drawer */
  }

  .header-inner {
    height: 70px;
  }

  .announcement-bar {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* Hero slides wrapper — auto-height based on image ratio on mobile */
  .hero-slides-wrapper {
    height: 35.35vw;
    min-height: 200px;
    max-height: 340px;
  }

  /* Text overlay — full width, gradient bg for readability */
  .hero-text-overlay {
    width: 100%;
    padding: 22px 20px 18px;
    background: linear-gradient(to right, rgba(255,245,220,0.95) 55%, rgba(255,245,220,0.0) 100%);
    justify-content: center;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .hero-headline {
    font-size: 1.25rem;
  }

  .hero-subtext {
    font-size: 0.82rem;
  }

  .hero-trust-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  .hero-trust-divider {
    display: none;
  }

  .hero-nav-arrow {
    display: none;
  }



  .cat-nav-btn {
    display: none;
  }

  .category-circles-section {
    padding: 24px 0 16px;
  }

  .category-scroll-container {
    gap: 18px;
    padding: 6px 12px 14px;
  }

  .category-circle-img {
    width: 105px;
    height: 105px;
  }

  .category-circle-item {
    width: 110px;
    gap: 8px;
  }

  .category-circle-name {
    font-size: 0.82rem;
  }

  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card-title {
    font-size: 0.92rem;
    height: 2.4em;
  }

  .price-discounted {
    font-size: 1.05rem;
  }

  /* On mobile touch devices, keep card action buttons friendly */
  .card-radial-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .card-action-group {
    position: static;
    transform: none;
    opacity: 1;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 8px;
  }

  .card-action-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery-sticky-wrap {
    position: static;
  }

  .gallery-container {
    flex-direction: column-reverse;
  }

  .gallery-thumbnails {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gallery-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
  }

  .gallery-main img {
    height: 380px;
  }

  .product-tab-btn {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .product-tab-pane {
    padding: 22px 18px;
  }


  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Small Mobile Breakpoint (max-width: 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .trust-features-grid {
    grid-template-columns: 1fr;
  }

  .hero-nav-arrow {
    display: none;
  }
}
