
:root{
    --kahvar-red:#460f15;
    --kahvar-green:#3a5850;
    --kahvar-beige:#ffeecc;

    --ink:#141414;
    --muted:rgba(0,0,0,0.68);

    --radius:18px;
    --radius-lg:26px;
    --shadow-soft:0 14px 36px rgba(0,0,0,0.10);
    --shadow:0 18px 55px rgba(0,0,0,0.14);

    --border:rgba(0,0,0,0.10);
}

.kahvar-shop-page{
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #fff;
    color: var(--ink);
}

/* optional: if you already keep these globally, remove duplicates */
.parallax-section{ position: relative; overflow: hidden; }
.parallax-bg{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: translate3d(0,0,0);
    will-change: transform;
    z-index: 0;
}
.parallax-overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
}
.parallax-content{ position: relative; z-index: 2; }

/* Compact shop header */
.shop-hero{
    background:
        radial-gradient(900px 420px at 15% 10%, rgba(70,15,21,0.10), transparent 60%),
        radial-gradient(900px 420px at 85% 20%, rgba(58,88,80,0.10), transparent 55%),
        var(--kahvar-beige);
    padding: 44px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.shop-hero h1{
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.eyebrow{
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.shop-sub{
    color: rgba(0,0,0,0.70);
    margin: 0;
    line-height: 1.7;
    max-width: 68ch;
}

.shop-toolbar{
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 767.98px){
    .shop-toolbar{
        grid-template-columns: 1fr;
    }
}

.shop-search{
    position: relative;
}
.shop-search i{
    position:absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,0,0,0.55);
}
.shop-search input{
    width: 100%;
    padding: 11px 12px 11px 38px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.78);
    outline: none;
}

.shop-select{
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.78);
    outline: none;
    min-width: 190px;
}

.shop-meta{
    display:flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    color: rgba(0,0,0,0.65);
    font-size: 0.95rem;
}

.shop-chip{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(58,88,80,0.10);
    border: 1px solid rgba(58,88,80,0.18);
    color: var(--kahvar-green);
    font-weight: 700;
    white-space: nowrap;
}

/* Alerts (toast-like) */
.alert-kahvar{
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.10);
    padding: 12px 14px;
    background: rgba(255,255,255,0.85);
    box-shadow: var(--shadow-soft);
}
.alert-kahvar-success{
    border-color: rgba(58,88,80,0.25);
}

/* Grid section */
.shop-section{
    padding: 40px 0 70px 0;
    background:
        radial-gradient(900px 420px at 20% 0%, rgba(255,238,204,0.55), transparent 55%),
        #fff;
}

/* Product cards */
.product-card{
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(0,0,0,0.14);
}

.product-media{
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #f4f4f4;
}

.product-image{
    position:absolute;
    inset:0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 260ms ease;
}

.product-card:hover .product-image{
    transform: scale(1.04);
}

.product-quick{
    position:absolute;
    left: 14px;
    bottom: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 2;
}

.product-card:hover .product-quick{
    opacity: 1;
    transform: translateY(0);
}

.btn-kahvar-soft{
    border-radius: 999px;
    border: 1px solid rgba(255,238,204,0.35);
    background: rgba(0,0,0,0.40);
    color: #fff;
    font-weight: 700;
    padding: 7px 10px;
    font-size: 0.9rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-body{
    padding: 16px 16px 14px 16px;
}

.product-title{
    font-size: 1.08rem;
    font-weight: 900;
    margin: 0 0 6px 0;
    color: var(--ink);
}

.product-title a{
    color: inherit;
    text-decoration: none;
}

.badge-unit{
    display:inline-flex;
    align-items:center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,238,204,0.80);
    border: 1px solid rgba(70,15,21,0.12);
    color: var(--kahvar-red);
    font-weight: 800;
    font-size: 0.85rem;
}

.clamp-2{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    color: rgba(0,0,0,0.72);
    line-height: 1.55;
    margin: 10px 0 12px 0;
}

