/* =========================================
   EVERBOLT FOODS – PRODUCT CSS
   product.css
   ========================================= */

/* Sinhala font for රු symbol */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;600;700&family=Noto+Serif+Sinhala:wght@400;700&display=swap');

/* ═══════════════════════════════════════════════
   PRODUCT DETAIL PAGE — Premium Self-contained
   All pd-* classes use only global base.html vars
════════════════════════════════════════════════ */

/* ── BREADCRUMB ───────────────────────────────── */
.pd-breadcrumb-bar {
    background: #fafafa;
    border-bottom: 1px solid #f2f2f7;
    padding: 14px 0;
    margin-top: 80px; /* clears fixed header */
}

.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.pd-breadcrumb a {
    color: var(--brand-red);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pd-breadcrumb a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.pd-bc-sep {
    color: #c7c7cc;
    font-size: 0.65rem;
}

.pd-bc-current {
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── SECTION ──────────────────────────────────── */
.pd-section {
    padding: 48px 0 80px;
    background: #ffffff;
}

/* ── LAYOUT GRID ──────────────────────────────── */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

/* ── IMAGE GALLERY ────────────────────────────── */
.pd-gallery {
    position: sticky;
    top: 100px;
}

.pd-main-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f2f2f7;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.pd-main-img-wrap:hover .pd-main-img {
    transform: scale(1.04);
}

.pd-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #c7c7cc;
    font-size: 0.9rem;
}

.pd-no-img i {
    font-size: 3rem;
}

/* ── PRODUCT INFO ─────────────────────────────── */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-red);
    margin: 0;
}

.pd-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
}

.pd-badge-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #27ae60;
    background: rgba(39,174,96,0.08);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
}

.pd-badge-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-red);
    background: var(--brand-red-light);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
}

.pd-price-wrap {
    margin: 0;
}

.pd-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-red);
    font-feature-settings: 'tnum';
}

.pd-divider {
    height: 1px;
    background: #f2f2f7;
    margin: 0;
}

.pd-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.pd-desc p {
    margin: 0;
}

/* ── META TAGS ────────────────────────────────── */
.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fafafa;
    border: 1px solid #f2f2f7;
    padding: 6px 14px;
    border-radius: 100px;
}

.pd-meta-tag a {
    color: var(--brand-red);
    text-decoration: none;
}

.pd-meta-tag a:hover {
    text-decoration: underline;
}

.pd-meta-tag i {
    color: var(--brand-red);
}

.pd-meta-green {
    color: #27ae60;
    border-color: rgba(39,174,96,0.15);
    background: rgba(39,174,96,0.05);
}

.pd-meta-green i {
    color: #27ae60;
}

/* ── CART FORM ────────────────────────────────── */
.pd-cart-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pd-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e5ea;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.pd-qty-btn {
    background: none;
    border: none;
    width: 44px;
    height: 52px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--brand-red);
    transition: background 0.2s ease;
    line-height: 1;
}

.pd-qty-btn:hover {
    background: #fafafa;
}

.pd-qty-input {
    width: 52px;
    height: 52px;
    border: none;
    border-left: 1px solid #e5e5ea;
    border-right: 1px solid #e5e5ea;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: #ffffff;
    -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd-add-btn {
    flex: 1;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background: var(--brand-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.pd-add-btn:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192,57,43,0.25);
}

.pd-inquire-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background: var(--color-tea-brown);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.pd-inquire-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,63,32,0.25);
}

/* ── CONTACT ACTIONS ──────────────────────────── */
.pd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-btn-email,
.pd-btn-whatsapp {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pd-btn-email {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid #e5e5ea;
}

.pd-btn-email:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: var(--brand-red-light);
}

.pd-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
}

.pd-btn-whatsapp:hover {
    background: #1fb857;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}

/* ── TRUST BADGES ─────────────────────────────── */
.pd-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f2f2f7;
}

.pd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 16px 8px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #f2f2f7;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pd-trust-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.pd-trust-icon {
    font-size: 1.5rem;
}

.pd-trust-item span:last-child {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ── TABS ─────────────────────────────────────── */
.pd-tabs-wrap {
    border-top: 1px solid #f2f2f7;
    margin-bottom: 64px;
}

.pd-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #f2f2f7;
    gap: 0;
}

.pd-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.pd-tab:hover {
    color: var(--brand-red);
}

.pd-tab.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.pd-tab-panel {
    display: none;
    padding: 36px 0;
}

.pd-tab-panel.active {
    display: block;
}

.pd-tab-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pd-tab-body {
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 760px;
}

.pd-tab-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-red);
    margin: 24px 0 8px;
}

.pd-tab-body p {
    margin-bottom: 16px;
}

.pd-tab-body a {
    color: var(--brand-red);
    text-decoration: none;
}

.pd-tab-body a:hover {
    text-decoration: underline;
}

.pd-tab-body ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.pd-tab-body li {
    margin-bottom: 8px;
}

.pd-tab-body li i {
    color: var(--brand-red);
    margin-right: 6px;
}

