/*
Theme Name: ZeeFashionHouse
Theme URI: https://example.com/
Author: Your Name
Version: 1.3
Description: Custom WordPress theme built with TailwindCSS (CDN) – ZEE Fashion House colors.
*/

/* ============================
   COLOR PALETTE (from logo)
   ============================ */
:root {
  /* very soft pink page background */
  --zfh-bg: #fff7fb;
  --zfh-text: #111111;
  --zfh-accent: #e91e63;        /* main pink */
  --zfh-accent-dark: #c2185b;   /* hover pink */
  --zfh-accent-soft: #fff4f8;   /* very light pink background */
  --zfh-border: #e5e7eb;
  --zfh-muted: #6b7280;

  /* header height variable – JS keeps this updated */
  --zfh-header-height: 0px;
}

/* TWO-LINE HEADER TITLE */
.zfh-title {
  color: #e91e63 !important;
  line-height: 1;
  white-space: nowrap;
}

.zfh-title span {
  display: block;
}



html,
body {
  background: var(--zfh-bg);
  color: var(--zfh-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* tiny overrides used across theme */
.product-grid-title { font-weight: 600; }
.product-price       { color: var(--zfh-text); font-weight: 700; }

/* ensure swiper arrows appear above hero (if Swiper used anywhere) */
.swiper-button-next,
.swiper-button-prev {
  z-index: 30;
}

/* small heart button shadow */
button.wishlist-btn {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* -----------------------------
   Safety: remove brittle body padding
   and FORCE background color
   ----------------------------- */
body {
  margin: 0;
  padding-top: 0;               /* ✅ JS can now control this */
  background: var(--zfh-bg) !important;
}


/* ================================
   PREMIUM HEADER – GLASS + GRADIENT + SHRINK
   ================================ */

header.site-header,
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  /* Glass base */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Light gradient pink (brand accent) */
  background:
    linear-gradient(
      180deg,
      rgba(233, 30, 99, 0.25) 0%,
      rgba(255, 255, 255, 0.9) 80%
    ) !important;

  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  padding-top: 1px;
  padding-bottom: 1px;
}

/* SHRINKED HEADER WHEN SCROLLING (JS toggles .zfh-shrink) */
header.zfh-shrink {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 3px 18px rgba(0,0,0,0.15);
  backdrop-filter: blur(20px);
}

/* Header text & icons */
header a {
  color: #111 !important;
  font-weight: 500;
}

header a:hover {
  color: var(--zfh-accent) !important;
}

/* Cart badge stays pink */
.cart-count {
  background: var(--zfh-accent) !important;
  color: #ffffff;
  top: -6px !important;
  right: -6px !important;
}

/* Apply spacing to common content containers as fallback */
main,
.site-content,
.page,
.entry-content {
  padding-top: calc(var(--zfh-header-height, 64px));
  scroll-padding-top: calc(var(--zfh-header-height, 64px));
}

/* Mobile menu / overlay */
.menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}
.mobile-menu.active {
  transform: translateX(0);
}

/* Smooth animations / touch */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ============================
   RESPONSIVE IMPROVEMENTS
   ============================ */

/* Limit max width on large screens */
main,
.site-content {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Fix padding on mobile */
@media (max-width: 640px) {
  main,
  .site-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================
   HERO (if slider used anywhere)
   ============================ */

.myHeroSwiper,
.myHeroSwiper .swiper-slide img {
  height: 420px !important;
}

@media (max-width: 768px) {
  .myHeroSwiper,
  .myHeroSwiper .swiper-slide img {
    height: 260px !important;
  }
}

/* Swiper pagination in accent pink */
.myHeroSwiper .swiper-pagination-bullet-active {
  background: var(--zfh-accent) !important;
}

/* ============================
   PRODUCT GRID – FIXED IMAGE HEIGHT
   ============================ */

/* Every product card image has IDENTICAL height */
.product-card-image {
  position: relative;
  width: 100%;
  height: 340px;                /* adjust if you want bigger/smaller */
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

/* Image ALWAYS fills container perfectly */
.product-card-image img,
.product-card-image .product-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

@media (max-width: 640px) {
  .product-card-image {
    height: 320px;              /* tweak if you want on mobile */
  }
}

/* ============================
   PRODUCT PAGE GALLERY
   ============================ */

.zfh-product-gallery img[data-main-image] {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .zfh-product-gallery {
    flex-direction: column;
  }

  .zfh-product-gallery > div:first-child {
    flex-direction: row;
    overflow-x: auto;
  }

  .zfh-product-gallery button {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ============================
   CART PAGE RESPONSIVE
   ============================ */

@media (max-width: 640px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .cart-item img {
    width: 80px;
    height: 100px;
  }

  .cart-item .qty-controls {
    margin-top: 8px;
  }
}

/* ============================
   HEADER MENU LOOK & FEEL
   ============================ */

.zfh-main-menu a {
  color: #333333;
  font-weight: 500;
  transition: color 0.25s ease;
}
.zfh-main-menu a:hover {
  color: var(--zfh-accent);
}

/* ============================
   BUTTON SYSTEM (accent pink)
   ============================ */

/* Generic primary button (used for Add to Cart etc.) */
.zfh-btn-primary,
.add-to-cart {
  background-color: var(--zfh-accent) !important;
  color: #ffffff !important;
  border-radius: 9999px;
  border: none;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.zfh-btn-primary:hover,
.add-to-cart:hover {
  background-color: var(--zfh-accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
}

/* Outline button in pink */
.zfh-btn-outline {
  border-radius: 9999px;
  border: 1px solid var(--zfh-accent);
  color: var(--zfh-accent);
  background-color: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.zfh-btn-outline:hover {
  background-color: var(--zfh-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Simple secondary dark button (for WhatsApp / etc.) */
.zfh-btn-dark {
  border-radius: 9999px;
  background-color: #111111;
  color: #ffffff;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}
.zfh-btn-dark:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

/* Checkout / main CTAs */
button.zfh-btn-primary,
a.zfh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   BADGES / LABELS
   ============================ */

.zfh-sale-badge,
.sale-badge {
  background-color: var(--zfh-accent);
  color: #ffffff;
}

/* Little chips / tags */
.zfh-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  background-color: var(--zfh-accent-soft);
  color: var(--zfh-accent-dark);
}

/* ============================
   MISC / UTILITIES
   ============================ */

/* Soft pink sections when you want them */
.zfh-section-soft {
  background-color: var(--zfh-accent-soft);
}

/* Footer */
footer {
  border-top: 1px solid rgba(0,0,0,0.04);
  background: #ffffff;
}

/* Pagination look */
.page-numbers.current {
  background-color: var(--zfh-accent);
  color: #ffffff;
}
.page-numbers:hover {
  border-color: var(--zfh-accent);
  color: var(--zfh-accent);
}
/* STICKY WHATSAPP BUTTON */
.zfh-whatsapp-btn {
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 999999;
  width: 80px;
  height: 80px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zfh-whatsapp-btn img {
  width: 32px;
  height: 32px;
}

.zfh-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* MOBILE SIZE */
@media(max-width: 640px) {
  .zfh-whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  
  .zfh-whatsapp-btn img {
    width: 28px;
    height: 28px;
  }
}
