@import url('colors.css');
@import url('typography.css');
@import url('buttons.css');
@import url('cards.css');
@import url('layout.css');
@import url('forms.css');
@import url('animations.css');
@import url('splash.css');
@import url('responsive.css');

/* Additional global overrides */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Skeleton Loading Grid */
.product-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.product-card-skeleton {
  height: 320px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #EFECE6 25%, #F7F4EE 50%, #EFECE6 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ------------------------------------------------------------------ */
/* Navbar logo — enlarged symbol-only branding (text removed)          */
/* ------------------------------------------------------------------ */
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 8px;
}

.nav-logo img {
  height: 58px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transition: height 0.2s ease;
}

/* Slightly shrink the logo once the sticky nav compacts on scroll,
   so the navbar never grows unnecessarily tall */
#mainNav.nav-shrink .nav-logo img {
  height: 44px;
}

@media (max-width: 992px) {
  .nav-logo img {
    height: 48px;
  }

  #mainNav.nav-shrink .nav-logo img {
    height: 38px;
  }
}

@media (max-width: 576px) {
  .nav-logo img {
    height: 40px;
  }

  #mainNav.nav-shrink .nav-logo img {
    height: 34px;
  }
}

/* ============================================================
   ADD-TO-CART VISIBILITY FIX — shared by Shop grid + Home
   New Arrivals grid, since both render `.product-card` /
   `.card-overlay` markup from the same design-system classes
   (cards.css / buttons.css, imported above).

   ROOT CAUSE: `.card-overlay` (which contains the Add to Cart
   button, absolutely positioned over `.card-img-wrap`) is a
   hover-reveal layer — visible only via
   `.product-card:hover .card-overlay { opacity:1 }`. That has
   no equivalent on touch devices (mobile/tablet: no :hover), so
   the button existed in the DOM but was never visible or
   tappable there. It could also get clipped if `.card-img-wrap`
   used `overflow:hidden` with a mismatched overlay height.

   This block does NOT change colors, radius, shadows, product
   image styling, or the premium hover feel on desktop — it only
   guarantees the button is always visible/reachable everywhere,
   and keeps the existing subtle hover emphasis on devices that
   actually support hover.
   ============================================================ */
.product-card {
  position: relative;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  background: transparent;
}

.card-overlay .btn {
  width: 100% !important;
  max-width: 220px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(32, 90, 62, 0.2) !important;
  transition: background-color var(--transition-fast, 0.2s) ease,
    transform var(--transition-fast, 0.2s) ease,
    box-shadow var(--transition-fast, 0.2s) ease !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.card-overlay .btn:hover {
  background-color: var(--primary-dark) !important;
  box-shadow: 0 6px 16px rgba(32, 90, 62, 0.3) !important;
}

.card-overlay .btn i {
  font-size: 0.9rem !important;
  color: #FFFFFF !important;
}

/* Reveal Add to Cart on hover on devices that support hover */
@media (hover: hover) and (pointer: fine) {
  .card-overlay {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .product-card:hover .card-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .card-overlay {
    padding: 8px 6px;
  }

  .card-overlay .btn {
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
  }
}

/* ============================================================
   HERO SLIDESHOW EDGE-LINE FIX — removes the thin black/dark
   vertical hairline visible on the LEFT and RIGHT edges of the
   hero carousel (#heroCarousel).

   ROOT CAUSE: each `.hero-slide` is a stacked, absolutely
   positioned layer (only the one with `.active` is shown via
   opacity/visibility, so the crossfade works). Sub-pixel
   rounding by the browser can leave a fraction-of-a-pixel gap
   between the slide's image/video and the rounded edge of
   `.hero-main-card`, letting whatever sits behind it peek
   through as a hairline on each side.

   FIX: extend each slide 1px past the left/right edge and let
   the card's own overflow:hidden (which already produces the
   rounded corners) clip that 1px away. This does NOT crop,
   resize, or alter any image/video file — it only removes an
   invisible sub-pixel seam in the layout math. Rounded corners,
   navigation, dots, arrows, timing, and animation are untouched;
   this block only tightens sizing/border on the existing layers.
   ============================================================ */
#heroCarousel.hero-main-card {
  overflow: hidden;
}

#heroCarousel .hero-slide {
  left: -1px;
  right: -1px;
  width: calc(100% + 2px);
  margin: 0;
  border: none;
  outline: none;
  box-shadow: none;
}

