/*
Theme Name: Eatalia
Theme URI: https://eatalia-perriers.fr
Author: Eatalia Dev
Author URI: https://eatalia-perriers.fr
Description: Thème WooCommerce professionnel pour pizzeria, inspiré de Domino's Pizza et Uber Eats. Livraison & Click and Collect. Compatible YITH Product Add-Ons.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eatalia
Tags: food-and-drink, e-commerce, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready, block-styles, wide-blocks, editor-style
WC requires at least: 7.0
WC tested up to: 9.5
*/

/* ═══════════════════════════════════════════════════
   CSS VARIABLES (overridden by Customizer)
   ═══════════════════════════════════════════════════ */
:root {
    /* Primary Colors */
    --red: #C41E24;
    --red-dark: #a01a1f;
    --red-light: #FFF1F1;
    --green: #27AE60;
    --green-dark: #1e8449;
    --dark: #1A1A2E;
    --dark-soft: #2D2D44;

    /* Neutral */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Background (customizable) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-hero: #FFF8F8;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max: 1280px;
    --container-padding: 20px;

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--gray-900); }

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Screen Reader */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 14px; letter-spacing: 0.3px;
    transition: all var(--transition);
    border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 14px;
    transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

.btn-outline-white {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 14px;
    transition: all var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); color: #fff; }

/* ═══════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════ */
.topbar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.topbar-left { display: flex; align-items: center; gap: 20px; color: var(--gray-600); }
.topbar-left a { color: var(--red); font-weight: 600; }
.topbar-left a:hover { text-decoration: underline; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right a.footer-social {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: var(--gray-200); border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--gray-600);
    transition: all var(--transition);
}
.topbar-right a.footer-social:hover { background: var(--red); color: #fff; }

@media (max-width: 768px) {
    .topbar { display: none; }
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

/* Logo */
.site-logo {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 900; letter-spacing: 2px;
    color: var(--gray-900);
    text-transform: uppercase;
    flex-shrink: 0;
}
.site-logo span { color: var(--red); }
.site-logo img, .site-logo .custom-logo { max-height: 50px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav .menu-item a {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 16px;
    font-size: 14px; font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.main-nav a:hover, .main-nav .menu-item a:hover,
.main-nav a.active, .main-nav .current-menu-item a { background: var(--gray-100); color: var(--gray-900); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 18px;
    transition: all var(--transition);
    position: relative;
}
.header-btn:hover { background: var(--gray-200); color: var(--gray-900); }
.header-badge {
    position: absolute; top: -2px; right: -2px;
    width: 18px; height: 18px;
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.btn-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 14px;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .btn-cta { display: none; }
}

/* ═══════════════════════════════════════════════════
   MODE BAR (Livraison / Emporter)
   ═══════════════════════════════════════════════════ */
.mode-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
}
.mode-bar .container {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.mode-toggle { display: flex; background: var(--gray-100); border-radius: var(--radius-full); padding: 3px; }
.mode-toggle-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition);
}
.mode-toggle-btn.active { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.mode-toggle-btn:hover:not(.active) { color: var(--gray-900); }

.mode-address {
    flex: 1;
    display: flex; align-items: center; gap: 8px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 13px; color: var(--gray-500);
    max-width: 500px;
}
.mode-time {
    font-size: 13px; font-weight: 600; color: var(--green);
    padding: 8px 16px;
    border: 1.5px solid var(--green);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mode-bar .container { justify-content: center; }
    .mode-address { display: none; }
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
    background: var(--bg-hero);
    padding: 4rem 0 3rem;
    overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: #FFF3E0;
    color: #E65100;
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--gray-900);
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-desc {
    font-size: 16px; line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    min-height: 300px;
}
.hero-visual img {
    max-width: 100%;
    border-radius: 50%;
    animation: heroFloat 4s ease-in-out infinite;
}
.hero-visual .hero-emoji {
    font-size: clamp(120px, 22vw, 220px);
    animation: heroFloat 4s ease-in-out infinite;
}
.hero-bg-circle {
    width: clamp(260px, 40vw, 420px);
    height: clamp(260px, 40vw, 420px);
    background: radial-gradient(circle, #FDEAEA 0%, #F9D4D4 60%, transparent 75%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; min-height: 200px; }
}

/* ═══════════════════════════════════════════════════
   BANNER / PROMO SECTION
   ═══════════════════════════════════════════════════ */
.eatalia-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 3rem;
    margin: 2rem 0;
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}
.eatalia-banner.banner-dark { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%); }
.eatalia-banner.banner-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }

.banner-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.25;
}
.banner-content { position: relative; z-index: 1; max-width: 600px; }
.banner-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
}
.banner-desc { font-size: 16px; opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.stat-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-val { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--gray-900); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

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

/* ═══════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════ */
.section { padding: 3rem 0; }
.section-sm { padding: 1.5rem 0; }
.section-bg { background: var(--bg-secondary); }

.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; gap: 12px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
}
.section-title em { font-style: italic; color: var(--red); }
.section-link {
    font-size: 14px; font-weight: 600; color: var(--red);
    display: inline-flex; align-items: center; gap: 4px;
}
.section-link:hover { gap: 8px; }

