/* ALAP STÍLUSOK */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    flex-direction: column;
    color: #333;
    background-color: #f4f4f4;
    min-height: 100vh;
}

/* NAVBAR - CART.HTML */
.cart-page .navbar {
 background-color: rgba(0, 0, 0, 0.65);
    background-blend-mode: overlay;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     position: sticky;
    top: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


.cart-page .navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/img.jpg') center/cover no-repeat;
    opacity: 0.35;
    z-index: -1;
}
.cart-page .nav-container {
    display: flex;
    justify-content: center; /* logó középre */
    align-items: center;
    position: relative; /* a toggle/hamburger absolute pozíciójához */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.cart-page .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* logó és szöveg közti távolság */
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    transform: none; /* eltávolítjuk az elcsúszást */
}

.cart-page .nav-links {
    display: flex;
    gap: 1rem;
}

.cart-page .nav-links {
    color: white;
    display: flex;
    gap: 1rem;
    margin-left: 10rem; /* ha kell egy kis távolság */
}

.cart-page .nav-link:hover {
    background: #34495e;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    transition: 0.5s;
    animation: logoFadeIn 2s ease-in-out forwards;
    opacity: 0;
    transform: scale(0.7);
    
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* TARTALOM - NAVBAR ALÁ */
.cart-page .main-content {
    max-width: 1200px;
    margin: 90px auto 2rem auto;
    padding: 0 2rem;
}

/* MINDEN MÁS OLDAL */
body:not(.cart-page) .navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body:not(.cart-page) .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

body:not(.cart-page) .nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

body:not(.cart-page) .nav-links {
    display: flex;
    gap: 1rem;
}

body:not(.cart-page) .nav-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: background 0.3s;
}

body:not(.cart-page) .nav-link:hover,
body:not(.cart-page) .nav-link.active {
    background: #34495e;
}

body:not(.cart-page) .main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ÜRES KOSÁR KÖZÉPRE IGAZÍTVA */
.empty-cart-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-cart-message h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-cart-message p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-cart-message .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-cart-message .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* KOSÁR TARTALOM */
.cart-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* TERMÉK BLOKK */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-item-image {
    font-size: 2rem;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #2c3e50;
    font-size: 1rem;
}

/* MENNYISÉG ÉS TÖRLÉS */
.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #2980b9;
}

.quantity-display {
    font-weight: bold;
    font-size: 1rem;
}

/* TÖRLÉS GOMB */
.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #c0392b;
}

/* ÖSSZESÍTŐ KÁRTYA */
.cart-summary {
    margin-top: 2rem;
}

.summary-card {
    background: #ecf0f1;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #2c3e50;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #bdc3c7;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* SZÁLLÍTÁSI INFO */
.shipping-info {
    margin: 1rem 0;
    font-size: 1rem;
    color: #27ae60;
}

/* GOMBOK */
.checkout-btn,
.clear-cart-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn {
    background: #2ecc71;
    color: white;
    margin-right: 1rem;
}

.checkout-btn:hover {
    background: #27ae60;
}

.clear-cart-btn {
    background: #e74c3c;
    color: white;
}

.clear-cart-btn:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-controls {
        align-items: stretch;
        width: 100%;
    }

    .summary-card {
        padding: 1rem;
    }

    .checkout-btn,
    .clear-cart-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.nav-link {
   position: relative;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
}
.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.4s ease;
    z-index: -1;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #c0392b;
    transition: width 0.4s ease;
}

.nav-link:hover{
    color: #ecf0f1;
}

.nav-link:hover::after {
    width: 100%;
}

/* FOOTER */

.main-content {
  flex: 1 0 auto;
}

:root {
  /* állítsd a tényleges magasságra; 220–260px körül szokott lenni */
  --footer-height: 240px;
}

/* A fix footernek helyet adunk a fő tartalom végén */
.cart-page .main-content {
  padding-bottom: var(--footer-height);
}

