@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* =========================================
   EREDETI ALAP CSS
   ========================================= */
:root {
    --shop-black: #0f172a;
    --shop-gray: #f8fafc;
    --shop-border: #e2e8f0;
    --shop-blue: #3b82f6;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-color); color: var(--text-main); -webkit-font-smoothing: antialiased; transition: var(--transition); }
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Inter', sans-serif; }

/* Vissza a portfólióhoz sáv */
.demo-return-bar { background: var(--shop-black); color: white; text-align: center; padding: 10px; font-size: 13px; font-weight: 500; position: fixed; top: 0; width: 100%; z-index: 2000; display: flex; justify-content: center; align-items: center; gap: 15px; }
.demo-return-bar a { background: white; color: var(--shop-black); padding: 4px 12px; border-radius: 4px; font-weight: 700; font-size: 12px; transition: 0.3s; }
.demo-return-bar a:hover { background: #e2e8f0; }

/* Navbar */
.navbar { padding: 0 5%; height: 80px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); position: sticky; top: 38px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; transition: var(--transition); }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; color: var(--text-main); }
.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: 15px; color: var(--text-muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.nav-links a:hover { color: var(--text-main); }

/* JAVÍTOTT: Jobb oldali menü ikonok konténere */
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.theme-btn { background: transparent; border: none; font-size: 20px; cursor: pointer; color: var(--text-main); transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 5px; outline: none; }
.theme-btn:hover { transform: scale(1.1); color: var(--primary); }
.cart-icon { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; color: var(--text-main); }
.cart-badge { background: var(--primary); color: white; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }

/* Hero Szekció */
.hero { height: 70vh; background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=2000') center/cover; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 38px; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 1; color: white; }
.hero h1 { font-size: 64px; font-weight: 900; margin: 0 0 10px; letter-spacing: -2px; }
.hero p { font-size: 20px; font-weight: 300; margin-bottom: 30px; }
.btn-light { background: white; color: #0f172a; padding: 16px 40px; font-size: 16px; font-weight: 700; border-radius: 4px; display: inline-block; transition: var(--transition); border: none; cursor: pointer; }
.btn-light:hover { background: var(--primary); color: white; }

/* Gombok */
.btn-dark { background: var(--primary); color: white; border: none; padding: 15px 30px; font-size: 16px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: var(--transition); width: 100%; display: inline-block; text-align: center; }
.btn-dark:hover { background: var(--primary-dark); }

/* Termékrács */
.container { max-width: 1300px; margin: 0 auto; padding: 80px 20px; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 40px; letter-spacing: -1px; color: var(--text-main); transition: var(--transition); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-img-wrapper { position: relative; overflow: hidden; border-radius: 12px; background: var(--bg-alt); margin-bottom: 15px; aspect-ratio: 3/4; transition: var(--transition); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-img { transform: scale(1.05); }
.add-to-cart-overlay { position: absolute; bottom: -60px; left: 10px; right: 10px; background: var(--white); padding: 15px; text-align: center; font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition); opacity: 0; backdrop-filter: blur(5px); color: var(--text-main); border: 1px solid var(--border-color); }
.product-card:hover .add-to-cart-overlay { bottom: 10px; opacity: 1; }
.add-to-cart-overlay:hover { background: var(--primary); color: white; border-color: var(--primary); }
.product-title { font-size: 16px; font-weight: 600; margin: 0 0 5px; color: var(--text-main); transition: var(--transition); }
.product-price { font-size: 15px; color: var(--text-muted); font-weight: 500; margin: 0; }

/* Kosár Oldal */
.grid-cart { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.cart-header { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); font-weight: 600; color: var(--text-muted); font-size: 14px; text-transform: uppercase; transition: var(--transition); }
.cart-item { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--border-color); transition: var(--transition); }
.cart-product-info { display: flex; gap: 20px; align-items: center; }
.cart-product-info img { width: 100px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 6px; width: fit-content; overflow: hidden; background: var(--white); transition: var(--transition); }
.qty-btn { background: transparent; color: var(--text-main); border: none; padding: 8px 12px; cursor: pointer; font-weight: bold; font-size: 16px; transition: 0.2s; }
.qty-btn:hover { background: var(--bg-alt); }
.qty-input { width: 40px; text-align: center; border: none; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); font-weight: 600; font-size: 15px; padding: 8px 0; background: transparent; color: var(--text-main); transition: var(--transition); }
.remove-btn { color: #ef4444; background: none; border: none; font-size: 24px; cursor: pointer; display: flex; justify-self: end; }
.cart-summary { background: var(--bg-alt); padding: 40px; border-radius: 12px; position: sticky; top: 140px; border: 1px solid var(--border-color); transition: var(--transition); }

/* Pénztár Oldal */
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.checkout-section { margin-bottom: 40px; }
.checkout-section h3 { font-size: 20px; border-bottom: 2px solid var(--text-main); padding-bottom: 10px; margin-bottom: 20px; color: var(--text-main); transition: var(--transition); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); transition: var(--transition); }
.form-control { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; font-size: 15px; transition: 0.3s; background: var(--white); color: var(--text-main); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.payment-box { background: var(--bg-alt); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 30px; transition: var(--transition); }

/* Validációk, Kupon és Bankkártya mezők */
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-left: 45px; }
.card-icon-img { position: absolute; left: 12px; top: 40px; width: 25px; opacity: 0.3; transition: 0.3s; }
.card-icon-img.active { opacity: 1; }

.error-msg { color: #ef4444; font-size: 12px; font-weight: 600; margin-top: 5px; display: none; }
.form-group.has-error .form-control { border-color: #ef4444; box-shadow: 0 0 0 1px #ef4444; }
.form-group.has-error .error-msg { display: block; }

.coupon-box { display: flex; gap: 10px; margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; transition: var(--transition); }
.coupon-input { flex: 1; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-family: 'Inter'; background: var(--white); color: var(--text-main); transition: var(--transition); }
.coupon-btn { background: var(--text-main); color: var(--bg-color); border: 1px solid var(--border-color); padding: 0 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.coupon-btn:hover { opacity: 0.8; }

.discount-row { display: none; justify-content: space-between; color: #10b981; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.discount-row.active { display: flex; }

/* Űrlap Választó Gombok (A kért kék verzió) */
.selector-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.selector-btn { flex: 1; min-width: 140px; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--white); color: var(--text-main); cursor: pointer; text-align: center; font-size: 14px; font-weight: 500; transition: var(--transition); }
.selector-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--text-main); font-weight: 700; box-shadow: 0 0 0 1px var(--primary); }
.selector-btn:hover { border-color: var(--primary); }

/* Toast Értesítés */
#toast { visibility: hidden; min-width: 300px; background-color: var(--primary); color: white; text-align: center; border-radius: 8px; padding: 16px 20px; position: fixed; z-index: 3000; left: 50%; bottom: 30px; font-size: 15px; font-weight: 600; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s, bottom 0.3s; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
#toast.show { visibility: visible; opacity: 1; bottom: 50px; }

@media (max-width: 992px) { .grid-cart, .checkout-grid { grid-template-columns: 1fr; } .cart-header { display: none; } .cart-item { grid-template-columns: 1fr; gap: 20px; position: relative; } .remove-btn { position: absolute; top: 30px; right: 0; } }


/* =========================================
   ÚJ TÖKÉLETESÍTETT SÖTÉT MÓD FELÜLÍRÁSOK
   (Mindent lefed: Gombok, Mezők, Hátterek)
   ========================================= */

body.dark-mode {
    --bg-color: #0f172a;
    --bg-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --white: #1e293b; /* Trükk: a fehér dobozok sötétszürkék lesznek */
    background-color: #0f172a;
    color: #f8fafc;
}

body.dark-mode .demo-return-bar { background: var(--primary); color: white; }
body.dark-mode .demo-return-bar a { background: white; color: var(--primary); }

body.dark-mode .navbar { background: rgba(15,23,42,0.95); border-bottom-color: #334155; }
body.dark-mode .nav-links a { color: #94a3b8; }
body.dark-mode .nav-links a:hover, body.dark-mode .nav-links a.active { color: #ffffff; }
body.dark-mode .theme-btn, body.dark-mode .cart-icon { color: #f8fafc; }
body.dark-mode .theme-btn:hover { color: var(--primary); }

/* Belső űrlap gombok és mezők sötét módban */
body.dark-mode .selector-btn { background: #0f172a; border-color: #334155; color: #f8fafc; }
body.dark-mode .selector-btn.active { background: rgba(59, 130, 246, 0.2); border-color: var(--primary); color: #ffffff; }

body.dark-mode .form-control, body.dark-mode .coupon-input { background: #0f172a; border-color: #334155; color: #f8fafc; }
body.dark-mode .form-control:focus, body.dark-mode .coupon-input:focus { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

body.dark-mode .coupon-btn { background: #334155; color: #f8fafc; border-color: #334155; }
body.dark-mode .coupon-btn:hover { background: #475569; }

body.dark-mode .qty-btn { background: #0f172a; color: #f8fafc; }
body.dark-mode .qty-btn:hover { background: #334155; }
body.dark-mode .qty-input { background: #0f172a; color: #f8fafc; border-color: #334155; }
body.dark-mode .qty-selector { border-color: #334155; }

body.dark-mode .add-to-cart-overlay { background: #1e293b; color: #f8fafc; border: 1px solid #334155; }
body.dark-mode .add-to-cart-overlay:hover { background: var(--primary); border-color: var(--primary); }

body.dark-mode .btn-light { background: #334155; color: #f8fafc; }
body.dark-mode .btn-light:hover { background: var(--primary); }

/* Vonalak és ikonok Sötét Módban */
body.dark-mode hr, body.dark-mode .cart-header, body.dark-mode .cart-item, body.dark-mode .checkout-section h3 { border-color: #334155; }
body.dark-mode .card-icon-img { filter: invert(1); opacity: 0.5; }
body.dark-mode .card-icon-img.active { filter: none; opacity: 1; }

/* =========================================
   TERMÉK RÉSZLETEK OLDAL (ÚJ)
   ========================================= */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 20px 20px 80px; }

/* Bal oldal: Galéria */
.product-gallery { display: flex; flex-direction: column; gap: 20px; }
.main-image { width: 100%; height: 600px; object-fit: cover; border-radius: 12px; background: var(--shop-gray); transition: var(--transition); }
.thumbnail-list { display: flex; gap: 15px; }
.thumbnail { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); opacity: 0.6; }
.thumbnail.active, .thumbnail:hover { border-color: var(--shop-blue); opacity: 1; }

/* Jobb oldal: Adatok */
.breadcrumb { margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--shop-muted); }
.breadcrumb a { color: var(--shop-muted); transition: 0.3s; }
.breadcrumb a:hover { color: var(--shop-blue); }

.product-meta h1 { font-size: 40px; margin: 0 0 10px; font-weight: 900; letter-spacing: -1px; color: var(--text-main); transition: var(--transition); }
.reviews { color: #f59e0b; font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.reviews span { color: var(--shop-muted); font-weight: 500; }
.product-meta .price { font-size: 28px; color: var(--shop-blue); font-weight: 800; margin-bottom: 20px; }
.product-meta .desc { color: var(--shop-muted); line-height: 1.8; margin-bottom: 30px; font-size: 16px; transition: var(--transition); }

/* Méretválasztó */
.size-selector { margin-bottom: 30px; }
.size-selector h4 { font-size: 14px; text-transform: uppercase; margin-bottom: 10px; color: var(--text-main); transition: var(--transition); }
.size-options { display: flex; gap: 10px; }
.size-btn { border: 1px solid var(--border-color); background: transparent; color: var(--text-main); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.size-btn:hover, .size-btn.active { border-color: var(--shop-blue); background: var(--shop-blue); color: white; }

/* Gombok és Extrák */
.action-row { display: flex; gap: 20px; margin-bottom: 40px; }
.action-row .qty-selector { height: 54px; }
.action-row .btn-dark { flex: 1; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

.features-list { list-style: none; padding: 0; margin-bottom: 40px; border-top: 1px solid var(--border-color); padding-top: 20px; transition: var(--transition); }
.features-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: var(--text-main); font-weight: 500; font-size: 15px; transition: var(--transition); }
.features-list li i { color: var(--shop-blue); font-size: 20px; width: 24px; text-align: center; }

/* Sötét mód kiegészítések az új elemekhez */
body.dark-mode .size-btn { border-color: #334155; color: #f8fafc; }
body.dark-mode .size-btn:hover, body.dark-mode .size-btn.active { border-color: var(--shop-blue); background: var(--shop-blue); color: white; }
body.dark-mode .thumbnail { opacity: 0.4; }
body.dark-mode .thumbnail.active, body.dark-mode .thumbnail:hover { opacity: 1; border-color: var(--shop-blue); }

@media (max-width: 992px) { .product-detail-grid { grid-template-columns: 1fr; } .main-image { height: 400px; } .action-row { flex-direction: column; } }

/* --- MÉRET VÁLASZTÓ MODAL (Főoldali Kosárba rakáshoz) --- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { background: var(--bg-color); border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; width: 90%; max-width: 400px; text-align: center; transform: translateY(20px); transition: var(--transition); position: relative; }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); transition: 0.3s; line-height: 1; }
.modal-close:hover { color: #ef4444; }

.modal-size-grid { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.modal-size-btn { width: 50px; height: 50px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); font-weight: bold; cursor: pointer; transition: 0.2s; }
.modal-size-btn:hover, .modal-size-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

body.dark-mode .modal-box { background: #1e293b; border-color: #334155; }
body.dark-mode .modal-size-btn { border-color: #334155; color: #f8fafc; }
body.dark-mode .modal-size-btn:hover, body.dark-mode .modal-size-btn.active { background: var(--primary); border-color: var(--primary); color: white; }