/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


/* Add this CSS to your child theme's style.css file */

/* Product seasons section styling */
.product-seasons {
    margin: 25px 0 !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.seasons-title {
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.seasons-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.season-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #555 !important;
    transition: all 0.2s ease !important;
}

.season-item:hover {
    border-color: #bbb !important;
    transform: translateY(-1px) !important;
}

.season-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    margin-right: 2px !important;
}

.season-name {
    font-size: 14px !important;
    line-height: 1 !important;
}

.season-spring .season-icon { color: #22c55e !important; }
.season-summer .season-icon { color: #f59e0b !important; }
.season-autumn .season-icon { color: #ea580c !important; }
.season-winter .season-icon { color: #3b82f6 !important; }

/* Fix WooCommerce variation styling */
.single-product .summary .variations {
    margin: 25px 0 !important;
}

.single-product .summary .variations .label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.single-product .summary .variations select {
    font-size: 14px !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
    min-width: 200px !important;
}

.single-product .summary .variations .reset_variations {
    font-size: 13px !important;
    margin-left: 10px !important;
    color: #666 !important;
    text-decoration: none !important;
}

.single-product .summary .variations .reset_variations:hover {
    color: #333 !important;
}

/* Product title styling */
.single-product .summary .product_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 15px 0 !important;
    color: #222 !important;
}

/* Price styling */
.single-product .summary .price {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 25px 0 !important;
    color: #333 !important;
}

/* Categories styling */
.single-product .summary .posted_in {
    font-size: 14px !important;
    color: #666 !important;
    margin-top: 25px !important;
    padding-top: 20px !important;
    border-top: 1px solid #eee !important;
}

.single-product .summary .posted_in a {
    color: #0073aa !important;
    text-decoration: none !important;
}

.single-product .summary .posted_in a:hover {
    text-decoration: underline !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-seasons {
        margin: 20px 0 !important;
        padding: 15px !important;
    }
    .seasons-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    .season-item {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    .single-product .summary .product_title {
        font-size: 24px !important;
    }
    .single-product .summary .price {
        font-size: 20px !important;
    }
}

/* Hide the original color variations dropdown on the product detail page */
/* Hide the legacy "Other Colors" row in the variations table (Brand Color) */
table.variations tr:has(select[name^="attribute_brand-color"]) { display: none !important; }
table.variations tr:has(select[name^="attribute_brand_color"]) { display: none !important; }
table.variations tr:has(select[name^="attribute_pa_brand_color"]) { display: none !important; }
table.variations tr:has(select[name^="attribute_pa_color"]) { display: none !important; }

/* If your theme replaces the <select> with a wrapper, hide by wrapper too */
table.variations tr:has(td .fancy-select-wrap) { display: none !important; }

/* Hide the "Clear options" link */
table.variations .reset_variations { display: none !important; }



/* ========== Season chips with checkbox (final) ========== 
.widget_season_filter_widget .csf-chips{
  list-style:none; margin:10px 0 0; padding:0;
  display:flex; flex-wrap:wrap; gap:10px;
}
.widget_season_filter_widget .csf-chip{ display:inline-block; }

/* Pill + reserved space for the checkbox box 
.widget_season_filter_widget .csf-chip a{
  position:relative;
  display:inline-flex; align-items:center;
  padding:8px 14px 8px 44px !important; /* <- leave room for the box + 6px gap */
  border:1px solid #cbd5e1;             /* slate-300 */
  border-radius:999px;
  background:#f8fafc;                    /* slate-50 */
  color:#111827;                         /* gray-900 */
  text-decoration:none;
  line-height:1.15;
}

/* --- 1) Collapse the whitespace above "Available Colors" --- */

/* Remove margins/padding the theme gives to the now-empty variations table */
.single-product .summary table.variations { 
  margin: 0 !important;
  border: 0 !important;
}
.single-product .summary table.variations th,
.single-product .summary table.variations td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hide any leftover Brand-Color row or empty select wrapper rows */
.single-product table.variations tr:has(select[name^="attribute_brand-color"]),
.single-product table.variations tr:has(select[name^="attribute_brand_color"]),
.single-product table.variations tr:has(select[name^="attribute_pa_brand_color"]),
.single-product table.variations tr:has(select[name^="attribute_pa_color"]),
.single-product table.variations tr:has(td .fancy-select-wrap:empty) {
  display: none !important;
}

/* If the table ends up effectively empty, nuke it entirely */
.single-product .summary table.variations:has(> tbody > tr:only-child),
.single-product .summary table.variations:has(> tbody > tr[style*="display: none"]:only-child) {
  display: none !important;
}

/* Tighten the top edge of the form itself */
.single-product .summary form.variations_form {
  margin-top: 0 !important;
}

/* --- 2) Space between the chips and the Buy Now button --- */

/* Increase bottom margin of our chips block */
.cs-seasons-wrap { 
  margin-top: .25rem;         /* keep it close to the price */
  margin-bottom: 1.25rem;     /* add space before the button */
}

/* Ensure the button group has a little top margin even if theme strips it */
.single-product .summary form.variations_form .single_variation_wrap {
  margin-top: .75rem !important;
}

/* (Optional) Hide Woo's "Clear" link if your theme still prints it */
.single-product .summary .reset_variations { 
  display: none !important; 
}

/* ===== Colorshop PDP chip tweaks (child theme) ===== */

/* Easy knobs to adjust */
:root{
  --cs-chip-width: 192px;          /* target width for each chip */
  --cs-chip-active-bg: #eef2ff;    /* subtle indigo-50 */
  --cs-chip-active-border: #6366f1;/* indigo-500 */
  --cs-chip-active-text: #111827;  /* near-black text for contrast */
}

/* Make all chips the same width */
.cs-seasons-wrap .cs-chip{
  width: var(--cs-chip-width);
  justify-content: flex-start;
}

/* Keep the thumbnail fixed and let the label truncate cleanly */
.cs-seasons-wrap .cs-chip-thumb{
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.cs-seasons-wrap .cs-chip-label{
  flex: 1 1 auto;
  min-width: 0;                /* allows ellipsis inside flex item */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Softer selected state (no black background) */
.cs-seasons-wrap .cs-chip.is-active{
  background: var(--cs-chip-active-bg);
  color: var(--cs-chip-active-text);
  border-color: var(--cs-chip-active-border);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cs-chip-active-border) 20%, transparent);
}
.cs-seasons-wrap .cs-chip.is-active .cs-chip-thumb{
  border-color: var(--cs-chip-active-border);
}

/* Optional: a touch more emphasis on hover without going harsh */
.cs-seasons-wrap .cs-chip:hover{
  border-color: var(--cs-chip-active-border);
}

/* Mobile: full-width chips so they’re easy to tap */
@media (max-width: 560px){
  .cs-seasons-wrap .cs-chip{ width: 100%; }
}


/* Brand label between image and product title */
.woocommerce ul.products li.product .cs-product-brand {
  margin: 6px 0 2px;
  line-height: 1.2;
  font-weight: 600;
}
.woocommerce ul.products li.product .cs-product-brand a {
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-weight:500;
}

/* Seasons text between brand and title */
.woocommerce ul.products li.product .cs-product-seasons {
  margin: 2px 0 6px;
  font-size: .92em;
  line-height: 1.2;
  opacity: .9; /* slightly toned down vs brand/title */
}

.woocommerce ul.products li.product .cs-product-seasons span {
  /* not a link by design */
}

/* Hide "Add to Cart" on product grid hover (Salient) */
.woocommerce ul.products li.product .product-add-to-cart {
  display: none !important;
}

/* ==== Product grid typography + spacing ==== */

/* 1) Brand: bold, a little more air above, tight to the title */
.woocommerce ul.products li.product .cs-product-brand a {
  color: inherit;
  text-decoration: none;
}

/* 2) Title: not bold */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-weight: 400 !important;   /* ensure Salient doesn't re-bold it */
  line-height: 1.25;
  margin: 0 0 0.25rem 0;         /* keep it close to the brand */
}

/* 3) Price: bold, with consistent top spacing */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi {
  font-weight: 600 !important;
}
.woocommerce ul.products li.product .price {
  margin-top: 12px;              /* comfortable gap after the title */
}

/* Optional: ensure hover doesn’t add underline to the title */
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
  text-decoration: none;
}


/* === Brand + Price in one row === */

/* Brand + Price in a single row above the title */
.woocommerce ul.products li.product .cs-row.cs-brand-price{
  display:flex; justify-content:space-between; align-items:baseline;
  /* margin:14px 0 4px; /* more air above, tight to title */
}

/* Keep the brand bold; strip extra margins from helper output */
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-brand .cs-product-brand{
  margin:0; line-height:1.2; font-weight:600;
}
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-brand .cs-product-brand a{
  color:inherit; text-decoration:none;
}

/* Price bold and right aligned */
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price,
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price .amount,
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price bdi{
  font-weight:600;
  text-align:right;
}

/* Title not bold, just below the row */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title{
  font-weight:400 !important;
  line-height:1.3;
  margin:0 0 6px;
}

/* =====
	
/* ===== Brand + Price row visual refinement ===== */

/* Match Brand and Price font weights */
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-brand strong,
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price,
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price .amount,
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price bdi {
  font-weight: 700 !important; /* same as brand */
}


/* Ensure text colors match and remove any gray tone Salient adds */
.woocommerce ul.products li.product .cs-row.cs-brand-price,
.woocommerce ul.products li.product .cs-row.cs-brand-price a,
.woocommerce ul.products li.product .cs-row.cs-brand-price .cs-price {
  color: #000 !important; /* adjust if your site uses darker gray */
}

/* Season Indicators */
.cs-season-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.cs-season-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

/* Spring - Fresh Green */
.cs-season-badge.cs-season-spring {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Summer - Warm Yellow */
.cs-season-badge.cs-season-summer {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Autumn - Rich Orange */
.cs-season-badge.cs-season-autumn {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Winter - Cool Blue */
.cs-season-badge.cs-season-winter {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.cs-season-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .cs-season-indicators { gap: 4px; }
    .cs-season-badge { font-size: 10px; padding: 3px 8px; }
}

#block-9 .widget .widget_sidebar {margin-bottom:20px;}

.csvap-buy-button {
  border-radius: 12px;
  font-size: 16px;
  padding: 14px 18px;
}
.csvap-buy-button,
#csvap-multi-buttons .button {
  text-transform: none !important;
}

/* Preserve your casing */
#csvap-multi-buttons .button { text-transform: none !important; }

/* Make each button feel like a cart/buy action */
.csvap-buy-button {
  display: block;
  margin: 0 0 12px 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}

/* Two-column look: store name left, price right */
.csvap-buy-button .csvap-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.csvap-merchant-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csvap-merchant-price  { white-space: nowrap; opacity: .95; }

/* Optional: tighter style on mobile */
@media (max-width: 480px){
  .csvap-buy-button { padding: 12px 14px; }
}

/* Remove uppercase */
#csvap-multi-buttons .button {
  text-transform: none !important;
}

/* Container spacing */
#csvap-multi-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* spacing between buttons */
  margin-top: 16px;
}

/* Individual Buy Buttons */
.csvap-buy-button {
  flex: 1 1 auto;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  line-height: 1.5;
  border-radius: 40px;            /* <— round shape */
  background-color: #6c47ff;      /* your purple theme color */
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Hover and focus states */
.csvap-buy-button:hover,
.csvap-buy-button:focus {
  background-color: #5635cc;      /* slightly darker purple */
  transform: translateY(-1px);
}

/* Label and price alignment */
.csvap-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.csvap-merchant-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csvap-merchant-price {
  font-weight: 600;
  font-size: 15px;
}

/* Better vertical rhythm */
@media (max-width: 768px) {
  #csvap-multi-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .csvap-buy-button {
    width: 100%;
  }
}
#csvap-multi-buttons > a {line-height:1.6em;}