/* Minden más oldal fő tartalmának is adunk helyet, mivel a footer fixed */
body:not(.cart-page) .main-content {
  padding-bottom: var(--footer-height);
}

/* Biztonság: a footer legyen a tartalom felett csak vizuálisan, ne kattintásblokkoló */
.site-footer {
  z-index: 10;
}


.site-footer {

    background: gray;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.95rem;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-left h4,
.footer-center h4,
.footer-right h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: whitesmoke;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 0.5rem;
}

.footer-center a,
.footer-left a,
.footer-right a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-center a:hover,
.footer-left a:hover,
.footer-right a:hover {
    color: green;
}

/* Közösségi linkek */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Hírlevél form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
}

.newsletter-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

/* CSAK a dark mode toggle label */
.darkmode-toggle-wrapper label {
    width: 100px;
    height: 50px;
    transform: none;
    position: sticky;
    display: inline-block;
    background-color: #ebebeb;
    border-radius: 50px;
    box-shadow: inset 00px 5px 15px rgba(0,0,0,0.4), inset 0px -5px 15px rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}

.darkmode-toggle-wrapper label::after {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    top: 5px;
    left:5px;
    background: linear-gradient(180deg,#ffcc89,#d8860b);
    border-radius: 100%;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.darkmode-toggle-wrapper input {
    width: 0;
    height: 0;
    visibility: hidden;
}

input:checked + label {
    background: #242424;
}

input:checked + label::after {
    left: 55px;
    background: linear-gradient(180deg,#777, #3a3a3a);
}

label:active::after {
    width: 50px;
}

.background {
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: -1;
    position: absolute;
    transition: 0.3s;
    
}
body.darkmode .background {
    background: #242424;
    
}

label svg {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    z-index: 10;
    transform: translateY(-50%);
}

label svg.sun {
    left: 10px;
    fill: #fff;
    transition: 0.3s;
}

label svg.moon {
    right: 10px;
    fill: #7e7e7e;
    transition: 0.3s;
}

input:checked + label svg.sun {
    fill: #7e7e7e;
}

input:checked + label svg.moon {
    fill: #fff;
}

.cart-page .navbar .darkmode-toggle-wrapper, 
.cart-page .ham-menu {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9) ;
    z-index: 2;
}

.cart-page .navbar .darkmode-toggle-wrapper {
    right: 2rem;
}

.cart-page .ham-menu {
    right: 5.5rem; /* toggle mellett */
}

body.darkmode {
  background-color: #242424;
  color: #f0f0f0;
}

body.darkmode .navbar {
  background: #111;
}

body.darkmode .nav-link {
  color: #ccc;
}

body.darkmode .nav-link:hover {
  color: #fff;
}

body.darkmode .hero {
  background: linear-gradient(135deg, #333 0%, #111 100%);
  color: #fff;
}

body.darkmode .cta-button {
  background: #c0392b;
}

body.darkmode .empty-cart-message,
body.darkmode .summary-card, 
body.darkmode .summary-card h3,
body.darkmode .cart-item,
body.darkmode .empty-cart-message h3,
body.darkmode .empty-cart-message p,
body.darkmode .cart-section,
body.darkmode .cart-item-price {
  background: #333;
  color: #fff;
}

body.darkmode .site-footer {
  background: #111;
  color: #ccc;
}

body.darkmode .footer-center a,
body.darkmode .footer-left a,
body.darkmode .footer-right a {
  color: #ccc;
}

body.darkmode .footer-center a:hover,
body.darkmode .footer-left a:hover,
body.darkmode .footer-right a:hover {
  color: #fff;
}

@media screen and (min-width: 200px) and (max-width: 400px) {
    img { display: none; }
}

/* For smart phones */
@media screen and (max-width: 600px) {
}

/* For tablets */
@media screen and (min-width: 600px) and (max-width: 900px) {
}

/* For desktop computers */
@media screen and (min-width: 900px) {
}


/* Mobil nézet */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* HAMBURGER MENÜ STÍLUSOK */
.ham-menu {
    display: none;
    width: 48px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%; /* Módosítva: 2rem helyett 50% */
    transform: translateY(-50%);
    z-index: 1000;
}

.ham-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    margin: 6px 0;
    transition: transform .25s ease, opacity .25s ease;
}

.ham-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* CART PAGE SPECIFIKUS HAMBURGER POZÍCIÓ */
.cart-page .ham-menu {
    top: 50%; /* Középre igazítva a navbar magasságában */
    transform: translateY(-50%);
}

/* OFF-SCREEN MENÜ */
.off-screen-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 420px;
    height: 100vh;
    background: #222;
    color: #fff;
    padding: 2rem;
    transition: right .3s ease;
    z-index: 999;
    overflow-y: auto;
}

.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.off-screen-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid #444;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.off-screen-menu li:hover {
    color: #c0392b;
}

