/* ==============================
   GLOBAL STYLES — FAWZ Palette
============================== */

* {
  font-family: "Subjectivity", sans-serif !important;
}

body {
  margin: 0;
  font-family: "Subjectivity", sans-serif !important;
  background-color: #f9f6f0; /* soft ivory background */
  color: #2c2c2c; /* elegant charcoal text */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container_class {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 0 20px 0;
}
@media (max-width: 768px) {
  .container_class {
    margin: 20px;
    padding: 0 0 20px 0;
  }
}
/* ==============================
   HEADERS
============================== */
.default_header,
.sphinx_header {
  color: #9c1c3a; /* gold text */
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.default_header_logo,
.sphinx_header_logo {
  height: 50px;
  width: auto;
}

.default_header_links,
.sphinx_header_links {
  display: flex;
  gap: 20px;
}

.default_header_links a,
.sphinx_header_links a {
  color: #f5e6b1;
  font-weight: 500;
  transition: color 0.3s ease;
}

.default_header_links a:hover,
.sphinx_header_links a:hover {
  color: #ebd8c3; /* soft beige hover */
}

.default_header_top_text,
.sphinx_header_top_text {
  font-size: 14px;
  color: #f9f6f0; /* subtle ivory tone */
}

/* ==============================
   HOME SLIDER
============================== */
.home_slider_container {
  margin: 15px 0;
  position: relative;
}

.home_slider_slide {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.home_slider_card img {
  width: 100%;
  transition: transform 0.5s ease;
}

.home_slider_card img:hover {
  transform: scale(1.05);
}

.swiper-pagination-bullet {
  background-color: #ebd8c3;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background-color: #f5e6b1;
}

/* ==============================
   SECTIONS
============================== */
.home_section_top_container,
.category_section_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.home_section_top_title,
.category_section_header_title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #9c1c3a; /* berry title */
}

@media (max-width: 768px) {
  .default_header_logo,
  .sphinx_header_logo {
    height: 35px; /* smaller height for mobile */
  }
}

/* ==============================
   CARDS
============================== */
.default_category_card,
.default_product_featured_card,
.default_product_list_card,
.home_products_grid_card,
.category_products_grid_card,
.products_grid_card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.default_category_card:hover,
.default_product_featured_card:hover,
.default_product_list_card:hover,
.home_products_grid_card:hover,
.category_products_grid_card:hover,
.products_grid_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(156, 28, 58, 0.3);
}

.default_category_card_name,
.default_product_featured_card_name {
  text-align: center;
  font-weight: 500;
  padding: 10px 0;
  color: #2c2c2c;
}

/* ==============================
   BANNERS
============================== */
.home_banner {
  margin: 40px 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: #ebd8c3;
}

.home_banner_img {
  width: 100%;
  object-fit: cover;
}

/* ==============================
   PRODUCT PAGE
============================== */
.product_name {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0;
  color: #9c1c3a;
}

.product_price_container {
  margin: 10px 0;
  font-weight: 600;
  color: #601225; /* deep berry accent */
}

.product_description {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b4b4b;
  margin-bottom: 20px;
}

/* .default_product_img,
.default_product_preview_img,
.sphinx_product_img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
} */
/* ==============================
   PRODUCT PAGE — Image Layout
============================== */

.product_images_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Main product image */
.default_product_img,
.sphinx_product_img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.default_product_img:hover,
.sphinx_product_img:hover {
  transform: scale(1.02);
}

/* Thumbnails container */
.product_thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Each thumbnail */
.default_product_preview_img {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.75;
  scroll-snap-align: center;
  transition: transform 0.25s ease, opacity 0.25s ease, border 0.25s ease;
}

.default_product_preview_img:hover,
.default_product_preview_img.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #9c1c3a; /* FAWZ berry highlight */
}

/* Hide scrollbar for a clean mobile look */
.product_thumbnails::-webkit-scrollbar {
  display: none;
}
.product_thumbnails {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive: desktop view */
@media (min-width: 768px) {
  .product_images_container {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    max-width: 100%;
  }

  .default_product_img,
  .sphinx_product_img {
    width: 75%;
    border-radius: 15px;
  }

  .product_thumbnails {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 480px;
  }

  .default_product_preview_img {
    width: 80px;
    height: 80px;
  }
}

/* ==============================
   FORMS & BUTTONS
============================== */
.global_input,
.global_textarea,
.gov_select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ebd8c3;
  margin-bottom: 15px;
  font-size: 1rem;
  background-color: #ffffff;
}

