/**
 * Theme Name: Atr Starter Fse Child Kabbalahshop
 * Description: Child theme of ATR Starter FSE.
 * Author: Yehuda Tiram
 * Author URI: https://atarimtr.com/
 * Template: atr-starter-fse
 * Version: 1.0.0
 * Text Domain: atr-starter-fse-child-kabbalahshop
 * Requires at least: 6.4
 * Tested up to: 6.7
 * Requires PHP: 7.4
 *
 * @format
 */

/* Child overrides below. The parent style.css loads first (see functions.php).
 * LTR-only site: no RTL build (see README.md). */

/* ==========================================================================
   Site background (parchment) and Hebrew "stam" helpers
   ========================================================================== */

body {
  background-color: var(--wp--preset--color--ti-bg);
  background-image: url("images/Parchment-bg.jpg");
}

.hebrew {
  font-family: var(--wp--preset--font-family--stam);
}

.hebrew-bg {
  font-family: var(--wp--preset--font-family--stam);
  background: #333333;
  padding: 0 4px 0 10px;
  color: #f5f5dc;
  letter-spacing: 4px;
  border-radius: 8px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.atr-starter-fse-child-kabbalahshop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--wp--preset--color--ti-bg-inv);
  background-image: url("images/top-bg-4.jpg");
  background-repeat: repeat;
  background-position: top center;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.22);
}

.atr-starter-fse-child-kabbalahshop-header__topbar {
  background-color: transparent;
  border-top: 3px solid #ab8b65;
  border-bottom: 1px solid #ab8b65;
  padding: 0 24px;
  font-size: 13px;
  line-height: 32px;
}

.atr-starter-fse-child-kabbalahshop-header__topbar > .wp-block-group {
  min-height: 32px;
  row-gap: 0;
}

.atr-starter-fse-child-kabbalahshop-header__contact {
  margin: 0;
  line-height: 32px;
}

.atr-starter-fse-child-kabbalahshop-header__topnav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ti-fg-alt);
  padding-top: 0;
  padding-bottom: 0;
  line-height: 32px;
}

.atr-starter-fse-child-kabbalahshop-header__contact a,
.atr-starter-fse-child-kabbalahshop-header__contact a:visited {
  color: var(--wp--preset--color--ti-fg-alt);
  text-decoration: none;
}

.atr-starter-fse-child-kabbalahshop-header__contact a:hover {
  color: #f5e9da;
}

.atr-starter-fse-child-kabbalahshop-header__sep {
  margin: 0 8px;
}


.atr-starter-fse-child-kabbalahshop-header__topnav .wp-block-navigation__submenu-container {
  background-color: var(--wp--preset--color--ti-bg-inv);
  min-width: 320px;
}

/* Hover in the top navigation: override the parent's accent-on-dark hover
   (unreadable on the dark dropdown) with the old top-bar hover colour. */
.atr-starter-fse-child-kabbalahshop-header__topnav.wp-block-navigation .wp-block-navigation-item:hover {
  color: #f5e9da !important;
  background-color: rgba(255, 255, 255, 0.08);
}

.atr-starter-fse-child-kabbalahshop-header__topnav.wp-block-navigation .wp-block-navigation-item:hover > .wp-block-navigation-item__content {
  color: #f5e9da;
}

.atr-starter-fse-child-kabbalahshop-header__navbar {
  background-color: transparent;
  padding: 12px 24px;
}

.atr-starter-fse-child-kabbalahshop-header__logo img {
  max-width: 70px;
  transition: all 0.2s ease-in-out;
}

.atr-starter-fse-child-kabbalahshop-header__nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-heading);
}

.atr-starter-fse-child-kabbalahshop-header__tools .wc-block-mini-cart__button,
.atr-starter-fse-child-kabbalahshop-header__tools .wc-block-customer-account__account-icon,
.atr-starter-fse-child-kabbalahshop-header__tools .wp-block-search__button {
  color: var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-heading);
}

.atr-starter-fse-child-kabbalahshop-header__tools .wc-block-mini-cart__badge {
  background-color: var(--wp--preset--color--ti-accent-secondary);
  color: var(--wp--preset--color--ti-fg);
}

