/* Define basic CSS variables and variables for light and dark modes */
:root {
    --width:60%;
}
:root.light-mode {
    --body-color: #eaeaea;
    --theme: #cd4949;
    --page-color: #ffffff;
    --darker-theme:#aa3d3d;
    --txt:#515151;
    --txt-active:#ffffff ;
    --txt-inactive:#ebb6b6 ;
    --hightlight: #cd4949;
    --footer: #171717;
    --btn-inactive: var(--txt-inactive);
    --shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
:root.dark-mode {
    --body-color: #1c1c1c;
    --theme: #111042;
    --page-color: #212121;
    --darker-theme:#090e29;
    --txt:#eaeaea;
    --txt-active:#eaeaea;
    --txt-inactive: #6674aa;
    --hightlight: #6674aa;
    --footer: #171717;
    --btn-inactive: var(--txt-inactive);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: var(--body-color);
}

header {
    position: sticky;
    width: var(--width);
    margin: 0 auto;
    height: 70px;
    background-color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

header img{
    padding: 10px;
    margin-left: 0;
    cursor: pointer;
}

/* Navigation/Dropdown Styles */
.navbar {
    flex: 1 1 auto;
}
.navbar ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

.navbar li {
    position: relative; /* Ez kell ahhoz, hogy az almenü ehhez viszonyítva pozícionáljon */
}

.navbar a {
    display: block;
    color: var(--txt-inactive);
    padding: 5px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
}

.navbar a:hover, .navbar a.active {
    color: var(--txt-active);
    text-decoration: none;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon{
    width: 30px;
    height: 30px;
    cursor: pointer;
    box-sizing: unset;
}

.cart-badge {
    display: none;
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--darker-theme);
    color: var(--txt-active);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
}

#themeToggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--txt-inactive);
    width: 60px;
    height: 60px;
}

/* Legördülő doboz (alapból rejtve) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Közvetlenül a gomb alá helyezi */
    left: 0;
    background-color: var(--theme);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
}

/* Az almenüben lévő linkek stílusa */
.dropdown-content a {
    color: var(--txt-inactive);
    padding: 12px 16px;
    font-weight: bold;
}

.dropdown-content a:hover {
    background-color: var(--theme);
    color: var(--txt-active); /* Vöröses kiemelés mint a képen */
    border-radius: 4px;
  
}

/* Amikor a kurzort a .dropdown fölé viszed, megjelenik a .dropdown-content */
.dropdown:hover .dropdown-content {
    display: block;
    border-radius: 4px;
}

.info{
    background: var(--darker-theme);
    position: sticky;
    margin: 0 auto;
    height: 40px;
    width: var(--width);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.info a{
    text-decoration: none;
    color: var(--txt-active);
    font-size: 1.2rem;
}

.phone, .email{
    cursor: pointer;
}

/* Product Section Styles */
.products {
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 0 40px;
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text {
    width: 100%;
}

.text h1 {
    font-family: 'Lobster', cursive;
    font-weight: normal;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.text p {
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: normal;
}


.container {
    margin: 0 auto;
    padding: 20px;
    background-color: var(--page-color);
    color: var(--txt);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--txt);
}

/* Product Item Styles */
.product-item {
    background-color: var(--page-color);
    color: var(--txt);
    border-radius: 5px;
    text-align: center;
    margin: 0;
}

.product-item h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: var(--hightlight);
}

.product-item h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--hightlight);
}

.product-item h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--hightlight);
}

.product-item h6 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    font-weight: normal;
    font-style: italic;
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.product-item p {
    font-size: 0.8rem;
    margin: 0;
}

.price {
    color: var(--hightlight);
    font-weight: bold;
}

.product-item button {
    background-color: var(--theme);
    color: var(--txt-active);
    border: 2px solid var(--darker-theme);
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    text-transform: uppercase;
}

.product-item button:hover {
    background-color: var(--darker-theme);
    color: var(--txt-active);
}

.disclaimer {
    font-size: 0.8rem;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    color: var(--txt);
}

.custom-name{
    width: 100%;
    max-width: 300px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--darker-theme);
    border-radius: 5px; background:
    var(--page-color);
    color: var(--txt);
}