/* ═══════════════════════════════════════════════════
   PROMO SCROLL CARDS
   ═══════════════════════════════════════════════════ */
.promo-scroll {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.promo-scroll::-webkit-scrollbar { display: none; }

.promo-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 2rem;
    border-radius: var(--radius-xl);
    color: #fff;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); color: #fff; }
.promo-card.theme-red { background: linear-gradient(145deg, #C41E24 0%, #8B1419 100%); }
.promo-card.theme-dark { background: linear-gradient(145deg, #1A1A2E 0%, #16213E 100%); }
.promo-card.theme-green { background: linear-gradient(145deg, #27AE60 0%, #1e8449 100%); }

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.promo-card-title {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
}
.promo-card-desc { font-size: 13px; opacity: 0.85; margin-bottom: 1rem; line-height: 1.5; }
.promo-card-footer { display: flex; align-items: center; justify-content: space-between; }
.promo-card-price {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 900;
}
.promo-card-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600;
    color: #fff;
    transition: all var(--transition);
}
.promo-card-btn:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════════════
   CATEGORY CHIPS
   ═══════════════════════════════════════════════════ */
.cat-scroll {
    display: flex; gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition);
    white-space: nowrap;
}
.cat-chip:hover { border-color: var(--red); color: var(--red); }
.cat-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ═══════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.product-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }

.product-img {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 180px;
    background: var(--red-light);
    overflow: hidden;
}
.product-img img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }

.product-badge {
    position: absolute; top: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-best { left: 10px; background: var(--red); color: #fff; }
.badge-new { right: 10px; background: var(--green); color: #fff; }
.badge-promo { right: 10px; background: #FF9800; color: #fff; }

.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.product-desc { font-size: 13px; color: var(--gray-500); line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--red); }
.product-price del { font-size: 13px; color: var(--gray-400); font-weight: 400; }
.product-price ins { text-decoration: none; }

.add-to-cart-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    font-size: 20px; font-weight: 700;
    transition: all var(--transition);
}
.product-card:hover .add-to-cart-btn { background: var(--red-dark); transform: scale(1.1); }

/* ═══════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
   ═══════════════════════════════════════════════════ */
.woocommerce div.product {
    padding: 2rem 0;
}
.woocommerce div.product div.images {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--red-light);
}
.woocommerce div.product div.images img {
    border-radius: var(--radius-xl);
}
.woocommerce div.product .product_title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.woocommerce div.product p.price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 1rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Add to Cart */
.woocommerce div.product form.cart {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.woocommerce div.product form.cart .quantity input.qty {
    width: 70px; height: 48px;
    text-align: center;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px; font-weight: 700;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    padding: 14px 32px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* YITH Product Add-Ons Styling */
.ywapo_group_container {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.ywapo_group_container h3,
.ywapo_group_container .ywapo_addon_container label {
    font-family: var(--font-body);
    font-weight: 600;
}
.ywapo_group_container .ywapo_addon_container {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.ywapo_group_container .ywapo_addon_container:last-child { border-bottom: none; }

.ywapo_input_container input[type="radio"],
.ywapo_input_container input[type="checkbox"] {
    accent-color: var(--red);
}

/* YITH - Total Price Table */
.ywapo_total_price_table {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex; gap: 4px;
    padding: 0; margin: 0 0 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    list-style: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none; background: none; padding: 0; margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block; padding: 12px 20px;
    font-size: 14px; font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Related Products */
.woocommerce div.product .related.products {
    margin-top: 3rem;
}
.woocommerce div.product .related.products h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════ */
.woocommerce-cart .woocommerce {
    padding: 2rem 0;
}
.woocommerce table.shop_table {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}
.woocommerce table.shop_table th {
    background: var(--gray-50);
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--gray-600);
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--gray-200);
}
.woocommerce table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.woocommerce table.shop_table td.product-thumbnail img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: var(--radius);
}
.woocommerce table.shop_table td.product-name a {
    font-weight: 700; color: var(--gray-900);
}
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-family: var(--font-display);
    font-weight: 700; font-size: 16px;
}

/* Cart Totals */
.woocommerce .cart_totals {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.woocommerce .cart_totals h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.woocommerce .cart_totals table {
    border: none;
}
.woocommerce .cart_totals .order-total .woocommerce-Price-amount {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 900;
    color: var(--red);
}

.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block;
    padding: 16px 32px;
    background: var(--red) !important;
    color: #fff !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700; font-size: 16px;
    text-align: center;
    transition: all var(--transition);
}
.woocommerce a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--red-dark) !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════ */
.woocommerce-checkout .woocommerce {
    padding: 2rem 0;
}
.woocommerce form .form-row label {
    font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color var(--transition);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196,30,36,0.1);
}

.woocommerce #order_review {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.woocommerce #place_order {
    padding: 16px 32px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition);
}
.woocommerce #place_order:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════════════
   MY ACCOUNT
   ═══════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none; padding: 0; margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 14px; font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--red-light);
    color: var(--red);
    border-left: 3px solid var(--red);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--gray-50);
    color: var(--red);
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════ */
.how-section { padding: 4rem 0; background: var(--bg-secondary); }
.how-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; margin-top: 2rem;
}
.how-step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-200);
    transition: all var(--transition);
}
.how-step:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-num {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 900; color: var(--red);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}
.how-icon { font-size: 44px; margin-bottom: 1rem; }
.how-title { font-family: var(--font-display); font-size: 18px; font-weight: 900; margin-bottom: 0.5rem; }
.how-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

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