#heroCarousel .hero-slide .hero-bg-collage {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  outline: none;
  box-shadow: none;
  object-fit: cover;
}

/* ============================================================
   DYNAMIC ANNOUNCEMENT / NEWS TICKER BAR
   ============================================================ */
.announcement-bar-section {
  background: linear-gradient(90deg, #113423 0%, #194d35 50%, #113423 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 2px 10px rgba(17, 52, 35, 0.22);
  color: #FFFFFF;
  overflow: hidden;
  position: relative;
  font-size: clamp(16px, 1.1vw + 11px, 17.5px);
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: 0.25px;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  user-select: none;
  z-index: 10;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.announcement-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  position: relative;
  margin: 0;
  padding: 0;
}

.announcement-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: baluthTicker 40s linear infinite;
  margin: 0;
  padding: 0;
}

.announcement-ticker-track:hover {
  animation-play-state: paused;
}

.announcement-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(16px, 1.1vw + 11px, 17.5px);
  font-weight: 550;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a.announcement-item {
  cursor: pointer;
}

a.announcement-item:hover {
  color: #F8DA84;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}

a.announcement-item:hover .announcement-link-hint {
  transform: translateX(4px);
  color: #FFE699;
}

.announcement-link-hint {
  margin-left: 8px;
  font-size: 13px;
  color: #F3C969;
  transition: transform 0.2s ease, color 0.2s ease;
  opacity: 0.95;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(11.5px, 0.8vw + 8px, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2.5px 10px;
  border-radius: 999px;
  margin-right: 10px;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.announcement-badge.badge-welcome {
  background: rgba(212, 175, 55, 0.24);
  color: #FFF2C6;
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.announcement-badge.badge-offer {
  background: rgba(234, 88, 12, 0.28);
  color: #FFEDD5;
  border: 1px solid rgba(249, 115, 22, 0.55);
}

.announcement-badge.badge-promo_code {
  background: rgba(217, 119, 6, 0.28);
  color: #FEF3C7;
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.announcement-badge.badge-festival {
  background: rgba(220, 38, 38, 0.28);
  color: #FEE2E2;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.announcement-badge.badge-new_collection {
  background: rgba(16, 185, 129, 0.24);
  color: #D1FAE5;
  border: 1px solid rgba(52, 211, 153, 0.55);
}

.announcement-badge.badge-shipping {
  background: rgba(14, 165, 233, 0.24);
  color: #E0F2FE;
  border: 1px solid rgba(56, 189, 248, 0.55);
}

.announcement-badge.badge-general {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.announcement-divider {
  margin: 0 14px;
  color: rgba(243, 201, 105, 0.85);
  font-size: 13px;
  line-height: 1;
  opacity: 0.95;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

@keyframes baluthTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .announcement-bar-section {
    height: 38px;
    min-height: 38px;
    font-size: clamp(14px, 3.2vw + 2px, 15.5px);
    letter-spacing: 0.15px;
  }
  .announcement-item {
    padding: 0 6px;
    font-size: clamp(14px, 3.2vw + 2px, 15.5px);
    font-weight: 550;
  }
  .announcement-badge {
    font-size: 11px;
    padding: 2px 7px;
    margin-right: 6px;
    gap: 4px;
  }
  .announcement-link-hint {
    margin-left: 6px;
    font-size: 11.5px;
  }
  .announcement-divider {
    margin: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .announcement-bar-section {
    height: 36px;
    min-height: 36px;
    font-size: 14px;
  }
  .announcement-item {
    padding: 0 4px;
    font-size: 14px;
  }
  .announcement-badge {
    font-size: 10.5px;
    padding: 1.5px 6px;
    margin-right: 5px;
  }
  .announcement-divider {
    margin: 0 6px;
    font-size: 10px;
  }
}