/* Start custom CSS for html, class: .elementor-element-5955c16 *//* ══════════════════════════════════════
   PRODUCT PAGE STYLES
   ══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --yellow: #fed73e;
  --grey:   #a6a597;
  --dark:   #18110e;
  --border: #e3e2de;
  --text:   #18110e;
  --muted:  #a6a597;
  --bg:     #f7f6f3;
  --card:   #ffffff;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fffbe8 50%, #fff 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent, transparent 60px,
    rgba(254,215,62,0.08) 60px, rgba(254,215,62,0.08) 61px
  );
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 4px;
  line-height: 1;
  color: var(--text);
  position: relative;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero p {
  margin: 1rem auto 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

/* ── MAIN WRAPPER ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ══════════════════════════════════════
   PURE CSS TAB FILTER
   Hidden radio inputs drive which
   category section is visible.
   ══════════════════════════════════════ */

/* Hide the actual radio inputs */
.tab-inputs {
  display: none;
}

/* ── TAB BAR ── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab-label {
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.4px;
  user-select: none;
}

.tab-label:hover {
  border-color: var(--yellow);
  color: var(--text);
}

/* Highlight the active tab label */
#tab-all:checked        ~ .tabs .tab-label[for="tab-all"],
#tab-electrical:checked ~ .tabs .tab-label[for="tab-electrical"],
#tab-magnet:checked     ~ .tabs .tab-label[for="tab-magnet"],
#tab-foils:checked      ~ .tabs .tab-label[for="tab-foils"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ── CATEGORY VISIBILITY ── */

/* Default: all categories visible */
#tab-all:checked ~ .listings .category {
  display: block;
}

/* When a specific tab is selected: hide all… */
#tab-electrical:checked ~ .listings .category,
#tab-magnet:checked     ~ .listings .category,
#tab-foils:checked      ~ .listings .category {
  display: none;
}

/* …then show only the matching category */
#tab-electrical:checked ~ .listings .cat-electrical { display: block; }
#tab-magnet:checked     ~ .listings .cat-magnet     { display: block; }
#tab-foils:checked      ~ .listings .cat-foils      { display: block; }

/* ── CATEGORY SECTION ── */
.category {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.category-icon {
  font-size: 1.8rem;
}

.category-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--yellow);
}

.category-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

/* ── PRODUCT CARD ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Copper–gold accent line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--grey));
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254,215,62,0.15);
}

.card:hover::before {
  opacity: 1;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(254,215,62,0.25);
  color: var(--yellow);
  border: 1px solid rgba(24,17,14,0.18);
  width: fit-content;
}

/* ── PRODUCT TEXT ── */
.prod-name {
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.4;
}

.prod-specs {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.65;
}

.prod-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-top: auto;
}

.prod-price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

/* ── ORDER BUTTON ── */
.order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 5px;
  padding: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.order-btn:hover {
  background: #1ebe5a;
}

.order-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero      { padding: 3rem 1rem 2.5rem; }
  .page      { padding: 2rem 1rem 4rem; }
  .tab-label { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
}

/* ── CARD IMAGE ── */
.card-img {
  position: relative;
  width: calc(100% + 2.5rem);
  margin: -1.25rem -1.25rem 0;
  height: 170px;
  overflow: hidden;
  background: #f0ede8;
  border-radius: 8px 8px 0 0;
}

/* The actual product photo */
.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card:hover .card-img img {
  transform: scale(1.04);
}

/* Placeholder emoji shown when image is missing or fails to load */
.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  opacity: 0.18;
  pointer-events: none;
}

/* When onerror fires it adds .no-img — hide the broken img, show placeholder clearly */
.card-img.no-img img {
  display: none;
}

.card-img.no-img .card-img-placeholder {
  opacity: 0.35;
}

/* Yellow bottom-edge accent line on the image block */
.card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--grey));
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .card-img::after {
  opacity: 1;
}/* End custom CSS */