/*
Theme Name: Bella Italia Pizza
Theme URI: http://test-site-report.local/home/
Author: Made with Love
Description: A premium, authentic Italian pizzeria theme with wood-fired vibes.
Version: 1.1.0
Text Domain: bella-italia
*/

:root {
    --primary-color: #D32F2F;
    --hover-green: #00703C;
    --secondary-color: #2E7D32;
    /* Rich Italian Green */
    --accent-color: #FFC107;
    /* Golden Crust Yellow */
    --bg-color: rgb(18, 18, 18);
    /* Deep Charcoal/Black */
    --card-bg: #141414;
    /* Slightly lighter for cards */
    --text-color: #EEEEEE;
    /* Off-white for readability */
    --text-muted: #A0A0A0;
    /* Muted gray for secondary info */
    --white: #FFFFFF;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(40px, 8vw, 84px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 4px;
}

.about-subtitle,
.cat-name,
.btn-order,
.nav-list a {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.05em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:visited {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #141414;
    /* Match screenshot dark gray */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 20px;
    font-family: 'Work Sans', sans-serif;
    text-transform: capitalize;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-list a:hover::after,
.nav-list li.current_page_item > a::after,
.nav-list li.current-menu-item > a::after,
.nav-list li.current-menu-ancestor > a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.nav-list li a {
    color: #A0A0A0;
    /* Muted for inactive */
}

.nav-list li.current-menu-item>a,
.nav-list li.current_page_item>a,
.nav-list li.current-menu-ancestor>a,
.nav-list li.active>a {
    color: var(--primary-color) !important;
}

.nav-list li a:hover,
.nav-list li a:active {
    color: var(--primary-color) !important;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hidden on desktop; only shown inside the mobile media query */
.mobile-header-actions {
    display: none;
}

.header-actions a {
    background: #222222;
    /* Box background from screenshot */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* Subtle rounding */
    color: #FFFFFF;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.header-actions a:hover {
    background: #333333;
    transform: scale(1.05);
    color: var(--accent-color);
}

.header-actions i:hover {
    color: var(--primary-color);
}

.btn-order {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.btn-order:hover {
    background-color: var(--hover-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 112, 60, 0.3);
    color: var(--white);
}

footer {
    background-color: #0A0A0A;
    /* Deep Black */
    padding: 60px 0 60px;
    margin-top: 60px;
    position: relative;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
    color: var(--text-color);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-widget h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 15px;
}

.footer-widget p {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.8;
}

.footer-widget ul li a {
    color: var(--text-muted);
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-bottom p {
    margin: 0;
}

/* WooCommerce Global Adjustments */
.woocommerce span.onsale {
    background-color: var(--secondary-color);
    border-radius: 50%;
    padding: 10px;
    font-weight: 700;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--primary-color);
    font-weight: 900;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--secondary-color);
}

/* Icon Visibility Fixes */
.fa-solid,
.fa-brands,
.fas,
.fab {
    display: inline-block !important;
    font-family: inherit;
    /* Allow Font Awesome to style itself */
}

.cart-icon i,
.social-icons i,
.add-to-cart-btn i {
    min-width: 20px;
    text-align: center;
}

body.no-scroll {
    overflow: hidden;
}



@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 2;
        color: var(--white) !important;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 60px;
    }

    .header-actions {
        display: flex !important;
        order: 3;
    }

    .main-header.menu-open .logo,
    .main-header.menu-open .header-actions {
        display: none !important;
    }

    .mobile-header-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        order: 2;
        z-index: 1200;
        position: relative;
    }

    .mobile-header-actions a {
        background: #222222;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #FFFFFF;
        font-size: 16px;
        text-decoration: none;
        transition: background 0.3s ease, transform 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-header-actions a:hover {
        background: #333333;
        transform: scale(1.05);
        color: var(--accent-color);
    }

    .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #0A0A0A;
        background-image: radial-gradient(circle at 50% 50%, rgba(211, 47, 47, 0.05) 0%, transparent 70%);
        padding: 0;
        z-index: 1100;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        visibility: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-navigation.is-active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-list,
    .nav-list ul {
        flex-direction: column;
        align-items: center;
        gap: 35px;
        text-align: center;
        padding-top: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .nav-list li a {
        font-family: 'Poppins', sans-serif;
        font-size: 32px;
        color: var(--white);
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: color 0.3s ease;
    }

    .nav-list li a:hover,
    .nav-list li.current-menu-item>a {
        color: var(--primary-color) !important;
    }

    .mobile-menu-toggle {
        order: 2;
        z-index: 1200;
        position: relative;
        background: none;
        border: none;
        color: var(--white) !important;
        font-size: 28px;
        cursor: pointer;
    }

    .logo {
        order: 1;
        z-index: 1200;
        position: relative;
    }

    .footer-inner {
        text-align: center;
        gap: 30px !important;
    }

    .footer-widget h3 {
        margin-bottom: 15px !important;
    }

    .footer-widget p,
    .footer-widget ul li {
        margin-bottom: 8px !important;
    }

    footer {
        padding: 50px 0 30px !important;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-widget ul li a:hover {
        padding-left: 0;
    }
}

/* Authentic Pizza Vibe Refinements */
.main-hero-slider .swiper-slide-inner {
    background-image: url('assets/hero-pizza.png') !important;
    /* Force high-quality photo */
}

/* Clear WooCommerce Apparel Grid Backgrounds */
.woocommerce ul.products li.product {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    text-align: center;
}

.woocommerce-loop-product__title {
    font-family: 'Instrument Sans', sans-serif !important;
    font-size: 24px !important;
    color: var(--dark-gray) !important;
    margin: 15px 0 10px !important;
}

.woocommerce ul.products li.product .button {
    background-color: var(--primary-color) !important;
    font-family: 'Instrument Sans', sans-serif !important;
    font-weight: 700 !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
}

/* =====================================================
   CART COUNT BADGE
   ===================================================== */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 14px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.cart-count.empty {
    display: none;
}

/* =====================================================
   SIDE CART OVERLAY
   ===================================================== */
.side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.side-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   SIDE CART DRAWER
   ===================================================== */
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-cart.is-open {
    transform: translateX(0);
}

/* Header */
.side-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.side-cart-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-cart-title-wrap i {
    color: var(--primary-color);
    font-size: 18px;
}

.side-cart-title-wrap h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.side-cart-item-count {
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.side-cart-close {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.side-cart-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Body (scrollable) */
.side-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.side-cart-body::-webkit-scrollbar { width: 4px; }
.side-cart-body::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* Loading */
.side-cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 60px 0;
    font-size: 15px;
}

/* Empty state */
.side-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-muted);
}

.side-cart-empty i {
    font-size: 48px;
    opacity: 0.3;
}

.side-cart-empty p {
    margin: 0;
    font-size: 16px;
}

/* =====================================================
   WOOCOMMERCE MINI CART ITEMS
   Structure per <li>:
     1. <a class="remove remove_from_cart_button">×</a>
     2. <a href="..."><img /> Product Name</a>
     3. <span class="quantity">1 × €price</span>
   ===================================================== */
.side-cart-body .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each item row */
.side-cart-body .woocommerce-mini-cart-item {
    display: grid;
    grid-template-columns: 72px 1fr 24px;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: start;
}

/* Remove button — grid area top-right */
.side-cart-body .woocommerce-mini-cart-item .remove_from_cart_button {
    grid-column: 3;
    grid-row: 1;
    width: 24px;
    height: 24px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #aaa;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    justify-self: center;
}

.side-cart-body .woocommerce-mini-cart-item .remove_from_cart_button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Product link (image + name) — spans col 1 for image, col 2 for text */
.side-cart-body .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
    grid-column: 1 / 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    text-decoration: none;
}

/* Thumbnail */
.side-cart-body .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    grid-column: 1;
}

/* Product name text node — WC outputs it as inline text after img */
.side-cart-body .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* Quantity row */
.side-cart-body .woocommerce-mini-cart-item .quantity {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    padding-left: 0;
}

.side-cart-body .woocommerce-mini-cart-item .woocommerce-Price-amount {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hide WC's built-in total/buttons — we render our own in footer */
.side-cart-body .woocommerce-mini-cart__total,
.side-cart-body .woocommerce-mini-cart__buttons {
    display: none !important;
}

/* Footer */
.side-cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    background: #141414;
    flex-shrink: 0;
}

.side-cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
}

.side-cart-subtotal span {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.side-cart-subtotal strong {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.side-cart-actions {
    display: flex;
    gap: 10px;
}

.sc-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sc-btn-secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sc-btn-secondary:hover {
    background: #333;
    color: #fff;
}

.sc-btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

.sc-btn-primary:hover {
    background: var(--hover-green);
    box-shadow: 0 6px 20px rgba(0, 112, 60, 0.3);
    color: #fff;
}

/* =====================================================
   RESPONSIVE — full-width drawer on small screens
   ===================================================== */
@media (max-width: 480px) {
    .side-cart {
        width: 100vw;
        border-left: none;
    }
}