/* Footer Styles */
footer {
    background-color: var(--footer);
    color: var(--txt);
    margin: auto auto 0;
    width: var(--width);
    justify-content: center;
    padding: 0 40px;
    height: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
}

footer p {
    margin: 0;
    font-weight: bold;
}

footer a {
    color: var(--txt);
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    font-size: 0.9rem;
}

/*Product Page Styles */
.shop{
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 20px 40px 0 40px;
    margin: 0 auto;
}

.shop h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--hightlight);
    padding-top: 25px;
}

.product-info {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding: 20px 0 0 0;
    width: 100%;
}

.product-image-container{
    display: flex;
    justify-content: center;
}

.product-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0;
    display: block;
}

.product-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.product-details {
    margin: 0 20px;
    text-align: justify;
    font-size: 1.2rem;
}

.discount-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
}

.discount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    width: 100%;
    gap: 10px;
}

.discount h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: normal;
}

.discount img {
    width: 45px;
    height: 45px;
    margin-right: 0;
    flex-shrink: 0;
    display: block;
}

.discount p {
    margin: 0 0 0 70px;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: normal;
    font-style: italic;
}

.designer-section{
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 20px 40px 0 40px;
    margin: 0 auto;
}

.designer-section h2{
    text-align: center;
    font-size: 2rem;
    margin: 0 auto;
    color: var(--hightlight);
}

.designer-section p, .dropbox p{
    margin: 20px;
    text-align: justify;
    font-size: 1.1rem;
}

.months-bar, .layout-bar{
    /* Month selector row: contains month buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 20px;

}

.months-bar button, .layout-bar button {
    padding: 5px 10px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--txt-inactive);
    border: 1px solid var(--darker-theme);
    color: var(--txt-active);
    transition: background-color 0.3s ease;
    margin-left: 5px;
    margin-top: 10px;
}

.months-bar button.month-btn--selected, .months-bar button:hover,
.layout-bar button.active {
    background-color: var(--theme);
}

.months-bar button.active, .layout-bar button.active {
    background-color: var(--theme);
    color: var(--txt-active);
}

/* Editor Section Styles */
.editor {
    display: grid;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.414; /* A4 papír aránya */
    gap: 10px;
    background: var(--body-color);
    border: 1px solid var(--darker-theme);
    padding: 10px;
}

/* Layouts styles */
.editor[data-layout="single"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.editor[data-layout="stack-v"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}

.editor[data-layout="stack-h"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.editor[data-layout="three-v"] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 egyenlő oszlop */
    gap: 10px; /* A rés a képek között */
    height: 100%;
}

.editor[data-layout="big-left"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.editor[data-layout="big-left"] .cell:nth-child(1) {
    grid-row: span 2; /* A bal oldali kép 2 sort foglal el */
}

.editor[data-layout="big-right"] {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
}

.editor[data-layout="big-right"] .cell:nth-child(2) {
    grid-row: span 2; /* A jobb oldali nagy kép 2 sort foglal el */
}

.editor[data-layout="grid4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

 /* Image cell styles */
.cell {
    position: relative;
    overflow: hidden; /* Ez vágja le a képet, ami kilóg! */
    background: var(--txt-inactive);
    border: 2px dashed var(--txt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    touch-action: none; /* Fontos a mobilos húzáshoz (drag) */
}

.cell.has-image {
    border: none;
    background: transparent;
}

.cell input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.cell.has-image input[type="file"] {
    display: none;
}

/* Empty cell message ("+ Kép feltöltése") */
.cell-empty-msg {
    color: var(--txt-active);
    font-weight: bold;
    pointer-events: none;
}

.cell.has-image .cell-empty-msg {
    display: none;
}

.cell-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.cell.has-image .cell-remove-btn {
    display: flex;
}

/* Basic Image styles (transform by JS)*/
.cell-img {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none; /* A húzást a .cell fogja fel */
    transform-origin: center center;
    will-change: transform;
}

.cell:not(.has-image) .cell-img {
    display: none;
}

/* Order button styles */

.add-to-cart-btn {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background: var(--theme);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: 0.3s;
}

/* Inactive order button */
.add-to-cart-btn:disabled {
    background: var(--txt-inactive);
    cursor: not-allowed;
    opacity: 0.7;
}

.add-to-cart-btn:not(:disabled):hover {
    background: var(--darker-theme);
}


/*Dropbox Styles*/

.wrap h1{
    margin: 0 auto;
    color: var(--hightlight);
}

  p.sub {
    margin: 0 0 20px;
    color: var(--txt);
    font-size: 14px;
  }
 
  #dropzone {
    border: 2px dashed var(--hightlight);
    border-radius: 12px;
    padding: 28px;
    background: var(--page-color);
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
    margin: 25px;
  }
 
  #dropzone.drag-over {
    border-color: var(--hightlight);
  }
 
  #dropzone .hint {
    text-align: center;
    color: var(--txt);
    font-size: 14px;
    padding: 20px 0;
    pointer-events: none;
  }
 
  #dropzone .hint strong {
    color: var(--txt);
  }
 
  #fileInput { display: none; }
 
  #grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    /*margin-top: 16px;*/
  }
 
  .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--txt-inactive);
    border: 1px solid var(--darker-theme);
    cursor: grab;
    user-select: none;
  }
 
  .thumb:active { cursor: grabbing; }
 
  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }
 
  .thumb .actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
  }
 
  .thumb:hover .actions {
    opacity: 1;
    transform: translateY(0);
  }
 
  .thumb button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--theme);
    color: var(--txt-active);
    backdrop-filter: blur(2px);
    transition: background 0.12s ease;
  }
 
  .thumb button:hover { background: var(--darker-theme); }
 
  .thumb button.delete:hover { background: var(--darker-theme); }
  .thumb button.duplicate:hover { background: var(--darker-theme); }
 
  .thumb button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }
 
  .thumb .number {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 11px;
    color: var(--txt-active);
    background: var(--theme);
    padding: 1px 6px;
    border-radius: 5px;
    pointer-events: none;
  }
 
  .thumb.dragging {
    opacity: 0.35;
  }
 
  .thumb.drag-over-target {
    border:3px solid var(--darker-theme);
  }

  .dropbox{
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 0 40px;
    margin: 0 auto;
    padding-bottom: 25px;
}


