/* Restored full stylesheet content (truncated here for brevity in patch example). */
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;background:#f4f6f7;color:#333}
header{background:#2c3e50;color:#ecf0f1;padding:.25rem 1rem .5rem 1rem;box-shadow:0 2px 4px rgba(0,0,0,.1);position:sticky;top:0;z-index:10}
.topbar{display:flex;flex-direction:column;gap:.4rem}
.topbar-menu-row{padding-bottom:.35rem;border-bottom:1px solid rgba(255,255,255,.08)}
.topbar-main{display:flex;align-items:center;justify-content:center;gap:1.75rem;padding:.35rem 2rem;box-sizing:border-box;height:48px;overflow:visible}
.topbar-main-right{display:flex;align-items:center;gap:.75rem;flex:0 0 auto;justify-content:flex-start}
.topbar-left{display:flex;align-items:center;gap:.5rem;flex:0 0 auto;text-decoration:none;color:inherit}
.logo-img{height:76px;width:auto;margin-top:-14px;margin-bottom:-14px}
.creative-logo-img{height:38px;width:auto}
.brand-title{font-weight:600;font-size:1.25rem}
.topnav{display:flex;align-items:center;gap:1.75rem;width:100%;justify-content:center;flex-wrap:wrap;padding:0 2rem;box-sizing:border-box}
.topnav a{text-decoration:none;color:#ecf0f1;padding:.25rem .5rem;border-radius:3px;font-size:.9rem}
.topnav a:hover{text-decoration:underline;background:rgba(255,255,255,.08)}
#goodsSearch.topnav-search{width:320px !important;max-width:none !important;min-width:220px;flex:0 0 auto;box-sizing:border-box}
.topnav .topnav-search{-webkit-appearance:none;appearance:none;box-sizing:border-box;padding:.6rem .8rem;border-radius:3px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#ecf0f1;font-size:1rem}
.topnav .topnav-search::placeholder{color:rgba(236,240,241,.7)}
.topbar-main-right a{text-decoration:none;color:#ecf0f1;padding:.3rem .7rem;border-radius:3px;font-size:.95rem;white-space:nowrap}
.topbar-main-right a:hover{text-decoration:underline;background:rgba(255,255,255,.08)}
.cart-nav-link{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;padding:.15rem .5rem;border-radius:999px;background:rgba(255,255,255,.2)}
.cart-nav-icon{height:18px;width:18px;filter:none;opacity:1}
.cart-nav-total{font-size:.8rem;font-weight:600;color:#fff;white-space:nowrap}
.lang-switch{position:relative;display:inline-block;margin-left:.5rem}
.info-menu{position:relative;display:inline-block}
.info-toggle{background:transparent;border:none;padding:.25rem .5rem;cursor:pointer;color:#ecf0f1;font-size:.9rem}
.info-dropdown{display:none;position:absolute;left:0;top:110%;background:#34495e;border-radius:3px;padding:.25rem 0;min-width:220px;z-index:30}
.info-dropdown a{display:block;padding:.35rem .75rem;white-space:nowrap}
.info-menu.open .info-dropdown{display:block}
.lang-toggle{background:transparent;border:1px solid rgba(255,255,255,.3);border-radius:3px;padding:0 .25rem;cursor:pointer;display:flex;align-items:center;height:24px}
.lang-toggle img{height:16px;width:auto}
.lang-menu{display:none;position:absolute;right:0;top:110%;background:#34495e;border-radius:3px;padding:.25rem 0;min-width:80px;z-index:30}
.lang-menu a{display:block;padding:.15rem .5rem}
.lang-menu img{height:16px;width:auto}
.lang-switch.open .lang-menu{display:block}
header .category-menu{margin-top:.25rem;display:flex;flex-wrap:wrap;justify-content:center;gap:1.25rem;padding:.25rem 2rem;box-sizing:border-box;min-height:2rem;background:rgba(255,255,255,.05)}
header .category-menu .category-item{position:relative}
header .category-menu>a,header .category-menu .category-item>a{text-decoration:none;color:#ecf0f1;background:rgba(255,255,255,.04);padding:.15rem .5rem;border-radius:3px;font-size:.85rem;display:inline-block}
header .category-menu a.active{background:#34495e;font-weight:600}
header .category-menu a:hover{text-decoration:underline}
header .category-menu .category-submenu{display:none;position:absolute;left:0;top:100%;background:#fff;border-radius:3px;padding:.25rem 0;min-width:160px;z-index:20;flex-direction:column;border:1px solid rgba(0,0,0,.2)}
header .category-menu .category-submenu a{display:block;margin:0;border-radius:0;white-space:nowrap;color:#2c3e50;text-decoration:none;background:#fff;padding:.15rem 1rem .15rem 1.25rem}
header .category-menu .category-submenu a:hover{color:#2c3e50;background:#f2f2f2;text-decoration:none}
header .category-menu .category-item:hover .category-submenu{display:flex}
header .category-menu .category-item.submenu-open .category-submenu{display:flex}
main{max-width:1100px;margin:1rem auto;padding:0 1rem 2rem 1rem;box-sizing:border-box}
.subcategory-list{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}
.subcategory-list-item{display:inline-block;padding:.6rem 1.1rem;border-radius:4px;background:#f6f8fa;border:1px solid #d0d7de;color:#2c3e50;text-decoration:none;font-size:.95rem}
.subcategory-list-item:hover{background:#eef1f4;text-decoration:underline}
.panel{background:#fff;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.06);padding:1rem;margin-bottom:1rem}
.checkout-steps{display:flex;gap:.5rem;margin-bottom:1rem;font-size:.9rem}
.checkout-step{flex:1;padding:.35rem .5rem;border-radius:3px;border:1px solid #d0d7de;background:#f6f8fa;text-align:center}
.checkout-step-active{background:#2c3e50;color:#ecf0f1;border-color:#2c3e50;font-weight:600}
.order-form .form-row{margin-bottom:.75rem;display:flex;flex-direction:column}
.order-form label{font-weight:500;margin-bottom:.25rem}
.order-form select,.order-form input[type=date],.order-form input[type=text],.order-form textarea{padding:.35rem .4rem;border-radius:3px;border:1px solid #d0d7de;font-size:.9rem;font-family:inherit}
.order-form .hint{font-size:.8rem;color:#666;margin-top:.15rem}
.order-actions-row{display:flex;align-items:center;justify-content:space-between;margin-top:1rem}
.order-back-link{text-decoration:none;color:#2c3e50}
.order-submit-button{background:#27ae60;color:#fff;border:none;border-radius:3px;padding:.45rem 1rem;font-size:.9rem;font-weight:500;cursor:pointer}
.order-submit-button:hover{background:#1f8f4d}
.shipping-method-option{flex-direction:row !important;align-items:center;gap:.5rem;font-weight:400 !important;margin-bottom:.5rem;cursor:pointer}
.shipping-method-option input[type=radio]{margin:0}
.shipping-cost-display{padding:.35rem .4rem;font-weight:600;font-size:1rem}
.panel form .form-row{margin-bottom:.75rem;display:flex;flex-direction:column;max-width:420px}
.panel form label{font-weight:500;margin-bottom:.25rem}
.panel form input[type=text],.panel form input[type=email],.panel form input[type=password]{padding:.35rem .4rem;border-radius:3px;border:1px solid #d0d7de;font-size:.9rem}
.panel form .radio-inline,.panel form .checkbox-inline{flex-direction:row !important;align-items:center;gap:.4rem;font-weight:400 !important;display:inline-flex;margin-right:1rem}
.panel form .form-status{margin:.5rem 0;font-size:.9rem}
.panel form .form-status.error{color:#c0392b}
.panel form .form-status.success{color:#27ae60}
.panel form input.readonly-field{background:#f0f2f5;color:#555}
footer{padding:1rem;text-align:center;font-size:.8rem;color:#777}

/* Osszesito (summary.php) oldal. */
.summary-section{margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid #eee}
.summary-section:last-of-type{border-bottom:none}
.summary-section h3{margin:0 0 .5rem 0;font-size:1rem}
.summary-row{display:flex;justify-content:space-between;gap:1rem;padding:.2rem 0;font-size:.9rem}
.summary-label{color:#555}
.summary-value{font-weight:500;text-align:right}
.summary-row-grand-total{font-size:1.1rem}
.summary-row-grand-total .summary-value{font-weight:700;color:#27ae60}
.summary-row-grand-total-gross{font-size:1.1rem}
.summary-row-grand-total-gross .summary-value{font-weight:700}
#summaryCartContainer table{width:100%;border-collapse:collapse}
#summaryCartContainer th,#summaryCartContainer td{padding:.35rem;text-align:left;border-bottom:1px solid #eee}

/* Kosar oldal: kepek kis belyegkepekkent jelenjenek meg a tablazatban. */
.cart-thumb{max-width:60px;max-height:60px;display:block;margin:0 auto}
.cart-header-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}
.cart-summary{font-weight:500;font-size:.9rem}
.cart-actions-row{display:flex;justify-content:flex-end;margin-top:.75rem}
.cart-next-button{background:#3498db;color:#fff;border:none;border-radius:3px;padding:.45rem 1rem;font-size:.9rem;font-weight:500;cursor:pointer}
.cart-next-button:hover{background:#2980b9}
.cart-next-button:disabled{opacity:.5;cursor:default}

/* Fooldal: banner kepek egymast valtva (rotator). Fix meretaranyu konteiner
   (a banner kepek kb. 3:1 oldalaranyuak), es a diak egymasra retegezve,
   object-fit:cover-rel jelennek meg, igy valtaskor nem valtozik a konteiner
   magassaga es nincs layout shift (CLS). */
.banner-rotator{position:relative;max-width:1100px;margin:1rem auto 0 auto;padding:0 1rem;box-sizing:border-box;overflow:hidden;border-radius:4px;aspect-ratio:3/1}
.banner-rotator .banner-slide{display:none;position:absolute;top:0;left:1rem;right:1rem;width:calc(100% - 2rem);height:100%;object-fit:cover;border-radius:4px}
.banner-rotator .banner-slide.active{display:block}
.banner-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(44,62,80,.55);color:#fff;border:none;border-radius:50%;width:36px;height:36px;font-size:1.1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
.banner-nav:hover{background:rgba(44,62,80,.85)}
.banner-nav-prev{left:1.5rem}
.banner-nav-next{right:1.5rem}

/* Termeklista grid: kartyak tobb oszlopban, sorba torve. */
.products{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1rem}
.product-card{flex:0 0 220px;min-width:0;border:1px solid #eee;border-radius:4px;padding:.5rem;background:#fafafa;box-sizing:border-box;display:flex;flex-direction:column}
.product-image-wrapper{width:100%;height:140px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:.35rem}
.product-image-wrapper img{max-width:100%;max-height:100%;object-fit:contain}

/* Az "Ujdonsagok" (es hasonlo) konteinerek kezdetben uresek, amig a
   webshop.js be nem tolti a termekkartyakat (AJAX). Min-height nelkul a
   feltoltes utan hirtelen megno a magassaguk, es lejjebb lokik a footert
   -> nagy layout shift (CLS). A becsult min-height egy termekkartya-sor
   magassaganak felel meg, igy a tartalom betoltesekor mar nincs ugras. */
#newProductsContainer:empty{min-height:260px}
/* A kép és a név is <a> elemként jelenik meg (termek reszletezo oldalra
   mutat); vizualisan ne kulonbozzenek a sima szovegtol/kepletol. */
a.product-image-wrapper{text-decoration:none;color:inherit}
.product-info-row{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;margin-bottom:.35rem}
.product-name{font-weight:500}
a.product-name{color:inherit;text-decoration:none}
a.product-name:hover,a.product-image-wrapper:hover{text-decoration:underline}
.product-code{font-size:.8rem;color:#666}
.product-packaging{font-size:.8rem;color:#555;margin-top:.15rem}
.price{font-weight:600;color:#27ae60}
.price-vat-suffix{font-weight:400;color:#666;font-size:.85em}
.cart-total-gross-cell{font-weight:700}
.cart-controls{margin-top:auto;display:flex;align-items:center;gap:.35rem}
.cart-qty-wrapper{display:inline-flex;align-items:center;gap:.25rem;flex-wrap:nowrap}
.cart-qty-button{flex:0 0 auto}
.cart-qty{flex:0 0 auto}
.cart-qty{width:60px;padding:.2rem .3rem;font-size:.85rem;text-align:center}
/* Hide the native number input spinner arrows: quantity stepping is done
   via our own -/+ buttons (which respect wr_ratio steps), so the browser's
   own single-unit arrows would be misleading here. */
.cart-qty::-webkit-outer-spin-button,
.cart-qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cart-qty[type=number]{-moz-appearance:textfield;appearance:textfield}
.cart-button{border:none;background:#3498db;color:#fff;border-radius:3px;padding:.25rem .5rem;cursor:pointer;display:flex;align-items:center;justify-content:center}
.cart-button.in-cart{background:#2ecc71}
.cart-button .cart-icon{width:18px;height:18px;filter:invert(1)}

/* Termek reszletezo oldal (product_detail.php). */
.product-detail-back-link{color:inherit;text-decoration:none;font-size:.9rem}
.product-detail-back-link:hover{text-decoration:underline}
.product-detail{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:.5rem}
.product-detail-gallery{flex:0 0 320px;max-width:320px;display:flex;flex-direction:column;gap:.5rem}
.product-detail-main-image-wrapper{position:relative;width:100%}
.product-detail-main-image{width:100%;max-height:320px;object-fit:contain;border:1px solid #eee;border-radius:4px;background:#fafafa;cursor:zoom-in}
.product-detail-main-nav{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;border-radius:50%;background:rgba(0,0,0,.35);color:#fff;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease}
.product-detail-main-nav:hover{background:rgba(0,0,0,.55)}
.product-detail-main-prev{left:8px}
.product-detail-main-next{right:8px}
.image-lightbox-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;z-index:1000;cursor:zoom-out;padding:20px;box-sizing:border-box}
.image-lightbox-img{max-width:95%;max-height:95%;object-fit:contain}
.image-lightbox-close{position:fixed;top:16px;right:24px;width:40px;height:40px;border:none;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:28px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease}
.image-lightbox-close:hover{background:rgba(255,255,255,.3)}
.image-lightbox-nav{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:48px;border:none;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease}
.image-lightbox-nav:hover{background:rgba(255,255,255,.3)}
.image-lightbox-prev{left:24px}
.image-lightbox-next{right:24px}
.product-detail-thumbs{display:flex;flex-wrap:wrap;gap:.4rem}
.product-detail-thumb{width:56px;height:56px;object-fit:contain;border:1px solid #ddd;border-radius:4px;background:#fafafa;cursor:pointer;padding:.1rem}
.product-detail-thumb.active{border-color:#3498db;box-shadow:0 0 0 1px #3498db}
.product-detail-no-image{color:#888;font-size:.9rem}
.product-detail-info{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:.4rem}
.product-detail-info h2{margin:0 0 .25rem 0}
.product-detail-description{margin-top:.75rem;color:#444;line-height:1.4}

/* Responsive layout for phones / small tablets. */
@media (max-width: 768px) {
	header{padding:.25rem .5rem .5rem .5rem}
	.topbar{gap:.35rem}
	.topbar-main{flex-wrap:wrap;gap:.5rem;justify-content:flex-start;padding:.35rem 0;height:auto}
	.topbar-left{flex:1 1 auto}
	.topbar-main-right{flex:1 1 100%;order:1;justify-content:flex-start;flex-wrap:wrap}
	.brand-title{font-size:1rem}
	.logo-img{height:26px}
	.creative-logo-img{height:22px}
	.topnav{flex-wrap:wrap;gap:.35rem;width:100%;justify-content:flex-start;padding:0}
	.topnav .topnav-search{min-width:0;flex:1 1 100%;order:1}
	.topbar-main-right{gap:.4rem}
	.topbar-main-right .topnav-search,
	#goodsSearch.topnav-search{width:100% !important;max-width:none !important;min-width:0 !important;flex:1 1 100%}
	.topnav a{font-size:.8rem;padding:.2rem .4rem}
	.topbar-main-right a{font-size:.85rem;padding:.2rem .5rem}
	header .category-menu{gap:.35rem;justify-content:flex-start;padding:.25rem 0;flex-wrap:wrap}
	header .category-menu .category-item{position:relative;max-width:100%}
	header .category-menu>a,header .category-menu .category-item>a{font-size:.8rem;padding:.15rem .4rem;white-space:normal;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
	header .category-menu .category-submenu{position:static;display:none;border:none;box-shadow:none;padding:0;min-width:0;max-width:100%;box-sizing:border-box}
	header .category-menu .category-item:hover .category-submenu,
	header .category-menu .category-item.submenu-open .category-submenu{display:flex}

	main{margin:.5rem auto;padding:0 .5rem 1.5rem .5rem}
	.panel{padding:.75rem}

	.checkout-steps{flex-direction:column;gap:.35rem}

	.products{gap:.5rem;justify-content:center}
	.product-card{flex:1 1 calc(50% - .5rem);max-width:calc(50% - .5rem)}

	.product-detail{gap:1rem}
	.product-detail-gallery{flex:1 1 100%;max-width:100%}
}

@media (max-width: 480px) {
	.brand-title{display:none}
	.product-card{flex:1 1 100%;max-width:100%}
	.product-image-wrapper{height:120px}

	/* Cart table: switch from a horizontally-scrolling table to a stacked
	   card layout so nothing overflows on narrow screens. */
	#cartContainer table{width:100%;border-collapse:collapse}
	#cartContainer thead{display:none}
	#cartContainer tbody tr{display:block;margin-bottom:.75rem;border:1px solid #eee;border-radius:4px;padding:.5rem;background:#fafafa}
	#cartContainer tbody td{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.25rem 0;border:none;text-align:right}
	#cartContainer tbody td::before{content:attr(data-label);font-weight:500;color:#555;text-align:left;margin-right:.5rem}
	#cartContainer .cart-thumb{margin:0}
}
