:root {
    --red: #d72b2b;
    --red-dark: #9e1818;
    --orange: #e8621a;
    --yellow: #f5a623;
    --green: #25d366;
    --bg: #070302;
    --panel: rgba(22, 12, 8, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.055);
    --border: rgba(245, 166, 35, 0.18);
    --text: #ffffff;
    --muted: #a99486;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(215, 43, 43, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(245, 166, 35, 0.12), transparent 28%),
        var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    padding-top: 86px;
}

button, a { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.shop-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 86px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    background: rgba(7, 3, 2, 0.9);
    border-bottom: 1px solid rgba(215, 43, 43, 0.35);
    backdrop-filter: blur(18px);
}

.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 0 26px rgba(215, 43, 43, 0.45);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}
.brand-text small { color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-size: 10px; }

.shop-nav-links { display: flex; gap: 28px; align-items: center; }
.shop-nav-links a {
    font-size: 13px;
    letter-spacing: 2px;
    color: #d7c7bd;
    text-transform: uppercase;
    transition: 0.25s;
}
.shop-nav-links a:hover { color: var(--yellow); }

.cart-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(215, 43, 43, 0.28);
}
.cart-trigger b {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.shop-hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 34px;
    align-items: center;
    padding: 56px 0;
}
.eyebrow {
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 800;
}
.hero-copy h1 {
    margin-top: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.92;
    text-transform: uppercase;
    max-width: 720px;
}
.hero-copy p {
    max-width: 620px;
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.primary-shop-btn, .secondary-shop-btn {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.3s;
}
.primary-shop-btn {
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 16px 35px rgba(215, 43, 43, 0.3);
}
.secondary-shop-btn {
    background: transparent;
    color: var(--yellow);
    border: 1px solid rgba(245, 166, 35, 0.38);
}
.primary-shop-btn:hover, .secondary-shop-btn:hover { transform: translateY(-4px); }

.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.hero-card i { font-size: 44px; color: var(--orange); margin-bottom: 24px; }
.hero-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; margin-bottom: 10px; }
.hero-card p { color: var(--muted); line-height: 1.7; }

.shop-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 24px;
}
.shop-toolbar h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 44px;
    text-transform: uppercase;
}
.stock-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 999px;
}
.dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 14px var(--green); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 80px;
}
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    transition: 0.35s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(215, 43, 43, 0.75);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
}
.product-image {
    height: 250px;
    display: grid;
    place-items: center;
    padding: 28px;
    background: radial-gradient(circle, rgba(245,166,35,0.16), rgba(0,0,0,0.25) 58%);
}
.product-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.55)); }
.product-body { padding: 20px; }
.product-body h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; line-height: 1; margin-bottom: 8px; }
.product-desc { color: var(--muted); min-height: 44px; font-size: 14px; line-height: 1.55; }
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
}
.price { font-size: 23px; font-weight: 800; color: var(--yellow); }
.stock-pill {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    color: #7cffaa;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
.stock-pill.out { background: rgba(255,255,255,0.08); color: #bbb; border-color: rgba(255,255,255,0.18); }
.qty-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin-bottom: 10px; }
.qty-row input {
    min-width: 0;
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
}
.card-btn, .buy-btn {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-btn { background: linear-gradient(135deg, var(--red), var(--orange)); }
.buy-btn { background: #25d366; margin-top: 10px; }
.card-btn:disabled, .buy-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.details-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--yellow);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(8px);
}
.cart-drawer.open { display: flex; }
.cart-panel {
    width: min(500px, 100%);
    height: 100%;
    overflow: auto;
    background: #0d0705;
    border-left: 1px solid rgba(215,43,43,0.35);
    padding: 26px;
    animation: drawerIn 0.28s ease;
}
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cart-header h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 38px; }
.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: white;
    cursor: pointer;
}
.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    margin-bottom: 12px;
}
.cart-item img { width: 64px; height: 64px; object-fit: contain; }
.cart-item h4 { font-size: 15px; margin-bottom: 5px; }
.cart-item small { color: var(--muted); }
.cart-controls { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cart-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: white;
    cursor: pointer;
}
.remove-btn { color: #ff7d7d; background: transparent; border: none; cursor: pointer; }
.empty-cart { color: var(--muted); text-align: center; padding: 34px 12px; border: 1px dashed rgba(255,255,255,0.14); border-radius: 18px; }
.cart-summary {
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.18);
}
.cart-summary div { display: flex; justify-content: space-between; font-size: 18px; }
.cart-summary small { display: block; margin-top: 8px; color: var(--muted); }
.checkout-form h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 25px; margin-bottom: 12px; }
.checkout-form input, .checkout-form textarea {
    width: 100%;
    margin-bottom: 11px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.32);
    color: white;
    outline: none;
}
.checkout-form textarea { min-height: 88px; resize: vertical; }
.checkout-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 13px;
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
}
.checkout-btn.whatsapp { background: #25d366; }
.checkout-btn.email { background: linear-gradient(135deg, var(--red), var(--orange)); }
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.86);
    color: white;
    border: 1px solid rgba(255,255,255,0.14);
    padding: 13px 18px;
    border-radius: 999px;
    z-index: 3000;
    transition: 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1050px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    body { padding-top: 78px; }
    .shop-navbar { height: 78px; padding: 0 16px; }
    .brand-text small, .shop-nav-links { display: none; }
    .brand-text strong { font-size: 18px; }
    .cart-trigger span { display: none; }
    .shop-hero { grid-template-columns: 1fr; min-height: auto; padding: 44px 0; }
    .hero-card { padding: 24px; }
    .shop-toolbar { align-items: flex-start; flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
    .product-image { height: 220px; }
}

