/* ==========================================
   1. ÁLTALÁNOS ALAPOK ÉS HÁTTÉR
   ================================---------- */
body { 
    background-color: #f4f4f4 !important; 
}

/* ==========================================
   2. LÁBLÉC PARTNER SOR TELJES SZÉLESSÉGE
   ================================---------- */
.footer-bottom-position .container,
.footer-bottom-position > div,
div[class*="footer"] .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.footer-bottom-position .partners-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
}

.footer-bottom-position .partners-row > * {
    flex: 0 0 auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 !important; 
}

.footer-bottom-position .partners-row img {
    width: 128px !important;
    height: 50px !important;
    object-fit: contain !important;
}

/* ==========================================
   3. TERMÉKOLDAL ELEMEINEK SORRENDJE
   ================================---------- */
#product {
    display: flex !important;
    flex-direction: column !important;
}

.product-cart-box {
    order: 1 !important;
}

.product-parameters, 
.productattributes1r { 
    order: 2 !important;
}


/* ==========================================
   5. EGYÉB MEGJELENÉSI MÓDOSÍTÁSOK (Sticky, Jobb oszlop, Videó)
   ================================---------- */
.product-sticky-inner {
    display: none !important;
}

/* Jobb oldalsáv elrejtése */
body.hide-right-column .column-right {
    display: none !important;
}

body.hide-right-column section.col-lg-9,
body.hide-right-column .column-main,
body.hide-right-column main {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Főoldal Videos modul – csak a nagy lejátszó, középen */
#section-video .video-row-right { 
    display: none !important; 
}

#section-video .video-row {
    grid-template-columns: minmax(0, 738px) !important;
    justify-content: center !important;
}

/* ==========================================
   6. BAL OLDALSÁV TELJES ÉS VÉGLEGES ELTÜNTETÉSE
   ================================---------- */
.col-lg-3.col-sm-12.col-xs-12.column-left,
.column-left,
#column-left {
    display: none !important;
    flex: 0 0 0% !important;
    max-width: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* A fő tartalom kiterjesztése a bal oszlop helyére is (ha a keretrendszer grid rendszert használ) */
.col-lg-9, 
.col-md-9, 
.col-sm-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

div#module_category_wrapper.module-category-wrapper::after,
div#module_category_wrapper.module-category-wrapper:after {
    display: none !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    .subcategory-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 2 kártya egymás mellett */
        gap: 15px; /* Távolság a kártyák között */
        overflow-x: visible !important; /* Vízszintes görgetés kikapcsolása */
        white-space: normal !important;
    }
    
    .subcategory-item {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important; /* Esetleges külső margók nullázása */
    }
}

/* Képernyőn a nyomtató konténer mindig rejtve van */
@media screen {
    #cart-print-section {
        display: none !important;
    }
}

/* Nyomtatási nézet */
@media print {
    /* Alap weboldal elrejtése */
    body > * { display: none !important; }
    
    /* Nyomtatási konténer megjelenítése */
    #cart-print-section {
        display: block !important;
        width: 100% !important;
        color: #000 !important;
        font-family: Arial, sans-serif !important;
    }

    /* --- Dokumentum felépítése --- */
    .print-document {
        max-width: 800px !important;
        margin: 0 auto !important;
    }
    .print-header {
        border-bottom: 2px solid #000 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
    }
    .print-header h2 {
        margin: 0 !important;
        font-size: 24px !important;
    }
    .print-date {
        margin: 0 !important;
        font-size: 14px !important;
        color: #555 !important;
    }
    .print-footer {
        margin-top: 30px !important;
        border-top: 1px solid #ccc !important;
        padding-top: 10px !important;
        font-size: 12px !important;
        color: #777 !important;
        text-align: center !important;
    }

    /* --- Kosár lista formázása --- */
    #cart-print-section .cart-list {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* Termék sorok táblázatszerű elrendezése */
    #cart-print-section .dropdown-item-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        border-bottom: 1px solid #eee !important;
        padding: 12px 0 !important;
        page-break-inside: avoid !important;
    }

    /* Termékképek */
    #cart-print-section .dropdown-item-pic {
        flex: 0 0 60px !important;
        margin-right: 20px !important;
    }
    #cart-print-section .dropdown-item-pic img {
        width: 100% !important;
        height: auto !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
    }

    /* Terméknév és részletek */
    #cart-print-section .dropdown-menu-product-name {
        font-size: 15px !important;
        font-weight: bold !important;
        color: #222 !important;
        text-decoration: none !important;
        display: block !important;
        margin-bottom: 4px !important;
    }
    #cart-print-section .text-muted {
        font-size: 13px !important;
        color: #666 !important;
    }

    /* Mennyiség és ár egy sorba rendezése */
    #cart-print-section .card-text.mt-1 {
        display: block !important;
        margin-top: 8px !important;
    }
    #cart-print-section .cart-quantity {
        font-size: 14px !important;
        font-weight: bold !important;
        background: #f9f9f9 !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        border: 1px solid #ddd !important;
    }

    /* --- Összesítők formázása --- */
    #cart-print-section .cart-action-list {
        margin-top: 20px !important;
        padding-left: 50% !important; /* Jobbra húzza az összesítőket */
    }
    #cart-print-section .dropdown-item-text {
        display: flex !important;
        justify-content: space-between !important;
        padding: 6px 0 !important;
        font-size: 14px !important;
    }
    #cart-print-section .cart-dropdown-total-row {
        font-size: 18px !important;
        font-weight: bold !important;
        border-top: 2px solid #000 !important;
        margin-top: 8px !important;
        padding-top: 12px !important;
    }
    
    /* Színes nyomtatás engedélyezése az apróbb háttereknek */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* A közös szülőelemet Flex konténerré alakítjuk */