.price-label{
    font-size: 0.78rem;
    opacity: 0.75;
}
.price-value{
    font-weight: 900;
    color: var(--ink);
}

/* Buttons */
.kahvar-btn-primary{
    background: var(--kahvar-beige);
    border-color: rgba(255,238,204,0.65);
    color: var(--kahvar-red);
    font-weight: 900;
    border-radius: 12px;
}
.kahvar-btn-primary:hover{ opacity: 0.96; }

/* Empty state */
.empty-card{
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

/* Pagination (simple styling) */
.pagination{
    gap: 6px;
}
.pagination .page-link{
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.70);
}
.pagination .page-item.active .page-link{
    background: var(--kahvar-red);
    border-color: var(--kahvar-red);
    color: #fff;
}
.pagination .page-link:hover{
    background: rgba(255,238,204,0.70);
}

/* Compact Shop Header */
.shop-hero {
    background:
        radial-gradient(900px 420px at 15% 10%, rgba(70,15,21,0.10), transparent 60%),
        radial-gradient(900px 420px at 85% 20%, rgba(58,88,80,0.10), transparent 55%),
        var(--kahvar-beige);
    padding: 60px 0;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
}

.shop-hero h1 {
    font-size: clamp(1.9rem, 2.8vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--kahvar-red);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 12px;
    color: var(--kahvar-green);
}

.shop-sub {
    color: rgba(0,0,0,0.70);
    margin: 0;
    line-height: 1.7;
    max-width: 70ch;
}

.shop-toolbar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.shop-toolbar .shop-search {
    position: relative;
}

.shop-toolbar .shop-search input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.shop-toolbar .shop-search input:focus {
    outline: none;
    border-color: var(--kahvar-red);
}

.shop-toolbar .shop-select {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 1rem;
}

.shop-toolbar .shop-select:focus {
    border-color: var(--kahvar-red);
}

.shop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    color: rgba(0,0,0,0.65);
    font-size: 0.95rem;
}

.shop-meta .shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(58,88,80,0.10);
    border: 1px solid rgba(58,88,80,0.18);
    color: var(--kahvar-green);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .shop-toolbar {
        grid-template-columns: 1fr;
    }

    .shop-hero h1 {
        font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    }
}

/* Results Filter Chips */
.shop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(58, 88, 80, 0.12);
    border: 1px solid rgba(58, 88, 80, 0.18);
    color: var(--kahvar-green);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.shop-chip:hover {
    background: rgba(58, 88, 80, 0.18);
    cursor: pointer;
}

.shop-chip i {
    font-size: 1rem;
}

.shop-chip i.fa-xmark {
    color: var(--kahvar-red);
}

.shop-chip-clear {
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 12px;
    color: var(--kahvar-red);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--kahvar-red);
    transition: background-color 0.3s ease;
}

.shop-chip-clear:hover {
    background-color: var(--kahvar-red);
    color: #fff;
}

/* Alert for when no products are found */
.empty-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border-radius: 18px;
    text-align: center;
}

.empty-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.empty-card p {
    font-size: 1rem;
    color: rgba(0,0,0,0.7);
}

/* Pagination Styling */
.pagination {
    gap: 6px;
    justify-content: center;
}

.pagination .page-link {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.70);
    padding: 8px 16px;
}

.pagination .page-item.active .page-link {
    background: var(--kahvar-red);
    border-color: var(--kahvar-red);
    color: #fff;
}

.pagination .page-link:hover {
    background: rgba(255, 238, 204, 0.7);
}

/* Compact Shop Header */
.shop-hero {
    background: var(--kahvar-beige);
    padding: 40px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
}

.shop-hero h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--kahvar-red);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
    color: var(--kahvar-green);
}

.shop-sub {
    color: rgba(0,0,0,0.70);
    margin: 0;
    line-height: 1.7;
    max-width: 68ch;
}

.shop-toolbar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 200px 200px auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 767.98px) {
    .shop-toolbar {
        grid-template-columns: 1fr;
    }
}