/* Hamburger menüben lévő darkmode */
.off-screen-menu .darkmode-toggle-wrapper {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 2rem auto;
    text-align: center;
}

/* MOBIL NÉZET */
@media (max-width: 900px) {

  .cart-page .nav-links {
        display: none !important; /* rejtett a hamburger miatt */
    }
    .cart-page .nav-logo {
        justify-content: center;
    }
    .cart-page .ham-menu {
        display: block;
    }
    .cart-page .navbar .darkmode-toggle-wrapper {
        display: none; /* mobil toggle a hamburger menüben */
    }

    .nav-links { 
        display: none !important; 
    }
      .ham-menu { 
        display: block;
        top: 50%;
        transform: translateY(-50%);
   
    }
    
    /* Mobilon az eredeti darkmode elrejtése */
    .navbar .darkmode-toggle-wrapper {
        display: none;
    }
    
    /* Hamburger menüben lévő darkmode mutatása */
    .off-screen-menu .darkmode-toggle-wrapper {
        display: block;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-logo {
        margin: 0 auto;
        text-align: center;
    }
}

/* ASZTALI NÉZET */
@media (min-width: 901px) {
    .off-screen-menu { 
        display: none; 
    }
    
    /* Asztalon a hamburger menüben lévő darkmode elrejtése */
    .off-screen-menu .darkmode-toggle-wrapper {
        display: none;
    }
    
    /* Asztalon az eredeti darkmode mutatása */
    .navbar .darkmode-toggle-wrapper {
        display: block;
    }
}

/* BACK TO TOP GOMB */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #219a52;
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top span {
    color: white;
    font-size: 2.5rem;
    transition: 0.2s ease-out;
}

.back-to-top:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-to-top:hover span {
    transform: translateY(-4px);
}

/* Dark mode támogatás */
body.darkmode .back-to-top {
    background-color: #3498db;
}

body.darkmode .back-to-top:hover {
    background-color: #2980b9;
}

/* LOGÓ KÉP */
.cart-page .kep {
     height: 135px;
    margin: auto;
    top: 0;
    opacity: 0;
  transform: translateY(-10px);
    animation: logoFadeIn 2s ease-in-out forwards;
}

/* ----------------------------------- */
/* ÚJ: CHECKOUT ÉS FORM STÍLUSOK */
/* ----------------------------------- */

.cart-flex-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    align-items: flex-start; /* Az összegzés ne nyúljon végig */
}

.cart-main-content {
    flex: 3; /* Kétszer szélesebb, mint az összegzés */
    min-width: 0;
}

.cart-summary {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky; /* Az összegzés maradjon látható görgetéskor */
    top: 20px;
}

.checkout-form-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.checkout-form-container h3 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#customerForm input[type="text"],
#customerForm input[type="email"],
#customerForm input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 16px;
}

#shippingOptions label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#shippingOptions label:has(input:checked) {
    background-color: #e6ffe6;
    border-color: #388e3c;
    font-weight: bold;
}

