/* ==========================================================================
   Zenith Candle - Komplett Prémium Webshop Dizájn V4.4
   - 4 oszlopos katalógus (4 termék egy sorban)
   - Széles, prémium konténer (1400px)
   - Tiszta aljzat (nincs duplikáció)
   ========================================================================== */

html { scroll-behavior: smooth; }

/* --------------------------------------------------------------------------
   1. KATALÓGUS RÉSZ
   -------------------------------------------------------------------------- */
.zenith-v4-catalog-wrapper { 
    width: 100% !important; 
    max-width: 1400px !important;
    margin: 0 auto; 
    padding: 20px 2% !important; 
    box-sizing: border-box; 
}

.zenith-v4-category-nav {
    background: #3b352d; padding: 20px; position: sticky; top: 0; z-index: 1000;
    border-radius: 8px; box-shadow: 0 4px 15px rgba(59, 53, 45, 0.4);
    margin-bottom: 50px; text-align: center;
}
.zenith-v4-category-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.zenith-v4-category-nav a {
    text-decoration: none; color: #eaddc4; font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; padding: 10px 20px;
    border: 1px solid rgba(234, 221, 196, 0.2); border-radius: 30px;
    transition: all 0.3s ease; background: rgba(255, 255, 255, 0.05);
}
.zenith-v4-category-nav a:hover {
    background: #cba153; color: #fff; border-color: #cba153; box-shadow: 0 0 10px rgba(203, 161, 83, 0.5);
}

