/* =============================== */
/* OTP MODAL STYLES               */
/* =============================== */
#otpModal { z-index: 99999 !important; }
#otpModal input { transition: all 0.2s; }
#otpModal input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0,102,255,0.2); }
#otpModal .otp-badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
#otpModal .otp-badge.active { background: #dcfce7; color: #166534; }
#otpModal .otp-badge.inactive { background: #fee2e2; color: #991b1b; }

/* =============================== */
/* THEME ENGINE & AI HELPER       */
/* =============================== */
#themeBubble { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 96; border-radius: 999px; padding: 9px 12px; background: var(--accent); color: #ffffff; display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); user-select: none; }
#themeBubble span:first-child { font-size: 16px; }
#themeBubble:hover { background: var(--accent-pink); }
#themePanel { position: fixed; left: 76px; top: 50%; transform: translateY(-50%); width: 280px; max-width: 80vw; background: #ffffff; border-radius: 18px; border: 1px solid #e5e7eb; box-shadow: 0 18px 45px rgba(0,0,0,.28); padding: 10px 12px; font-size: 12px; color: #111111; z-index: 96; display: none; }
#themePanel h4 { margin: 0 0 4px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
#themePanel small { color: #6b7280; font-size: 11px; }
.theme-row { margin-top: 8px; border-top: 1px solid #e5e7eb; padding-top: 6px; }
.theme-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.theme-preset { border-radius: 999px; border: 1px solid #d4d4d8; padding: 4px 8px; font-size: 11px; cursor: pointer; background: #f9fafb; }
.theme-preset span.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 4px; vertical-align: middle; }
.theme-preset.active { border-color: var(--accent); color: var(--accent); font-weight: 600; background: #eef2ff; }
.theme-custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.theme-field { display: flex; flex-direction: column; gap: 2px; }
.theme-field label { font-size: 11px; color: #4b5563; }
.theme-field input[type="color"] { width: 100%; height: 28px; padding: 0; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; }
#themeSaveBtn { margin-top: 8px; width: 100%; border: none; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight:600; background: #111827; color: #ffffff; cursor: pointer; }
#themeSaveBtn:hover { background: #020617; }
#themeCloseBtn { border: none; background: none; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; color: #6b7280; }

#aiHelperButton { position: fixed; right: 16px; bottom: 16px; z-index: 95; border-radius: 999px; padding: 10px 14px; background: var(--accent); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#aiHelperPanel { position: fixed; right: 16px; bottom: 76px; width: 320px; max-width: 100%; background: #ffffff; border-radius: 18px; border: 1px solid #e5e7eb; box-shadow: 0 18px 45px rgba(0,0,0,.25); padding: 12px; font-size: 13px; color: #111111; z-index: 95; display: none; }

/* =============================== */
/* 11. RESPONSIVE BREAKPOINTS     */
/* =============================== */
@media (max-width: 1100px) { .box-grid-full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { 
    .hero-main, .hero-inner, .hero-split { grid-template-columns: 1fr !important; } 
    .box-grid-full { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 768px) {
    #themeBubble { top: auto; bottom: 16px; transform: none; }
    #themePanel { left: 16px; right: 16px; top: auto; bottom: 60px; transform: none; }
    .hero-title { font-size: 20px; }
    .hero-media-wrap { margin-top: 20px; }
    .box-grid-full { grid-template-columns: 1fr; }
    .spotlight-title { font-size: 24px !important; }
    .spotlight-price-main { font-size: 32px !important; }
    .minimal-title { font-size: 20px !important; }
    .minimal-price { font-size: 32px !important; }
}
@media (max-width: 480px) {
    .hero-split-item, .stack-card { width: 100%; }
    .hero-card-stack { flex-direction: column; }
    .hero-spotlight { padding: 20px !important; }
    .hero-minimal { padding: 20px !important; }
    .carousel-title { font-size: 20px !important; }
}
@keyframes fadeInModal {
    from { opacity:0; transform:scale(0.95) translateY(-10px); }
    to { opacity:1; transform:scale(1) translateY(0); }
}

/* ================================================================ */
/* HAMBURGER MENU & MOBILE NAVIGATION                              */
/* ================================================================ */

/* ---- Hamburger Button ---- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
    margin-right: 6px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--ink);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ---- Overlay ---- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ---- Slide-out Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--card);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: left 0.3s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.open {
    left: 0;
}

/* ---- Header του Menu ---- */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
    padding: 5px;
    line-height: 1;
}

.mobile-menu-logo img {
    max-height: 40px;
    width: auto;
}

/* ---- Navigation ---- */
.mobile-menu-nav {
    flex: 1;
    padding: 15px 20px;
    overflow-y: auto;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav > ul > li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu-nav > ul > li:last-child {
    border-bottom: none;
}

.mobile-menu-nav > ul > li > a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-nav > ul > li > a:hover {
    color: var(--accent);
}

/* ---- Submenu ---- */
.mobile-submenu {
    padding-left: 15px;
    margin-bottom: 6px;
}

.mobile-submenu li {
    border-bottom: none !important;
}

.mobile-submenu li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-submenu li a:hover {
    color: var(--accent);
}

/* ---- Footer του Menu ---- */
.mobile-menu-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
}

.mobile-language-switcher {
    margin-bottom: 12px;
}

.mobile-language-switcher select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

.mobile-menu-contact {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.mobile-menu-contact a {
    color: var(--accent);
    text-decoration: none;
}

/* ---- Mobile visibility overrides ---- */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    /* Κρύβουμε την κανονική category bar */
    .catbar {
        display: none;
    }
    
    /* Κρύβουμε το language switcher του header */
    .desktop-only {
        display: none !important;
    }
}

/* ---- Desktop visibility ---- */
@media (min-width: 769px) {
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
}