#selectFoxpostBtn {
    background-color: #ff6600; /* Foxpost narancs */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

#selectFoxpostBtn:hover {
    background-color: #cc5200;
}

.cart-summary hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.cart-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-summary .total-amount {
    font-size: 1.4em;
    font-weight: bold;
    color: #388e3c;
    margin-top: 15px;
}

/* Reszponzívitás (kisebb képernyőkre) */
@media (max-width: 900px) {
    .cart-flex-container {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
        position: relative;
        top: auto;
    }
}

/* --- KOSÁR OLDAL SPECIFIKUS STÍLUSOK --- */

/* Kosár Tartalom és Összegzés elrendezése (Flexbox) */
.cart-flex-container {
    display: flex;
    gap: 30px; /* Térköz a két oszlop között */
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.cart-main-content {
    flex: 2; /* Fő tartalom (termékek, űrlap) nagyobb helyet kap */
    min-width: 300px;
}

.cart-summary {
    flex: 1; /* Összegzés kisebb helyet kap */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    height: fit-content; /* Csak a tartalom magasságát foglalja el */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-summary h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.cart-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-summary .total-amount {
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.cart-summary .total-amount span {
    color: #e74c3c; /* Végösszeg kiemelése piros/narancs színnel */
}

/* --- CTA GOMBOK STÍLUSA (KOSÁR ÉS RENDELÉS) --- */

/* A Gombok, amelyeket a JS vezérel (#goToCheckoutBtn, #checkoutBtn) */
#goToCheckoutBtn,
#checkoutBtn {
    width: 100%;
    padding: 15px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tovább a Pénztárhoz gomb stílusa */
#goToCheckoutBtn {
    background-color: #3498db; /* Kék */
    color: white;
}

#goToCheckoutBtn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* RENDELÉS ELKÜLDÉSE (MEGRENDELEM) GOMB KIEMELT STÍLUSA */
#checkoutBtn {
    background-color: #2ecc71; /* Élénk zöld */
    color: white;
    border: 2px solid #27ae60;
}

#checkoutBtn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}


/* --- TOVÁBBI KOSÁR ELEMEK STÍLUSAI --- */

/* Foxpost gomb kiemelése */
#selectFoxpostBtn {
    background-color: #ff6600; /* Foxpost narancs */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

#selectFoxpostBtn:hover {
    background-color: #cc5200;
}

/* Ürítés gomb */
.clear-cart-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
    float: right; /* Jobbra igazítás */
}

.clear-cart-btn:hover {
    background-color: #c0392b;
}

/* Reszponzivitás 768px alatt (mobil) */
@media (max-width: 768px) {
    .cart-flex-container {
        flex-direction: column; /* Egymás alá kerülnek */
    }
    
    .cart-main-content,
    .cart-summary {
        flex: auto;
        min-width: 100%;
    }
    
    .cart-summary {
        order: -1; /* Az összesítő jöjjön felülre mobilon */
        margin-bottom: 20px;
    }
    
    .clear-cart-btn {
        float: none;
        width: 100%;
        margin-top: 10px;
    }
}

/* Foxpost kézi bevitel stílusai */
#manualFoxpostForm input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#manualFoxpostForm label {
    font-weight: bold;
    color: #333;
}

#saveManualFoxpostBtn {
    background-color: #388e3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#saveManualFoxpostBtn:hover {
    background-color: #2c6e2f;
}

#cancelManualFoxpostBtn {
    background-color: #999;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#cancelManualFoxpostBtn:hover {
    background-color: #777;
}

/* Dark mode támogatás */
body.darkmode #manualFoxpostForm {
    background: #333;
    color: #fff;
}

body.darkmode #manualFoxpostForm input[type="text"] {
    background: #444;
    color: #fff;
    border-color: #555;
}

#manualFoxpostBtn {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#paymentMethod label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#paymentMethod label:has(input:checked) {
    background-color: #e6ffe6;
    border-color: #388e3c;
    font-weight: bold;
}