.zenith-v4-cat-header { text-align: center; margin: 60px 0 40px; }
.zenith-v4-cat-title { font-family: 'Playfair Display', Georgia, serif; font-size: 36px; color: #2c241b; margin: 0; font-weight: 700; }
.zenith-v4-cat-divider { width: 80px; height: 3px; background: #cba153; margin: 15px auto 0; border-radius: 2px; }

/* 4 OSZLOPOS RÁCS BEÁLLÍTÁSA */
.zenith-v4-catalog-grid { 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important; 
    margin-bottom: 80px !important; 
    padding: 0 !important;
}
.zenith-v4-catalog-grid::before,
.zenith-v4-catalog-grid::after {
    display: none !important;
}

.zenith-v4-product-card { 
    width: 100% !important; 
    max-width: 100% !important;
    float: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    clear: none !important;
}

.zenith-v4-product-inner {
    background: #fdfcf9; border-radius: 12px; overflow: hidden; border: 1px solid #efe8d8;
    box-shadow: 0 8px 25px rgba(110, 95, 75, 0.08); transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%; display: flex; flex-direction: column;
}
.zenith-v4-product-inner:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(110, 95, 75, 0.18); border-color: #eaddc4; }

.zenith-v4-product-image { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid #efe8d8; }
.zenith-v4-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; display: block; margin: 0 auto; }
.zenith-v4-product-inner:hover .zenith-v4-product-image img { transform: scale(1.08); }

.zenith-v4-product-overlay {
    position: absolute; bottom: -80px; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(44, 36, 27, 0.85) 0%, transparent 100%);
    padding: 40px 20px 20px; display: flex; justify-content: center;
    transition: bottom 0.4s ease, opacity 0.4s ease; opacity: 0;
}
.zenith-v4-product-inner:hover .zenith-v4-product-overlay { bottom: 0; opacity: 1; }
.zenith-v4-product-overlay .button {
    background: #cba153 !important; color: #ffffff !important; border-radius: 30px !important;
    padding: 12px 25px !important; font-weight: 700 !important; text-transform: uppercase !important;
    font-size: 12px !important; letter-spacing: 1px !important; border: none !important;
    transition: all 0.3s ease !important; text-decoration: none; display: inline-block;
    box-shadow: 0 4px 15px rgba(203, 161, 83, 0.5);
}
.zenith-v4-product-overlay .button:hover { background: #fff !important; color: #cba153 !important; transform: scale(1.05); }

.zenith-v4-product-info { padding: 25px 20px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.zenith-v4-product-title { font-size: 17px; margin: 0 0 10px; font-weight: 600; line-height: 1.4; font-family: 'Playfair Display', Georgia, serif; }
.zenith-v4-product-title a { color: #2c241b; text-decoration: none; transition: color 0.3s ease; display: block; }
.zenith-v4-product-title a:hover { color: #cba153; }
.zenith-v4-title-separator { width: 30px; height: 1px; background: #eaddc4; margin: 0 auto 15px; }
.zenith-v4-product-price.price { font-size: 18px; color: #5a4b3a; font-weight: 700; margin-bottom: 0 !important; }
.zenith-v4-product-price.price del { font-size: 14px; color: #a89f91; font-weight: 400; margin-right: 8px; }
.zenith-v4-product-price.price ins { text-decoration: none; color: #cba153; }


/* --------------------------------------------------------------------------
   2. EGYEDI TERMÉKOLDAL (SINGLE PRODUCT)
   -------------------------------------------------------------------------- */
body.single-product .site-main > .product {
    max-width: 1200px !important; 
    margin: 40px auto 60px auto !important;
    background: #fdfcf9 !important; border-radius: 16px; padding: 40px;
    border: 1px solid #efe8d8; box-shadow: 0 15px 40px rgba(110, 95, 75, 0.08);
}

body.single-product .woocommerce-product-gallery {
    border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #efe8d8;
}
body.single-product .woocommerce-product-gallery img { border-radius: 12px; }

body.single-product .product_title {
    font-family: 'Playfair Display', Georgia, serif !important; color: #2c241b !important;
    font-size: 38px !important; font-weight: 700 !important; line-height: 1.2 !important;
    margin-bottom: 20px !important; padding-bottom: 20px !important; position: relative;
}
body.single-product .product_title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: #cba153;
}

body.single-product p.price { color: #cba153 !important; font-size: 28px !important; font-weight: 700 !important; margin-bottom: 30px !important; }
body.single-product p.price del { color: #a89f91 !important; font-size: 18px !important; font-weight: 400 !important; }

body.single-product .woocommerce-product-details__short-description { color: #5a4b3a; font-size: 16px; line-height: 1.7; margin-bottom: 30px; }

body.single-product form.cart {
    display: flex !important; align-items: center; gap: 15px; padding: 25px;
    background: #ffffff; border-radius: 12px; border: 1px solid #efe8d8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 30px;
}

body.single-product form.cart div.quantity input.qty {
    width: 70px !important; height: 50px !important; border: 2px solid #eaddc4 !important;
    border-radius: 8px !important; background: #fdfcf9 !important; color: #2c241b !important;
    font-weight: bold !important; font-size: 16px !important; text-align: center !important;
}

body.single-product form.cart button.single_add_to_cart_button {
    background: #cba153 !important; color: #ffffff !important; border-radius: 8px !important;
    padding: 0 35px !important; height: 50px !important; font-weight: 700 !important;
    text-transform: uppercase !important; font-size: 14px !important; letter-spacing: 1px !important;
    border: none !important; transition: all 0.3s ease !important; flex-grow: 1;
}
body.single-product form.cart button.single_add_to_cart_button:hover {
    background: #b58d45 !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(203, 161, 83, 0.4);
}

body.single-product .product_meta { border-top: 1px solid #efe8d8; padding-top: 20px; color: #888; font-size: 14px; }
body.single-product .product_meta a { color: #cba153; text-decoration: none; }

body.single-product .woocommerce-tabs { margin-top: 60px; border-top: none; }
body.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #efe8d8 !important; padding: 0 !important; margin: 0 0 30px 0 !important; display: flex; gap: 30px;
}
body.single-product .woocommerce-tabs ul.tabs li { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 0 15px 0 !important; margin: 0 !important; }
body.single-product .woocommerce-tabs ul.tabs li::before, 
body.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li a { color: #a89f91 !important; font-weight: 600 !important; font-size: 18px !important; text-transform: uppercase; transition: color 0.3s ease; }
body.single-product .woocommerce-tabs ul.tabs li.active a { color: #2c241b !important; }
body.single-product .woocommerce-tabs ul.tabs li.active { position: relative; }
body.single-product .woocommerce-tabs ul.tabs li.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #cba153; display: block !important;
}

/* --------------------------------------------------------------------------
   Reszponzív nézetek (Mobil és kisebb monitorok)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .zenith-v4-catalog-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .zenith-v4-category-nav { position: relative; border-radius: 0; margin-left: -15px; margin-right: -15px; }
    .zenith-v4-catalog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .zenith-v4-product-title { font-size: 15px; }
    .zenith-v4-product-price.price { font-size: 16px; }
    .zenith-v4-product-overlay { opacity: 1; bottom: 0; background: linear-gradient(to top, rgba(44, 36, 27, 0.9) 0%, transparent 100%); padding: 20px 10px 10px; }
    .zenith-v4-product-overlay .button { padding: 8px 15px !important; font-size: 11px !important; }

    body.single-product .site-main > .product { padding: 20px; border-radius: 10px; }
    body.single-product .product_title { font-size: 28px !important; }
    body.single-product form.cart { flex-direction: column; align-items: stretch; }
    body.single-product form.cart div.quantity { display: flex; justify-content: center; margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .zenith-v4-catalog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .zenith-v4-product-info { padding: 15px 10px; }
    .zenith-v4-cat-title { font-size: 28px; }
}