.shop-toolbar .shop-search {
    position: relative;
}

.shop-toolbar .shop-search input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.shop-toolbar .shop-search input:focus {
    outline: none;
    border-color: var(--kahvar-red);
}

.shop-toolbar .shop-select {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 1rem;
}

.shop-toolbar .shop-select:focus {
    border-color: var(--kahvar-red);
}

.shop-toolbar button {
    background-color: var(--kahvar-red);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.shop-toolbar button:hover {
    background-color: rgba(70,15,21,0.8);
}

/* Results Filter Chips */
.shop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(58, 88, 80, 0.12);
    border: 1px solid rgba(58, 88, 80, 0.18);
    color: var(--kahvar-green);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.shop-chip:hover {
    background: rgba(58, 88, 80, 0.18);
    cursor: pointer;
}

.shop-chip i {
    font-size: 1rem;
}

.shop-chip i.fa-xmark {
    color: var(--kahvar-red);
}

.shop-chip-clear {
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 12px;
    color: var(--kahvar-red);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--kahvar-red);
    transition: background-color 0.3s ease;
}

.shop-chip-clear:hover {
    background-color: var(--kahvar-red);
    color: #fff;
}

/* Empty state */
.empty-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border-radius: 18px;
    text-align: center;
}

.empty-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.empty-card p {
    font-size: 1rem;
    color: rgba(0,0,0,0.7);
}

/* Pagination Styling */
.pagination {
    gap: 6px;
    justify-content: center;
}

.pagination .page-link {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.70);
    padding: 8px 16px;
}

.pagination .page-item.active .page-link {
    background: var(--kahvar-red);
    border-color: var(--kahvar-red);
    color: #fff;
}

.pagination .page-link:hover {
    background: rgba(255, 238, 204, 0.7);
}

/* Styling for Min/Max Inputs */
.shop-toolbar .shop-select,
.shop-toolbar .shop-search input,
.shop-toolbar input[type="number"] {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 1rem;
    width: 100%;  /* Full width for inputs */
}

/* Min and Max Inputs Styling */
.shop-toolbar input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: right;
}

.shop-toolbar .shop-select {
    min-width: 200px; /* Ensures it's not too small */
}

/* Input Focus */
.shop-toolbar input:focus,
.shop-toolbar select:focus {
    border-color: var(--kahvar-red);
    outline: none;
}

/* Button Styling */
.shop-toolbar button {
    background-color: var(--kahvar-red);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.shop-toolbar button:hover {
    background-color: rgba(70,15,21,0.8);
}

/* Styling for chips */
.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(58, 88, 80, 0.12);
    border: 1px solid rgba(58, 88, 80, 0.18);
    color: var(--kahvar-green);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.shop-chip:hover {
    background: rgba(58, 88, 80, 0.18);
    cursor: pointer;
}

.shop-chip i {
    font-size: 1rem;
}

.shop-chip i.fa-xmark {
    color: var(--kahvar-red);
}

/* Sticky toolbar */
.shop-hero {
  position: relative;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 12px;
  z-index: 30;
}

/* tighten for medium screens */
@media (max-width: 991px) {
  .shop-toolbar {
    grid-template-columns: 1fr auto;
  }
  .shop-actions { display: flex; gap: 10px; }
}

.shop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Roast segmented */
.roast-seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.6);
}

.roast-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(0,0,0,.75);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.roast-pill:hover {
  transform: translateY(-1px);
}

.roast-pill.is-active {
  background: rgba(0,0,0,.88);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* Inputs in drawer */
.shop-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  outline: none;
}

/* Ghost button */
.kahvar-btn-ghost {
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  padding: 10px 12px;
}
.kahvar-btn-ghost:hover {
  background: rgba(255,255,255,.95);
}

/* Filter drawer */
.filter-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.filter-drawer.is-open { display: block; }

.filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.filter-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.08);
  box-shadow: -24px 0 60px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}
.filter-drawer.is-open .filter-panel { transform: translateX(0); }

