/* ==========================================================================
   Promex Design System - STABIL DIZÁJN (ÚJ FŐOLDALLAL)
   ========================================================================== */

header#masthead, .site-header, .wp-block-template-part, .site-container {
    display: none !important;
}

body {
    background-color: #e8eef5; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2d3748;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.promex-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
.promex-main-content { flex: 1; padding-bottom: 80px; box-sizing: border-box; }

/* ==========================================================================
   Fejléc (Header)
   ========================================================================== */
.promex-site-header { background-color: #ffffff; box-shadow: 0 4px 15px rgba(10, 61, 112, 0.08); border-bottom: 4px solid var(--promex-primary); padding: 12px 0; width: 100%; position: sticky; top: 0; z-index: 999; }
.promex-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.promex-logo img { max-height: 50px; width: auto; }
.promex-search { flex-grow: 1; max-width: 400px; }
.promex-search form { display: flex; width: 100%; border-radius: 6px; overflow: hidden; border: 2px solid var(--promex-primary); background: #fff;}
.promex-search input[type="search"] { width: 100%; padding: 10px; border: none; outline: none; box-sizing: border-box; }
.promex-search button { background-color: var(--promex-primary); color: white; border: none; padding: 0 20px; font-weight: bold; cursor: pointer; text-transform: uppercase; box-sizing: border-box; }
.promex-search button:hover { background-color: var(--promex-secondary); }

.promex-nav { display: flex; align-items: center; gap: 25px; }
.promex-nav-link { text-decoration: none; color: var(--promex-primary); font-weight: 700; font-size: 14px; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.promex-cart-link { position: relative; text-decoration: none; background: var(--promex-primary); padding: 10px; border-radius: 8px; color: #ffffff; box-sizing: border-box; }
.promex-cart-count { position: absolute; top: -8px; right: -8px; background-color: var(--promex-secondary); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 2px solid #fff; box-sizing: border-box; }

/* ==========================================================================
   ÚJ FŐOLDAL: SLIDER (Hős Szekció)
   ========================================================================== */
.promex-hero-slider-section {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--promex-primary) 0%, #152238 100%);
    position: relative;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(10, 61, 112, 0.2);
}
.promex-slider-container { position: relative; width: 100%; }
.promex-slider-track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.promex-slide { min-width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.promex-slide-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; }

.promex-slide-text { color: #fff; flex: 1; }
.promex-slide-badge { display: inline-block; background: var(--promex-secondary); color: #fff; padding: 6px 15px; border-radius: 50px; font-weight: 900; font-size: 14px; text-transform: uppercase; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(232, 106, 16, 0.3); }
.promex-slide-text h2 { font-size: 42px; margin: 0 0 20px 0; line-height: 1.2; color: #fff; font-weight: 900; text-transform: uppercase; }
.promex-slide-price { font-size: 32px; font-weight: 900; color: var(--promex-secondary); margin-bottom: 30px; background: rgba(255,255,255,0.1); display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }
.promex-slide-price del { font-size: 20px; color: #a0aec0; font-weight: normal; margin-right: 15px;}
.promex-slide-price ins { text-decoration: none; }
.promex-btn-primary { display: inline-block; background-color: var(--promex-secondary); color: white; padding: 15px 35px; font-size: 16px; font-weight: bold; text-transform: uppercase; text-decoration: none; border-radius: 8px; transition: background-color 0.3s, transform 0.2s; box-shadow: 0 4px 15px rgba(232, 106, 16, 0.4); }
.promex-btn-primary:hover { background-color: #d15c0b; transform: translateY(-2px); color: white; }

.promex-slide-image { flex: 1; text-align: center; }
.promex-slide-image img { max-height: 350px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); background: #ffffff; padding: 20px; border-radius: 12px; }

.promex-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: #fff; border: 2px solid rgba(255,255,255,0.3); width: 50px; height: 50px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: all 0.3s; z-index: 10; display: flex; align-items: center; justify-content: center; }
.promex-slider-btn:hover { background: var(--promex-secondary); border-color: var(--promex-secondary); }
.promex-slider-prev { left: 20px; }
.promex-slider-next { right: 20px; }

/* ==========================================================================
   ÚJ FŐOLDAL: Kategória sorok
   ========================================================================== */
.promex-front-header { text-align: center; margin-bottom: 60px; }
.promex-front-header h1 { font-size: 36px; color: var(--promex-primary); margin-bottom: 10px; font-weight: 900; text-transform: uppercase;}
.promex-front-header p { font-size: 18px; color: #4a5568; margin: 0;}

.promex-category-row { margin-bottom: 70px; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(10, 61, 112, 0.05); border: 1px solid #dbe4ef;}
.promex-category-row-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #e8eef5; padding-bottom: 15px; margin-bottom: 30px; }
.promex-category-row-title { font-size: 26px; color: var(--promex-primary); margin: 0; font-weight: 800; text-transform: uppercase;}
.promex-category-row-link { font-weight: 800; color: var(--promex-secondary); text-decoration: none; font-size: 14px; text-transform: uppercase; background: #fff; padding: 8px 15px; border: 2px solid var(--promex-secondary); border-radius: 6px; transition: all 0.3s; }
.promex-category-row-link:hover { background: var(--promex-secondary); color: #fff; }

/* ==========================================================================
   Oldalsávos layout
   ========================================================================== */
.promex-page-layout { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; width: 100%; box-sizing: border-box; }
.promex-sidebar { width: 240px; flex-shrink: 0; box-sizing: border-box; }
.promex-content-area { flex-grow: 1; min-width: 0; box-sizing: border-box; }

.promex-sidebar-widget { background: #ffffff; border-radius: 8px; box-shadow: 0 4px 15px rgba(10, 61, 112, 0.05); overflow: hidden; border: 1px solid #dbe4ef; box-sizing: border-box; }
.promex-widget-title { background-color: var(--promex-primary); color: #ffffff; font-size: 15px; font-weight: 800; margin: 0; padding: 15px; text-transform: uppercase; box-sizing: border-box; }
.promex-category-list { list-style: none; padding: 10px; margin: 0; box-sizing: border-box; }
.promex-category-list li { margin-bottom: 4px; }
.promex-category-list li a { display: block; padding: 10px 12px; color: #4a5568; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 14px; border-left: 3px solid transparent; transition: all 0.2s; box-sizing: border-box; }
.promex-category-list li a:hover, .promex-category-list li.current-cat > a { background: #e8eef5; color: var(--promex-primary); border-left-color: var(--promex-secondary); padding-left: 15px; }

/* ==========================================================================
   KATALÓGUS RÁCS (ÉRINTETLEN CSS GRID)
   ========================================================================== */
.woocommerce-products-header { margin-bottom: 20px; background: #fff; padding: 15px 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(10, 61, 112, 0.05); border-left: 4px solid var(--promex-secondary); box-sizing: border-box; display: block; }
.woocommerce-products-header__title { font-size: 24px; font-weight: 800; color: var(--promex-primary); margin: 0 0 10px 0; }
.woocommerce-products-header .term-description, .woocommerce-products-header .page-description { display: none !important; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 20px; color: #4a5568; font-size: 14px; }

.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 20px !important; margin: 0 !important; padding: 0 !important; width: 100% !important; box-sizing: border-box; }
.woocommerce ul.products li.product { width: 100% !important; background: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #dbe4ef; padding: 0 0 15px 0 !important; margin: 0 !important; display: flex !important; flex-direction: column !important; transition: transform 0.2s ease; box-sizing: border-box; overflow: hidden; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); border-color: var(--promex-primary); }
.woocommerce ul.products li.product a img { width: 100%; height: 180px; object-fit: contain; padding: 15px; box-sizing: border-box; border-bottom: 1px solid #f1f5f9; background: #fff; margin:0; display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; color: var(--promex-primary); padding: 12px 10px 5px; text-align: center; font-weight: 700; line-height: 1.3; margin:0; box-sizing: border-box; word-wrap: break-word; }
.woocommerce ul.products li.product .price { color: var(--promex-secondary); font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 15px; padding: 0 10px; flex-grow: 1; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }
.woocommerce ul.products li.product .button { background-color: var(--promex-secondary) !important; color: white !important; border-radius: 6px !important; padding: 10px !important; font-size: 12px !important; text-transform: uppercase; margin: 0 15px !important; display: block !important; text-align: center; box-sizing: border-box; white-space: normal; line-height: 1.2; }
.woocommerce ul.products li.product .button:hover { background-color: var(--promex-primary) !important; }

/* ==========================================================================
   TERMÉKOLDAL - ÉRINTETLEN
   ========================================================================== */
.promex-single-product-layout { display: flex; flex-wrap: wrap; gap: 40px; width: 100%; box-sizing: border-box; }
.promex-product-gallery-column { width: calc(45% - 20px); min-width: 0; box-sizing: border-box; }
.promex-product-gallery-column .woocommerce-product-gallery { background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #dbe4ef; width: 100% !important; box-sizing: border-box; box-shadow: 0 4px 20px rgba(10, 61, 112, 0.08); }
.promex-product-gallery-column img { width: 100% !important; height: auto !important; display: block !important; }
.promex-product-gallery-column .flex-control-thumbs { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; padding: 15px 0 0 0 !important; margin: 0 !important; list-style: none !important; box-sizing: border-box; }
.promex-product-gallery-column .flex-control-thumbs li { width: calc(25% - 7.5px) !important; margin: 0 !important; padding: 0 !important; float: none !important; clear: none !important; box-sizing: border-box; }
.promex-product-gallery-column .flex-control-thumbs img { border: 2px solid #dbe4ef !important; border-radius: 6px !important; cursor: pointer !important; transition: all 0.3s ease; box-sizing: border-box; }
.promex-product-gallery-column .flex-control-thumbs img.flex-active, .promex-product-gallery-column .flex-control-thumbs img:hover { border-color: var(--promex-secondary) !important; }

.promex-product-info-column { width: calc(55% - 20px); min-width: 0; box-sizing: border-box; }
.promex-product-info-column .product_title { color: var(--promex-primary); font-size: 32px; font-weight: 800; margin: 0 0 15px 0; line-height: 1.2; text-transform: uppercase; box-sizing: border-box;}
.promex-product-info-column .price { color: var(--promex-secondary); font-size: 28px; font-weight: 900; margin-bottom: 25px; display: inline-block; background: #ffffff; padding: 8px 15px; border-radius: 6px; border: 2px solid var(--promex-secondary); box-sizing: border-box; }

.woocommerce-product-details__short-description { background: #ffffff; padding: 15px; border-radius: 6px; border: 1px solid #dbe4ef; font-size: 14px; color: #4a5568; line-height: 1.6; margin-bottom: 20px; box-sizing: border-box; width: 100%; }
.product_meta { background: #ffffff; padding: 12px 15px; border-radius: 6px; border: 1px solid #dbe4ef; font-size: 13px; color: #4a5568; margin-bottom: 25px; box-sizing: border-box; width: 100%; }
.product_meta span { display: block; margin-bottom: 4px; font-weight: 600; }
.product_meta a { color: var(--promex-primary); text-decoration: none; }

form.cart { background: #ffffff; padding: 25px; border-radius: 8px; border: 1px solid #dbe4ef; box-shadow: 0 4px 15px rgba(10, 61, 112, 0.05); margin-top: 0; width: 100%; box-sizing: border-box; overflow: hidden; }
table.variations { width: 100%; margin-bottom: 20px; box-sizing: border-box; }
table.variations td.label { width: 80px; font-weight: 700; color: var(--promex-primary); padding: 10px 0; font-size: 14px; box-sizing: border-box; }
table.variations select { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background-color: #f8fafc; color: #1a202c; font-weight: 600; box-sizing: border-box; }
.woocommerce-variation-add-to-cart { display: flex; align-items: stretch; gap: 15px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px dashed #cbd5e1; box-sizing: border-box; width: 100%; }
.promex-product-info-column .quantity input { padding: 0 10px; border: 2px solid var(--promex-primary); border-radius: 6px; width: 70px; height: 50px; text-align: center; font-size: 18px; font-weight: 700; color: var(--promex-primary); box-sizing: border-box; margin: 0; }
.promex-product-info-column button.single_add_to_cart_button { background-color: var(--promex-secondary) !important; color: white !important; height: 50px; padding: 0 30px !important; border-radius: 6px !important; font-size: 16px !important; font-weight: 800 !important; border: none !important; cursor: pointer; text-transform: uppercase; transition: all 0.2s ease !important; flex-grow: 1; box-sizing: border-box; margin: 0; min-width: 150px; }
.promex-product-info-column button.single_add_to_cart_button:hover { background-color: var(--promex-primary) !important; }

.promex-product-tabs-column { width: 100%; margin-top: 20px; background: #ffffff; padding: 30px; border-radius: 8px; border: 1px solid #dbe4ef; border-top: 4px solid var(--promex-primary); box-shadow: 0 4px 15px rgba(10, 61, 112, 0.05); box-sizing: border-box; }
.woocommerce-tabs ul.tabs { display: flex !important; list-style: none !important; padding: 0 !important; margin: 0 0 20px 0 !important; border-bottom: 2px solid #e2e8f0; gap: 10px; flex-wrap: wrap; box-sizing: border-box; }
.woocommerce-tabs ul.tabs li { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; padding: 0 !important; cursor: pointer; border-radius: 6px 6px 0 0 !important; border-bottom: none !important; margin: 0 !important; transition: background 0.3s; box-sizing: border-box; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 25px; text-decoration: none; color: #4a5568; font-weight: 800; font-size: 15px; box-sizing: border-box; }
.woocommerce-tabs ul.tabs li.active { background: var(--promex-primary) !important; border-color: var(--promex-primary) !important; }
.woocommerce-tabs ul.tabs li.active a { color: #ffffff !important; }
.woocommerce-tabs ul.tabs li:not(.active):hover { background: #e2e8f0 !important; }
.woocommerce-tabs .panel { color: #2d3748; line-height: 1.6; font-size: 14px; box-sizing: border-box; }
.woocommerce-tabs .panel h2 { display: none; }

/* ==========================================================================
   ÉRTESÍTÉSEK (Sikeres kosárba rakás felugró sávja)
   ========================================================================== */
.woocommerce-notices-wrapper { width: 100%; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { background: #ffffff !important; border-radius: 8px !important; border: 1px solid #dbe4ef !important; border-left: 6px solid var(--promex-secondary) !important; padding: 15px 25px !important; box-shadow: 0 4px 15px rgba(10, 61, 112, 0.05) !important; margin-bottom: 25px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; color: #2d3748 !important; font-weight: 700 !important; font-size: 15px !important; }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { content: none !important; }
.woocommerce-message .button { background: var(--promex-primary) !important; color: white !important; padding: 10px 20px !important; border-radius: 6px !important; text-decoration: none !important; font-size: 13px !important; font-weight: 800 !important; text-transform: uppercase !important; border: none !important; box-shadow: none !important; margin-left: 20px; transition: background 0.3s; }
.woocommerce-message .button:hover { background: #082c52 !important; }

/* ==========================================================================
   Egyéb oldalak alapértelmezett kártyái (Kosár, Pénztár)
   ========================================================================== */
.promex-page-article, .woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: 1px solid #cbd5e1; margin-top: 40px; box-sizing: border-box; }
.promex-site-footer { background-color: #1e293b; color: #94a3b8; padding: 30px 0; text-align: center; margin-top: auto; border-top: 4px solid var(--promex-primary); }

/* ==========================================================================
   Mobil és tablet reszponzív optimalizáció
   ========================================================================== */
@media (max-width: 1200px) {
    .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 992px) {
    .promex-page-layout { flex-direction: column; }
    .promex-sidebar, .promex-content-area { width: 100%; }
    .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    
    .promex-slide-content { flex-direction: column; text-align: center; }
    .promex-slide-image { text-align: center; margin-top: 20px; }
    .promex-slide-text h2 { font-size: 32px; }
}

@media (max-width: 768px) {
    .promex-header-inner { flex-direction: column; }
    .promex-search { width: 100%; }
    .promex-single-product-layout { flex-direction: column; gap: 20px; }
    .promex-product-gallery-column, .promex-product-info-column { width: 100%; }
    .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 15px !important; }
    
    .woocommerce-message { flex-direction: column !important; text-align: center !important; gap: 15px !important; }
    .woocommerce-message .button { margin-left: 0 !important; width: 100% !important; box-sizing: border-box !important; }
}

@media (max-width: 480px) {
    .woocommerce ul.products { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
}