/*
Theme Name: El Gringo
Theme URI: https://elgringo.ro
Author: Marian
Description: El Gringo custom theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: elgringo
*/

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: clip;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   Topbar
   =========================== */
#site-topbar {
    width: 100%;
    background-color: #111;
    border-bottom: 1px solid rgba(200, 161, 65, 0.25);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
}

.topbar-item em {
    font-style: normal;
    color: #888;
}

.topbar-item strong {
    color: #c8a141;
}

.topbar-phone {
    color: #ddd;
    transition: color 0.2s;
}

.topbar-phone:hover {
    color: #c8a141;
}

.topbar-divider {
    color: #444;
    font-size: 0.75rem;
    user-select: none;
}

.topbar-fb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: color 0.2s;
    line-height: 1;
}

.topbar-fb-icon:hover {
    color: #1877f2;
}

/* Header vine imediat sub topbar */
#site-header {
    position: sticky;
    top: 36px;
    z-index: 1000;
}

@media (max-width: 768px) {
    /* Ascunde adresa și programul pe mobil (primele 4 elemente), păstrează telefoanele */
    .topbar-left > *:nth-child(-n+4) {
        display: none;
    }

    .topbar-inner {
        justify-content: space-between;
    }

    #site-header {
        top: 36px;
    }
}

/* ===========================
   Header
   =========================== */
#site-header {
    width: 100%;
    background-color: #1a1a1a;
    border-bottom: 3px solid #c8a141;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Logo --- */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.site-logo .site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c8a141;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Primary Navigation --- */
#primary-menu-wrap {
    display: flex;
    align-items: center;
}

/* Logo in drawer — ascuns pe desktop, vizibil doar pe mobil */
.eg-drawer-logo {
    display: none;
}

#primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

#primary-menu li {
    position: relative;
}

#primary-menu li a {
    display: block;
    padding: 10px 16px;
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item > a,
#primary-menu li.current_page_item > a {
    color: #c8a141;
    background-color: rgba(200, 161, 65, 0.1);
}

/* Dropdown sub-menu */
#primary-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background-color: #2a2a2a;
    border: 1px solid #c8a141;
    border-radius: 4px;
    min-width: 180px;
    list-style: none;
    z-index: 200;
}

#primary-menu li:hover > ul.sub-menu {
    display: block;
}

#primary-menu li ul.sub-menu li a {
    padding: 10px 18px;
    font-size: 0.88rem;
    text-transform: none;
    border-radius: 0;
    color: #ddd;
}

#primary-menu li ul.sub-menu li a:hover {
    color: #c8a141;
    background-color: rgba(200, 161, 65, 0.12);
}

/* --- Hamburger (mobile) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1102;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #f0f0f0;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.2s;
    transform-origin: center;
}

/* Animație X când e deschis */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay fundal drawer */
.eg-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1099;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.eg-nav-overlay.is-open {
    display: block;
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    #primary-menu-wrap {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 85vw);
        background-color: #1a1a1a;
        border-right: 2px solid #c8a141;
        padding: 0 0 32px;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .eg-drawer-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 52px 24px 20px;
        border-bottom: 1px solid rgba(200,161,65,0.2);
        flex-shrink: 0;
    }

    .eg-drawer-logo img {
        max-width: 130px;
        height: auto;
        display: block;
    }

    #primary-menu-wrap.is-open {
        transform: translateX(0);
    }



    #primary-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding: 0 0 16px;
    }

    #primary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(200,161,65,0.15);
    }

    #primary-menu li:first-child {
        border-top: 1px solid rgba(200,161,65,0.15);
    }

    #primary-menu li a {
        display: block;
        padding: 15px 28px;
        font-size: 1rem;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
        letter-spacing: 0.3px;
        transition: color 0.2s, background-color 0.2s, padding-left 0.2s;
    }

    #primary-menu li a:hover,
    #primary-menu li.current-menu-item > a,
    #primary-menu li.current_page_item > a {
        color: #c8a141;
        background-color: rgba(200,161,65,0.06);
        padding-left: 36px;
    }

    #primary-menu li ul.sub-menu {
        position: static;
        display: block;
        border: none;
        border-left: 2px solid #c8a141;
        background: transparent;
        margin-left: 28px;
    }

    #primary-menu li ul.sub-menu li a {
        padding: 11px 20px;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.65);
    }

    #primary-menu li ul.sub-menu li a:hover {
        color: #c8a141;
        padding-left: 28px;
    }
}

/* ===========================
   Mini-cart
   =========================== */

/* ── Trigger button ─────────────────────────────────────────── */
.eg-cart-wrap {
    position: relative;
    flex-shrink: 0;
    margin-left: 8px;
}

.eg-cart-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: #f0f0f0;
    cursor: pointer;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.eg-cart-trigger:hover { color: #c8a141; background: rgba(200,161,65,.1); }

.eg-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #c8a141;
    color: #111;
    font-size: .68rem;
    font-weight: 800;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s, transform .2s;
}
.eg-cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

