/* ========================================
   KOŠÍK - INTEGRACE DO MENU
   ======================================== */

#cart-form {
	position: relative;
}

/* Wrapper pro košík v menu */
.cart-menu-wrapper {
    position: relative;
}

.cart-menu-wrapper.desktop {
    display: inline-block;
    /* Stejné zarovnání jako ostatní položky menu */
    vertical-align: middle;
}

/*
.cart-menu-wrapper.mobile {
    display: block;
}
*/

/* Na desktopu skrýt mobilní košík */
@media (min-width: 769px) {
    .cart-menu-wrapper.mobile {
        display: none !important;
    }
}

/* Na mobilu skrýt desktopový košík */
@media (max-width: 768px) {
    .cart-menu-wrapper.desktop {
        display: none !important;
    }
    /*
    .cart-menu-wrapper.mobile {
        display:  block !important;
    }
	*/
}

/* Odkaz košíku v menu */
.cart-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Zajištění správného zarovnání košíku s ostatními položkami menu */
.cart-menu-wrapper.desktop .cart-menu-link {
    padding: 0.25em 0.5em;
    border:  1px solid white;
    border-radius: 4px;
    margin-top: 0;
}

.cart-menu-wrapper.desktop .cart-menu-link:hover,
.cart-menu-wrapper.desktop .cart-menu-link:focus {
    background:  white;
    color: black;
}

/* Badge s počtem položek - VĚTŠÍ */
.cart-badge {
    position: absolute;
    bottom: -8px;
    right: -12px;
    min-width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content:  center;
    padding: 0 5px;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.5);
    animation: cart-badge-pop 0.3s ease;
    z-index: 10;
    border: 2px solid #fff;
}

.cart-badge.cart-badge-hidden {
    display:  none;
}

@keyframes cart-badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-badge-update {
    animation:  cart-badge-bounce 0.5s ease;
}

@keyframes cart-badge-bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
}

/* ========================================
   KOŠÍK - ANIMACE "PŘIDÁNO DO KOŠÍKU"
   NOVÁ VERZE - zobrazení uprostřed + odlet
   ======================================== */

.cart-added-notification {
    position:  fixed;
    z-index: 10001;
    pointer-events: none;
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.5);
    white-space: nowrap;
    font-family: 'Exo 2', sans-serif;
    
	/* Počáteční stav - uprostřed obrazovky */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: none;
}

/* Fáze 1: Zobrazení uprostřed */
.cart-added-notification.cart-notification-show {
    animation: cart-notification-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cart-notification-appear {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Fáze 2: Odlet do košíku s oddáleným zmenšováním */
	
	/* VARIANTA 1 (zmenšování začne kousek od košíku) */
	.cart-added-notification.cart-notification-fly {
		transition:
			left 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
			top 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
			transform 0.50s cubic-bezier(0.15, 0.9, 0.30, 1.15) 0.35s,
			opacity 0.35s ease 0.35s;
		transform-origin: center center;
	}
		
/* ========================================
   KOŠÍK - TOOLTIP (DROPDOWN)
   ======================================== */

.cart-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 380px;
    max-width: 95vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.cart-tooltip::before {
    content:  '';
    position:  absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height:  16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 10px rgba(0, 0, 0, 0.05);
}

.cart-tooltip.cart-tooltip-visible {
    opacity:  1;
    visibility: visible;
    transform: translateY(0);
}

.cart-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.cart-tooltip-count {
    font-size: 0.95em;
    color: #555;
}

.cart-tooltip-count strong {
    color: #e74c3c;
    font-size: 1.1em;
}

.cart-tooltip-total {
    font-weight: 700;
    color:  #27ae60;
    font-size: 1.1em;
}

.cart-tooltip-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.75rem;
	border-radius: 0 0 16px 16px;
}

.cart-tooltip-body::-webkit-scrollbar {
    width: 6px;
}

.cart-tooltip-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cart-tooltip-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.cart-tooltip-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.cart-tooltip-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap:  0.5rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease;
}

.cart-tooltip-item:hover {
    background: #f0f0f0;
}

.cart-tooltip-item:last-child {
    margin-bottom: 0;
}

.cart-tooltip-item-info {
    min-width: 0;
}

.cart-tooltip-item-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow:  ellipsis;
    margin-bottom: 0.25rem;
}

.cart-tooltip-item-id {
    font-size: 0.8em;
    color: #888;
}

