﻿/* Mobile responsiveness and WhatsApp green polish */
.floating-whatsapp {
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 18px 44px rgba(18, 140, 126, 0.34) !important;
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
}

.floating-whatsapp:hover {
  box-shadow: 0 22px 54px rgba(18, 140, 126, 0.42) !important;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    justify-self: start;
  }

  .nav-left,
  .nav-right {
    right: 16px;
    left: 16px;
    border-radius: 10px;
  }

  .nav-right {
    top: calc(100% + 178px);
  }

  .section,
  .collection-feature,
  .quality {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro h2,
  .section-heading h2,
  .collection-feature h2,
  .quality h2,
  .contact h2 {
    max-width: 720px;
  }

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

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

  .quality-list {
    grid-template-columns: 1fr;
  }

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

  .contact-image {
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 14px;
  }

  .hero {
    min-height: 92vh;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 0.98rem;
  }

  .section,
  .collection-feature,
  .quality {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .product-card img {
    aspect-ratio: 1 / 0.78;
  }

  .arrival-card,
  .arrival-large {
    min-height: 280px;
  }

  .arrival-card div {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .contact-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  .floating-whatsapp svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 420px) {
  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
  }
}

/* Fix quality section on narrow screens */
@media (max-width: 900px) {
  .quality {
    display: block;
  }

  .quality-copy {
    margin-bottom: 28px;
  }

  .quality-list {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .quality-list article {
    min-width: 0;
    padding: 24px 22px;
  }

  .quality-list h3,
  .quality-list p {
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 520px) {
  .quality {
    padding: 54px 18px;
  }

  .quality h2 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    max-width: 11ch;
  }

  .quality-list article {
    padding: 22px 20px;
  }
}

/* Mobile gallery slider */
@media (max-width: 720px) {
  .gallery-section {
    overflow: hidden;
  }

  .gallery {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery button {
    flex: 0 0 min(78vw, 330px);
    scroll-snap-align: start;
  }

  .gallery img {
    aspect-ratio: 0.86 / 1;
  }
}

/* Gallery slider arrow controls */
.gallery-controls {
  display: none;
}

@media (max-width: 720px) {
  .gallery-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 24px 0 12px;
  }

  .gallery-controls button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1f5f99, #101a2b 58%, #9a7435);
    border: 1px solid rgba(201, 168, 106, 0.38);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(16, 26, 43, 0.22);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
  }

  .gallery-controls button:active {
    transform: translateY(1px);
  }
}

/* Place gallery arrows on slider edges */
@media (max-width: 720px) {
  .gallery-section {
    position: relative;
  }

  .gallery-controls {
    position: absolute;
    top: 58%;
    right: 18px;
    left: 18px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .gallery-controls button {
    width: 40px;
    height: 40px;
    pointer-events: auto;
    opacity: 0.95;
  }
}

/* Center gallery arrows on the image track */
@media (max-width: 720px) {
  .gallery-slider {
    position: relative;
    margin-top: 24px;
  }

  .gallery-slider .gallery {
    margin-top: 0;
  }

  .gallery-controls {
    top: 50%;
    right: 12px;
    left: 12px;
    transform: translateY(-50%);
  }
}

/* Center SVG chevrons inside gallery arrows */
.gallery-controls button {
  padding: 0;
}

.gallery-controls button svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hide unavailable gallery arrows */
.gallery-controls button.is-hidden,
.lightbox-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
}

/* Lightbox slider controls */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(31, 95, 153, 0.94), rgba(16, 26, 43, 0.94) 58%, rgba(154, 116, 53, 0.94));
  border: 1px solid rgba(201, 168, 106, 0.38);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lightbox-prev {
  left: clamp(14px, 4vw, 42px);
}

.lightbox-next {
  right: clamp(14px, 4vw, 42px);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* Center lightbox arrows on image frame */
.lightbox-frame {
  position: relative;
  display: inline-flex;
  max-width: min(980px, 100%);
  max-height: 84vh;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: 84vh;
}

.lightbox-frame .lightbox-nav {
  top: 50%;
}

.lightbox-frame .lightbox-prev {
  left: 10px;
}

.lightbox-frame .lightbox-next {
  right: 10px;
}

@media (max-width: 520px) {
  .lightbox-frame .lightbox-prev {
    left: 8px;
  }

  .lightbox-frame .lightbox-next {
    right: 8px;
  }
}

/* Darker slider arrow buttons */
.gallery-controls button,
.lightbox-nav {
  background: linear-gradient(135deg, rgba(7, 18, 35, 0.96), rgba(12, 24, 42, 0.96) 58%, rgba(76, 55, 23, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42) !important;
}

/* Icon-only WhatsApp button alignment */
.floating-whatsapp {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.floating-whatsapp svg {
  width: 25px !important;
  height: 25px !important;
  display: block !important;
  margin: 0 !important;
  transform: translate(0, 0) !important;
}

@media (max-width: 420px) {
  .floating-whatsapp {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
}

/* Final WhatsApp icon visibility and optical centering */
.floating-whatsapp {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 9999 !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 50% !important;
}

.floating-whatsapp svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  flex: 0 0 28px !important;
  margin: 0 !important;
  transform: translate(0, 0) !important;
}

.floating-whatsapp .wa-bubble {
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.floating-whatsapp .wa-phone {
  fill: #fff !important;
  stroke: none !important;
}

@media (max-width: 720px) {
  .floating-whatsapp {
    right: 14px !important;
    bottom: 14px !important;
    display: inline-flex !important;
  }
}