/*Order.php Style*/

.order {
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

  .statusbar{
    display:flex;
    justify-content:center;
    align-items:flex-start;
        width:100%;
        max-width:900px;
        flex:0 0 auto;
    margin: 20px auto;
  }

  .step{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    width:150px;
    position:relative;
  }
  .circle{
    width:52px;
    height:52px;
    border-radius:50%;
    border:2px solid var(--hightlight);
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:var(--hightlight);
    z-index:2;
  }
  .circle svg{
    width:22px;
    height:22px;
    fill:none;
    stroke:var(--hightlight);
    stroke-width:1.6;
  }
    .status-step {
        cursor: pointer;
    }
    .status-step.active .circle {
        background: var(--hightlight);
        color: #fff;
    }
    .status-step.active .circle svg {
        stroke: #fff;
    }
  .label{
    margin-top:12px;
    font-size:14px;
    color:var(--txt);
    line-height:1.35;
    font-weight:400;
  }

  .connector{
    position: absolute;
    top: 24px;
    left: calc(50% + 2px);
    width: calc(100% + 0px);
    height: 0;
    border-top: 3px dotted var(--txt);
    z-index:1;
  }
  .step:last-child .connector{
    display:none;
  }

.checkout-container{
    width:100%;
    max-width: 60%;
    flex:0 0 auto;
    margin:0 auto;
    padding:20px 0;
}

.checkout-step h2{
    font-size:1.8rem;
    margin-bottom:20px;
    color:var(--hightlight);
}

.text-input-form label{
    margin:20px 0 5px;
    display:block;
    font-size:1rem;
    color:var(--txt);
}

.text-input-form input, .text-input-form textarea {
    width:100%;
    padding:10px;
    font-size:1rem;
    border:1px solid var(--darker-theme);
    border-radius:4px;
    background:var(--page-color);
    color:var(--txt);
}

.radio-form, .payment-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px 0 0;
}

