/* ============================================================================
 * FASHION VERSE — RESPONSIVE BREAKPOINTS, ANNOUNCEMENT BAR, FOOTER & MOBILE GRIDS
 * Matches sm (640px), md (768px), lg (1024px), xl (1280px) responsive behavior.
 * ============================================================================ */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.hidden {
  display: none !important;
}

/* ============================================================================
 * 1. SINGLE-LINE DESKTOP & COMPACT MOBILE ANNOUNCEMENT BAR
 * ============================================================================ */
.fv-announcement-bar {
  padding: 0.5rem 0;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.09em;
}

.fv-announcement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.fv-announcement-left {
  display: none;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-announcement-center {
  text-align: center;
  letter-spacing: 0.11em;
}

.fv-announcement-right {
  display: none;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.fv-announcement-link {
  white-space: nowrap;
  flex-shrink: 0;
}

.fv-announcement-sep {
  opacity: 0.65;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .fv-announcement-bar {
    padding: 0.55rem 0;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .fv-announcement-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .fv-announcement-center {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    letter-spacing: 0.09em;
  }

  .fv-announcement-right {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .fv-announcement-left {
    display: inline-flex;
    max-width: 31%;
  }

  .fv-announcement-center {
    text-align: center;
    padding: 0 0.5rem;
  }
}

/* ============================================================================
 * 2. FOOTER BOTTOM BAR — LEFT COPYRIGHT+DEV CREDIT, RIGHT PAYMENT LOGOS
 * ============================================================================ */
.fv-footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.fv-footer-bottom-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  text-align: center;
  line-height: 1.6;
}

.fv-footer-bottom-sep {
  color: rgba(201, 154, 69, 0.55);
  display: none;
}

.fv-footer-bottom-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-footer-payment-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

@media (min-width: 640px) {
  .fv-footer-bottom-sep {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .fv-footer-bottom-bar {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .fv-footer-bottom-left {
    justify-content: flex-start;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }

  .fv-footer-bottom-right {
    margin-left: auto;
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

/* ============================================================================
 * 3. MOBILE-FIRST 2-COLUMN PRODUCT & CATEGORY GRIDS
 * ============================================================================ */
.fv-product-grid,
.fv-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.fv-mobile-cols-1 .fv-product-grid,
body.fv-mobile-cols-1 .fv-category-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .fv-product-grid,
  .fv-category-grid,
  body.fv-mobile-cols-1 .fv-product-grid,
  body.fv-mobile-cols-1 .fv-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .fv-product-grid,
  .fv-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .fv-product-grid,
  .fv-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  body.fv-desktop-cols-3 .fv-product-grid,
  .fv-product-grid.fv-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Product Card Desktop Hover vs Clean Mobile Bottom Actions */
.fv-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.fv-card-hover-actions {
  display: none;
}

.fv-card-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.fv-mob-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.4rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.fv-mob-card-cart {
  background-color: #64152F;
  color: #FFF8F3;
}

.fv-mob-card-buy {
  background-color: #20171A;
  color: #FFF8F3;
}

.fv-mob-card-full {
  grid-column: span 2 / span 2;
}

@media (min-width: 640px) {
  .fv-card-mobile-actions {
    display: none;
  }

  .fv-card-hover-actions {
    display: flex;
    gap: 0.4rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem;
    background: linear-gradient(to top, rgba(32, 23, 26, 0.88), rgba(32, 23, 26, 0.42), transparent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .fv-product-card:hover .fv-card-hover-actions,
  .fv-product-card:focus-within .fv-card-hover-actions {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 639px) {
  .fv-category-card .fv-cat-caption h3 {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .fv-category-card .fv-cat-caption span.w-9 {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .fv-category-card .fv-cat-caption p {
    display: none;
  }
}

/* ============================================================================
 * 4. FULL-VIEWPORT MOBILE SLIDE-OUT NAVIGATION & CART DRAWERS
 * ============================================================================ */
.fv-mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
}

.fv-mobile-drawer-overlay.hidden {
  display: none !important;
}

.fv-mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(32, 23, 26, 0.72);
  backdrop-filter: blur(3px);
}

.fv-mobile-drawer-panel {
  position: relative;
  z-index: 10;
  width: 86vw;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background-color: #FFF8F3;
  border-right: 1px solid #C99A45;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  animation: fvSlideInLeft 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#fv-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
}

#fv-cart-drawer.hidden {
  display: none !important;
}

@keyframes fvSlideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes fvSlideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

#fv-cart-drawer > div:last-child {
  height: 100vh;
  height: 100dvh;
  animation: fvSlideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================================
 * 5. RESPONSIVE UTILITY FALLBACKS (Matching Tailwind sm/md/lg/xl Breakpoints)
 * ============================================================================ */
@media (max-width: 1023px) {
  .hidden.lg\:flex,
  .hidden.lg\:block {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:flex-col { flex-direction: column !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row !important; }
  .md\:items-center { align-items: center !important; }
  .md\:justify-between { justify-content: space-between !important; }
  .md\:text-left { text-align: left !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
  .lg\:flex { display: flex !important; }
  .lg\:block { display: block !important; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:justify-between { justify-content: space-between !important; }
  .lg\:justify-start { justify-content: flex-start !important; }
  .lg\:text-left { text-align: left !important; }
  .lg\:sticky { position: sticky !important; }
  .lg\:top-28 { top: 7rem !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================================
 * 6. NATIVE WORDPRESS NAVIGATION MENUS (Appearance -> Menus)
 * ============================================================================ */
.fv-wp-primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fv-wp-primary-menu > li {
  position: relative;
  padding: 1.5rem 0;
}

.fv-wp-primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #20171A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fv-wp-primary-menu > li > a:hover,
.fv-wp-primary-menu > li.current-menu-item > a,
.fv-wp-primary-menu > li.current-menu-ancestor > a {
  color: #64152F;
}

.fv-wp-primary-menu > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.68rem;
  opacity: 0.65;
  margin-left: 2px;
}

.fv-wp-primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 220px;
  background-color: #FFF8F3;
  border: 1px solid rgba(201, 154, 69, 0.45);
  border-top: 2px solid #64152F;
  box-shadow: 0 18px 40px rgba(32, 23, 26, 0.16);
  padding: 0.65rem 0;
  margin: 0;
  list-style: none;
  z-index: 60;
}

.fv-wp-primary-menu > li:hover > .sub-menu,
.fv-wp-primary-menu > li:focus-within > .sub-menu {
  display: block;
}

.fv-wp-primary-menu .sub-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  color: #20171A;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fv-wp-primary-menu .sub-menu li a:hover {
  background-color: #F7EFE6;
  color: #64152F;
}

.fv-wp-mobile-menu,
.fv-wp-mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fv-wp-mobile-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(201, 154, 69, 0.22);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #20171A;
  text-decoration: none;
}

.fv-wp-mobile-menu > li > a::after {
  content: "›";
  color: #C99A45;
  font-size: 1rem;
  line-height: 1;
}

.fv-wp-mobile-menu .sub-menu {
  padding-left: 1rem;
  background-color: rgba(247, 239, 230, 0.55);
}

.fv-wp-mobile-menu .sub-menu li a {
  display: block;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(201, 154, 69, 0.14);
  font-size: 0.78rem;
  color: rgba(32, 23, 26, 0.82);
  text-decoration: none;
}

.fv-wp-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fv-wp-footer-menu li a {
  display: block;
  color: rgba(255, 248, 243, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fv-wp-footer-menu li a:hover {
  color: #E6C687;
}