/* ── Cart panel (shared desktop + mobile) ───────────────────── */
.eg-cart-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    overflow: hidden;
    /* hidden state */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, visibility .22s, transform .22s;
}
.eg-cart-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ── Desktop – dropdown on hover ───────────────────────────── */
@media (min-width: 769px) {
    .eg-cart-panel {
        position: absolute;
        top: 100%;        /* flush – no gap so hover stays continuous */
        right: 0;
        width: 360px;
        max-height: 540px;
        border-radius: 0 0 10px 10px;
        border-top: 3px solid #c8a141;
        transform: translateY(-8px);
        z-index: 2000;
        padding-top: 0;   /* visual space comes from panel-head padding */
    }
    /* show on hover OR when JS adds is-open (e.g. after add-to-cart) */
    .eg-cart-wrap:hover .eg-cart-panel,
    .eg-cart-panel.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* ── Mobile – full-screen panel ─────────────────── */
@media (max-width: 768px) {
    .eg-cart-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100dvh;
        border-left: none;
        border-top: 3px solid #c8a141;
        border-radius: 0;
        transform: translateX(100%);
        z-index: 9000;
    }
    .eg-cart-panel.is-open {
        transform: translateX(0);
    }
}

/* ── Panel sections ─────────────────────────────────────────── */
.eg-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.eg-cart-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #c8a141;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eg-cart-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.eg-cart-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.eg-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eg-cart-footer {
    flex-shrink: 0;
    padding: 14px 16px;
    border-top: 1px solid #e8e4dc;
    background: #faf9f7;
}

.eg-cart-empty-msg {
    text-align: center;
    color: #888;
    font-size: .9rem;
    padding: 20px 0;
    margin: 0;
}

.eg-mc-empty {
    text-align: center;
    color: #888;
    font-size: .9rem;
    padding: 24px 0;
}

/* ── Cart total + actions ───────────────────────────────────── */
.eg-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
    margin-bottom: 12px;
    color: #111;
}
.eg-cart-total strong { font-size: 1.1rem; color: #c8a141; }

.eg-cart-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.eg-cart-btn {
    display: block;
    text-align: center;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.eg-cart-btn--primary {
    background: #c8a141;
    color: #fff;
    border: 2px solid #c8a141;
}
.eg-cart-btn--primary:hover { background: #e0b84d; border-color: #e0b84d; color: #fff; }

.eg-cart-btn--outline {
    background: transparent;
    color: #c8a141;
    border: 2px solid #c8a141;
}
.eg-cart-btn--outline:hover { background: #c8a141; color: #fff; }

/* ── Cart item ──────────────────────────────────────────────── */
.eg-mc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.eg-mc-item:last-child { border-bottom: none; padding-bottom: 0; }

.eg-mc-img-wrap {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0ede8;
}
.eg-mc-img,
.eg-mc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eg-mc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eg-mc-name {
    font-size: .88rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eg-mc-price {
    font-size: .84rem;
    color: #c8a141;
    font-weight: 700;
}
.eg-mc-price ins { text-decoration: none; }

/* Qty controls */
.eg-mc-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d8d2c8;
    border-radius: 5px;
    overflow: hidden;
    width: fit-content;
    margin-top: 4px;
}

.eg-mc-qty-btn {
    width: 28px;
    height: 28px;
    background: #f0ede8;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eg-mc-qty-btn:hover { background: #e2ddd5; }

.eg-mc-qty-input {
    width: 36px;
    height: 28px;
    border: none;
    border-left: 1px solid #d8d2c8;
    border-right: 1px solid #d8d2c8;
    text-align: center;
    font-size: .85rem;
    color: #111;
    background: #fff;
    -moz-appearance: textfield;
}
.eg-mc-qty-input::-webkit-inner-spin-button,
.eg-mc-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove button */
.eg-mc-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s, background .15s;
    align-self: flex-start;
}
.eg-mc-remove:hover { color: #e05555; background: rgba(224,85,85,.08); }

/* ── Mobile overlay ─────────────────────────────────────────── */
.eg-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 8999;
    opacity: 0;
    transition: opacity .22s;
}
@media (max-width: 768px) {
    .eg-cart-overlay {
        display: block;
        pointer-events: none;
    }
    .eg-cart-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
    body.eg-cart-open { overflow: hidden; }
}

/* ===========================
   Footer – shared inner
   =========================== */
#site-footer {
    background-color: #111;
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Footer – 4-column grid
   =========================== */
.footer-widgets {
    border-top: 3px solid #c8a141;
    padding: 52px 0 40px;
}

.footer-widgets .footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.footer-col-title {
    color: #c8a141;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200, 161, 65, 0.3);
}

/* --- Col 1: Brand --- */
.footer-col--brand .footer-logo {
    margin-bottom: 14px;
}

.footer-col--brand .footer-logo img {
    height: 52px;
    width: auto;
}

.footer-site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c8a141;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-tagline {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.87rem;
}

.footer-facebook-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1877f2;
    color: #fff;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.15s;
}

.footer-facebook-btn:hover {
    background-color: #1558b0;
    transform: translateY(-1px);
    color: #fff;
}

/* --- Col 2: Links + Netopia --- */
#footer-menu {
    list-style: none;
    margin-bottom: 20px;
}

#footer-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

#footer-menu li a {
    display: block;
    padding: 7px 0;
    color: #bbb;
    transition: color 0.2s, padding-left 0.2s;
}

#footer-menu li a:hover {
    color: #c8a141;
    padding-left: 6px;
}