.banner-container-wrapper { /* VAGY a két elem közös szülő elemének class-ja */
    display: flex;
    flex-direction: column;
}

/* Az előnyök sáv kerül felülre */
.sr-home-advantages-viewport {
    order: 1;
}

/* A banner alá kerül */
.container.banner-container {
    order: 2;
}

  #section-sr_home_advantages.ug-advantages-top,
  #section-sr_home_advantages.ug-advantages-top .module {
    margin: 0 0 15px 0 !important;
  }
  .home-body .banner-container {
    margin-bottom: 30px !important;
  }


  #section-sr_home_advantages.ug-advantages-top,
  #section-sr_home_advantages.ug-advantages-top .module {
    margin: 0 0 15px 0 !important;
  }
  .home-body .banner-container {
    margin-bottom: 30px !important;
  }

  /* nincs hézag a mozaik és az utána jövő szekció között */
  .home-body #section-news_mosaic,
  .home-body #section-news_mosaic .module,
  .home-body #section-news_mosaic .news-mosaic-section-body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .home-body #section-news_mosaic + *,
  .home-body #module_latest_wrapper,
  .home-body #module_latest_wrapper .module {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  @media (max-width: 991px) {
    .home-body #section-news_mosaic .news-mosaic-item:last-child {
      margin-bottom: 0 !important;
    }
  }

/* Közös alapstílus mindkét kiemelt menüpontnak */
a.nav-link[href*="special=1"],
a.nav-link[href*="latest=57"] {
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 4px !important;
}

/* 1. menüpont (Discounted products) – Finom korall/piros */
a.nav-link[href*="special=1"] {
    background-color: #fce8e6 !important;
    color: #c5221f !important;
}

a.nav-link[href*="special=1"]:hover {
    background-color: #c5221f !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(197, 34, 31, 0.2);
}

/* 2. menüpont – Urban Garden pasztell zöld (ha eltérő színt szeretnél) */
a.nav-link[href*="latest=57"] {
    background-color: #e6f4ea !important;
    color: #137333 !important;
}

a.nav-link[href*="latest=57"]:hover {
    background-color: #137333 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(19, 115, 51, 0.2);
}

/* Értesítés gomb sárga háttérrel és jól olvasható fekete szöveggel */
a.notify-request.button {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
}

/* Egérrel való rámutatáskor (hover) és rákattintáskor (active/focus) */
a.notify-request.button:hover,
a.notify-request.button:focus,
a.notify-request.button:active {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #000000 !important;
}

/* UG: Registration menupont a jobb felso fejlec-savban (zold pill) */
.headermenu-list a[href*="customer/register"] {
    background: #73b626 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    margin-right: 6px;
    transition: background .2s;
}
.headermenu-list a[href*="customer/register"]:hover,
.headermenu-list a[href*="customer/register"]:focus {
    background: #5e9a1d !important;
    color: #ffffff !important;
}