.radio-form .option, .payment-form .option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--darker-theme);
    border-radius: 4px;
    background: var(--page-color);
    color: var(--txt);
    cursor: pointer;
}

.radio-form label, .payment-form label {
    margin: 0;
    cursor: pointer;
}

.radio-form input[type="radio"],
.payment-form input[type="radio"],
.delivery-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--theme);
}

.delivery-options-form .delivery-option {
    align-items: center;
    padding: 12px;
    border: 1px solid var(--darker-theme);
    border-radius: 4px;
    background: var(--page-color);
    color: var(--txt);
    cursor: pointer;
    margin-bottom: 10px;
}

.delivery-price {
    font-size: 0.9rem;
    color: var(--theme);
    margin-left: auto;
    font-weight: bold;
}

.delivery-label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.same-address-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 5px;
    cursor: pointer;
}

.same-address-option input {
    width: auto;
    accent-color: var(--theme);
}

.gls-map-container {
    margin-top: 10px;
    width: 100%;
    height: 800px;
    border: 1px solid var(--darker-theme);
    border-radius: 5px;
    overflow: hidden;
}

.next-page-btn{
    margin-top:20px;
    padding:15px 30px;
    background:var(--theme);
    color:white;
    border:none;
    font-size:1.2rem;
    cursor:pointer;
    border-radius:5px;
    width:100%;
    transition:0.3s;
}

.pickup-info{
    margin-top: 10px;
    padding: 15px;
    background: var(--page-color);
    color: var(--txt);
    border: 1px solid var(--darker-theme);
    font-size: 1rem;
    border-radius: 5px;
}

.review-info,
#review-info {
    margin-top:20px;
    padding:15px;
    background:var(--page-color);
    color:var(--txt);
    border:1px solid var(--darker-theme);
    font-size:1rem;
    border-radius:5px;
}

.review-info h2{
    margin: 0;
}

.order-items-summary {
    margin: 20px 0 10px;
    border-top: 1px solid var(--darker-theme);
}

.order-item-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--darker-theme);
}

.order-item-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-item-details {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 150px;
    text-align: right;
    white-space: nowrap;
}

.order-item-total {
    min-width: 90px;
}

.payment-form input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--theme);
}



/*Cart.html Styles*/

.cart {
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 0 40px;
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cart h1 {
    text-align: center;
    width: 100%;
}

.empty-cart-msg,
.empty--cart-msg,
#empty-cart-msg {
    display: none;
}

.empty-cart-btn {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background: var(--theme);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: 0.3s;
}

.discount-row {
    display: none;
    color: var(--theme);
}

.cart-container hr {
    border: 1px solid var(--darker-theme);
    margin: 15px 0;
}

.total-row {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--hightlight);
}

.order-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px 30px;
    background: var(--theme);
    color: white;
    border: none;
    font-size: 1.2rem;
    border-radius: 8px;
}




/* =========================================
   KOSÁR OLDAL (CART) STÍLUSOK
   ========================================= */

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.cart-items,
.cart-summary {
    min-width: 0; /* lets grid items actually shrink instead of overflowing */
}


/* Táblázat */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--page-color);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 30px;
}

.cart-table td {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--darker-theme);
}

.cart-table th {
    background: var(--btn-inactive);
    color: var(--txt-active);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Termék oszlop vizuális elrendezése */
.product-col {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.product-col img {
    width: 70px;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--darker-theme);
}

/* Darabszám gombok (+ / -) */
.qty-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    background: var(--btn-inactive);
    border: 1px solid var(--darker-theme);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--txt);
    transition: all 0.2s ease;
}

.qty-control button:hover {
    background: var(--theme);
    color: white;
}

.qty-control input {
    width: 45px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--darker-theme);
    border-radius: 4px;
    background: var(--page-color);
    color: var(--txt);
    font-weight: bold;
}

/* Törlés (X) gomb */
.remove-btn {
    background: #cd4949;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.remove-btn:hover {
    transform: scale(1.1);
}

/* Összesítő doboz (Jobb oldal) */
.cart-summary {
    background: var(--page-color);
    border: 1px solid var(--darker-theme);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin: 25px 0;
}