/* ── INFO TABLE ───────────────────────────────── */
.pd-info-table {
    width: 100%;
    max-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f2f2f7;
}

.pd-info-table th,
.pd-info-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f2f2f7;
}

.pd-info-table tr:last-child th,
.pd-info-table tr:last-child td {
    border-bottom: none;
}

.pd-info-table th {
    background: #fafafa;
    color: var(--text-secondary);
    font-weight: 600;
    width: 38%;
    font-family: var(--font-heading);
}

.pd-info-table td {
    color: var(--text-primary);
}

/* ── RELATED PRODUCTS ─────────────────────────── */
.pd-related {
    padding-top: 48px;
    border-top: 1px solid #f2f2f7;
}

.pd-related-header {
    margin-bottom: 32px;
}

.pd-related-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pd-rel-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f2f2f7;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.pd-rel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(192,57,43,0.10);
}

.pd-rel-img {
    height: 180px;
    background: #fafafa;
    padding: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-rel-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.pd-rel-card:hover .pd-rel-img img {
    transform: scale(1.06);
}

.pd-rel-no-img {
    font-size: 2rem;
    color: #c7c7cc;
}

.pd-rel-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pd-rel-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
}

.pd-rel-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
}

.pd-rel-price {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-top: auto;
    padding-top: 8px;
    display: block;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 992px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pd-gallery {
        position: static;
    }

    .pd-trust {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pd-cart-form {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-add-btn {
        width: 100%;
    }

    .pd-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── STICKY MOBILE ADD-TO-CART ────────────────── */
.pd-sticky-mobile-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 12px 24px;
    z-index: 999;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f2f2f7;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.pd-sticky-mobile-cart.visible {
    transform: translateY(0);
}

.pd-sticky-info {
    display: flex;
    flex-direction: column;
}

.pd-sticky-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pd-sticky-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-red);
}

.pd-sticky-btn {
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}

@media (max-width: 768px) {
    .pd-sticky-mobile-cart {
        display: flex;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--secondary);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--border);
    font-size: 1rem;
}

.breadcrumb-current {
    color: var(--secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ===== PAGE WRAPPER ===== */
.product-detail-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--bg-color);
    animation: fadeInUp 0.6s ease both;
}

/* ===== PRODUCT LAYOUT ===== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 860px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

/* ===== GALLERY ===== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-medium);
}

.gallery-main-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 55%, var(--light-bg) 100%);
    overflow: hidden;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-lg);
    transition: transform var(--transition), opacity var(--transition);
}

.gallery-main-inner:hover .gallery-main-img {
    transform: scale(1.04);
}

.sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-family: var(--font-heading);
    font-style: italic;
    opacity: 0.6;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.thumb-btn {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
    flex-shrink: 0;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.thumb-btn.thumb-active {
    border-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

/* ===== PRODUCT INFO ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.product-brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0;
}

.product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-body);
    line-height: 1.15;
    margin-bottom: 0;
}

/* ===== PRICE ===== */
.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.price-original {
    font-size: 1.1rem;
    color: var(--secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-save-tag {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.product-divider {
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    margin: 0;
}

.product-description {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-body);
    border-left: 3px solid var(--border);
    background: var(--light-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
}

.product-description p {
    margin-bottom: 0;
}

/* ===== META (SKU / category / stock) ===== */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
    color: var(--secondary);
}

.product-meta a {
    color: var(--primary);
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

.stock-status {
    font-weight: 600;
}

.stock-status.in-stock  { color: var(--green-fresh); }
.stock-status.out-of-stock { color: var(--primary); }

/* ===== QUANTITY + ADD TO CART ===== */
.product-cart-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary);
    transition: background var(--transition);
}

.qty-btn:hover {
    background: var(--light-bg);
}

.qty-input {
    width: 48px;
    height: 48px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--white);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-to-cart {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.2px;
}

.btn-add-to-cart:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-add-to-cart.btn-added {
    background: var(--green-fresh);
}

/* ===== CONTACT ACTION BUTTONS ===== */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-email,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-email {
    background: transparent;
    color: var(--text-body);
    border: 1.5px solid var(--border);
}

.btn-email:hover {
    background: var(--light-bg);
    border-color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background: #1fb857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

@media (min-width: 480px) {
    .product-actions {
        flex-direction: row;
    }

    .btn-email,
    .btn-whatsapp {
        flex: 1 1 160px;
    }
}

/* ===== TRUST BADGES ===== */
.product-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

@media (min-width: 480px) {
    .product-badges {
        grid-template-columns: repeat(6, 1fr);
    }
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: all var(--transition);
}

.badge-item:hover .badge-icon {
    border-color: var(--primary);
    background: var(--light-bg);
    transform: translateY(-2px);
}

.badge-item span {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--secondary);
    line-height: 1.3;
}

/* ===== TABS ===== */
.product-tabs-section {
    margin-top: var(--space-3xl);
    border-top: 2px solid var(--border);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.tab-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
    padding: var(--space-xl) 0;
}

.tab-panel.tab-panel-active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.tab-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-body);
    margin-bottom: var(--space-md);
}

