/*
Theme Name: Eshop Tools
Theme URI: https://eshop-tools.com
Author: Eshop Tools
Description: Custom WooCommerce theme for professional tools shop
Version: 1.0.0
Text Domain: eshop-tools
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --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 30s 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-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.3rem;
    font-weight: 800;
    color: var(--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: #e5e7eb;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
}

.btn-view-product:hover {
    background: #d1d5db;
    color: var(--dark);
}

.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-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
}

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

/* ========== 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.9rem;
    white-space: nowrap;
}

.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: 2fr 1fr 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.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;
}

/* ========== 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; }
}