.cart-summary h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.empty-cart-msg,
.empty--cart-msg,
#empty-cart-msg {
    text-align: center;
    padding: 60px 20px;
    background: var(--page-color);
    border: 1px dashed var(--darker-theme);
    border-radius: 8px;
}

/*Landing.php Styles*/
.thank-you{
    background: var(--page-color);
    color: var(--txt);
    width: var(--width);
    padding: 0 40px;
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
}

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Desktop: > 1024px (4 columns) */
/* Tablet: 768px - 1024px (2 columns) */
/* Mobile: < 768px (1 column) */

/* DESKTOP (> 1200px) */
@media (min-width: 1200px) {
    :root {
        --width: 60%;
    }
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
    .hamburger-menu {
        display: none;
    }
    .navbar ul {
        display: flex !important;
    }
    header {
        padding: 0 40px;
    }
    footer {
        padding: 0 40px;
    }
    .products,
    .shop,
    .designer-section,
    .dropbox,
    .order,
    .cart {
        padding: 0 40px 20px;
    }
    .info {
        padding: 0 40px;
    }
}

/* TABLET (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    :root {
        --width: 85%;
    }
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
    .hamburger-menu {
        display: none;
    }
    .navbar ul {
        display: flex !important;
        flex-wrap: wrap;
        gap: 5px;
    }
    .navbar a {
        font-size: 0.95rem;
    }
    header img {
        padding: 5px;
        margin-left: 0;
    }

    .text h1 {
        font-size: 2rem;
    }
    .text p {
        font-size: 1.1rem;
    }
    .product-item h1 {
        font-size: 2rem;
    }
    .product-item h2 {
        font-size: 1.2rem;
    }
    header {
        padding: 0 20px;
    }
    footer {
        padding: 0 20px;
    }
    .products,
    .shop,
    .designer-section,
    .dropbox,
    .order,
    .cart {
        padding: 0 20px 20px;
    }
    .info {
        padding: 0 20px;
    }
    
    /* Cart page tablet styles */
    
    .cart-table {
        font-size: 0.95rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 15px 10px;
    }
    
    .cart-summary {
        padding: 25px;
    }
    
    /* Order form tablet styles */
    .checkout-container {
        width: 100%;
        max-width: 60%;
        padding: 20px 0;
    }
    
    .checkout-step h2 {
        font-size: 1.6rem;
    }
    
    .text-input-form input,
    .text-input-form textarea {
        font-size: 1rem;
        padding: 12px;
    }
    
    .statusbar {
        max-width: 100%;
        margin: 20px auto;
    }
    
    .step {
        width: 120px;
    }
    
    .step .circle {
        width: 48px;
        height: 48px;
    }
    
    .circle svg {
        width: 20px;
        height: 20px;
    }
    
    .label {
        font-size: 13px;
    }
}