.tab-content-body {
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 760px;
}

.tab-content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    margin: var(--space-lg) 0 var(--space-xs);
}

.tab-content-body p {
    margin-bottom: var(--space-md);
}

.tab-content-body a {
    color: var(--primary);
}

.tab-content-body ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.tab-content-body li {
    margin-bottom: var(--space-xs);
}

/* Additional info table */
.info-table {
    width: 100%;
    max-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.info-table th,
.info-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    color: var(--secondary);
    font-weight: 600;
    background: var(--light-bg);
    width: 38%;
}

.info-table td {
    color: var(--text-body);
}

/* ===== RELATED PRODUCTS ===== */
.related-products-section {
    margin-top: var(--space-3xl);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--text-body);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* ═══════════════════════════════════════════════
   PRODUCTS LISTING PAGE — Premium Self-contained
═══════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────── */
.pr-hero {
    padding: 120px 24px 64px;   /* 120px clears the 80px fixed header */
    background: linear-gradient(135deg, #fff8f7 0%, #fff 60%, #fafafa 100%);
    text-align: center;
    border-bottom: 1px solid #f2f2f7;
    position: relative;
    overflow: hidden;
}

.pr-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(192,57,43,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pr-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 14px;
}

.pr-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.pr-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── MAIN SECTION ─────────────────────────────── */
.pr-section {
    padding: 48px 24px 80px;
    background: #ffffff;
}

.pr-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── TOOLBAR (search + clear) ─────────────────── */
.pr-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pr-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 480px;
}

.pr-search-form input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid #e5e5ea;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #fafafa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pr-search-form input:focus {
    outline: none;
    border-color: var(--brand-red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

.pr-search-form input::placeholder {
    color: var(--text-light);
}

.pr-search-btn {
    padding: 11px 22px;
    border-radius: 100px;
    border: none;
    background: var(--brand-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.pr-search-btn:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
}

.pr-clear-btn {
    padding: 10px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--brand-red);
    background: transparent;
    color: var(--brand-red);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pr-clear-btn:hover {
    background: var(--brand-red);
    color: #ffffff;
}

/* ── CATEGORY FILTERS ─────────────────────────── */
.pr-cat-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f2f2f7;
}

.pr-cat-btn {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1.5px solid #e5e5ea;
    background: #ffffff;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pr-cat-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: rgba(192,57,43,0.04);
}

.pr-cat-btn.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(192,57,43,0.25);
}

/* ── PRODUCTS GRID ────────────────────────────── */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

/* ── PRODUCT CARD ─────────────────────────────── */
.pr-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f2f2f7;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(192,57,43,0.10);
    border-color: rgba(192,57,43,0.08);
}

.pr-card-img-wrap {
    display: block;
    height: 240px;
    background: #fafafa;
    overflow: hidden;
    position: relative;
    padding: 20px;
    flex-shrink: 0;
}

.pr-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.45s ease;
}

.pr-card:hover .pr-card-img-wrap img {
    transform: scale(1.07);
}

.pr-card-no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
}

.pr-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pr-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
    margin-bottom: 8px;
}

.pr-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}

.pr-card-title:hover {
    color: var(--brand-red);
}

.pr-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f2f2f7;
    margin-top: auto;
}

.pr-card-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-red);
}

.pr-card-btn {
    padding: 9px 20px;
    border-radius: 100px;
    background: var(--brand-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.pr-card-btn:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
}

/* ── NO PRODUCTS ──────────────────────────────── */
.pr-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fafafa;
    border-radius: 20px;
    border: 1px dashed #e5e5ea;
}

.pr-empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.pr-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pr-empty p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
    .pr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pr-hero {
        padding: 110px 24px 48px;
    }

    .pr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pr-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pr-search-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .pr-grid {
        grid-template-columns: 1fr;
    }

    .pr-search-form {
        flex-direction: column;
    }

.product-card-price {
    color: var(--primary);
}

.product-view-btn {
    padding: 9px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background var(--transition);
}

.product-view-btn:hover {
    background: var(--primary);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-bg);
    border-radius: 16px;
}

.no-products h3 {
    color: var(--text-body);
    margin-bottom: 8px;
}

.no-products p {
    color: var(--text-muted);
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--border);
}

.related-card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    overflow: hidden;
}

.related-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.related-card:hover .related-card-img-wrap img {
    transform: scale(1.06);
}

.related-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    z-index: 1;
}

.related-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.related-card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.related-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.related-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.35;
    margin: 0;
}

.related-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: var(--space-xs);
}

.related-price-orig {
    font-size: 0.78rem;
    color: var(--secondary);
    text-decoration: line-through;
    opacity: 0.6;
}

.related-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 480px) {
    .product-title {
        font-size: 1.7rem;
    }

    .price-current {
        font-size: 1.6rem;
    }

    .thumb-btn {
        width: 60px;
        height: 60px;
    }

    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.84rem;
    }

    .product-badges {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .product-search-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-search-form {
        flex-direction: column;
    }

    .products-top-bar {
        align-items: stretch;
    }
}

@media (min-width: 600px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}