/*
Theme Name: Kowine Child
Theme URI: http://www.wpbingosite.com/kowine
Author: wpbingo
Description: This is a child theme for Kowine
Version: 1.0
Author URI: http://wpbingosite.com
Template: kowine
Text Domain: kowine-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/


/* =====================================================
   CLARETS - Category/Archive Page Styles (Lovable Design)
   v1 - 2026-03-19
   ===================================================== */

/* --- Hide default theme elements on archive pages --- */
body.archive.woocommerce .bwp-sidebar,
body.archive.woocommerce .bwp-top-bar,
body.archive.woocommerce .page-head,
body.archive.woocommerce .header-banner,
body.archive.woocommerce .main-archive-product > .bwp-sidebar,
body.archive.woocommerce .products-header,
body.archive.woocommerce .woocommerce-result-count,
body.archive.woocommerce .woocommerce-ordering,
body.archive.woocommerce .button-filter-toggle,
body.archive.woocommerce .product-button,
body.archive.woocommerce .star-rating,
body.archive.woocommerce .review-count,
body.archive.woocommerce .products-thumb .product-lable,
body.archive.woocommerce .loop-action-wishlist,
body.archive.woocommerce .product-quickview {
  display: none !important;
}

/* Hide old sidebar column */
body.archive.woocommerce .main-archive-product > .bwp-sidebar.sidebar-product {
  display: none !important;
}

/* Make product area full width */
body.archive.woocommerce .main-archive-product > .col-xl-9,
body.archive.woocommerce .main-archive-product > .col-lg-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* --- Category Hero Section --- */
.clarets-cat-hero {
  padding: 2rem 2rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.clarets-cat-hero .cat-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
}
.clarets-cat-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.clarets-cat-hero p {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* --- Sort Bar --- */
.clarets-sort-bar {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clarets-sort-bar .sort-inner {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clarets-sort-bar .sort-count {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #6b7280;
}
.clarets-sort-bar .sort-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.clarets-sort-bar .sort-btn:hover {
  color: #1a1a1a;
}

/* --- Main Content Area --- */
.clarets-cat-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 0;
}

/* --- Filter Sidebar --- */
.clarets-filter-sidebar {
  width: 240px;
  min-width: 240px;
  padding-right: 2rem;
}
.clarets-filter-sidebar h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 1rem;
}
.clarets-filter-sidebar .filter-section {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.clarets-filter-sidebar .filter-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin: 0;
}
.clarets-filter-sidebar .filter-section-title svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.clarets-filter-sidebar .filter-options {
  padding-top: 0.25rem;
}
.clarets-filter-sidebar .filter-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0;
  cursor: pointer;
}
.clarets-filter-sidebar .filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #722F37;
}
.clarets-filter-sidebar .filter-option label {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

/* --- Product Grid --- */
.clarets-cat-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
@media (max-width: 1200px) {
  .clarets-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .clarets-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clarets-filter-sidebar {
    display: none;
  }
  .clarets-cat-content {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  .clarets-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Wine Card (Archive) --- */
.clarets-wcard {
  position: relative;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.clarets-wcard:hover {
  background: #f3f4f6;
}
/* Rating badge */
.clarets-wcard .wcard-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #1c1917;
  color: #fff;
  padding: 0.125rem 0.5rem;
  z-index: 10;
}
.clarets-wcard .wcard-badge span {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
/* Bottle image */
.clarets-wcard .wcard-img {
  height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}
.clarets-wcard .wcard-img img {
  height: 11rem;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease-out;
}
.clarets-wcard:hover .wcard-img img {
  transform: scale(1.06);
}
/* Producer name */
.clarets-wcard .wcard-producer {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: #6b7280;
  text-align: center;
  margin-bottom: 0.25rem;
}
/* Wine name */
.clarets-wcard .wcard-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 0.5rem;
  min-height: 2.5rem;
}
/* Metadata (region, grape) */
.clarets-wcard .wcard-meta {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 0.25rem;
}
/* Vintage */
.clarets-wcard .wcard-vintage {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 1rem;
}
/* Price */
.clarets-wcard .wcard-price {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #722F37;
  text-align: center;
  margin-top: auto;
}

/* --- Hide default WooCommerce archive elements when custom layout active --- */
body.clarets-archive .main-archive-product,
body.clarets-archive .woocommerce-products-header,
body.clarets-archive .bwp-top-bar {
  display: none !important;
}

/* Override any theme max-width for our layout */
.clarets-cat-wrap {
  width: 100%;
  background: #fff;
}


/* ================================================
   PRODUCER HERO - Full-width background image
   ================================================ */
.producer-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.producer-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.producer-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px 48px;
    color: #fff;
}
.producer-hero-meta {
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 10px;
    font-weight: 500;
}
.producer-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ================================================
   PRODUCER ABOUT - Two-column layout
   ================================================ */
.clarets-producer-about {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 24px;
}
.producer-about-inner {
    display: flex;
    gap: 48px;
    align-items: center;
}
.producer-about-text {
    flex: 1;
}
.producer-about-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 16px;
}
.producer-about-text p {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
}
.producer-about-image {
    flex: 0 0 420px;
    max-width: 420px;
}
.producer-about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* ================================================
   WINES HEADING - section title
   ================================================ */
.clarets-wines-heading {
    text-align: center;
    max-width: 1200px;
    margin: 40px auto 24px;
    padding: 0 24px;
}
.clarets-wines-heading h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 6px;
}
.clarets-wines-heading p {
    font-size: 14px;
    color: #888;
}

/* ================================================
   RESPONSIVE - Producer page
   ================================================ */
@media (max-width: 768px) {
    .producer-hero {
        height: 280px;
    }
    .producer-hero h1 {
        font-size: 32px;
    }
    .producer-hero-content {
        padding-bottom: 32px;
    }
    .producer-about-inner {
        flex-direction: column;
        gap: 24px;
    }
    .producer-about-image {
        flex: none;
        max-width: 100%;
    }
}