/* ═══════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════ */
.cta-section { padding: 3rem 0; }
.cta-box {
    background: linear-gradient(135deg, var(--red) 0%, #8B1419 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}
.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: #fff;
}
.cta-desc { font-size: 16px; opacity: 0.9; margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 900; letter-spacing: 2px;
    color: #fff; text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-brand span { color: var(--red); }
.footer-about { font-size: 14px; line-height: 1.7; max-width: 300px; }

.footer-col-title {
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 14px; color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-socials { display: flex; gap: 10px; margin-top: 1rem; }
.footer-socials a.footer-social {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 12px; font-weight: 700;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
}
.footer-socials a.footer-social:hover { background: var(--red); color: #fff; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-payments { display: flex; gap: 8px; }
.footer-payment-icon {
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════════ */
.mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
}
.mob-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px;
    font-size: 10px; font-weight: 600;
    color: var(--gray-500);
    position: relative;
    padding: 4px 8px;
    transition: color var(--transition);
}
.mob-nav-item.active, .mob-nav-item:hover { color: var(--red); }
.mn-icon { font-size: 22px; }
.mn-label { font-size: 10px; }
.mob-nav-badge {
    position: absolute; top: -2px; right: 2px;
    width: 16px; height: 16px;
    background: var(--red); color: #fff;
    font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .mobile-nav { display: flex; }
    body { padding-bottom: 70px; }
}

/* ═══════════════════════════════════════════════════
   FLOATING CART BAR
   ═══════════════════════════════════════════════════ */
.cart-float {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%; transform: translateX(-50%);
    z-index: 9998;
    background: var(--dark);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}
.cart-float.visible { display: flex; }
.cart-float:hover { background: var(--dark-soft); color: #fff; transform: translateX(-50%) translateY(-2px); }
.cart-float-count {
    width: 28px; height: 28px;
    background: var(--red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
}
.cart-float-label { font-size: 14px; font-weight: 600; }
.cart-float-total { font-family: var(--font-display); font-size: 18px; font-weight: 900; }

@media (min-width: 769px) {
    .cart-float { bottom: 30px; }
}

/* ═══════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card-title a { color: var(--gray-900); }
.blog-card-title a:hover { color: var(--red); }
.blog-card-excerpt { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 0.75rem; }
.blog-card-meta { font-size: 12px; color: var(--gray-400); }

/* ═══════════════════════════════════════════════════
   PAGE TEMPLATE
   ═══════════════════════════════════════════════════ */
.page-header {
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}
.page-header-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
}
.page-header-title em { color: var(--red); font-style: italic; }

.page-breadcrumbs {
    font-size: 13px; color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.page-breadcrumbs a { color: var(--gray-600); }
.page-breadcrumbs a:hover { color: var(--red); }

/* Page Content */
.page-content { max-width: 800px; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; font-size: 16px; }
.page-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.page-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 2rem; list-style: disc; }
.page-content ul li, .page-content ol li { margin-bottom: 0.5rem; line-height: 1.6; }
.page-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ═══════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════ */
.search-overlay {
    position: fixed; inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}
.search-overlay.open { display: flex; }
.search-overlay-inner {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
}
.search-overlay-inner form {
    display: flex; gap: 12px;
}
.search-overlay-inner input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 16px;
    outline: none;
}
.search-overlay-inner input[type="search"]:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(196,30,36,0.1);
}
.search-overlay-inner button[type="submit"] {
    padding: 14px 24px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE NOTICES
   ═══════════════════════════════════════════════════ */
.woocommerce-message {
    border-top-color: var(--green) !important;
    background: #E8F5E9 !important;
    border-radius: var(--radius) !important;
}
.woocommerce-error {
    border-top-color: var(--red) !important;
    background: var(--red-light) !important;
    border-radius: var(--radius) !important;
}
.woocommerce-info {
    border-top-color: #2196F3 !important;
    background: #E3F2FD !important;
    border-radius: var(--radius) !important;
}
.woocommerce-message::before { color: var(--green) !important; }
.woocommerce-error::before { color: var(--red) !important; }

/* WC Buttons */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all var(--transition) !important;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--red-dark) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--red) !important;
}

