/* ===================================
   CART STYLES - Moderní košík
   Kompletní CSS pro všechny části košíku
   =================================== */

/* === ZÁKLADNÍ STYLY === */


/* Základní kontejnery */
.cart-container,
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
/*    padding: 20px;*/
}

.checkout-container {
    max-width: 1400px;
}

/* === BREADCRUMB NAVIGACE === */
.cart-breadcrumb,
.checkout-breadcrumb {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cart-breadcrumb {
    font-size: 18px;
}

.checkout-breadcrumb {
    margin-bottom: 40px;
}

.cart-breadcrumb .active,
.checkout-breadcrumb .active {
    color: #BC0518;
    font-weight: bold;
    text-transform: uppercase;
}

.cart-breadcrumb .inactive,
.checkout-breadcrumb .inactive {
    color: #999;
    text-transform: uppercase;
}

.cart-breadcrumb .separator,
.checkout-breadcrumb .separator {
    color: #ddd;
}

.checkout-breadcrumb span {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* === PRÁZDNÝ KOŠÍK === */
.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart h2 {
    color: #333;
    margin-bottom: 30px;
}

/* === CART.PHP - SEZNAM POLOŽEK === */
.cart-items {
    margin-bottom: 30px;
}

/* Modernizované fieldsety pro košík */
.cart-items-fieldset,
.cart-summary-fieldset {
    border: 1px solid #ddd;
    background: #F9F9F9;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    border-radius: 0px;
}

.cart-items-fieldset legend,
.cart-summary-fieldset legend {
    background: #BC0518;
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: absolute;
    top: -13px;
    left: 20px;
    text-transform: uppercase;
}

.cart-items-fieldset .fieldset-content,
.cart-summary-fieldset .fieldset-content {
    padding-top: 15px;
}

/* Hlavička košíku */
.cart-header {
    display: grid;
    grid-template-columns: 1fr 150px 200px 150px;
    gap: 20px;
    padding: 15px 20px;
    background-color: #eee;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-price,
.header-quantity,
.header-total {
    text-align: right;
}

.header-quantity {
    text-align: center;
}

/* Seznam položek */
.cart-items-list {
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Jednotlivá položka - modernizovaný design */
.cart-item {
    display: grid;
    grid-template-columns: 1fr 150px 200px 150px;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: start;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item.modern-card {
    position: relative;
}

/* Zvýraznění položky s varováním */
.cart-item.stock-warning-highlight {
    border-color: #BC0518;
    animation: warningPulse 2s ease-in-out;
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(188, 5, 24, 0);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(188, 5, 24, 0.1);
    }
}

/* Produkt info */
.item-product {
    display: flex;
    gap: 15px;
}

.product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 3px;
}

.product-image img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-details {
    flex: 1;
}

.product-name {
    color: #BC0518;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.product-name:hover {
    text-decoration: underline;
}

.product-code {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Skladové informace */
.stock-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.stock-info i {
    color: #8fb300;
}

.stock-count {
    font-weight: 600;
    color: #7cb500;
    transition: color 0.3s;
}

/* Mini spinner pro kontrolu skladu */
.stock-checking {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #BC0518;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

.stock-warning {
    color: #BC0518;
    font-weight: bold;
    display: block;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.stock-warning i {
    color: #BC0518;
    margin-right: 5px;
}

/* Animace pro zobrazení/skrytí varování */
.stock-warning.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.stock-warning.fade-out {
    animation: fadeOut 0.3s ease-out;
}

/* Cena */
.item-price {
    text-align: right;
    align-self: center;
}

/* Množství */
.item-quantity {
    align-self: center;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    -moz-appearance: textfield; /* Firefox */
}

/* Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: #BC0518;
    box-shadow: 0 0 0 2px rgba(188, 5, 24, 0.1);
}

.quantity-unit {
    font-size: 14px;
    color: #666;
    margin: 0 5px;
}

.quantity-buttons {
    display: flex;
    gap: 5px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.quantity-btn:hover {
    background: #eee;
    border-color: #BC0518;
    color: #BC0518;
}

.quantity-btn:active {
    transform: scale(0.95);
}

/* Celkem */
.item-total {
    text-align: right;
    align-self: center;
    font-size: 18px;
}

/* Mobile labels - skryté na desktopu */
.mobile-label {
    display: none;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Tlačítka v košíku */
.button_kosik_novy {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.button_kosik_novy i {
    font-size: 16px;
}

.button_kosik_novy.update-btn {
    background-color: #339900;
    color: white;
}

.button_kosik_novy.update-btn:hover {
    background-color: #2d8800;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.button_kosik_novy.remove-btn {
    background-color: #BC0518;
    color: white;
}

.button_kosik_novy.remove-btn:hover {
    background-color: #a00416;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* === POTISK STYLY === */
.item-print-section {
    grid-column: 1 / -1; /* Zabere celou šířku */
    grid-row: 2;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Tlačítko pro přidání potisku */
.add-print-btn {
    background: #fff9f9;
    border: 1px solid #ecd1d1;
    color: #840b0b;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.add-print-btn:hover {
    background: #fff9f9;
    border-color: #db6969;
}

.add-print-btn i {
    font-size: 16px;
}

/* Aktivní potisk info */
.print-active-info {
    background: #fff9f9;;
    border: 1px solid #ecd1d1;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #db6969;
    font-size: 14px;
}

.print-active-info img {
    width: 30px;
    height: 20px;
}

.print-active-info span {
    flex: 1;
}

.print-active-info strong {
    color: #840b0b;
}

/* Tlačítko pro odebrání potisku */
.remove-print-btn {
    background: transparent;
    border: 1px solid #db6969 ;
    color: #db6969;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remove-print-btn:hover {
    background: #840b0b;
    color: white;
    transform: rotate(90deg);
}

/* Animace pro potisk */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.print-active-info {
    animation: slideIn 0.3s ease-out;
}

/* Informace o potisku */
.potisk-info {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.potisk-info.modern-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    margin: -10px 0 15px 0;
    color: #840b0b;
}

.potisk-info img {
    width: 40px;
    height: 27px;
}

/* Shrnutí objednávky v košíku */
.cart-summary {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    color: #BC0518;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Modernizované shrnutí s fieldsetem */
.cart-summary-fieldset {
    max-width: 580px;
    margin-left: auto;
    background: white;
}

.cart-summary-fieldset .summary-rows {
    padding: 20px;
    background: #F9F9F9;
    border-radius: 5px;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.summary-row.discount-row {
    color: #7cb500;
}

.summary-row.total-row {
    border-top: 2px solid #333;
    padding-top: 10px;
    font-size: 20px;
    margin-top: 5px;
}

/* === TLAČÍTKA AKCE === */
.cart-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 30px;
}

.buton_objednat_kosik {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #a1c900;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    text-align: center;
    min-width: 250px;
    justify-content: center;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
}

.buton_objednat_kosik i {
    font-size: 20px;
}

.buton_objednat_kosik:hover {
    background-color: #a1c900;
    box-shadow: 0 4px 8px #ccc;
    color: #fff;
    text-decoration: none;
}

.buton_objednat_kosik.secondary {
    background-color: #6c757d;
}

.buton_objednat_kosik.secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px #ccc;
}

buton_objednat_kosik a:visited {
    color: #fff;
}

/* Registrační prompt */
.registration-prompt {
    width: 100%;
    text-align: left;
    margin-top: 20px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.registration-prompt a{
   text-decoration: underline;
   font-size: 24px;
   font-weight: 400;
  
}


/* === INFORMAČNÍ TEXTY === */
.minimum-order-notice,
.price-info {
    padding: 15px 20px;
    margin-top: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.minimum-order-notice i,
.price-info i {
    color: #f39c12;
    font-size: 16px;
}

/* === CHECKOUT.PHP STYLY === */

/* Grid layout pro checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Přehled objednávky v checkoutu */
.order-summary-section {
    background: #F9F9F9;
    border: 1px solid #ddd;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary-section h2,
.customer-form-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 1px;
}

.order-summary-section h2 i,
.customer-form-section h2 i {
    color: #BC0518;
    font-size: 20px;
}

/* Produkty v checkout košíku */
.order-products {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
}

.order-product-item {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.order-product-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9f9f9;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.order-product-details {
    flex: 1;
}

.order-product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.3;
}

.order-product-code {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.order-product-quantity {
    color: #BC0518;
    font-size: 14px;
    font-weight: 500;
}

.order-product-price {
    text-align: right;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* === CHECKOUT - POTISK V PŘEHLEDU OBJEDNÁVKY === */
.print-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff9f9;
    color: #840b0b;
    padding: 3px 8px;
    font-size: 12px;
    margin-top: 5px;
    border: 1px solid #ecd1d1;
    border-radius: 3px;
    margin-top: 10px;
}

.print-indicator i {
    font-size: 13px;
}

/* Cenový přehled v checkoutu */
.price-breakdown {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.price-row.with-border {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.price-row.discount {
    color: #8fb300;
    font-weight: 600;
}

.price-row.subtotal {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.price-row.subtotal-after-discount {
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.price-row.total-no-vat {
    padding-top: 15px;
    border-top: 2px solid #ddd;
    margin-top: 10px;
    font-weight: 600;
}

.price-row.vat {
    color: #666;
}

.price-row.total {
    font-size: 22px;
    font-weight: 700;
    color: #BC0518;
    padding: 20px 0 10px;
    border-top: 3px solid #BC0518;
    margin-top: 15px;
}

/* === FORMULÁŘ V CHECKOUTU === */
.customer-form-section {
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
    box-shadow: 0 3px 6px #ddd;
}

/* Fieldsety */
fieldset {
    border: 1px solid #ddd;
    background: #F9F9F9;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    border-radius: 5px;
}

legend {
    background: #BC0518;
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: absolute;
    top: -13px;
    left: 20px;
    text-transform: uppercase;
}

.fieldset-content {
    padding-top: 15px;
}

/* Grid pro formulářové prvky */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.required {
    color: #BC0518;
}

/* Moderní inputy */
.modern-input {
    width: calc(100% - 32px);
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: #BC0518;
    box-shadow: 0 0 0 2px rgba(188, 5, 24, 0.1);
}

.modern-input:hover {
    border-color: #999;
}

/* Textarea */
textarea.modern-input {
    resize: vertical;
    min-height: 120px;
}

/* Select */
select.modern-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M10.293.293a1 1 0 0 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5A1 1 0 0 1 1.707.293L6 4.586 10.293.293z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Reset pro všechny inputy včetně selectu */
input.modern-input,
select.modern-input,
textarea.modern-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

/* Pro starší verze Safari */
select.modern-input::-ms-expand {
    display: none;
}

/* === ZPŮSOB DOPRAVY === */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.shipping-option {
    background: #F5F5F5;
    border: 2px solid #e0e0e0;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 5px;
}

.shipping-option:hover {
    border-color: #BC0518;
    background: #fff;
}

.shipping-option.selected {
    border-color: #BC0518;
    background: #fff;
    box-shadow: 0 0 0 1px #BC0518;
}

.shipping-option input[type="radio"] {
    display: none;
}

.shipping-option-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.shipping-option.selected .shipping-option-icon {
    border-color: #BC0518;
}

.shipping-option.selected .shipping-option-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #BC0518;
    border-radius: 50%;
}

.shipping-option-content {
    flex: 1;
}

.shipping-option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.shipping-option-desc {
    font-size: 14px;
    color: #666;
}

.shipping-option-price {
    font-weight: 600;
    color: #BC0518;
}

/* === PLATEBNÍ METODY === */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    background: #F5F5F5;
    border: 2px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: block;
    border-radius: 5px;
}

.payment-method:hover:not(.disabled) {
    border-color: #BC0518;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.payment-method.selected {
    border-color: #BC0518;
    background: white;
    box-shadow: 0 0 0 1px #BC0518;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-icon {
    font-size: 32px;
    color: #BC0518;
    margin-bottom: 10px;
}

.payment-method-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.payment-method-desc {
    font-size: 13px;
    color: #666;
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-method.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
}

.payment-method-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #8fb300;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 600;
    border-radius: 3px;
}

/* === FILE UPLOAD === */
.file-upload {
    position: relative;
    display: inline-block;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #BC0518;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid #BC0518;
    border-radius: 5px;
}

.file-upload-label:hover {
    background: #a00416;
    border-color: #a00416;
}

/* Submit tlačítko */
.submit-section {
    margin-top: 40px;
    padding: 30px;
    background: #F5F5F5;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 5px;
}

.submit-btn {
    background: #a1c900;
    color: white;
    padding: 16px 40px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
}

.submit-btn:hover {
    background: #8fb300;
    box-shadow: 0 3px 8px #ddd;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* === ERROR MESSAGES === */
.error-container {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.error-container h3 {
    color: #c62828;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    color: #d32f2f;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.error-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
}

/* === LOADING STATES === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-loading {
    position: relative;
    pointer-events: none;
}

.cart-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cart-loading-spinner,
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #BC0518;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.submit-btn .spinner {
    width: 16px;
    height: 16px;
    position: static;
    transform: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-btn .spinner {
    transform: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === TOAST NOTIFIKACE === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Toast notifikace */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #8fb300;
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 300px;
    display: none;
}

.toast.error {
    background: #f44336;
}

.toast.warning {
    background: #ff9800;
}

.toast.success {
    background: #8fb300;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === THANK YOU PAGE === */
.thank-you-content {
    text-align: center;
    padding: 50px 0;
}

.payment-success {
    margin-bottom: 30px;
}

.payment-success h1 {
    color: #339900;
    font-size: 40px;
    margin: 0;
}

.thank-you-content h2 {
    color: #333;
    margin-bottom: 30px;
}

.thank-you-image {
    margin: 30px 0;
}

.next-steps {
    margin: 30px 0;
    font-size: 16px;
    color: #666;
}

.next-steps p {
    margin: 10px 0;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* === ANIMACE === */
.updating {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.fade-in {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === UTILITY CLASSES === */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.desktop-only {
    display: grid;
}

/* Focus visible pro accessibility */
.modern-input:focus-visible,
.submit-btn:focus-visible {
    outline: 1px solid #BC0518;
 }

/* === RESPONZIVNÍ DESIGN === */

/* Tablet */
@media (max-width: 1024px) {
    .cart-header,
    .cart-item {
        grid-template-columns: 1fr 120px 180px 120px;
        gap: 15px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary-section {
        position: static;
        margin-bottom: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cart-container,
    .checkout-container {
/*        padding: 10px;*/
    }
    
    .order-summary-section,
    .customer-form-section {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .checkout-breadcrumb {
        font-size: 14px;
    }
    
    .modern-input {
        font-size: 16px; /* Zabraňuje zoom na iOS */
        padding: 16px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .order-products {
        max-height: none;
    }
    
    .price-row {
        font-size: 14px;
    }
    
    .price-row.total {
        font-size: 18px;
    }
    
    /* Toast na mobilu */
    .toast-container {
        left: 10px;
        right: 10px;
    }
    
    .toast {
        width: auto;
    }
    
    /* Skrýt desktop hlavičku */
    .desktop-only {
        display: none !important;
    }
    
    /* Mobilní layout - každá položka jako karta */
    .cart-item {
        display: block;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 15px;
        background: white;
    }
    
    .cart-items-list {
        border: none;
        background: transparent;
    }
    
    /* Hlavička ve fieldset na mobilu */
    .cart-header {
        display: none;
    }
    
    /* Upravit fieldsety na mobilu */
    .cart-items-fieldset,
    .cart-summary-fieldset {
        padding: 15px;
    }
    
    .cart-items-fieldset legend,
    .cart-summary-fieldset legend {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* Produkt info na mobilu */
    .item-product {
        margin-bottom: 15px;
    }
    
    /* Zobrazit mobilní labely */
    .mobile-label {
        display: block;
        color: #666;
        font-size: 14px;
    }
    
    /* Sekce pod sebou */
    .item-price,
    .item-quantity,
    .item-total {
        margin-bottom: 10px;
        text-align: left;
    }
    
    .item-total {
        font-size: 20px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    
    /* Formulář množství na mobilu */
    .quantity-form {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .quantity-buttons {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Tlačítka vedle sebe */
    .button_kosik_novy {
        flex: 1;
    }
    
    /* Akce na mobilu */
    .cart-actions {
        flex-direction: inherit;
    }
    
    .buton_objednat_kosik {
        width: 100%;
        min-width: auto;
        color: #fff;
    }
 
     .buton_objednat_kosik a:visited {
      color: #fff;
    }
    
    /* Shrnutí na mobilu */
    .cart-summary {
        max-width: 100%;
        margin-left: 0;
    }
    
    /* Breadcrumb responsive */
    .cart-breadcrumb {
        font-size: 14px;
    }
    
    .cart-breadcrumb .separator {
        margin: 0 5px;
    }
    
    /* Checkout form responsive */
    .checkout-form {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Potisk na mobilu */
    .item-print-section {
        margin-top: 10px;
        padding-top: 10px;
        grid-column: 1 / -1;
    }
    
    .add-print-btn {
        width: 100%;
        justify-content: center;
    }
    
    .print-active-info {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .print-active-info span {
        width: 100%;
     }
}

/* Velmi malé obrazovky */
@media (max-width: 480px) {
    .product-image {
        width: 60px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-code,
    .product-description {
        font-size: 12px;
    }
    
    .quantity-input {
        width: 50px;
    }
    
    .cart-summary {
        padding: 15px;
    }
    
    .buton_objednat_kosik {
        padding: 12px 20px;
        font-size: 16px;
        min-width: auto;
        color: #fff;
    }
    
    .order-product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-product-price {
        text-align: center;
        margin-top: 10px;
        font-size: 18px;
    }
}

/* === TISKOVÉ STYLY === */
@media print {
    .cart-actions,
    .navigation,
    .button_kosik_novy,
    .quantity-buttons,
    .submit-btn {
        display: none !important;
    }
    
    .cart-container,
    .checkout-container {
        max-width: 100%;
    }
    
    .cart-item {
        break-inside: avoid;
    }
}

/* === DARK MODE PŘIPRAVENOST === */
@media (prefers-color-scheme: dark) {
    /* Můžete přidat dark mode styly zde */
}