/*
Theme Name: Bonjour Theme
Author: A Te Neved
Description: Custom theme for the BONJOUR fashion brand, based on a static HTML template.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bonjour-theme
*/

/* A meglévő CSS kódodat ide fogjuk majd áthelyezni a functions.php-n keresztül, de ez a fájl és a fejléc kötelező. */

/* =================================================================
	 RawFashion landing: category tiles + product grid
	 (Used by wp-content/themes/bonjour-theme/front-page.php)
	 ================================================================= */

:root {
  --bs-secondary-color: #b3b3b3; /* ide írd a kívánt színt */
}

label {
  color: var(--bs-primary-color);
}

/* Stripe Payment Element / card labels override (if not in iframe) */
label.p-FieldLabel.Label[for="Field-expiryInput"],
body.woocommerce-checkout .p-FieldLabel.Label {
  color: #ffffff !important;
}

/* Category tiles */
.raw-cat-tile {
  position: relative;
  min-height: 320px;
}

@media (min-width: 768px) {
  .raw-cat-tile {
    min-height: 600px;
  }
}

/* Tile borders: stacked on mobile, vertical dividers on desktop */
.raw-cat-col {
  border-bottom: 1px solid rgba(var(--bs-dark-rgb), 1);
}

@media (min-width: 768px) {
  .raw-cat-col {
    border-bottom: 0;
  }

  .raw-cat-col--border {
    border-right: 1px solid rgba(var(--bs-dark-rgb), 1);
  }
}

.raw-cat-tile__title,
.raw-cat-tile__cta {
  z-index: 2;
}

.raw-cat-tile__title {
  letter-spacing: -0.02em;
}

/* Background image layer */
.absolute-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  filter: grayscale(100%);
}

/* Touch/mobile: no hover, so keep image visible and ensure readable text */
@media (hover: none), (pointer: coarse) {
  .raw-cat-tile__title,
  .raw-cat-tile__cta {
    color: #fff;
    mix-blend-mode: difference;
  }
}

/* Mouse/desktop: hide the image until hover */
@media (hover: hover) and (pointer: fine) {
  .absolute-bg {
    opacity: 0;
  }

  .hover-zoom:hover .absolute-bg {
    opacity: 1;
  }

  .hover-zoom:hover h2,
  .hover-zoom:hover span {
    color: #fff;
    mix-blend-mode: difference;
  }
}

/* Product grid (Woo shortcode output) */
.raw-product-grid ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.raw-product-grid ul.products li.product {
  float: none;
  width: auto;
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

@media (min-width: 768px) {
  .raw-product-grid ul.products li.product {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 20px;
  }
}

@media (min-width: 992px) {
  .raw-product-grid ul.products li.product {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.raw-product-grid ul.products li.product:hover {
  background: transparent;
}

.raw-product-grid ul.products li.product img {
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.raw-product-grid ul.products li.product:hover img {
  filter: grayscale(0%);
}

select {
  padding: 0rem 1rem;
}

option {
  background-color: black;
  padding: 0rem 5rem;
}

.woocommerce-Price-amount {
  color: white;
}

div.quantity {
  display: none;
}

.single_add_to_cart_button {
  margin: 0 auto;
}

/* WooCommerce Blocks: Checkout shipping method buttons */
.wc-block-checkout__shipping-method-option
  .wc-block-checkout__shipping-method-option-title {
  color: #ffffff; /* inaktív: fehér szöveg */
}

.wc-block-checkout__shipping-method-option--selected
  .wc-block-checkout__shipping-method-option-title {
  color: #000000; /* aktív: fekete szöveg */
}

/* Ikon színek: ugyanaz a logika, mint a szövegnél */
.wc-block-checkout__shipping-method-option
  .wc-block-checkout__shipping-method-option-icon
  path {
  fill: #ffffff; /* inaktív: fehér ikon */
}

.wc-block-checkout__shipping-method-option--selected
  .wc-block-checkout__shipping-method-option-icon
  path {
  fill: #000000; /* aktív: fekete ikon */
}

/* VP Woo Pont: kereső + "Map" gomb stílus */
.vp-woo-pont-block-select-button
  .wc-block-components-button.vp-woo-pont-show-map.contained {
  background-color: #000000; /* fekete háttér */
  color: #d3d3d3; /* világos szürke szöveg */
  border-color: #000000;
}

.vp-woo-pont-block-select-button
  .wc-block-components-button.vp-woo-pont-show-map.contained
  svg {
  stroke: #d3d3d3;
  color: #d3d3d3;
}

.vp-woo-pont-block-select-button
  .wc-block-components-button.vp-woo-pont-show-map.contained
  svg
  path {
  stroke: #d3d3d3;
}

/* VP Woo Pont: kereső sáv (ikon + input) */
.vp-woo-pont-block-list-item-search .search-autocomplete .wrapper {
  background-color: #000000 !important; /* fekete háttér */
}

.vp-woo-pont-block-list-item-search
  .search-autocomplete
  .wrapper
  .sc-fqkvVR.fooli {
  background-color: transparent !important;
}

.vp-woo-pont-block-list-item-search
  .search-autocomplete
  .wrapper
  input[type="text"] {
  background-color: transparent !important;
  color: #d3d3d3 !important;
}

.vp-woo-pont-block-list-item-search
  .search-autocomplete
  .wrapper
  input[type="text"]::placeholder {
  color: #7f7f7f !important; /* halványabb szürke placeholder */
}

.vp-woo-pont-block-list-item-search
  .search-autocomplete
  .wrapper
  .search-icon
  path {
  fill: #d3d3d3 !important; /* ikon világos szürke */
}

/* VP Woo Pont: találati lista (li elemek) */
.vp-woo-pont-block-list-item-search .sc-gEvEer.hfNUBZ ul li {
  color: #d3d3d3 !important; /* világos szürke szöveg */
}

.vp-woo-pont-block-list-item-search .sc-gEvEer.hfNUBZ ul li strong,
.vp-woo-pont-block-list-item-search .sc-gEvEer.hfNUBZ ul li span {
  color: #d3d3d3 !important; /* cím és cím alatti szöveg is világos szürke */
}

.vp-woo-pont-block-list-item-search .sc-gEvEer.hfNUBZ ul li .search-icon path {
  fill: #d3d3d3 !important; /* ikon a listában is világos szürke */
}