.checkout_btn,
.add_to_cart_btn,
.form_checkout_btn {
  background-color: #9c1c3a;
  color: #f5e6b1;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
button.checkout_buy_now {
  background-color: #9c1c3a !important;
  height: 55px;
  font-size: 20px;
  color: #f5e6b1 !important;
}

.checkout_btn:hover,
.add_to_cart_btn:hover,
.form_checkout_btn:hover {
  background-color: #601225; /* deep berry hover */
  color: #ffffff;
}

/* ==============================
   QUANTITY
============================== */
.quantity_container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity_btn {
  padding: 5px 12px;
  background-color: #ebd8c3;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  color: #2c2c2c;
}

/* ==============================
   FOOTER
============================== */
/* ==============================
   MINIMAL FOOTER (Header-Style)
============================== */
.minimal_footer {
  background-color: #ffffff; /* same as header */
  color: #9c1c3a; /* brand berry */
  border-top: 1px solid #ebd8c3;
  padding: 15px 0;
  font-size: 14px;
}

.minimal_footer .container_class {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer_logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #9c1c3a;
  margin: 0;
}

.footer_info {
  font-size: 14px;
  color: #601225;
  margin: 5px 0 0;
}

.footer_info a {
  color: #9c1c3a;
  font-weight: 600;
}

.footer_info a:hover {
  color: #601225;
}

.footer_icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer_icons a {
  color: #9c1c3a;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer_icons a:hover {
  color: #601225;
}

/* Mobile layout */
@media (max-width: 768px) {
  .minimal_footer .container_class {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  .default_header,
  .sphinx_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .home_section_top_container,
  .category_section_header {
    flex-direction: column;
    align-items: flex-start;
  }

  .default_header_links,
  .sphinx_header_links {
    flex-wrap: wrap;
    gap: 10px;
  }
}

#search {
  color: #9c1c3a;
  transition: color 0.18s ease;
}

#search path {
  fill: #9c1c3a;
}
#search:hover path {
  fill: #f5e6b1;
}
/* ===== high-specificity: target inline SVG with classes h-4 w-4 ===== */
/* ===============================
   SVG + ICON COLOR STYLING
   =============================== */

/* Smooth transitions for icons */
html body svg.h-4.w-4,
html body svg.h-4.w-4 * {
  transition: fill 0.18s ease, stroke 0.18s ease, color 0.18s ease !important;
  -webkit-transition: fill 0.18s ease, stroke 0.18s ease, color 0.18s ease !important;
}

/* Default color (FAWZ berry) */
html body svg.h-4.w-4 path,
html body svg.h-4.w-4 g,
html body svg.h-4.w-4 circle,
html body svg.h-4.w-4 rect,
html body svg.h-4.w-4 line,
html body svg.h-4.w-4 polygon,
html body svg.h-4.w-4 polyline {
  fill: #9c1c3a; /* FAWZ berry */
  stroke: #9c1c3a;
}
/* Strong override for specific white icons — placed at the end of your CSS file */
/* html body svg.h-4.w-4.white,
html body svg.h-4.w-4.white *,
html body svg.h-4.w-4.white path,
html body svg.h-4.w-4.white g,
html body svg.h-4.w-4.white circle,
html body svg.h-4.w-4.white rect,
html body svg.h-4.w-4.white line,
html body svg.h-4.w-4.white polygon,
html body svg.h-4.w-4.white polyline {
  fill: #ffffff !i;
  stroke: #ffffff !important;
  color: #ffffff !important;
} */

/* Hover color (FAWZ gold) */
html body svg.h-4.w-4:hover path,
html body svg.h-4.w-4:hover g,
html body svg.h-4.w-4:hover circle,
html body svg.h-4.w-4:hover rect,
html body svg.h-4.w-4:hover line,
html body svg.h-4.w-4:hover polygon,
html body svg.h-4.w-4:hover polyline {
  fill: #f5e6b1; /* FAWZ gold on hover */
  stroke: #f5e6b1;
}

/* Hover via parent (button, link, wrapper) */
html body button:hover svg.h-4.w-4 path,
html body a:hover svg.h-4.w-4 path,
html body .icon-wrapper:hover svg.h-4.w-4 path,
html body button:hover svg.h-4.w-4 *,
html body a:hover svg.h-4.w-4 *,
html body .icon-wrapper:hover svg.h-4.w-4 * {
  fill: #f5e6b1;
  stroke: #f5e6b1;
}

/* ===== Generic fallback: target any SVG using currentColor ===== */
svg[fill="currentColor"],
svg[stroke="currentColor"],
svg[fill="currentColor"] *,
svg[stroke="currentColor"] * {
  color: #9c1c3a;
}

svg[fill="currentColor"]:hover,
svg[stroke="currentColor"]:hover {
  color: #f5e6b1 !important;
}

/* ===== Fallback for <img src="...svg"> (approximate using filter) ===== */
img.h-4.w-4,
img.icon,
img.svg-icon {
  /* approximate FAWZ berry */
  filter: invert(22%) sepia(79%) saturate(400%) hue-rotate(330deg)
    brightness(95%) !important;
  transition: filter 0.18s ease !important;
}

img.h-4.w-4:hover,
img.icon:hover,
img.svg-icon:hover {
  /* approximate FAWZ gold on hover */
  filter: invert(94%) sepia(11%) saturate(500%) hue-rotate(320deg)
    brightness(106%) !important;
}

/* ===============================
   WHITE ICON SUPPORT
   =============================== */

/* Force white icons permanently */
/* svg.h-4.w-4.white,
svg.h-4.w-4.white *,
svg.white svg,
svg.white svg * {
  fill: white !important;
  stroke: white !important;
  color: white !important;
} */

/* Optional: white only on hover (wrap SVG in .icon-white-hover) */
/* .icon-white-hover:hover svg,
.icon-white-hover:hover svg * {
  fill: white !important;
  stroke: white !important;
  color: white !important;
} */

/* Optional: keep hover transition for white icons (to gold on hover) */
/* svg.h-4.w-4.white:hover path,
svg.h-4.w-4.white:hover *,
button:hover svg.h-4.w-4.white *,
a:hover svg.h-4.w-4.white * {
  fill: #f5e6b1 !important;
  stroke: #f5e6b1 !important;
} */

/*buttons*/
button[class*="bg-skin-primary"] {
  background-color: #9c1c3a !important;
  color: white;
}

.add_to_cart_btn {
  background-color: #f6c0c0;
  color: black;
}

button.font-bold.text-skin-primary.underline {
  color: black;
}