.filter-head, .filter-foot {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filter-head {
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.filter-foot {
  border-top: 1px solid rgba(0,0,0,.08);
}
.filter-close {
  border: 0;
  background: transparent;
  font-size: 18px;
}

.filter-body {
  padding: 14px 16px;
  overflow: auto;
}

.filter-group { margin-bottom: 14px; }
.filter-label { font-size: 12px; font-weight: 700; opacity: .8; margin-bottom: 6px; display:block; }
.filter-help { font-size: 12px; opacity: .65; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Product attribute pills */
.product-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
}

.pill-roast {
  background: rgba(0,0,0,.88);
  color: #fff;
  border-color: rgba(0,0,0,.88);
}

.pill-origin { opacity: .9; }
.pill-flavor { opacity: .85; }
.pill-more { opacity: .7; }

/* Card hover: premium lift */
.product-card {
  transition: transform .14s ease, box-shadow .14s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,.10);
}
.product-image {
  transition: transform .18s ease;
}
.product-card:hover .product-image {
  transform: scale(1.03);
}

.shop-filter-rail {
  position: sticky;
  top: 110px;
}

.roast-seg {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.roast-pill {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.roast-pill.is-active {
  background: rgba(0,0,0,.92);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 10px;
}

.shop-search {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
}

.shop-search input {
  font-size: 14px;
  font-weight: 500;
}

.shop-search:focus-within {
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.22);
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.18));
  opacity: .35;
  pointer-events: none;
}

/* Brand-colored roast active state */
.roast-pill.is-active{
  background: var(--kahvar-red);
  color: var(--kahvar-beige);
  box-shadow: 0 12px 28px rgba(70,15,21,0.22);
}

/* Optional: subtle hover hint */
.roast-pill:hover{
  background: rgba(58,88,80,0.10);
}

/* --- FIX: search icon alignment (because .shop-search got padding later) --- */
.shop-search{
  position: relative;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.shop-search i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  color: rgba(0,0,0,0.55);
}

.shop-search input{
  width: 100%;
  padding-left: 44px !important; /* makes room for icon */
  height: 46px;                 /* stable vertical centering */
  line-height: 46px;            /* optional, helps on some browsers */
  border-radius: 16px;
}

/* --- FIX: product images not showing in the shop cards --- */
.product-media{
  position: relative !important;
  height: 210px !important;     /* ensure the absolute child has a box */
  overflow: hidden;
  background: #f4f4f4;
}

.product-image{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

/* --- Product attributes: cleaner, more branded --- */
.product-attrs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}

/* Base pill */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  color: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

/* Roast pill: use brand colors */
.pill-roast{
  border-color: rgba(70, 15, 21, .18);
  background: rgba(70, 15, 21, .92);
  color: var(--kahvar-beige);
}

/* Origin pill: green tint */
.pill-origin{
  border-color: rgba(58, 88, 80, .22);
  background: rgba(58, 88, 80, .12);
  color: var(--kahvar-green);
}

/* Flavor pills: subtle */
.pill-flavor{
  border-color: rgba(70, 15, 21, .12);
  background: rgba(255, 238, 204, .72);
  color: var(--kahvar-red);
  font-weight: 800;
}

/* "+2" pill: quiet */
.pill-more{
  border-style: dashed;
  opacity: .75;
}

/* Optional: keep attrs from pushing unit badge down too much */
.product-attrs + .badge-unit{
  margin-top: 6px;
}

/* ==========================
   Premium product meta (attrs)
   ========================== */

.product-meta{
  margin: 10px 0 10px;
}

/* Top row: roast + origin chips */
.meta-top{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.78);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

/* Small dot accent (luxury detail) */
.meta-chip::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
  opacity: .95;
}

/* Roast: deep maroon dot + slightly warmer tint */
.meta-chip--roast{
  border-color: rgba(70,15,21,0.14);
  background: rgba(255,238,204,0.55);
  color: var(--kahvar-red);
}
.meta-chip--roast::before{
  background: var(--kahvar-red);
}