/* MOBILE (< 768px) */
@media (max-width: 767px) {
    :root {
        --width: 100%;
    }
    
    /* Header adjustments */
    header {
        padding: 0;
        height: 60px;
    }
    
    header img {
        padding: 5px;
        margin-left: 0;
    }
    
    /* Hamburger menu button */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 10px;
        margin: 0;
    }
    
    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background-color: var(--txt-inactive);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        transform-origin: center;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Navbar mobile styles */
    .navbar {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--theme);
        display: none;
        flex-direction: column;
        width: 100%;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .navbar.active {
        display: flex;
    }
    
    .navbar ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .navbar li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: center;
    }
    
    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .navbar a {
        display: flex;
        text-align: left;
        font-size: 1rem;
        padding: 15px 20px;
        width: 100%;
        justify-content: center;
    }
    
    /* MOBIL TERMÉKMENÜ: a négy termék közvetlenül látszik, nincs második lenyitás. */
    .dropdown-content {
        position: static;
        display: flex !important;
        box-shadow: none;
        width: 100%;
        flex-direction: column;
        order: 2;
    }
    
    .dropdown-content a {
        width: 100%;
        /* MOBIL TERMÉKLINK-SZÍN: világosabb piros, mint a többi menüponté. */
        color: var(--txt-inactive);
        text-decoration: none;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content a:hover {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    /* MOBIL TERMÉKFEJLÉC: a "Termékeink" felirat rejtve marad, a terméklinkek látszanak. */
    .navbar .dropdown > .dropbtn {
        display: none !important;
    }
    
    #themeToggle{
        width: 50px;
        height: 50px;
    }
    
    .cart-icon {
        padding: 10px;
    }

    .cart-badge {
        position: relative;
        right: 15px;
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    /* Info bar */
    .info {
        padding: 0;
        height: auto;
        flex-direction: row;
        padding: 10px;
    }
    
    .info a {
        font-size: 1.2rem;
    }
    
    /* Grid adjustments */
    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    /* Products section */
    .products {
        padding: 0;
    }
    
    .text {
        padding: 10px;
    }

    .text h1 {
        font-size: 1.8rem;
    }
    
    .text p {
        font-size: 1rem;
    }
    
    .product-item h1 {
        font-size: 1.8rem;
    }
    
    .product-item h2 {
        font-size: 1.6rem;
        margin: 25px 0 10px;
    }
    
    .product-item h3 {
        font-size: 1rem;
    }
    
    /* Shop page */
    .shop {
        padding: 20px 15px;
    }
    
    .shop h1 {
        font-size: 2rem;
        padding: 0;
    }
    
    .product-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-details {
        font-size: 1rem;
    }
    
    .product-image {
        max-width: 70%;
    }
    
    /* Designer section */
    .designer-section {
        padding: 20px 15px 0 15px;
    }
    
    .designer-section h2 {
        font-size: 1.5rem;
    }
    
    /* Editor */
    .editor {
        max-width: 100%;
        padding: 8px;
    }
    
    /* Dropbox */
    .dropbox {
        padding: 0 15px 15px 15px;
    }
    
    #dropzone {
        margin: 15px;
    }
    
    #grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    /* Order page */
    .order {
        padding: 0 15px;
    }
    
    .statusbar {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .step {
        width: 100px;
    }
    
    .step .circle {
        width: 40px;
        height: 40px;
    }
    
    .circle svg {
        width: 18px;
        height: 18px;
    }
    
    .label {
        font-size: 12px;
    }
    
    .connector {
        width: calc(100% - 20px);
        top: 20px;
    }
    
    .checkout-container {
        width: 100%;
        max-width: 60%;
        padding: 15px 0;
    }
    
    .checkout-step h2 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    /* Forms on mobile */
    .text-input-form label {
        font-size: 0.95rem;
        padding: 10px;
        margin: 0;
    }
    
    .radio-form label,
    .payment-form label {
        font-size: 0.95rem;
        margin: 0;
    }
    .text-input-form input,
    .text-input-form textarea {
        font-size: 16px;
        padding: 12px 10px;
        margin-bottom: 10px;
    }
    
    .radio-form,
    .payment-form {
        gap: 12px;
    }
    
    .radio-form .option,
    .payment-form .option {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .next-page-btn {
        font-size: 1rem;
        padding: 12px 20px;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .pickup-info {
        font-size: 0.95rem;
        padding: 12px;
        margin-top: 15px;
    }
    
    #review-info {
        font-size: 0.95rem;
        padding: 15px;
    }
    
    #review-info p {
        margin: 8px 0;
        word-break: break-word;
    }
    
    /* Cart page */
    .cart {
        padding: 0 15px;
    }
    
    .cart-container {
        width: 100%;
        max-width: 60%;
    }
    
    .cart-table {
        font-size: 0.85rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 12px 8px;
    }
    
    .product-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-col img {
        width: 50px;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    .summary-row {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .total-row {
        font-size: 1.3em;
    }
    
    .order-btn {
        font-size: 1rem;
        padding: 12px 20px;
        margin-top: 20px;
    }
    
    footer {
        padding: 0;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    footer a {
        margin-left: 0;
        display: block;
        margin-bottom: 5px;
    }

    #cart-table thead {
        display: none;
    }
    #cart-table, #cart-table tbody, #cart-table tr, #cart-table td {
        display: block;
        width: 100%;
    }
    #cart-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--darker-theme);
        border-radius: 8px;
        overflow: hidden;
    }
    #cart-table td {
        text-align: right;
        padding: 10px 15px;
        position: relative;
        padding-left: 45%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #cart-table td:last-child {
        border-bottom: none;
    }
    #cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%;
        text-align: left;
        font-weight: bold;
        color: var(--hightlight);
    }
    #cart-table td.product-col {
        padding-left: 15px;
        text-align: left;
        display: flex;
        flex-direction: row;
    }
    #cart-table td.product-col::before {
        display: none;
    }
}