.cart-tooltip-item-details {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-tooltip-item-qty {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0.15rem;
}

.cart-tooltip-item-price {
    font-weight: 700;
    color:  #e74c3c;
    font-size: 0.95em;
}

.cart-tooltip-empty {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.cart-tooltip-empty-icon {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.cart-tooltip-footer {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    border-radius: 16px 16px 0 0;
}

.cart-tooltip-btn {
    display:  block;
    width:  100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    cursor:  pointer;
    box-sizing: border-box;
}

.cart-tooltip-btn:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

/* ========================================
   KOŠÍK - STRÁNKA KOŠÍKU
   ======================================== */

.cart-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.75rem;
}

.cart-page-title {
    text-align: center;
    font-size: 1.6em;
    color:  #fff;
    margin-bottom: 0.65rem;
}

/* Drobečková navigace */
.cart-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cart-breadcrumb-item {
    display: flex;
    align-items: center;
    gap:  0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.87em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-breadcrumb-item.cart-breadcrumb-active {
    background:  linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.cart-breadcrumb-item.cart-breadcrumb-completed {
    background:  rgba(39, 174, 96, 0.3);
    color: #fff;
    cursor: pointer;
}

.cart-breadcrumb-item.cart-breadcrumb-completed:hover {
    background: rgba(39, 174, 96, 0.5);
}

.cart-breadcrumb-step {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content:  center;
    font-size: 0.8em;
    font-weight: 700;
}

.cart-breadcrumb-active .cart-breadcrumb-step {
    background: rgba(255, 255, 255, 0.3);
}

.cart-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2em;
}

/* Tabulka košíku */
.cart-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table th:last-child {
    text-align: center;
}

.cart-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-table tr:hover {
    background:  #f9f9f9;
}

.cart-item-number {
    font-weight: 600;
    color: #888;
    font-size: 0.9em;
}

.cart-item-image {
    width:  48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap:  0.75rem;
}

.cart-item-details h4 {
    margin: 0 0 0.1rem 0;
    font-size: 0.93em;
    color: #333;
}

.cart-item-id {
    font-size: 0.8em;
    color: #888;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap:  0.5rem;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border:  2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    cursor:  pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items:  center;
    justify-content: center;
}

.cart-qty-btn:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.cart-qty-btn:disabled {
    opacity:  0.4;
    cursor:  not-allowed;
}

.cart-qty-input {
    width:  50px;
    height: 32px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
}

.cart-qty-input:focus {
    outline:  none;
    border-color: #27ae60;
}

.cart-item-price {
    font-weight: 700;
    color: #333;
    font-size: 1.1em;
    white-space: nowrap;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border:  none;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius:  50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items:  center;
    justify-content: center;
    margin:  0 auto;
}

.cart-item-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Prázdný košík */
.cart-empty {
    text-align: center;
    padding:  4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cart-empty-icon {
    font-size:  5em;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

.cart-empty p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cart-empty-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-empty-btn:hover {
    background: linear-gradient(135deg, #a00000 0%, #cc2222 100%);
    box-shadow:  0 5px 20px rgba(139, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* Souhrn košíku */
.cart-summary {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.cart-summary-row {
    display:  flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.cart-summary-row:last-child {
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #eee;
}

.cart-summary-label {
    color: #555;
    font-size: 1em;
}

.cart-summary-value {
    font-weight: 600;
    color: #333;
    font-size:  1.1em;
}

.cart-summary-total .cart-summary-label {
    font-size: 1.1em;
    font-weight: 600;
    color:  #333;
}

.cart-summary-total .cart-summary-value {
    font-size: 1.3em;
    color: #27ae60;
}

/* Tlačítka navigace */
.cart-navigation {
    display:  flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-nav-btn {
    display: inline-flex;
    align-items: center;
    gap:  0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}

.cart-nav-btn-back {
    background:  #6c757d;
    color: #fff;
}

.cart-nav-btn-back:hover {
    background: #5a6268;
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.35);
    transform: translateY(-2px);
}

.cart-nav-btn-continue {
    background:  linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.cart-nav-btn-continue:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.35);
    transform: translateY(-2px);
}

.cart-nav-btn-continue:disabled {
    opacity: 0.5;
    cursor:  not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-clear-wrapper {
    text-align: right;
}

.cart-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border:  2px solid #e74c3c;
    color: #e74c3c;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.6rem;
    font-family: 'Exo 2', sans-serif;
}

.cart-clear-all:hover {
    background: #e74c3c;
    color: #fff;
}

/* ========================================
   KOŠÍK - FREE SHIPPING NOTICE
   ======================================== */

.cart-free-shipping-notice {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius:  10px;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.cart-free-shipping-notice.cart-free-shipping-achieved {
    background:  linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.cart-free-shipping-icon {
    font-size: 1.5em;
}

.cart-free-shipping-progress {
    flex: 1;
}

.cart-free-shipping-text {
    margin-bottom: 0.5rem;
}

.cart-free-shipping-bar {
    height:  8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow:  hidden;
}

.cart-free-shipping-bar-fill {
    height:  100%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========================================
   KOŠÍK - STRÁNKA ÚDAJŮ (FORMULÁŘ)
   ======================================== */

.cart-form-container {
    background: #fff;
    border-radius:  16px;
    box-shadow:  0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.9rem 1.25rem;
    margin-bottom: 0.85rem;
}

.cart-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.cart-fieldset-legend {
    font-size: 1.05em;
    font-weight: 700;
    color:  #333;
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #27ae60;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.cart-form-grid {
    display:  grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

@media (max-width: 600px) {
    .cart-form-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-form-container {
        padding: 0.75rem 0.9rem;
    }
}

.cart-form-group {
    display: flex;
    flex-direction: column;
}

.cart-form-group-full {
    grid-column: 1 / -1;
}

.cart-form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.2rem;
    font-size: 0.87em;
}

.cart-required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

.cart-form-input,
.cart-form-select {
    width:  100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.93em;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cart-form-input:focus,
.cart-form-select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.cart-form-input.cart-field-valid,
.cart-form-select.cart-field-valid {
    border-color: #27ae60;
}

.cart-form-input.cart-field-invalid,
.cart-form-select.cart-field-invalid {
    border-color: #e74c3c;
}

.cart-field-status {
    display: none; /*display: block;*/
    font-size: 0.85em;
    margin-top: 0.3rem;
    min-height: 1em;
}

.cart-field-status.cart-status-ok {
    color: #27ae60;
    font-weight: 600;
}

.cart-field-status.cart-status-ok::before {
    content:  "✓ ";
}

.cart-field-status.cart-status-error {
    color: #e74c3c;
}

.cart-field-status.cart-status-error::before {
    content:  "✗ ";
}

/* Radio skupiny */
.cart-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-radio-section {
    margin-bottom: 0.5rem;
}

.cart-radio-section:last-child {
    margin-bottom:  0;
}

.cart-radio-section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-size: 1em;
}

.cart-radio-subsection {
    margin-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.cart-radio-subsection-title {
    font-weight: 500;
    color:  #777;
    font-size: 0.9em;
    margin-bottom:  0.4rem;
    font-style: italic;
    padding-left: 0.5rem;
}

.cart-radio-item {
    display:  flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f9f9f9;
    border:  2px solid transparent;
    border-radius: 10px;
    cursor:  pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.cart-radio-item:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.cart-radio-item.cart-radio-selected {
    background:  rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
}

.cart-radio-item input[type="radio"] {
    width: 17px;
    height: 17px;
    margin-right: 0.6rem;
    accent-color: #27ae60;
    flex-shrink: 0;
}

.cart-radio-label {
    flex:  1;
    font-size: 0.9em;
    color: #333;
}

.cart-radio-price {
    font-weight: 700;
    color: #333;
    font-size: 0.9em;
    margin-left: auto;
    padding-left: 0.75rem;
}

.cart-radio-price-free {
    color:  #27ae60;
}

/* Checkbox pro souhlas */
.cart-checkbox-item {
    display:  flex;
    align-items: flex-start;
    padding: 0.4rem 0;
    gap: 0.5rem;
}

.cart-checkbox-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 0.1rem;
    accent-color: #27ae60;
    flex-shrink: 0;
}

.cart-checkbox-label {
    font-size: 0.95em;
    color: #333;
    line-height: 1.4;
}

.cart-checkbox-label a {
    color:  #3498db;
    text-decoration: underline;
}

.cart-checkbox-label a:hover {
    color: #2980b9;
}

/* ========================================
   KOŠÍK - STRÁNKA SHRNUTÍ
   ======================================== */

.cart-summary-section {
    background:  #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.85rem;
}

.cart-summary-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color:  #333;
    margin:  0 0 0.6rem 0;
    padding-bottom: 0.4rem;
    border-bottom:  2px solid #27ae60;
    display: flex;
    align-items:  center;
    gap: 0.5rem;
}

.cart-summary-items {
    margin-bottom: 0;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-summary-item:last-child {
    border-bottom:  none;
}

.cart-summary-item-name {
    flex: 1;
    color: #333;
    min-width: 0;
}

.cart-summary-item-qty {
    color: #888;
    font-size: 0.9em;
    white-space: nowrap;
}

.cart-summary-item-price {
    font-weight: 600;
    color:  #333;
    white-space: nowrap;
}

/* Wrapper pro horizontální posuvník na mobilech */
.cart-items-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    min-width: 380px;
}

.cart-items-th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid #d1d5db;
}

.cart-items-th-qty,
.cart-items-th-price,
.cart-items-th-total {
    text-align: right;
}

.cart-items-td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.cart-items-td-qty,
.cart-items-td-price,
.cart-items-td-total {
    text-align: right;
    white-space: nowrap;
}

.cart-items-tr:last-child .cart-items-td {
    border-bottom: none;
}

.cart-items-tf .cart-items-td {
    border-top: 2px solid #d1d5db;
    padding-top: 0.65rem;
    background: #f9fafb;
}

.cart-summary-info {
    display:  grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    align-items: start;
}

.cart-summary-info-label {
    color: #888;
    font-size: 0.95em;
}

.cart-summary-info-value {
    color: #333;
    font-weight: 500;
}

.cart-items-id-link {
    color: #555;
    text-decoration: none;
}

.cart-items-id-link:hover {
    color: #27ae60;
}

.cart-legal-notice {
    font-size: 0.82em;
    color: #555;
    text-align: center;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.85rem;
}

.cart-final-total {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    border-radius: 16px;
    padding: 0.9rem 1.25rem;
    text-align: center;
    margin-bottom: 0.85rem;
}

.cart-final-total-label {
    font-size: 1em;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

.cart-final-total-value {
    font-size: 1.9em;
    font-weight:  700;
}

/* ========================================
   KOŠÍK - MODÁLNÍ OKNA
   ======================================== */

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.cart-modal-overlay.cart-modal-active {
    opacity:  1;
    visibility: visible;
}

.cart-modal-container-new {
	display: flex;
    align-items: flex-start; /* zarovnání k hornímu okraji */
    gap: 1rem;
    background: #e6ffe6;
    border-radius: 10px;
	border-left: 6px solid #219a52;
    max-width: 500px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: cart-modal-slide-in 0.3s ease;
}

.cart-modal-container-new-error {
    background: #ffece6;
	border-left: 6px solid #D04132;
}

.cart-modal-container-new-payment {
    background: #e6f7ff;
	border-left: 6px solid #2C86C1;
}

.cart-modal-left {
    flex: 0 0 auto; /* šířka podle obsahu */
}

.cart-modal-right {
    display: flex;
	flex: 1; /* zabere zbytek místa */
	flex-direction: column; /* obsah jde pod sebe */
    align-items: flex-start; /* zarovnání vlevo */
}

.cart-modal-btn-new {
    font-weight: 600;
	padding: .7rem 2rem;
    border-radius: 5px;
    font-size: 1.1em;
    text-decoration:  none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
	margin-top: auto; /* pošle tlačítko dolů */
    align-self: flex-end; /* zarovná doprava */
}

#payment-form {
	margin-top: auto; /* pošle tlačítko dolů */
    align-self: flex-end; /* zarovná doprava */
}

.cart-modal-container {
    background: #e6ffe6;
    border-radius: 10px;
	border-left: 6px solid #219a52;
    max-width: 500px;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: cart-modal-slide-in 0.3s ease;
}

@keyframes cart-modal-slide-in {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform:  translateY(0);
        opacity: 1;
    }
}

.cart-modal-icon {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    margin:  0 auto 1.5rem;
}

.cart-modal-icon-success {
    background:  linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.cart-modal-icon-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.cart-modal-icon-payment {
    background:  linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.cart-modal-title {
    font-size: 1em;
	font-weight: 700;
    color: #29a329;
	margin-top: 3px;
}

.cart-modal-text {
    color: #29a329;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cart-modal-title-error { color: #D04132; }
.cart-modal-text-error { color: #D04132; }

.cart-modal-title-card { color: #3091D1; }
.cart-modal-text-card { color: #3091D1; }

.cart-modal-order-number {
    display: inline-block;
    background: #f5f5f5;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    color:  #333;
    font-size: 1.2em;
    margin-bottom: 1.5rem;
}

.cart-modal-btn {
	display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration:  none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}

.cart-modal-btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.cart-modal-btn-success:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.35);
    transform: translateY(-2px);
}

.cart-modal-btn-error {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b5a 100%);
    color: #fff;
}

.cart-modal-btn-error:hover {
    background: linear-gradient(135deg, #d84332 0%, #e74c3c 100%);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.35);
    transform: translateY(-2px);
}

.cart-modal-btn-payment {
    background:  linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.cart-modal-btn-payment:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
    box-shadow:  0 5px 20px rgba(52, 152, 219, 0.35);
    transform: translateY(-2px);
}

/* ========================================
   KOŠÍK - RESPONZIVNÍ STYLY
   ======================================== */

@media (max-width: 768px) {
    .cart-page-container {
        padding:  0.5rem;
    }
    
    .cart-page-title {
        font-size: 1.3em;
    }
    
    .cart-breadcrumb {
        gap: 0.25rem;
    }
    
    .cart-breadcrumb-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8em;
    }
    
    .cart-breadcrumb-separator {
        font-size: 0.9em;
    }
    
    .cart-table-container {
        overflow-x: auto;
    }
    
    .cart-table {
        min-width: 500px;
    }
    
    .cart-navigation {
        flex-direction: column;
    }
    
    .cart-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cart-tooltip {
        width: 320px;
        right: -50px;
    }
	/*
	.cart-tooltip {
		position: absolute;
		top: calc(100% + 15px);
		right: 0;
		width: 380px;
		max-width: 95vw;
	}
	*/
	
    .cart-item-image {
        width:  40px;
        height: 40px;
    }
    
    .cart-breadcrumb-step {
        display: none;
    }
    
    /* Mobilní badge pozice */
    /*
	.cart-menu-wrapper.mobile .cart-badge {
        top: -8px;
        right: -12px;
    }
	*/
    
    .cart-modal-container {
        padding: 1.25rem;
        margin:  0.5rem;
    }
    
    .cart-final-total-value {
        font-size: 1.6em;
    }
    
    .cart-summary-info {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    
    .cart-summary-info-label {
        font-weight: 600;
        color: #555;
    }
    
    .cart-summary-info-value {
        margin-bottom: 0.5rem;
    }

    .cart-form-container {
        padding: 0.75rem 0.9rem;
    }

    .cart-summary-section {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cart-tooltip {
        width:  290px;
        right: -80px;
    }
    
    .cart-tooltip::before {
        right: 90px;
    }
}

/* ========================================
   KOŠÍK - LOADING STAVY
   ======================================== */

.cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #888;
}

.cart-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #eee;
    border-top-color: #27ae60;
    border-radius: 50%;
    animation: cart-spin 0.8s linear infinite;
    margin-right: 0.75rem;
}

@keyframes cart-spin {
    to {
        transform:  rotate(360deg);
    }
}

.btn-add-to-cart {
	background: #3598db;
	color: white;
}
.btn-request:hover {
	background: #2980b9;
}

#test-fill {
  position: absolute;
  top: -10px;
  right: 0;
  padding: 6px 10px;
  font-size: 13px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  visibility: hidden;
}

#test-fill:hover { 
  background: #1e4fc4; 
}

/* ========================================
   KOŠÍK - ARES INTEGRACE
   ======================================== */

.cart-form-grid-ares {
    grid-template-columns: 1fr 1fr;
}

.cart-form-group-ico {
    grid-column: 1 / 2;
}

.cart-ico-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.cart-ico-wrapper .cart-form-input {
    flex: 1;
    min-width: 0;
}

.cart-ares-btn {
    /* KLÍČOVÉ:  Stejný padding jako .cart-form-input */
	padding: 0.5rem 1rem;
	
    background:  linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.93em; /* Stejná velikost jako input */
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    
	/* Pro správné centrování obsahu */
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
	
	/* Zajistí stejnou výšku jako input */
    line-height: normal;
    box-sizing: border-box;
    height: auto;
    margin-top: 0;
}

.cart-ares-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.cart-ares-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cart-ares-btn.cart-ares-ready {
    animation: cart-ares-pulse 2s infinite;
}

@keyframes cart-ares-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

.cart-ares-loading .cart-spinner {
    width: 14px;
    height: 14px;
    border:  2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cart-spin 0.6s linear infinite;
}

.cart-ares-status {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9em;
    font-weight: 500;
    animation: cart-ares-status-slide 0.3s ease;
}

@keyframes cart-ares-status-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-ares-status .cart-ares-icon {
    font-weight: 700;
    margin-right: 0.25rem;
}

.cart-ares-error {
    background: #fee;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.cart-ares-success {
    background: #efe;
    color: #27ae60;
    border: 1px solid #2ecc71;
}

.cart-ares-warning {
    background:  #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    animation: cart-ares-status-slide 0.3s ease;
}

.cart-field-filled {
    animation: cart-field-fill 0.5s ease;
}

@keyframes cart-field-fill {
    0% {
        background: #fff;
    }
    50% {
        background: #e8f5e9;
        transform: scale(1.02);
    }
    100% {
        background: #fff;
        transform: scale(1);
    }
}

/* Responzivní styly pro ARES */
@media (max-width: 768px) {
    .cart-form-grid-ares {
        grid-template-columns: 1fr;
    }
    
    .cart-form-group-ico {
        grid-column: 1 / -1;
    }
    
    .cart-ico-wrapper {
        flex-direction: column;
    }
    
    .cart-ares-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-ares-btn {
        font-size: 0.82em;
        padding: 0.5rem 0.75rem;
    }
}

/* ========================================
   KOŠÍK - MOBILNÍ TOOLTIP - KOMPLETNÍ PŘEPIS
   ======================================== */

@media (max-width: 768px) {
    /* Reset všech desktop stylů pro mobilní tooltip */
    .cart-tooltip.cart-tooltip-mobile {
        /* Pozice */
        position: fixed !important;
        top: 60px !important;
		right: -55px !important;
        left: auto !important;
		transform: translateX(-20%) !important;
        /* Rozměry - KLÍČOVÉ!  */
        width: auto !important;
        max-width: 320px !important;
        min-width: 280px !important;
        
        /* Vzhled */
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        
        /* Z-index */
        z-index: 10002 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile.cart-tooltip-visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Šipka - skrytá na mobilu nebo přepozicovaná */
    .cart-tooltip.cart-tooltip-mobile::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 70px; /* Pozice nad ikonou košíku */
        left: auto;
        width: 16px;
        height: 16px;
        background: #fff;
        transform: rotate(45deg);
        box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
        z-index: 1;
    }
    
    /* Header */
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #eee !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%) !important;
        flex-wrap: nowrap !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-count {
        font-size: 0.9em !important;
        color: #555 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-total {
        font-size: 1em !important;
        font-weight: 700 !important;
        color:  #27ae60 !important;
    }
    
    /* Body */
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-body {
        display: block !important;
        max-height: 220px !important;
        overflow-y: auto !important;
        padding: 0.5rem !important;
        background: #fff !important;
		border-radius: 0 0 12px 12px !important;
    }
    
    /* Položky */
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.35rem !important;
        background: #f9f9f9 !important;
        border-radius: 8px !important;
        gap: 0.5rem !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item:last-child {
        margin-bottom: 0 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item-info {
        flex: 1 !important;
        min-width: 0 !important;
        display: block !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item-name {
        font-size: 0.85em !important;
        font-weight: 600 !important;
        color: #333 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 0.1rem !important;
        display: block !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item-id {
        font-size: 0.75em !important;
        color: #888 !important;
        display: block !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item-details {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item-qty {
        font-size: 0.8em !important;
        color:  #666 !important;
        margin-bottom: 0 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-item-price {
        font-size: 0.85em !important;
        font-weight: 700 !important;
        color:  #e74c3c !important;
        white-space: nowrap !important;
    }
    
    /* Prázdný košík */
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-empty {
        display: block !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
        color: #888 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-empty-icon {
        font-size: 2em !important;
        margin-bottom: 0.5rem !important;
        opacity: 0.5 !important;
        display: block !important;
    }
    
    /* Footer */
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-footer {
        display: block !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #eee !important;
        background: #fafafa !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .cart-tooltip.cart-tooltip-mobile .cart-tooltip-btn {
        display: block !important;
        width: 100% !important;
        padding: 0.75rem !important;
        background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
        color: #fff !important;
        text-decoration: none !important;
        text-align: center !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        font-size: 0.95em !important;
        border: none !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }
    
    /* Loading stav */
    .cart-tooltip.cart-tooltip-mobile .cart-loading {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1.5rem !important;
        color: #888 !important;
    }
}

/* ========================================
   KOŠÍK – DVOUSLOUPCOVÉ USPOŘÁDÁNÍ
   (inspirováno admin_baliky.php / par-two-col-grid)
   ======================================== */

/* ── Hlavní dvousloupcová mřížka ─────────────────── */
.ek-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ek-col-left,
.ek-col-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Sekce uvnitř sloupce nemají vlastní margin-bottom (mezery řeší gap) */
.ek-col-left .ek-section,
.ek-col-right .ek-section {
    margin-bottom: 0;
}

/* ── Kompaktní sekce ─────────────────────────────── */
.ek-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.75rem;
}

.ek-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #27ae60;
}

/* ── Formulářové řádky a skupiny ─────────────────── */
.ek-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0rem;
}

.ek-form-row.ek-full {
    grid-template-columns: 1fr;
}

.ek-form-row.ek-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.ek-form-group {
    display: flex;
    flex-direction: column;
}

.ek-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #374151;
}

.ek-form-group input,
.ek-form-group select,
.ek-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.ek-form-group input:focus,
.ek-form-group select:focus,
.ek-form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.12);
}

.ek-form-group textarea {
    resize: vertical;
    min-height: 56px;
}

/* ── Info řádek (label vpravo, pole vlevo) ──────── */
.ek-lf-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ek-lf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
}

.ek-lf-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    text-align: right;
    min-width: 90px;
}

/* ── Souhrn cen (total box) ──────────────────────── */
.ek-total-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.ek-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    color: #374151;
}

.ek-total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0 0;
    margin-top: 0.35rem;
    border-top: 2px solid #d1d5db;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

.ek-total-final span:last-child {
    color: #27ae60;
}

/* ── Radio položky v kompaktní sekci ─────────────── */
.ek-radio-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.ek-radio-item:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.ek-radio-item.ek-radio-selected {
    background: rgba(39, 174, 96, 0.08);
    border-color: #27ae60;
}

.ek-radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: #27ae60;
    flex-shrink: 0;
}

.ek-radio-label {
    flex: 1;
    color: #333;
}

.ek-radio-price {
    font-weight: 700;
    color: #333;
    font-size: 0.88rem;
    margin-left: auto;
    padding-left: 0.5rem;
}

.ek-radio-price-free {
    color: #27ae60;
}

/* ── Doprava info box ────────────────────────────── */
.ek-shipping-box {
    background: #f0f8ff;
    border: 1.5px solid #27ae60;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.ek-shipping-box .ek-shipping-line {
    padding: 0.2rem 0;
}

/* ── Breadcrumb navigace ─────────────────────────── */
.ek-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.ek-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.84em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ek-breadcrumb-item.ek-breadcrumb-active {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.ek-breadcrumb-item.ek-breadcrumb-completed {
    background: rgba(39, 174, 96, 0.3);
    color: #fff;
}

.ek-breadcrumb-item.ek-breadcrumb-completed:hover {
    background: rgba(39, 174, 96, 0.5);
}

.ek-breadcrumb-step {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78em;
    font-weight: 700;
}

.ek-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1em;
}

/* ── Celková cena – výrazný blok ─────────────────── */
.ek-grand-total-bar {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ek-grand-total-bar .ek-gt-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.ek-grand-total-bar .ek-gt-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ── Navigační tlačítka ──────────────────────────── */
.ek-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ek-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}

.ek-btn-back {
    background: #6c757d;
    color: #fff;
}

.ek-btn-back:hover {
    background: #5a6268;
    color: #fff;
}

.ek-btn-continue {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.ek-btn-continue:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.35);
}

.ek-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Právní poznámka ─────────────────────────────── */
.ek-legal-notice {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    line-height: 1.5;
    padding: 0.45rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

/* ── Bezplatná doprava – upozornění ──────────────── */
.ek-free-shipping-notice {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    padding: 0.5rem 0.85rem 0.85rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.ek-free-shipping-notice.ek-achieved {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.ek-free-shipping-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.3rem;
}

.ek-free-shipping-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Košíkové řádky (tabulka) ────────────────────── */
.ek-items-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
}

.ek-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 360px;
}

.ek-items-table th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 0.45rem 0.65rem;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ek-items-table th:last-child {
    text-align: center;
}

.ek-items-table td {
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.ek-items-table tr:last-child td {
    border-bottom: none;
}

.ek-items-table tr:hover td {
    background: #f9f9f9;
}

.ek-item-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ek-item-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ek-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
    margin: 0 0 0.1rem;
}

.ek-item-id {
    font-size: 0.78rem;
    color: #888;
}

.ek-item-price {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    white-space: nowrap;
}

.ek-item-remove {
    width: 30px;
    height: 30px;
    border: none;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ek-item-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

/* ── Prázdný košík ───────────────────────────────── */
.ek-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ek-empty-icon {
    font-size: 4em;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.ek-empty h3 {
    color: #333;
    margin-bottom: 0.4rem;
    font-size: 1.3em;
}

.ek-empty p {
    color: #666;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* ── Souhrn košíku (mezisoučet, počet) ────────────── */
.ek-cart-subtotal {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
}

.ek-cart-subtotal .ek-st-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    color: #374151;
}

.ek-cart-subtotal .ek-st-total {
    border-top: 1.5px solid #d1d5db;
    margin-top: 0.3rem;
    padding-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #27ae60;
}

/* ── Checkbox ────────────────────────────────────── */
.ek-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.ek-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0.1rem;
    accent-color: #27ae60;
    flex-shrink: 0;
}

.ek-checkbox-label {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.4;
}

/* ── Doručovací adresa (skrytá, animovaná) ─────────── */
.ek-shipping-addr-box {
    margin-top: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
}

/* ── Upozornění / varování ───────────────────────── */
.ek-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.87rem;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
}

.ek-info-box {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #2d6a3f;
    border-radius: 0 4px 4px 0;
}

/* ── Shrnutí adresy / info grid ──────────────────── */
.ek-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.75rem;
    font-size: 0.88rem;
    align-items: start;
}

.ek-info-label {
    color: #888;
    font-size: 0.82rem;
    white-space: nowrap;
}

.ek-info-value {
    color: #1f2937;
    font-weight: 500;
}

/* ── Tabulka položek ve shrnutí ──────────────────── */
.ek-summary-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
    min-width: 340px;
}

.ek-summary-items-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    text-align: left;
    border-bottom: 2px solid #d1d5db;
    font-size: 0.82rem;
}

.ek-summary-items-table th.r,
.ek-summary-items-table td.r {
    text-align: right;
}

.ek-summary-items-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.ek-summary-items-table tfoot td {
    border-top: 2px solid #d1d5db;
    background: #f9fafb;
    font-weight: 700;
    padding-top: 0.5rem;
}

/* ── Vyprázdnit tlačítko ─────────────────────────── */
.ek-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: transparent;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.83rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Exo 2', sans-serif;
}

.ek-btn-clear:hover {
    background: #e74c3c;
    color: #fff;
}

/* ── Stránka košíku – page title ─────────────────── */
.ek-page-title {
    text-align: center;
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* ── ARES wrapper ────────────────────────────────── */
.ek-ico-wrapper {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}

.ek-ico-wrapper input {
    flex: 1;
    min-width: 0;
}

.ek-ares-btn {
    padding: 0.45rem 0.9rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ek-ares-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9 0%, #1f6dad 100%);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.ek-ares-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Pole se stavem validace ─────────────────────── */
.ek-field-status {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.15rem;
    min-height: 1em;
}

.ek-field-status.ek-ok {
    color: #27ae60;
    font-weight: 600;
}
.ek-field-status.ek-ok::before { content: "✓ "; }

.ek-field-status.ek-error { color: #e74c3c; }
.ek-field-status.ek-error::before { content: "✗ "; }

/* ── Responzivní styly ───────────────────────────── */
@media (max-width: 768px) {
    .ek-two-col-grid {
        grid-template-columns: 1fr;
    }

    .ek-form-row,
    .ek-form-row.ek-three {
        grid-template-columns: 1fr;
    }

    .ek-nav-row {
        flex-direction: column;
    }

    .ek-btn {
        width: 100%;
        justify-content: center;
    }

    .ek-grand-total-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .ek-summary-items-table,
    .ek-items-table {
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .ek-lf-label {
        display: none;
    }

    .ek-lf-row {
        grid-template-columns: 1fr;
    }
}