.footer-netopia-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-netopia-banner img:hover {
    opacity: 1;
}

/* --- Col 3: Firma --- */
.footer-details-list {
    list-style: none;
}

.footer-details-list li {
    padding: 5px 0;
    color: #bbb;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-details-list li strong {
    color: #e0e0e0;
}

/* --- Col 4: Contact --- */
.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: #bbb;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    fill: #c8a141;
}

.footer-contact-list li a {
    color: #bbb;
    transition: color 0.2s;
}

.footer-contact-list li a:hover {
    color: #c8a141;
}

.footer-contact-list li small {
    display: block;
    font-size: 0.78rem;
    color: #888;
}

/* ===========================
   Footer – Alergeni
   =========================== */
.footer-alergeni {
    background-color: #0d0d0d;
    border-top: 1px solid rgba(200, 161, 65, 0.2);
    padding: 20px 0;
}

.footer-alergeni .footer-inner p {
    color: #888;
    font-size: 0.78rem;
    line-height: 1.8;
    text-align: justify;
}

.footer-alergeni strong {
    color: #c8a141;
}

/* ===========================
   Footer – Copyright
   =========================== */
.footer-bottom {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(200, 161, 65, 0.15);
    padding: 14px 0;
}

.footer-bottom .footer-inner p {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #c8a141;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #e0b84d;
}

/* ===========================
   Footer – Responsive
   =========================== */
@media (max-width: 1024px) {
    .footer-widgets .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-widgets .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-widgets {
        padding: 36px 0 28px;
    }
}

/* ===========================
   Scroll to top
   =========================== */
.eg-scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #c8a141;
    color: #111;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}

.eg-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.eg-scroll-top:hover {
    background-color: #e0b84d;
}

@media (max-width: 600px) {
    .eg-scroll-top {
        bottom: 20px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}

/* ── Variable product modal ────────────────────────────────────────────── */
.eg-modal-open { overflow: hidden; }

.eg-var-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.eg-var-modal.is-open { display: flex; }

.eg-var-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    cursor: pointer;
}

.eg-var-modal-box {
    position: relative;
    display: flex;
    gap: 28px;
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px 28px;
    max-width: 680px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,.45);
}

.eg-var-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.eg-var-modal-close:hover { color: #111; background: #eee; }

.eg-var-modal-img-wrap {
    flex: 0 0 180px;
    align-self: flex-start;
}
.eg-var-modal-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.eg-var-modal-body { flex: 1; min-width: 0; }

.eg-var-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}

.eg-var-modal-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c8a141;
    margin: 0 0 18px;
}
.eg-var-modal-price ins { text-decoration: none; }

.eg-var-modal-attrs { margin-bottom: 20px; }

.eg-var-attr-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.eg-var-attr-group label {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
}

.eg-var-select {
    padding: 9px 12px;
    border: 1px solid #d0c9be;
    border-radius: 6px;
    font-size: .95rem;
    background: #faf9f7;
    color: #111;
    cursor: pointer;
    appearance: auto;
}
.eg-var-select:focus { outline: 2px solid #c8a141; border-color: #c8a141; }

.eg-var-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eg-var-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d0c9be;
    border-radius: 6px;
    overflow: hidden;
}
.eg-var-qty-btn {
    width: 36px;
    height: 40px;
    background: #f0ede8;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    transition: background .15s;
}
.eg-var-qty-btn:hover { background: #e2ddd5; }
.eg-var-qty {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid #d0c9be;
    border-right: 1px solid #d0c9be;
    text-align: center;
    font-size: 1rem;
    color: #111;
    background: #fff;
    -moz-appearance: textfield;
}
.eg-var-qty::-webkit-inner-spin-button,
.eg-var-qty::-webkit-outer-spin-button { -webkit-appearance: none; }

.eg-var-modal-add {
    flex: 1;
    min-width: 140px;
    padding: 10px 18px;
    background: #c8a141;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.eg-var-modal-add:hover:not(:disabled) { background: #e0b84d; }
.eg-var-modal-add:disabled { opacity: .45; cursor: not-allowed; }

.eg-var-modal-msg {
    margin-top: 10px;
    font-size: .9rem;
    color: #2e7d32;
    min-height: 1.2em;
}

@media (max-width: 560px) {
    .eg-var-modal-box { flex-direction: column; gap: 16px; padding: 24px 16px 20px; }
    .eg-var-modal-img-wrap { flex: none; width: 100%; max-width: 200px; margin: 0 auto; }
}