/*
Theme Name: PantofiShop
Theme URI: https://pantofishop.com
Author: PantofiShop
Description: Custom WooCommerce theme for sneakers & sport shoes shop
Version: 1.0.0
Text Domain: pantofishop
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    --primary: #ff5a1f;
    --primary-dark: #e04500;
    --dark: #14161b;
    --dark-light: #1e2128;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #fff;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
    --max-width: 1280px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP TICKER ========== */
.top-ticker {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-track {
    display: inline-block;
    animation: ticker-scroll 90s linear infinite;
}

.ticker-content {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HEADER ========== */
.site-header {
    background: var(--dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.top-ticker + .site-header {
    top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 64px;
}

.site-logo a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .logo-accent { color: var(--primary); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.header-nav a:hover { color: var(--primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-link {
    position: relative;
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.cart-link:hover { color: var(--primary); }

.cart-count {
    background: var(--primary);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -10px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 4px;
}

/* ========== CATEGORY NAV ========== */
.category-bar {
    background: var(--dark-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 16px;
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== HERO / PAGE TITLE ========== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* ========== HOME HERO ========== */
.home-hero {
    width: 100%;
    overflow: hidden;
}

.home-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== PRODUCT GRID ========== */
.products-section { padding: 32px 0 48px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.product-rank-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 4px;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 10px 5px 8px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    z-index: 50 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    pointer-events: none;
}

.product-rank-badge .rank-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.product-rank-badge.rank-bestseller {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1a2e;
    text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.product-rank-badge.rank-popular {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

@media (max-width: 480px) {
    .product-rank-badge {
        font-size: 0.62rem;
        padding: 4px 8px 4px 6px;
    }
    .product-rank-badge .rank-icon { font-size: 0.75rem; }
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--primary-dark); }

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: auto;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-old {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background: #4a7c59;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 6px rgba(74, 124, 89, 0.25);
}

.btn-view-product:hover {
    background: #3d6b4a;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(61, 107, 74, 0.35);
    transform: translateY(-1px);
}

.btn-view-product.btn-out-of-stock {
    background: #f3f4f6;
    color: #aaa;
    cursor: default;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-add-to-cart.added {
    background: #22c55e;
    color: var(--white);
}

/* ========== SINGLE PRODUCT ========== */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}

.single-product-image {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.single-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.product-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-thumb:hover { opacity: 1; }

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-product-image a {
    display: block;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
}

.single-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.single-product-image a:hover img {
    opacity: 0.92;
}

/* ========== TRUST FEATURES ========== */
.trust-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--white);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.trust-item:nth-child(even) { border-right: none; }
.trust-item:nth-last-child(-n+2) { border-bottom: none; }
.trust-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
    justify-content: center;
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 8px;
}

.trust-item-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-item-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
}

.trust-item-text span {
    font-size: 0.72rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .trust-features { grid-template-columns: 1fr; }
    .trust-item { border-right: none !important; }
    .trust-item:last-child { border-bottom: none; }
    .trust-item:last-child:nth-child(odd) { grid-column: auto; justify-content: flex-start; }
}

.single-product-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.single-product-meta a {
    color: var(--primary-dark);
}

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

.single-product-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.single-product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.single-product-price .price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.single-product-price .price-old {
    font-size: 1.1rem;
}

/* ========== PAGE CONTENT ========== */
.page-body {
    padding: 40px 0 60px;
}

.page-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
}

.page-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.page-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 8px;
}

.page-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 14px;
}

.page-content ul, .page-content ol {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
}

.page-content ul li, .page-content ol li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-light);
}

.page-content ul li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.page-content ol {
    counter-reset: page-counter;
}

.page-content ol li {
    counter-increment: page-counter;
}

.page-content ol li::before {
    content: counter(page-counter) '.';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.page-content a {
    color: var(--primary-dark);
    font-weight: 600;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content strong {
    color: var(--dark);
}

@media (max-width: 768px) {
    .page-content-wrap { padding: 24px 16px; }
    .page-content h2 { font-size: 1.3rem; }
}

/* ========== PRODUCT DESCRIPTION ========== */
.product-description h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px;
}

.product-description h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.product-description h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 14px 0 8px;
}

.product-description p {
    margin-bottom: 12px;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.product-description ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-description ul li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ========== PROMO COUNTDOWN ========== */
.promo-countdown {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: var(--white);
}

.promo-countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.promo-fire { font-size: 1.2rem; }

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 70px;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.countdown-sep {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 14px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #78350f;
}

.trust-flag { font-size: 1.4rem; }

.single-product-desc-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.single-product-desc-section > h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.single-product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ========== CART FORM ========== */
.cart-form { margin-bottom: 24px; }

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fafafa;
    width: fit-content;
}

.qty-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover { background: #e5e7eb; }

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

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

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: #4a7c59;
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    gap: 0;
}

.cart-btn:hover { background: #3d6b4a; }

.cart-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-btn-icon { font-size: 1.3rem; }

.cart-btn-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cart-btn-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.35);
    margin: 0 20px;
}

.cart-btn-right {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cart-btn-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: rgba(255,255,255,0.6);
}

.cart-btn-price {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Desktop: qty horizontal */
@media (min-width: 769px) {
    .qty-selector { width: fit-content; }
}

/* Mobile: compact qty + stacked button */
@media (max-width: 768px) {
    .qty-selector { width: fit-content; margin: 0 auto 20px; }
    .qty-btn { width: 44px; height: 44px; }
    .qty-input { width: 56px; height: 44px; }

    .cart-btn { padding: 14px 16px; }
    .cart-btn-text { font-size: 0.82rem; }
    .cart-btn-price { font-size: 1rem; }
    .cart-btn-divider { margin: 0 12px; }
}

/* Stock badge */
.stock-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.stock-badge.in-stock strong {
    color: #b91c1c;
    font-weight: 800;
}

.stock-badge.out-of-stock {
    background: #fef2f2;
    color: #991b1b;
}

.viewers-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.viewers-badge strong.viewers-count {
    color: #1e3a8a;
    font-weight: 800;
}

.viewers-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: viewers-pulse 1.8s infinite;
}

@keyframes viewers-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}

/* ========== CHECKOUT ========== */
.checkout-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.checkout-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #78350f;
}

.checkout-cd-timer { display: flex; gap: 2px; }

.checkout-cd-num {
    background: #1a1a2e;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

/* Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #d1d5db;
    color: #9ca3af;
    background: var(--white);
}

.step-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.step.done .step-num {
    background: #4a7c59;
    border-color: #4a7c59;
    color: var(--white);
}

.step.done .step-label { color: #4a7c59; }

.step.active .step-num {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.step.active .step-label { color: var(--dark); font-weight: 800; }

.step-line {
    width: 60px;
    height: 2px;
    background: #d1d5db;
    margin: 0 8px;
    margin-bottom: 20px;
}

.step-line.done { background: #4a7c59; }

/* Columns */
.checkout-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Form fields */
.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-field {
    margin-bottom: 16px;
}

.checkout-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.checkout-field label abbr { color: #ef4444; text-decoration: none; }

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.checkout-field textarea { resize: vertical; }

/* Order Summary */
.order-summary {
    background: #fafaf8;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 80px;
}

.order-products { margin-bottom: 16px; }

.order-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.order-product-item:last-child { border-bottom: none; }

.order-product-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.order-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.order-product-qty {
    font-size: 0.78rem;
    color: var(--text-light);
}

.order-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.order-product-remove {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ef4444;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.order-product-remove:hover { color: #dc2626; }

.order-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.order-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.order-qty-btn:hover { background: #e5e7eb; }

.order-qty-num {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--white);
}

.order-product-price {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
}
/* All "current" prices share one brand color */
.order-price-new,
.order-totals .order-total-row span:last-child {
    color: var(--dark);
    font-weight: 800;
}
.order-price-old,
.order-total-regular .order-price-strike {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: line-through;
}
.order-total-regular {
    color: #9ca3af;
}
.order-total-regular span:first-child {
    color: #9ca3af;
}
/* Discounts in green stand out as savings */
.order-total-discount {
    color: #047857;
}
.order-total-discount span:last-child {
    color: #047857 !important;
    font-weight: 800;
}
/* Final total — slightly larger but same color family */
.order-total-final span:last-child {
    color: var(--primary-dark) !important;
}

.order-totals {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-bottom: 16px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.order-total-final {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}

/* Payment box */
.checkout-payment-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.checkout-payment-box strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.checkout-privacy {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.checkout-terms {
    margin-bottom: 16px;
}

.checkout-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
}

.checkout-terms input {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Submit button */
.checkout-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 24px;
    background: #4a7c59;
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-bottom: 16px;
}

.checkout-submit-btn:hover { background: #3d6b4a; }

.checkout-btn-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.35);
    margin: 0 16px;
}

.checkout-btn-total { font-size: 1.1rem; }

/* Trust badges */
.checkout-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.checkout-trust-item {
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.checkout-trust-item:nth-child(even) { border-right: none; }
.checkout-trust-item:nth-child(n+3) { border-bottom: none; }

/* Checkout mobile */
@media (max-width: 768px) {
    .checkout-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout-row { grid-template-columns: 1fr; gap: 0; }

    .order-summary { position: static; }

    .step-line { width: 30px; }
    .step-label { font-size: 0.6rem; }

    .checkout-submit-btn { padding: 16px 16px; font-size: 0.9rem; }

    .checkout-trust { grid-template-columns: 1fr; }
    .checkout-trust-item { border-right: none !important; }
    .checkout-trust-item:last-child { border-bottom: none; }
}

/* ========== THANK YOU ========== */
.thankyou-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.thankyou-hero {
    text-align: center;
    margin-bottom: 32px;
}

.thankyou-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7c59, #22c55e);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.3);
}

.thankyou-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.thankyou-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.thankyou-call-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.thankyou-call-icon { font-size: 1.6rem; flex-shrink: 0; }

.thankyou-call-notice strong {
    display: block;
    font-size: 0.95rem;
    color: #1e40af;
    margin-bottom: 4px;
}

.thankyou-call-notice p {
    font-size: 0.82rem;
    color: #3b82f6;
    line-height: 1.5;
    margin: 0;
}

.thankyou-order-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.thankyou-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fafaf8;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
}

.thankyou-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: #fefce8;
    padding: 4px 12px;
    border-radius: 20px;
}

.thankyou-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.thankyou-detail-item {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.thankyou-detail-item:nth-child(even) { border-right: none; }
.thankyou-detail-item:nth-child(n+3) { border-bottom: none; }

.thankyou-detail-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.thankyou-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.thankyou-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4a7c59;
}

.thankyou-products {
    padding: 20px 24px;
}

.thankyou-products h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.thankyou-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.thankyou-product-row:last-child { border-bottom: none; }

.thankyou-product-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.thankyou-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thankyou-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.thankyou-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.thankyou-product-qty {
    font-size: 0.75rem;
    color: var(--text-light);
}

.thankyou-product-price {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Steps */
.thankyou-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.thankyou-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.thankyou-step-icon { font-size: 1.6rem; }

.thankyou-step strong {
    font-size: 0.85rem;
    color: var(--dark);
}

.thankyou-step span {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Actions */
.thankyou-actions { text-align: center; }

.thankyou-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.thankyou-btn-primary:hover {
    background: var(--dark-light);
}

@media (max-width: 768px) {
    .thankyou-hero h1 { font-size: 1.4rem; }
    .thankyou-details { grid-template-columns: 1fr; }
    .thankyou-detail-item { border-right: none !important; border-bottom: 1px solid var(--border); }
    .thankyou-detail-item:last-child { border-bottom: none; }
    .thankyou-steps { grid-template-columns: 1fr; gap: 10px; }
    .thankyou-order-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ========== RELATED & RECENTLY VIEWED ========== */
.related-section,
.recently-viewed-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .related-section,
    .recently-viewed-section { padding: 24px 0; margin-top: 24px; }
    .section-title { font-size: 1.1rem; margin-bottom: 16px; }
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 24px;
    margin-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 960px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.footer-bottom-meta { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin-top: 4px; }

/* Brand block enhanced */
.footer-brand-gear { color: var(--primary); margin-right: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    line-height: 1.4;
    transition: var(--transition);
}
.footer-contact-item:hover { color: var(--primary); }
.footer-contact-item strong { color: var(--white); font-size: 0.95rem; }
.footer-contact-item small { color: rgba(255,255,255,0.55); font-size: 0.75rem; }
.footer-contact-icon {
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Features list (right footer column) */
.footer-features { list-style: none; padding: 0; }
.footer-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
}
.footer-features li span { font-size: 1.05rem; flex-shrink: 0; }

/* Payment strip */
.footer-payment-strip {
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
}
.footer-payment-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-payment-block strong {
    color: var(--white);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 3px;
}
.footer-payment-block span {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
}
.footer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ========== HEADER SEARCH ========== */
.header-search-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: var(--transition);
}
.header-search-toggle:hover { color: var(--primary); }
.header-search {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: rgba(0,0,0,0.25);
}
.header-search.active { max-height: 100px; }
.header-search-form {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}
.header-search-input {
    flex: 1;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.header-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.header-search-submit {
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}
.header-search-submit:hover { background: var(--primary-dark); color: var(--white); }

/* ========== ABOUT PAGE ========== */
.about-page { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.about-hero {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 32px 32px;
    margin-bottom: 32px;
    border-left: 5px solid var(--primary);
}
.about-hero h2 {
    color: var(--dark);
    font-size: 1.7rem;
    margin: 0 0 14px 0;
}
.about-lead {
    color: #78350f;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}
.about-section {
    margin-bottom: 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.about-section:last-of-type { border-bottom: none; }
.about-section h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin: 0 0 12px 0;
}
.about-section p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 12px 0;
}
.about-section p:last-child { margin-bottom: 0; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: var(--dark);
    border-radius: 16px;
}
.about-stat {
    text-align: center;
    color: var(--white);
}
.about-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}
.about-stat-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
    line-height: 1.3;
}

.about-cta {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    margin-top: 32px;
}
.about-cta h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}
.about-cta p {
    color: rgba(26,26,46,0.8);
    margin: 0 0 18px 0;
    font-size: 1rem;
}
.about-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--dark);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}
.about-cta-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

@media (max-width: 560px) {
    .about-hero { padding: 22px 20px; }
    .about-hero h2 { font-size: 1.4rem; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .about-stat-num { font-size: 1.5rem; }
}

/* ========== REVIEWS SECTION ========== */
.single-product-reviews-section {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 20px;
}
.reviews-header h2 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.reviews-count-pill {
    background: var(--primary);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}
.reviews-avg {
    text-align: center;
    padding-right: 32px;
    border-right: 2px solid rgba(146, 64, 14, 0.2);
}
.reviews-avg-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #92400e;
    line-height: 1;
}
.reviews-stars-big {
    display: block;
    font-size: 1.5rem;
    color: #f59e0b;
    letter-spacing: 2px;
    margin: 6px 0 4px;
}
.reviews-stars-big .star-empty { color: rgba(245, 158, 11, 0.25); }
.reviews-avg-label {
    display: block;
    font-size: 0.82rem;
    color: #78350f;
    font-weight: 600;
}
.reviews-distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rating-bar-row {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #78350f;
}
.rating-bar-label { font-weight: 700; color: #92400e; }
.rating-bar-track {
    height: 10px;
    background: rgba(146, 64, 14, 0.15);
    border-radius: 10px;
    overflow: hidden;
}
.rating-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    transition: width 0.3s ease;
}
.rating-bar-count { text-align: right; font-weight: 600; }

.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.reviews-list-hidden { display: none; }
.reviews-list-hidden.visible { display: flex; margin-top: 16px; }

.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.review-author {
    font-size: 0.95rem;
    color: var(--dark);
}
.review-verified {
    font-size: 0.72rem;
    color: #047857;
    font-weight: 600;
}
.review-rating-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.review-stars {
    font-size: 0.95rem;
    color: #f59e0b;
    letter-spacing: 1px;
}
.review-stars .star-empty { color: #d1d5db; }
.review-date {
    font-size: 0.75rem;
    color: var(--text-light);
}
.review-body {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.55;
}
.review-body strong { display: block; margin-bottom: 4px; color: var(--dark); font-size: 0.98rem; }

.reviews-show-more {
    display: block;
    margin: 20px auto 0;
    padding: 12px 28px;
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.reviews-show-more:hover {
    background: var(--primary);
    color: var(--dark);
}
.reviews-show-more.hidden { display: none; }

/* Review form */
.review-form-section {
    margin-top: 40px;
    padding: 28px;
    background: var(--bg);
    border-radius: 16px;
}
.review-form-section h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 1.25rem;
}
.review-login-prompt {
    text-align: center;
    padding: 20px;
}
.review-login-prompt p {
    color: var(--text);
    margin-bottom: 16px;
}
.review-login-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4a7c59;
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.review-login-btn:hover { background: #3d6b4a; }

.review-form-rating { margin-bottom: 16px; }
.review-form-rating label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.review-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.review-rating-input input { display: none; }
.review-rating-input label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
    margin: 0;
    line-height: 1;
}
.review-rating-input input:checked ~ label,
.review-rating-input label:hover,
.review-rating-input label:hover ~ label {
    color: #f59e0b;
}

.comment-form-comment label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
}
.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.review-submit-btn,
.form-submit input[type=submit] {
    margin-top: 12px;
    padding: 12px 28px;
    background: #4a7c59;
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.review-submit-btn:hover,
.form-submit input[type=submit]:hover { background: #3d6b4a; }

@media (max-width: 768px) {
    .reviews-summary { grid-template-columns: 1fr; gap: 24px; }
    .reviews-avg { padding-right: 0; padding-bottom: 24px; border-right: none; border-bottom: 2px solid rgba(146, 64, 14, 0.2); }
    .review-card-head { grid-template-columns: auto 1fr; gap: 12px; }
    .review-rating-date { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ========== RELATED + RECENTLY VIEWED ========== */
.related-products-section,
.recently-viewed-section {
    background: var(--bg);
    padding: 40px 0;
    margin-top: 32px;
}
.related-products-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.related-products-title {
    font-size: 1.45rem;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}
.related-products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) {
    .related-products-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .related-products-section,
    .recently-viewed-section { padding: 24px 0; }
    .related-products-title { font-size: 1.1rem; margin-bottom: 16px; }
    .related-products-grid .product-card-title { font-size: 0.78rem; }
    .related-products-grid .price-current { font-size: 0.95rem; }
    .related-products-grid .btn-view-product { padding: 7px 10px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .related-products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .related-products-grid .product-card-image { padding: 6px; }
}
.recently-viewed-home { background: transparent; padding-top: 30px; padding-bottom: 50px; }

/* ========== EXIT-INTENT MODAL ========== */
.m4e-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.m4e-exit-modal.active { display: flex; animation: m4e-fade-in 0.2s ease; }
.m4e-exit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.m4e-exit-modal-card {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 2px solid var(--primary);
    animation: m4e-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.m4e-exit-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}
.m4e-exit-close:hover { color: var(--dark); transform: rotate(90deg); }
.m4e-exit-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 8px;
    animation: m4e-bounce-gift 2s ease-in-out infinite;
}
@keyframes m4e-bounce-gift {
    0%, 100% { transform: translateY(0)   rotate(-6deg); }
    50%      { transform: translateY(-6px) rotate(6deg);  }
}
.m4e-exit-title {
    font-size: 1.6rem;
    color: var(--dark);
    margin: 0 0 10px;
    font-weight: 800;
}
.m4e-exit-text {
    color: var(--text);
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.5;
}
.m4e-exit-text strong {
    color: var(--primary-dark);
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
}
.m4e-exit-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    margin: 18px auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    border: 2px dashed var(--primary);
    max-width: 280px;
}
.m4e-exit-code-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.m4e-exit-code-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.m4e-exit-submit {
    width: 100%;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.m4e-exit-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.m4e-exit-submit:disabled { opacity: 0.7; cursor: default; }
.m4e-exit-msg {
    min-height: 22px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.m4e-exit-msg.pending { color: var(--text-light); }
.m4e-exit-msg.success { color: #047857; }
.m4e-exit-msg.error   { color: #b91c1c; }
.m4e-exit-fine {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}
@keyframes m4e-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes m4e-pop-in {
    0%   { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1)   translateY(0);    }
}
@media (max-width: 480px) {
    .m4e-exit-form { flex-direction: column; }
    .m4e-exit-modal-card { padding: 30px 24px 24px; }
    .m4e-exit-title { font-size: 1.35rem; }
}

/* ========== WOO NOTICES ========== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.woocommerce-message {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.woocommerce-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
    list-style: none;
}

/* ========== WOO CART & CHECKOUT ========== */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.woocommerce table.shop_table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.85rem;
}

.woocommerce .button,
.woocommerce button.button {
    background: var(--primary);
    color: var(--dark);
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .single-product-layout { gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

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

    .header-nav { display: none; }
    .menu-toggle { display: block; }

    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 16px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .header-nav.active a {
        padding: 10px 0;
        font-size: 1rem;
    }

    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0;
    }

    .page-hero { padding: 24px 0; }
    .page-hero h1 { font-size: 1.4rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }

    .product-card-body { padding: 12px; }
    .product-card-title { font-size: 0.8rem; }
    .price-current { font-size: 1.1rem; }
    .btn-view-product,
    .btn-add-to-cart { padding: 8px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-image { padding: 8px; }
    .container { padding: 0 12px; }
}

/* ============================================================
   BUY-2-GET-30 PROMO
   ============================================================ */

/* Site-wide promo bar */
.m4e-promo-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    color: #1a1a2e;
    border-bottom: 2px solid #d97706;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}
.m4e-promo-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.08) 12px, rgba(255,255,255,0.08) 24px);
    pointer-events: none;
}
.m4e-promo-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.m4e-promo-bar-icon {
    font-size: 1.5rem;
    line-height: 1;
    animation: m4e-bounce 2.4s ease-in-out infinite;
}
.m4e-promo-bar-text {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.m4e-promo-bar-text strong {
    font-weight: 900;
}
.m4e-promo-bar-sep {
    color: rgba(26,26,46,0.55);
    font-weight: 700;
}
.m4e-promo-bar-discount {
    background: #1a1a2e;
    color: #fbbf24;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.m4e-promo-bar-detail {
    font-size: 0.85rem;
    opacity: 0.85;
}
@keyframes m4e-bounce {
    0%, 100% { transform: translateY(0)   rotate(-6deg); }
    50%      { transform: translateY(-3px) rotate(6deg);  }
}

/* Single product page promo card */
.m4e-promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px dashed #d97706;
    border-radius: 12px;
}
.m4e-promo-card-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.m4e-promo-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.m4e-promo-card-body strong:first-child {
    color: #92400e;
    font-size: 1rem;
    font-weight: 800;
}
.m4e-promo-card-body span {
    color: #78350f;
    font-size: 0.85rem;
    line-height: 1.4;
}
.m4e-promo-card-body strong {
    color: #b45309;
}

/* Checkout promo notice */
.m4e-checkout-promo {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon body"
        "cta  cta";
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Full-width banner variant (under countdown, above the columns) */
.m4e-checkout-promo-banner {
    max-width: 1100px;
    margin: 0 auto 18px;
    padding: 16px 22px;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon body cta";
    row-gap: 0;
    column-gap: 16px;
}
.m4e-checkout-promo-banner .m4e-checkout-promo-icon {
    font-size: 2.2rem;
}
.m4e-checkout-promo-banner .m4e-checkout-promo-body strong:first-child {
    font-size: 1.05rem;
}
.m4e-checkout-promo-banner .m4e-checkout-promo-body span {
    font-size: 0.9rem;
}
@media (max-width: 560px) {
    .m4e-checkout-promo-banner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon body"
            "cta  cta";
        row-gap: 10px;
        padding: 14px 16px;
    }
    .m4e-checkout-promo-banner .m4e-checkout-promo-icon { font-size: 1.8rem; }
    .m4e-checkout-promo-banner .m4e-checkout-promo-body strong:first-child { font-size: 0.95rem; }
    .m4e-checkout-promo-banner .m4e-checkout-promo-body span { font-size: 0.82rem; }
}
.m4e-checkout-promo-icon {
    grid-area: icon;
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.m4e-checkout-promo-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.m4e-checkout-promo-body strong:first-child {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}
.m4e-checkout-promo-body span {
    font-size: 0.82rem;
    line-height: 1.4;
}
/* Wider screens — single row when there's enough room */
@media (min-width: 480px) {
    .m4e-checkout-promo {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "icon body cta";
        row-gap: 0;
    }
}
.m4e-checkout-promo-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1.5px solid #10b981;
    color: #064e3b;
}
.m4e-checkout-promo-active .m4e-checkout-promo-body strong { color: #047857; }
.m4e-checkout-promo-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px dashed #d97706;
    color: #78350f;
}
.m4e-checkout-promo-pending .m4e-checkout-promo-body strong { color: #92400e; }
.m4e-checkout-promo-cta {
    grid-area: cta;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #1a1a2e;
    color: #fbbf24;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    justify-self: stretch;
}
@media (min-width: 480px) {
    .m4e-checkout-promo-cta { justify-self: end; }
}
.m4e-checkout-promo-cta:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

/* Discount row in checkout totals */
.order-total-discount {
    color: #047857;
    font-weight: 600;
}
.order-total-discount span:last-child {
    color: #047857;
    font-weight: 800;
}

@media (max-width: 768px) {
    .m4e-promo-bar-inner { gap: 8px; flex-direction: column; padding: 0 12px; }
    .m4e-promo-bar-text { font-size: 0.82rem; gap: 6px; justify-content: center; }
    .m4e-promo-bar-discount { font-size: 0.85rem; padding: 2px 8px; }
    .m4e-promo-bar-detail { width: 100%; text-align: center; font-size: 0.78rem; }
}