/* Category tabs like index product tabs */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
}

.shop-tab-btn {
    min-height: 56px;
    padding: 0 34px;
    border: none;
    border-right: 1px solid var(--border);
    background: transparent;
    color: #c9b9ad;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.shop-tab-btn:last-child { border-right: none; }
.shop-tab-btn:hover { color: var(--yellow); background: rgba(215, 43, 43, 0.08); }
.shop-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--red-dark), var(--red), var(--orange));
    box-shadow: inset 0 0 18px rgba(0,0,0,0.22);
}

.category-intro {
    margin: 0 0 24px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.category-intro h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    margin: 7px 0 8px;
}

.category-intro p {
    color: var(--muted);
    max-width: 780px;
    line-height: 1.65;
}

/* Ensures shop cards stay professional: image above, text below */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-desc { flex: 1; }

.filling-swatch {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    display: flex;
    align-items: end;
    justify-content: flex-start;
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 45px rgba(0,0,0,0.22), 0 20px 35px rgba(0,0,0,0.22);
}

.filling-swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.22), transparent 38%),
        linear-gradient(0deg, rgba(0,0,0,0.4), transparent 48%);
}

.filling-swatch span {
    position: relative;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.cart-swatch {
    width: 64px;
    height: 64px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,0.14);
}

.muted-link {
    color: var(--muted);
    cursor: default;
}

@media (max-width: 760px) {
    .shop-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .shop-tab-btn {
        border-right: none;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .shop-tab-btn:last-child { border-bottom: none; }
    .category-intro { padding: 18px; }
}

/* === FIX: keep product images above text, never overlapping === */
.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-image {
    position: relative;
    z-index: 1;
    flex: 0 0 300px;
    height: 300px;
    overflow: hidden;
    padding: 22px;
}

.product-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.product-body {
    position: relative;
    z-index: 3;
    flex: 1;
    background: linear-gradient(180deg, rgba(12, 6, 4, 0.98), rgba(22, 12, 8, 0.96));
    border-top: 1px solid rgba(245, 166, 35, 0.14);
}

@media (max-width: 1050px) {
    .product-image {
        flex-basis: 280px;
        height: 280px;
    }
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    grid-template-areas:
      "image title"
      "image desc"
      "image price"
      "actions actions"
      "buy buy"
      "details details";
    gap: 10px 16px;
    padding: 18px;
    border-radius: 22px;
    align-items: start;
  }

  .product-badge {
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 5px 10px;
    z-index: 5;
  }

  .product-image {
    grid-area: image;
    width: 108px;
    height: 148px;
    min-height: 148px;
    margin: 0;
    padding: 10px;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: radial-gradient(circle, rgba(245,166,35,0.14), rgba(0,0,0,0.24) 58%);
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    border-radius: 12px;
  }

  .product-body {
    display: contents;
  }

  .product-body h3 {
    grid-area: title;
    margin: 0;
    font-size: 19px;
    line-height: 1.08;
    align-self: end;
  }

  .product-desc {
    grid-area: desc;
    min-height: auto;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .price-row {
    grid-area: price;
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .price {
    font-size: 18px;
    line-height: 1;
  }

  .stock-pill {
    font-size: 11px;
    padding: 5px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .qty-row {
    grid-area: actions;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    margin: 4px 0 0;
  }

  .qty-row input {
    height: 42px;
    border-radius: 12px;
    font-size: 16px;
    padding: 0 10px;
  }

  .card-btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  .buy-btn {
    grid-area: buy;
    width: 100%;
    min-height: 42px;
    margin-top: 0;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  .details-link,
  .muted-link {
    grid-area: details;
    display: inline-flex;
    width: fit-content;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 1px;
  }
}