/* SMALL MOBILE (< 480px) */
@media (max-width: 479px) {
    :root {
        --width: 100%;
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    header {
        padding: 0;
        height: 60px;
    }
    
    header img {
        width: 70%;
    }

    .text h1 {
        font-size: 1.5rem;
    }
    
    .text p {
        font-size: 0.95rem;
    }
    
    .product-item h1 {
        font-size: 1.5rem;
    }
    
    .product-item button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .product-image {
        max-width: 90%;
    }

    .info {
        padding: 0;
        height: auto;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .checkout-step h2 {
        font-size: 1.3rem;
        margin:0;
        padding-bottom: 10px;
    }
    
    .checkout-step p {
        font-size: 0.95rem;
    }
    
    .statusbar {
        max-width: 90%;
        margin: 10px auto;
    }
    
    .step {
        width: 80px;
    }
    
    .step .circle {
        width: 36px;
        height: 36px;
    }
    
    .circle svg {
        width: 16px;
        height: 16px;
    }
    
    .label {
        font-size: 11px;
    }
    
    .connector {
        width: calc(100% - 18px);
        top: 15px;
    }
    
    /* Cart page small mobile */
    .cart {
        padding: 10px;
    }
    
    .cart h1 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .cart-table {
        font-size: 0.75rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
    }
    
    .cart-table th {
        font-size: 0.7rem;
    }
    
    .cart-container {
        width: 100%;
        max-width: 80%;
    }

    .qty-control {
        gap: 3px;
    }
    
    .qty-control button {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .qty-control input {
        width: 40px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .remove-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .cart-summary {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .cart-summary h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .summary-row {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .total-row {
        font-size: 1.2em;
        margin-top: 10px;
    }
    
    .order-btn {
        font-size: 0.95rem;
        padding: 10px 15px;
        margin-top: 15px;
    }
    
    /* Order form small mobile */
    .checkout-container {
        padding: 10px 0;
        width: 100%;
        max-width: 80%;
    }
    
    .text-input-form label {
        margin: 0;
        font-size: 0.9rem;
    }
    
    .text-input-form input,
    .text-input-form textarea {
        font-size: 16px;
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .radio-form label,
    .payment-form label {
        font-size: 0.9rem;
    }
    
    .next-page-btn {
        font-size: 0.95rem;
        padding: 10px 15px;
        margin-top: 12px;
        margin-bottom: 8px;
    }
    
    .pickup-info {
        font-size: 0.9rem;
        padding: 10px;
        margin-top: 12px;
    }
    
    #review-info {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    #review-info p {
        margin: 6px 0;
        font-size: 0.9rem;
    }
    
    #review-info strong {
        font-size: 0.9rem;
    }
    
    .empty-cart-msg {
        padding: 40px 15px;
    }
    
    .empty-cart-msg h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .empty-cart-btn {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}










/* === MODAL STÍLUSOK === */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

/* Kiemelt (elsődleges) gomb stílusa */
.modal-btn-primary { 
    background-color: var(--theme);
    color: var(--body-color);
    border: none;
    border-radius: 4px;
    padding: 10px;
}
.modal-btn-primary:hover { opacity: 0.9; }

/* Másodlagos (vissza/mégse) gomb stílusa */
.modal-btn-secondary { 
    background-color: var(--page-color);
    color: var(--theme);
    padding: 10px;
    border: 1px solid var(--theme);
    border-radius: 4px;
}

.modal-btn-secondary:hover { background-color: var(--body-color); }

/*Képek normális mozgatásának biztosítása*/
.cell, .cell-img {
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}