/*
Theme Name: KASHMELL
Theme URI: https://kashmell.com
Description: Premium modern fashion e-commerce child theme for KASHMELL, built on Storefront + WooCommerce.
Author: KASHMELL
Template: storefront
Version: 1.0.0
Text Domain: kashmell
*/

/* ==========================================================================
   KASHMELL DESIGN TOKENS
   ========================================================================== */
:root{
  --kash-black:      #111111;
  --kash-white:      #ffffff;
  --kash-cream:      #f6f2ea;
  --kash-gray:       #8a8a8a;
  --kash-gray-light: #e9e6e0;
  --kash-accent:     #a9824c; /* warm muted gold - elegant, not flashy */
  --kash-danger:     #b23b3b;

  --kash-font-heading: 'Cormorant Garamond', Georgia, serif;
  --kash-font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --kash-radius: 2px;
  --kash-transition: 200ms ease;
}

/* ==========================================================================
   BASE
   ========================================================================== */
body{
  font-family: var(--kash-font-body);
  color: var(--kash-black);
  background: var(--kash-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,
.site-title,
.woocommerce-loop-product__title,
.product_title{
  font-family: var(--kash-font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--kash-black);
}

h1{ font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2{ font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3{ font-size: 1.4rem; }

a{ color: var(--kash-black); transition: color var(--kash-transition); }
a:hover{ color: var(--kash-accent); }

.site-branding .site-title a{
  font-family: var(--kash-font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER (sticky, minimal)
   ========================================================================== */
#masthead.site-header{
  background: var(--kash-white);
  border-bottom: 1px solid var(--kash-gray-light);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* ==========================================================================
   TOP-RIGHT UTILITY BAR (search / account / cart icons)
   ========================================================================== */
.kash-utility-bar{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--kash-gray-light);
  position: relative;
}
.kash-icon-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--kash-black);
  background: none !important;
  border: none !important;
  padding: 2px !important;
  cursor: pointer;
  position: relative;
}
.kash-icon-btn:hover{ color: var(--kash-accent); }
.kash-cart-count{
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--kash-black);
  color: var(--kash-white);
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 50%;
  padding: 4px 6px;
  min-width: 18px;
  text-align: center;
}
.kash-search-form{
  display: none;
  padding: 12px 20px;
  border-bottom: 1px solid var(--kash-gray-light);
  background: var(--kash-cream);
}
.kash-search-form.kash-open{ display: block; }
.kash-search-form form{ max-width: 480px; margin: 0 auto; }
.kash-search-form input[type="search"]{
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid var(--kash-gray-light);
  border-radius: var(--kash-radius);
  font-size: 0.9rem;
}
@media (max-width: 600px){
  .kash-utility-bar{ gap: 16px; padding: 8px 16px; }
}

/* Force-hide Storefront/WooCommerce's own default search + cart widgets,
   in case they're still rendering (theme/version differences can make the
   PHP remove_action calls silently miss). Our own elements use different
   classes (.kash-search-form, .kash-icon-btn) so they're unaffected. */
.site-header .site-search,
.site-header .widget_product_search,
.site-header form.woocommerce-product-search,
#masthead .site-header-cart{
  display: none !important;
}

.site-header .site-header-cart .cart-contents,
.site-header ul li a{
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* cart count bubble */
.site-header-cart .cart-contents .count{
  background: var(--kash-accent);
  color: var(--kash-white);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  margin-left: 4px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit{
  background: var(--kash-black);
  color: var(--kash-white);
  border: 1px solid var(--kash-black);
  border-radius: var(--kash-radius);
  padding: 0.9em 2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: all var(--kash-transition);
}
.button:hover,
button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover{
  background: var(--kash-white);
  color: var(--kash-black);
}
.button.alt,
.woocommerce a.button.alt{
  background: var(--kash-accent);
  border-color: var(--kash-accent);
}
.button.alt:hover{
  background: var(--kash-white);
  color: var(--kash-accent);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.kash-hero{
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--kash-white);
  overflow: hidden;
}
.kash-hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.kash-hero-inner{ position: relative; z-index: 2; max-width: 640px; padding: 0 20px; }
.kash-hero-eyebrow{
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: .9;
}
.kash-hero h1{ color: var(--kash-white); margin-bottom: 1rem; }
.kash-hero p{ font-size: 1.05rem; margin-bottom: 2rem; opacity: .95; }

@media (max-width:600px){
  .kash-hero{ min-height: 68vh; }
}

/* ==========================================================================
   SECTIONS / GRIDS
   ========================================================================== */
.kash-section{ padding: 64px 20px; max-width: 1240px; margin: 0 auto; }
.kash-section-head{ text-align: center; margin-bottom: 40px; }
.kash-section-head span{
  display:block; letter-spacing:0.3em; text-transform:uppercase;
  font-size:0.7rem; color: var(--kash-gray); margin-bottom:8px;
}

.kash-grid{
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 992px){ .kash-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .kash-grid{ grid-template-columns: 1fr; } }

.kash-category-card{
  /* Base rules superseded by scoped .kash-categories-section .kash-category-card
     rules further down this file — kept minimal here since this class is
     currently only used inside the Shop by Category section. */
  position: relative;
  overflow: hidden;
}
.kash-category-card img{
  width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   CUSTOM LOGO
   ========================================================================== */
.site-branding .custom-logo-link img{
  max-height: 64px;
  width: auto;
}
@media (max-width:600px){
  .site-branding .custom-logo-link img{ max-height: 48px; }
}

/* ==========================================================================
   COLLECTION CHIPS (fabric/style browser)
   ========================================================================== */
.kash-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.kash-chip{
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--kash-black);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--kash-transition);
}
.kash-chip:hover{
  background: var(--kash-black);
  color: var(--kash-white);
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */
.kash-promo{
  background: var(--kash-cream);
  text-align: center;
  padding: 60px 20px;
  margin: 0 auto;
}
.kash-promo h2{ margin-bottom: 0.5rem; }
.kash-promo .kash-countdown{
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kash-gray);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   WHY SHOP WITH US
   ========================================================================== */
.kash-why-grid{
  display: grid; gap: 32px;
  grid-template-columns: repeat(4,1fr);
  text-align: center;
}
@media (max-width: 768px){ .kash-why-grid{ grid-template-columns: repeat(2,1fr); } }
.kash-why-item .kash-icon{ font-size: 1.8rem; margin-bottom: 10px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.kash-testimonials{ background: var(--kash-black); color: var(--kash-white); padding: 64px 20px; }
.kash-testimonials .kash-section-head span{ color: var(--kash-gray-light); }
.kash-testimonial-grid{ display:grid; gap:28px; grid-template-columns: repeat(3,1fr); max-width:1100px; margin:0 auto;}
@media (max-width:768px){ .kash-testimonial-grid{ grid-template-columns: 1fr; } }
.kash-testimonial-card{ background: #1b1b1b; padding: 28px; border-radius: var(--kash-radius); }
.kash-testimonial-card .stars{ color: var(--kash-accent); margin-bottom: 10px; }
.kash-testimonial-card cite{ display:block; margin-top: 14px; font-size:0.8rem; opacity:.7; font-style:normal; }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.kash-newsletter{ background: var(--kash-cream); text-align:center; padding: 56px 20px; }
.kash-newsletter form{ display:flex; max-width:460px; margin: 24px auto 0; gap:8px; flex-wrap: wrap; justify-content:center; }
.kash-newsletter input[type="email"]{
  flex:1; min-width: 220px; padding: 0.9em 1em; border:1px solid var(--kash-black); border-radius: var(--kash-radius);
}

/* ==========================================================================
   SHOP / PRODUCT GRID
   ========================================================================== */
ul.products li.product{ margin-bottom: 32px; }
ul.products li.product .woocommerce-loop-product__title{ font-size:0.95rem; margin-top: 10px; }
ul.products li.product .price{ color: var(--kash-black); font-weight:500; }
ul.products li.product .price del{ color: var(--kash-gray); opacity:.7; }
ul.products li.product .price ins{ text-decoration:none; color: var(--kash-accent); }
ul.products li.product .onsale{
  background: var(--kash-accent) !important;
  border-radius: var(--kash-radius) !important;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height:auto !important; min-width:auto !important;
  padding: 4px 10px !important;
  left: 0; right:auto; top:0;
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.single-product .summary .price{ font-size: 1.3rem; margin-bottom: 1rem; }
.single-product .woocommerce-product-details__short-description{ color:#444; }
.single-product table.variations select{
  padding: 0.6em; border:1px solid var(--kash-gray-light); border-radius: var(--kash-radius);
}
.single-product .kash-size-guide-link{
  display:inline-block; margin-top:6px; font-size:0.8rem; text-decoration:underline; cursor:pointer;
}
.single-product .stock.in-stock{ color:#3a7d44; }
.single-product .stock.out-of-stock{ color: var(--kash-danger); }

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */
.woocommerce-cart table.cart img{ width:72px; border-radius: var(--kash-radius); }
.woocommerce-checkout #payment{ background: var(--kash-cream); border-radius: var(--kash-radius); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select{
  border:1px solid var(--kash-gray-light); border-radius: var(--kash-radius); padding: 0.8em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#colophon{ background: var(--kash-black); color: var(--kash-gray-light); padding: 56px 20px 24px; }
#colophon a{ color: var(--kash-gray-light); }
#colophon a:hover{ color: var(--kash-accent); }
#colophon h2, #colophon h3{ color: var(--kash-white); font-size:0.9rem; text-transform:uppercase; letter-spacing:0.1em; }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.kash-announcement-bar{
  background: var(--kash-black);
  color: var(--kash-white);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.kash-announcement-track{
  display: inline-block;
  animation: kash-marquee 22s linear infinite;
}
.kash-announcement-track span{
  display: inline-block;
  padding: 0 40px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@keyframes kash-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   CATEGORY ROW (stacked collection shelves)
   ========================================================================== */
.kash-category-row .kash-section-head{ text-align: left; margin-bottom: 20px; }
.kash-category-row-scroll{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.kash-row-products.products{
  display: flex !important;
  gap: 20px;
  flex-wrap: nowrap;
}
.kash-row-products.products li.product{
  flex: 0 0 220px;
  margin-bottom: 0 !important;
}
.kash-row-viewall{ text-align: center; margin-top: 24px; }

@media (max-width: 600px){
  .kash-row-products.products li.product{ flex-basis: 160px; }
}

/* Mobile-first tightening */
@media (max-width: 600px){
  .kash-section{ padding: 44px 16px; }
}

/* ==========================================================================
   SHOP BY CATEGORY SECTION — scoped overrides only (does not affect any
   other section, since .kash-section-head / .kash-grid / .kash-category-card
   are shared classes used elsewhere on the homepage).
   ========================================================================== */
.kash-categories-section{
  background: #FAF8F5;
}

.kash-categories-section .kash-section-head{
  text-align: center;
  margin-bottom: 48px;
}

.kash-categories-section .kash-section-head span{
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8A6A4A;
  margin-bottom: 10px;
}

.kash-categories-section .kash-section-head h2{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0;
}

.kash-categories-section .kash-section-head::after{
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #B8955A;
  margin: 16px auto 0;
}

.kash-categories-section .kash-grid{
  gap: 28px;
}

.kash-categories-section .kash-category-card{
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 4px;
  border: 1px solid #E5DED5;
  box-shadow: none;
}

.kash-categories-section .kash-category-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.kash-categories-section .kash-category-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 45%);
  pointer-events: none;
  transition: background 0.5s ease;
}

.kash-categories-section .kash-category-card:hover img{
  transform: scale(1.05);
}

.kash-categories-section .kash-category-card:hover::after{
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0) 45%);
}

.kash-categories-section .kash-category-card .kash-cat-label{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 16px;
  background: none;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 0.35s ease;
}

.kash-categories-section .kash-category-card:hover .kash-cat-label{
  transform: translateY(-5px);
}

@media (max-width: 900px){
  .kash-categories-section .kash-section-head h2{ font-size: 38px; }
}

@media (max-width: 600px){
  .kash-categories-section .kash-section-head h2{ font-size: 34px; }
  .kash-categories-section .kash-section-head span{ font-size: 12px; letter-spacing: 2.5px; }
  .kash-categories-section .kash-category-card .kash-cat-label{
    font-size: 13px;
    letter-spacing: 1.5px;
    padding: 14px 12px;
  }
  .kash-categories-section .kash-grid{ gap: 18px; }
}