/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex; gap: 6px; justify-content: center;
    margin-top: 2rem;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 10px 16px !important;
    border: 1.5px solid var(--gray-200) !important;
    border-radius: var(--radius) !important;
    color: var(--gray-600) !important;
    font-weight: 600 !important;
    background: var(--white) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════
   ELEMENTOR COMPAT
   ═══════════════════════════════════════════════════ */
.elementor-page .site-main { padding: 0; }
.elementor-page .page-header { display: none; }

/* ═══════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════ */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider-track { position: relative; }
.hero-slide { display: none; animation: heroFadeIn .6s ease; }
.hero-slide.active { display: block; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.hero-slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 1rem 0 0; }
.hero-slider-prev, .hero-slider-next {
    background: rgba(0,0,0,0.06); border: none; width: 36px; height: 36px; border-radius: 50%;
    font-size: 16px; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.hero-slider-prev:hover, .hero-slider-next:hover { background: rgba(0,0,0,0.12); }
.hero-slider-dots { display: flex; gap: 8px; }
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; border: none;
    background: var(--gray-300); cursor: pointer; transition: all .2s; padding: 0;
}
.hero-dot.active { background: var(--red); transform: scale(1.3); }

/* ═══════════════════════════════════════════════════
   BANNER SLIDER
   ═══════════════════════════════════════════════════ */
.eatalia-banner-slider { position: relative; }
.banner-slider-track { position: relative; }
.banner-slide { display: none; animation: bannerFadeIn .5s ease; }
.banner-slide.active { display: block; }
@keyframes bannerFadeIn { from { opacity: 0; } to { opacity: 1; } }

.banner-slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 1rem 0 0; }
.banner-slider-prev, .banner-slider-next {
    background: rgba(0,0,0,0.06); border: none; width: 32px; height: 32px; border-radius: 50%;
    font-size: 14px; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.banner-slider-prev:hover, .banner-slider-next:hover { background: rgba(0,0,0,0.12); }
.banner-slider-dots { display: flex; gap: 6px; }
.banner-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none;
    background: var(--gray-300); cursor: pointer; transition: all .2s; padding: 0;
}
.banner-dot.active { background: var(--red); transform: scale(1.3); }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - MINI-CART DRAWER
   ═══════════════════════════════════════════════════ */
.eatalia-cart-drawer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; pointer-events: none; visibility: hidden; }
.eatalia-cart-drawer.open { pointer-events: all; visibility: visible; }
.eatalia-cart-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.eatalia-cart-drawer.open .eatalia-cart-drawer-overlay { opacity: 1; }
.eatalia-cart-drawer-panel {
    position: absolute; top: 0; right: 0; width: 420px; max-width: 92vw; height: 100%;
    background: var(--gray-50); box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
}
.eatalia-cart-drawer.open .eatalia-cart-drawer-panel { transform: translateX(0); }
body.cart-drawer-open { overflow: hidden; }