@media (min-width: 576px) {
  .atr-starter-fse-child-kabbalahshop-header__logo img {
    max-width: 180px;
  }
}

/* ==========================================================================
   Page title bar
   ========================================================================== */

.atr-starter-fse-child-kabbalahshop-title-bar {
  border-top: 1px solid var(--wp--preset--color--ti-accent-secondary);
  border-bottom: 1px solid var(--wp--preset--color--ti-accent-secondary);
  padding: 10px 24px;
  text-align: center;
}

.atr-starter-fse-child-kabbalahshop-title-bar__title {
  font-size: 21px;
  line-height: 1.21;
  font-weight: 400;
  color: var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-heading);
  margin: 10px 0;
}

.atr-starter-fse-child-kabbalahshop-title-bar .woocommerce-breadcrumb,
.atr-starter-fse-child-kabbalahshop-title-bar .woocommerce-breadcrumb a {
  color: var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-heading);
  font-size: 16px;
}

@media (min-width: 576px) {
  .atr-starter-fse-child-kabbalahshop-title-bar__title {
    font-size: 38px;
    line-height: 1.41;
  }
}

/* ==========================================================================
   Content area (translucent panel on the parchment)
   ========================================================================== */

.atr-starter-fse-child-kabbalahshop-content {
  background-color: rgba(195, 155, 106, 0.44);
}

#breadcrumbs,
.atr-starter-fse-child-kabbalahshop-content .wp-block-shortcode {
  margin-bottom: 16px;
  font-size: 14px;
}

/* ==========================================================================
   Product cards (Product Collection / shop loop)
   ========================================================================== */

.atr-starter-fse-child-kabbalahshop-products .wc-block-product,
.woocommerce ul.products li.product {
  border: 1px solid var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-product-border);
  padding: 12px;
  background-color: rgba(195, 155, 106, 0.3);
}

.atr-starter-fse-child-kabbalahshop-products .wc-block-product .wp-block-post-title a {
  color: var(--wp--preset--color--ti-fg);
  text-decoration: none;
}

.atr-starter-fse-child-kabbalahshop-products .wc-block-components-product-price,
.woocommerce ul.products li.product .price {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.atr-starter-fse-child-kabbalahshop-products .wp-block-button__link,
.woocommerce ul.products li.product .button.add_to_cart_button {
  display: block;
  width: 100%;
  text-transform: uppercase;
  color: #fff;
  background-image: linear-gradient(to top, #fe6525, #94021d);
  border-radius: 3px;
}

.atr-starter-fse-child-kabbalahshop-products .wp-block-button__link:hover,
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
  background-image: linear-gradient(to top, #94021d, #fe6525);
}

/* ==========================================================================
   Single product
   ========================================================================== */

.single-product .wc-block-components-product-price,
.single-product div.product .summary .price {
  display: inline-block;
  background: antiquewhite;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  padding: 1px 7px;
  color: #5a4408;
  font-weight: 700;
}

.single-product .woocommerce-variation.single_variation .woocommerce-Price-amount.amount {
  color: #fe6525;
  background-color: #ffe4c4;
  padding: 2px 6px;
}

/* Variation select: WooCommerce's `background:` shorthand (chevron icon) resets
   the background colour, leaving pale text on the parchment. Restore the old
   theme's field colours while keeping the chevron. */
.woocommerce div.product form.cart .variations select {
  background-color: rgb(177, 97, 68);
  color: var(--wp--preset--color--ti-fg);
  font-size: 19px;
  border-radius: 8px;
  padding: 2px 3em 2px 9px;
  max-width: 240px;
}

.woocommerce div.product form.cart .variations select option {
  background-color: rgb(177, 97, 68);
  color: var(--wp--preset--color--ti-fg);
}

/* Product gallery (flexslider): framed main image, spaced thumbnails with
   the old theme's dimmed/active states. */
.single-product .woocommerce-product-gallery .flex-viewport {
  border: 1px solid var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-product-border);
  margin-bottom: 12px;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  width: calc(25% - 6px);
  margin: 0;
  list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  display: block;
  width: 100%;
  opacity: 0.5;
  border: 1px solid var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-product-border);
  transition: opacity 0.2s ease-in-out;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
  opacity: 1;
}