/* Origin: green dot + clean neutral background */
.meta-chip--origin{
  border-color: rgba(58,88,80,0.16);
  background: rgba(255,255,255,0.78);
  color: rgba(0,0,0,0.72);
}
.meta-chip--origin::before{
  background: var(--kahvar-green);
}

/* Notes row: elegant, understated */
.meta-notes{
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.notes-label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

.notes-list{
  font-size: 13px;
  font-weight: 650;
  color: rgba(0,0,0,0.72);
}

.notes-more{
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  color: rgba(0,0,0,0.58);
  font-size: 12px;
  font-weight: 800;
}

.product-meta{
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ==========================
   PREMIUM: Roast badge overlay
   ========================== */

.product-media{
  position: relative; /* required for overlay */
}

.media-badges{
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.media-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;

  background: rgba(255,238,204,0.92); /* beige glass */
  border: 1px solid rgba(70,15,21,0.14);
  color: var(--kahvar-red);

  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media-badge::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--kahvar-green); /* GREEN accent */
}

/* ==========================
   PREMIUM: Product meta area
   ========================== */

.product-meta{
  margin: 12px 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.meta-top{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;

  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.74);

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.meta-chip::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--kahvar-green); /* GREEN accent dot */
}

/* Origin chip slightly warmer */
.meta-chip--origin{
  border-color: rgba(58,88,80,0.16);
}

/* Notes row */
.meta-notes{
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.notes-label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

.notes-list{
  font-size: 13px;
  font-weight: 650;
  color: rgba(0,0,0,0.72);
}

.notes-more{
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(58,88,80,0.24);
  background: rgba(58,88,80,0.10); /* GREEN tint */
  color: var(--kahvar-green);
  font-size: 12px;
  font-weight: 900;

  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

/* ==========================
   GREEN: hover/focus accents (expensive feel)
   ========================== */

/* Only apply hover-lift on devices that actually hover */
@media (hover:hover) and (pointer:fine){
  .meta-chip:hover{
    transform: translateY(-1px);
    border-color: rgba(58,88,80,0.38);     /* GREEN border */
    box-shadow: 0 16px 34px rgba(58,88,80,0.10);
  }

  .notes-more:hover{
    transform: translateY(-1px);
    background: rgba(58,88,80,0.14);
    border-color: rgba(58,88,80,0.38);
  }

  .media-badge:hover{
    border-color: rgba(58,88,80,0.26);
    box-shadow: 0 18px 40px rgba(58,88,80,0.12);
  }
}

/* Keyboard focus should also feel premium */
.meta-chip:focus,
.meta-chip:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(58,88,80,0.18);
  border-color: rgba(58,88,80,0.40);
}

.kahvar-btn-primary:hover{
  filter: brightness(1.02);
  box-shadow: 0 18px 40px rgba(58,88,80,0.18);
}

.product-media{
  position: relative;
  height: auto;          /* keep your card height */

  border-radius: inherit; /* so image respects the card rounding */
  background: #f4f4f4;    /* nice fallback */
}

.product-link{
  display: block;
  height: 100%;
}

.product-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* same look as background-size: cover */
  transform: scale(1);
  transition: transform 260ms ease;
}

.product-card:hover .product-img{
  transform: scale(1.03);
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.18) 100%
    );
}

.media-badge--roast {
    background: #fff;
    border: 1px solid rgba(58,88,80,.35);
    box-shadow: 0 0 0 3px rgba(58,88,80,.08);
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-card:hover .pill {
    background: rgba(58,88,80,.08);
    border-color: rgba(58,88,80,.4);
}

.notes-label {
    font-size: .65rem;
    letter-spacing: .14em;
    opacity: .6;
}

.notes-list {
    font-weight: 500;
}

.filter-group.is-active {
    border-left: 3px solid var(--kahvar-green);
    padding-left: 12px;
}

.kahvar-btn-primary i {
    opacity: .85;
}