/* Drawer header */
.eatalia-cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; background: #fff;
    border-bottom: 1px solid var(--gray-200);
}
.eatalia-cart-drawer-header h3 {
    font-family: var(--font-heading); font-size: 1.2rem; margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.eatalia-cart-drawer-close {
    background: var(--gray-100); border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--gray-600);
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.eatalia-cart-drawer-close:hover { background: var(--gray-200); color: var(--gray-900); }

/* Drawer content */
.eatalia-cart-drawer-content { flex: 1; overflow-y: auto; padding: 0; }

/* Drawer footer sticky (total + buttons) */
.eatalia-cart-drawer-panel .woocommerce-mini-cart__total,
.eatalia-cart-drawer-panel .woocommerce-mini-cart__buttons {
    flex-shrink: 0;
}

/* Mini-cart items list */
.woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
.mini-cart-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 1rem 1.5rem; background: #fff;
    margin-bottom: 2px; position: relative;
    transition: background .15s;
}
.mini-cart-item:hover { background: #fafafa; }

/* Item thumbnail */
.mini-cart-item-thumb {
    width: 72px; height: 72px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    background: var(--gray-100); border: 1px solid var(--gray-200);
}
.mini-cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Item info */
.mini-cart-item-info { flex: 1; min-width: 0; padding-top: 2px; }
.mini-cart-item-name a {
    font-size: 15px; font-weight: 700; color: var(--gray-900);
    text-decoration: none; display: block; margin-bottom: 4px;
}
.mini-cart-item-name a:hover { color: var(--red); }

/* YITH / variation data */
.mini-cart-item-info dl.variation,
.mini-cart-item-info .wc-item-meta {
    font-size: 12px; color: var(--gray-500); margin: 0; padding: 0;
    line-height: 1.5;
}
.mini-cart-item-info dl.variation dt,
.mini-cart-item-info .wc-item-meta li > *:first-child {
    font-weight: 600; color: var(--gray-600); display: inline;
}
.mini-cart-item-info dl.variation dd,
.mini-cart-item-info .wc-item-meta li > *:last-child {
    display: inline; margin: 0 0 0 2px;
}
.mini-cart-item-info dl.variation dd p { margin: 0; display: inline; }

/* Item bottom row: qty controls + price */
.mini-cart-item-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.mini-cart-item-qty-ctrl {
    display: inline-flex; align-items: center; gap: 0;
    border: 1.5px solid var(--gray-200); border-radius: 10px; overflow: hidden;
    background: #fff;
}
.mini-cart-item-qty-ctrl.updating { opacity: 0.5; pointer-events: none; }
.mini-cart-item-qty-ctrl .qty-btn {
    width: 34px; height: 34px; border: none; background: transparent;
    font-size: 18px; font-weight: 600; cursor: pointer; color: var(--gray-700);
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.mini-cart-item-qty-ctrl .qty-btn:hover { background: var(--gray-100); }
.mini-cart-item-qty-ctrl .qty-minus { color: var(--red); }
.mini-cart-item-qty-ctrl .qty-minus:hover { background: #fef2f2; }
.mini-cart-item-qty-ctrl .qty-plus { color: var(--green, #27AE60); }
.mini-cart-item-qty-ctrl .qty-plus:hover { background: #ecfdf5; }
.mini-cart-item-qty-ctrl .qty-val {
    min-width: 28px; text-align: center; font-size: 15px; font-weight: 700;
    color: var(--gray-900); user-select: none;
}
.mini-cart-item-price {
    font-family: var(--font-heading); font-weight: 800; font-size: 15px;
    color: var(--gray-900);
}
.mini-cart-item-price .amount { color: var(--red); }

/* Legacy qty-price fallback */
.mini-cart-item-qty-price {
    margin-top: 8px; display: inline-flex; align-items: center;
    background: var(--gray-100); border-radius: 6px; padding: 4px 10px;
    font-size: 13px; font-weight: 600;
}
.mini-cart-item-qty-price .amount {
    color: var(--red); font-weight: 800; font-family: var(--font-heading);
}

/* Remove button */
.mini-cart-item-remove {
    position: absolute; top: 12px; right: 16px;
}
.mini-cart-item-remove .remove {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gray-100); color: var(--gray-400);
    font-size: 16px; text-decoration: none; transition: all .2s;
}
.mini-cart-item-remove .remove:hover {
    background: #fef2f2; color: var(--red);
}

/* Mini-cart total */
.woocommerce-mini-cart__total {
    padding: 1rem 1.5rem; background: #fff;
    font-weight: 700; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 2px solid var(--gray-200);
    position: sticky; bottom: 110px; z-index: 2;
}
.woocommerce-mini-cart__total strong { font-size: 15px; }
.woocommerce-mini-cart__total .amount {
    color: var(--red); font-family: var(--font-heading); font-size: 1.4rem;
}

/* Free shipping bar & plugin injected content in mini-cart */
.eatalia-cart-drawer-content .free-shipping-notice,
.eatalia-cart-drawer-content .woocommerce-mini-cart__notice,
.eatalia-cart-drawer-content .wcfs-bar,
.eatalia-cart-drawer-content [class*="shipping-bar"],
.eatalia-cart-drawer-content [class*="free-shipping"] {
    background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
    border-radius: 10px; padding: 10px 14px; margin: 0 1.5rem 0; font-size: 13px;
    font-weight: 600; text-align: center;
}
.eatalia-cart-drawer-content [class*="shipping-bar"] .bar,
.eatalia-cart-drawer-content [class*="free-shipping"] progress,
.eatalia-cart-drawer-content [class*="shipping-bar"] .progress-bar {
    height: 6px !important; border-radius: 3px; overflow: hidden;
    background: #d1fae5 !important; margin-top: 6px;
}
.eatalia-cart-drawer-content [class*="shipping-bar"] .bar .filled,
.eatalia-cart-drawer-content [class*="shipping-bar"] .progress-bar > * {
    background: var(--green) !important; border-radius: 3px;
}

/* Style any notices/messages injected in the drawer */
.eatalia-cart-drawer-content .woocommerce-message,
.eatalia-cart-drawer-content .woocommerce-info,
.eatalia-cart-drawer-content .woocommerce-error {
    margin: 0 1.5rem 8px; border-radius: 10px; font-size: 13px; padding: 10px 14px;
}

/* Ensure all injected content before/after mini-cart stays within padding */
.widget_shopping_cart_content > *:not(.woocommerce-mini-cart):not(.woocommerce-mini-cart__total):not(.woocommerce-mini-cart__buttons) {
    padding-left: 1.5rem; padding-right: 1.5rem;
}

/* Mini-cart buttons */
.woocommerce-mini-cart__buttons {
    display: flex; flex-direction: column; gap: 10px;
    padding: 1rem 1.5rem 1.5rem; background: #fff;
    position: sticky; bottom: 0; z-index: 2;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.woocommerce-mini-cart__buttons .button {
    display: block; text-align: center; padding: 14px 20px;
    border-radius: 12px; font-weight: 700; font-size: 15px;
    text-decoration: none; transition: all .2s; border: none; cursor: pointer;
}
.woocommerce-mini-cart__buttons .button:first-child {
    background: var(--gray-100); color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.woocommerce-mini-cart__buttons .button:first-child:hover {
    background: var(--gray-200);
}
.woocommerce-mini-cart__buttons .button.checkout {
    background: var(--red); color: #fff;
    box-shadow: 0 4px 14px rgba(196,30,36,0.3);
    font-size: 16px; padding: 16px 20px;
}
.woocommerce-mini-cart__buttons .button.checkout:hover {
    background: var(--red-dark); box-shadow: 0 6px 20px rgba(196,30,36,0.4);
    transform: translateY(-1px);
}

/* Mini-cart empty state */
.mini-cart-empty {
    text-align: center; padding: 4rem 2rem;
    display: flex; flex-direction: column; align-items: center;
}
.mini-cart-empty-icon {
    font-size: 56px; opacity: 0.15; margin-bottom: 1.25rem;
    filter: grayscale(1);
}
.mini-cart-empty .woocommerce-mini-cart__empty-message {
    color: var(--gray-500); font-size: 16px; margin-bottom: 0.5rem;
}
.mini-cart-empty .btn-primary {
    margin-top: 1.5rem; border-radius: 12px; padding: 14px 32px; font-size: 15px;
}

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - SALE BADGE
   ═══════════════════════════════════════════════════ */
.eatalia-sale-badge, span.onsale {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
    padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - STAR RATING
   ═══════════════════════════════════════════════════ */
.star-rating { position: relative; display: inline-block; font-size: 14px; height: 1em; line-height: 1; width: 5.4em; overflow: hidden; font-family: star; }
.star-rating::before { content: "★★★★★"; color: var(--gray-300); }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; height: 100%; }
.star-rating span::before { content: "★★★★★"; color: #f5a623; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - NOTICES
   ═══════════════════════════════════════════════════ */
.eatalia-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1rem; font-size: 14px; font-weight: 500; }
.eatalia-notice-icon { font-size: 18px; flex-shrink: 0; }
.eatalia-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.eatalia-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.eatalia-notice--info { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.woocommerce-message { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1rem; }
.woocommerce-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1rem; list-style: none; }
.woocommerce-info { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1rem; }
.woocommerce-message a, .woocommerce-info a { font-weight: 700; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - QUANTITY INPUT
   ═══════════════════════════════════════════════════ */
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.quantity .qty { width: 48px; text-align: center; border: none; font-size: 15px; font-weight: 700; padding: 8px 4px; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - COUPON FORM
   ═══════════════════════════════════════════════════ */
.coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.coupon label { display: none; }
.coupon #coupon_code { padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 14px; flex: 1; min-width: 150px; }
.coupon .button { background: var(--gray-100); color: var(--gray-800); border: 1px solid var(--gray-300); padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 13px; cursor: pointer; }
.coupon .button:hover { background: var(--gray-200); }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - PRODUCT TABS
   ═══════════════════════════════════════════════════ */
.woocommerce-tabs { margin-top: 2rem; }
.woocommerce-tabs .tabs { display: flex; list-style: none; padding: 0; margin: 0; gap: 0; border-bottom: 2px solid var(--gray-200); }
.woocommerce-tabs .tabs li { margin: 0; }
.woocommerce-tabs .tabs li a { display: block; padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--gray-500); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.woocommerce-tabs .tabs li.active a { color: var(--red); border-bottom-color: var(--red); }
.woocommerce-tabs .woocommerce-Tabs-panel { padding: 1.5rem 0; line-height: 1.7; color: var(--gray-700); }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - MY ACCOUNT
   ═══════════════════════════════════════════════════ */
.woocommerce-MyAccount-navigation { margin-bottom: 2rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.woocommerce-MyAccount-navigation ul li a { display: block; padding: 10px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--gray-600); text-decoration: none; background: var(--gray-50); transition: all .2s; }
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover { background: var(--red); color: #fff; }
.woocommerce-MyAccount-content { line-height: 1.7; }
.woocommerce-MyAccount-content .woocommerce-orders-table { width: 100%; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - CHECKOUT & FORMS
   ═══════════════════════════════════════════════════ */
.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--gray-700); }
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 14px; transition: border-color .2s;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--red); outline: none; box-shadow: 0 0 0 2px rgba(196,30,36,0.15);
}
.woocommerce form .form-row-first { float: left; width: 48%; }
.woocommerce form .form-row-last { float: right; width: 48%; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce #order_review_heading { font-family: var(--font-heading); font-size: 1.25rem; margin: 2rem 0 1rem; }
.woocommerce-checkout-review-order-table { width: 100%; margin-bottom: 1.5rem; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.woocommerce-checkout-payment { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; }
.woocommerce-checkout-payment .payment_methods { list-style: none; padding: 0; margin: 0 0 1rem; }
.woocommerce-checkout-payment .payment_methods li { padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.woocommerce-checkout-payment .payment_methods li label { font-weight: 600; cursor: pointer; }
.woocommerce-checkout-payment #place_order {
    background: var(--red); color: #fff; border: none; padding: 14px 32px;
    border-radius: var(--radius); font-weight: 700; font-size: 16px; width: 100%; cursor: pointer;
    transition: background .2s;
}
.woocommerce-checkout-payment #place_order:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - CART TABLE
   ═══════════════════════════════════════════════════ */
.shop_table { width: 100%; border-collapse: collapse; }
.shop_table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); padding: 10px 12px; border-bottom: 2px solid var(--gray-200); }
.shop_table td { padding: 14px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; font-size: 14px; }
.shop_table .product-thumbnail img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.shop_table .product-name a { font-weight: 600; color: var(--gray-900); text-decoration: none; }
.shop_table .product-price .amount,
.shop_table .product-subtotal .amount { font-weight: 700; color: var(--red); }
.shop_table .product-remove a { color: var(--gray-400); font-size: 20px; text-decoration: none; }
.shop_table .product-remove a:hover { color: var(--red); }
.cart-collaterals .cart_totals { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; }
.cart-collaterals .cart_totals h2 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 1rem; }
.cart-collaterals .cart_totals table th { font-weight: 600; font-size: 14px; }
.cart-collaterals .cart_totals .order-total .amount { font-family: var(--font-heading); font-size: 1.3rem; color: var(--red); }
.wc-proceed-to-checkout .checkout-button {
    display: block; width: 100%; text-align: center; padding: 14px;
    background: var(--red); color: #fff; border-radius: var(--radius);
    font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--red-dark); color: #fff; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - RELATED / UPSELL
   ═══════════════════════════════════════════════════ */
.related.products > h2,
.upsells.products > h2 { font-family: var(--font-heading); font-size: 1.3rem; margin: 2rem 0 1rem; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - WC BUTTONS
   ═══════════════════════════════════════════════════ */
.woocommerce .button, .woocommerce button.button {
    background: var(--red); color: #fff; border: none; padding: 11px 24px;
    border-radius: var(--radius); font-weight: 700; font-size: 14px; cursor: pointer;
    transition: background .2s; text-decoration: none; display: inline-block;
}
.woocommerce .button:hover, .woocommerce button.button:hover { background: var(--red-dark); color: #fff; }
.woocommerce .button.alt { background: var(--red); }
.woocommerce .button.alt:hover { background: var(--red-dark); }
.woocommerce .button.alt.disabled,
.woocommerce .button.alt:disabled { background: var(--gray-300); cursor: not-allowed; }
.woocommerce .button.loading,
.single_add_to_cart_button.loading {
    opacity: 0.7; pointer-events: none; position: relative;
}
.woocommerce .button.loading::after,
.single_add_to_cart_button.loading::after {
    content: ''; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px;
    margin-top: -8px; border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff; border-radius: 50%;
    animation: eatalia-spin .6s linear infinite;
}
@keyframes eatalia-spin { to { transform: rotate(360deg); } }

/* Product card data attributes for responsive cart */
.woocommerce .cart .product-name dl.variation { font-size: 12px; margin: 4px 0 0; }
.woocommerce .cart .product-name dl.variation dt { font-weight: 600; display: inline; }
.woocommerce .cart .product-name dl.variation dd { display: inline; margin: 0 8px 0 0; }

/* ═══════════════════════════════════════════════════
   WOOCOMMERCE - RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last { float: none; width: 100%; }
    .shop_table thead { display: none; }
    .shop_table tr { display: block; margin-bottom: 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px; }
    .shop_table td { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border: none; }
    .shop_table td::before { content: attr(data-title); font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--gray-500); }
    .woocommerce-MyAccount-navigation ul { flex-direction: column; }
    .eatalia-cart-drawer-panel { width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; top: auto; bottom: 0; height: 85vh; transform: translateY(100%); }
    .eatalia-cart-drawer.open .eatalia-cart-drawer-panel { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════ */
@media print {
    .topbar, .site-header, .mode-bar, .mobile-nav, .cart-float, .site-footer { display: none; }
    body { padding: 0; }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════ */

/* Screen reader text - hidden visually but accessible */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    z-index: 999999;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   GUTENBERG BLOCK ALIGNMENTS
   ═══════════════════════════════════════════════════ */
.alignwide {
    max-width: calc(var(--container-max) + 200px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
}
.wp-block-image.alignwide img,
.wp-block-image.alignfull img {
    width: 100%;
}

/* Block editor default styles */
.has-eatalia-red-color { color: var(--red); }
.has-eatalia-red-background-color { background-color: var(--red); color: #fff; }
.has-eatalia-dark-color { color: var(--dark); }
.has-eatalia-dark-background-color { background-color: var(--dark); color: #fff; }
.has-eatalia-green-color { color: var(--green); }
.has-eatalia-green-background-color { background-color: var(--green); color: #fff; }
.has-eatalia-light-background-color { background-color: var(--bg-secondary); }
.has-eatalia-white-background-color { background-color: #fff; }

/* Comments styling */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.comment-author { font-weight: 600; }
.comment-metadata { font-size: 12px; color: var(--gray-500); }
.comment-content { margin-top: 0.5rem; line-height: 1.7; }
.comment-reply-link { font-size: 12px; color: var(--red); font-weight: 600; text-decoration: none; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 14px; margin-bottom: 1rem;
}
.comment-form .form-submit .submit {
    background: var(--red); color: #fff; border: none; padding: 12px 28px;
    border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 14px;
}
.comment-form .form-submit .submit:hover { background: var(--red-dark); }