.woocommerce .cart .quantity .qty {
  color: var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-heading);
  background-color: #521117;
  border: 1px solid #61100c;
  border-radius: 0;
}

/* ==========================================================================
   Forms (CF7, Woo)
   ========================================================================== */

/* WooCommerce paints its form fields (inputs, textarea, select2) through
   these variables with a white default; map them to the old theme's field
   colours so every Woo field matches the generic rules below. */
:root,
.woocommerce {
  --wc-form-color-background: rgb(177, 97, 68);
  --wc-form-color-text: var(--wp--preset--color--ti-fg);
  --wc-form-border-color: rgb(169, 49, 49);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
  color: var(--wp--preset--color--ti-fg);
  font-size: 1.43rem;
  border: 1px solid rgb(169, 49, 49);
  border-radius: 3px;
  padding: 3px;
  background-color: rgb(177, 97, 68);
  width: 100%;
  max-width: 100%;
}

/* woocommerce-blocktheme.css forces the "small" preset on Woo form fields
   with higher specificity; match it so the size above applies there too. */
.woocommerce-page .input-text,
.woocommerce-page .select2-container,
.woocommerce-page select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row select,
.woocommerce-page form .form-row textarea.input-text {
  font-size: 1.43rem;
}

input:focus,
textarea:focus {
  color: #111;
}

input::placeholder,
textarea::placeholder,
.woocommerce form .form-row ::placeholder {
  color: var(--wp--preset--color--ti-fg);
  opacity: 1;
  font-size: inherit;
  font-weight: 400;
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  background-color: var(--wp--preset--color--ti-btn-bg);
  color: var(--wp--preset--color--ti-btn-fg);
  border: 0;
  border-radius: 3px;
  padding: 10px 24px;
  width: auto;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background-color: #9a3e44;
}

/* ==========================================================================
   Cart table, notices
   ========================================================================== */

.woocommerce-cart-form {
  border: 1px solid var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-product-border);
  padding: 24px;
}

.woocommerce-cart-form th,
.woocommerce-cart-form td {
  border-bottom: 1px solid var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-product-border);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
  color: #efdbdb;
  background-color: #830f19;
  border-color: #830f19;
  box-shadow: 2px 4px 4px rgba(60, 13, 13, 0.5);
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
  background-color: #e2401c;
  border-color: #e2401c;
}

.wc-block-components-notice-banner a,
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
.woocommerce-info .wc-forward,
.woocommerce-message .wc-forward {
  color: #efdbdb !important;
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.atr-starter-fse-child-kabbalahshop-footer {
  border-top: 12px solid #751900;
  background-image: url("images/top-bg-4.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.atr-starter-fse-child-kabbalahshop-footer__main {
  padding: 20px 24px 16px;
}

.atr-starter-fse-child-kabbalahshop-footer__main .wpcf7-form p {
  margin-bottom: 8px;
}

.atr-starter-fse-child-kabbalahshop-footer__main a,
.atr-starter-fse-child-kabbalahshop-footer__main a:visited,
.atr-starter-fse-child-kabbalahshop-footer__main a:hover,
.atr-starter-fse-child-kabbalahshop-footer__main .wp-block-navigation .wp-block-navigation-item:hover {
  color: var(--wp--preset--color--ti-fg-alt) !important;
}

.atr-starter-fse-child-kabbalahshop-footer__col-form {
  flex-basis: 50%;
}

.atr-starter-fse-child-kabbalahshop-footer__col-links {
  flex-basis: 50%;
}

.atr-starter-fse-child-kabbalahshop-footer__bottom {
  border-top: 0;
  padding: 16px 24px;
  font-size: 0.8rem;
}

.atr-starter-fse-child-kabbalahshop-footer__bottom a {
  color: var(--wp--preset--color--atr-starter-fse-child-kabbalahshop-copyright);
}
