/* ========================================
   ZION eShop - Stránka košíku
   ======================================== */

.cart-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.cart-page > h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 40px;
    background: var(--zion-rasta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cart-page > h1 i {
    background: transparent;
    color: var(--zion-rasta-gold);
    -webkit-text-fill-color: var(--zion-rasta-gold);
}

/* Položky košíku */
.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(145deg, #0d0d0d, #0a0a0a);
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #222;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    text-align: left;
    background: transparent;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    background: transparent;
}

.cart-item-category {
    font-size: 12px;
    color: var(--zion-rasta-gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    background: transparent;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.cart-item-quantity .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
    min-width: 32px;
    padding: 0;
    border-radius: 12px;
    background: rgba(4, 8, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55);
}

.cart-item-quantity .qty-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(4, 8, 18, 0.95);
}

.cart-item-quantity input {
    width: 50px;
    height: 32px;
    text-align: center;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 100px;
    text-align: right;
    background: var(--zion-rasta-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    min-width: 36px;
}

.cart-item-remove:hover {
    color: var(--zion-rasta-red);
    background: transparent;
}

/* Prázdný košík */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 4rem;
    color: #333;
    margin-bottom: 20px;
}

.cart-empty h2 {
    margin-bottom: 10px;
}

.cart-empty p {
    color: #888;
    margin-bottom: 30px;
}

/* Checkout sekce */
.checkout-section {
    display: grid;
    gap: 25px;
}

.checkout-box {
    background: linear-gradient(145deg, #0d0d0d, #0a0a0a);
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    padding: 30px;
    transition: border-color 0.3s;
}

.checkout-box:hover {
    border-color: #2a2a2a;
}

.checkout-box h2 {
    font-size: 1.25rem;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #1a1a1a;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-box h2 i {
    color: #e33fa1;
    font-size: 1.1rem;
}

.checkout-box h3 {
    font-size: 1rem;
    margin: 25px 0 18px;
    color: #666;
    background: transparent;
    text-align: left;
}

/* Doprava */
.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shipping-option,
.payment-option {
    cursor: pointer;
    background: transparent;
}

.shipping-option input,
.payment-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-content:hover {
    border-color: #444;
}

.shipping-option input:checked + .option-content,
.payment-option input:checked + .option-content {
    border-color: rgba(253, 216, 83, 0.8);
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.12), rgba(253, 216, 83, 0.12), rgba(46, 125, 50, 0.12));
    box-shadow:
        0 0 25px rgba(198, 40, 40, 0.2),
        0 0 30px rgba(253, 216, 83, 0.18),
        0 0 25px rgba(46, 125, 50, 0.25);
}

.option-content div {
    flex: 1;
    text-align: left;
    background: transparent;
}

.option-content strong {
    display: block;
    margin-bottom: 4px;
    background: transparent;
    font-weight: 600;
}

.option-content span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.shipping-logo {
    width: 45px;
    height: auto;
    border-radius: 6px;
}

.shipping-price {
    font-weight: 700;
    color: var(--zion-rasta-gold);
    background: transparent !important;
    font-size: 1.1rem;
}

/* Zásilkovna widget */
.zasilkovna-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(4, 8, 18, 0.9);
    color: #fefefe;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    border-color: rgba(253, 216, 83, 0.65);
    color: var(--zion-rasta-gold);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 26px rgba(253, 216, 83, 0.35);
}

.selected-point {
    margin-top: 15px;
    padding: 15px;
    background: rgba(253, 216, 83, 0.08);
    border: 1px solid rgba(253, 216, 83, 0.35);
    border-radius: 8px;
    display: none;
    text-align: left;
}

.selected-point.active {
    display: block;
}

.selected-point strong {
    display: block;
    margin-bottom: 5px;
    background: transparent;
}

.selected-point span {
    font-size: 13px;
    color: #888;
    background: transparent;
}

/* Formulář */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #888;
    background: transparent;
}

/* Shrnutí */
.summary-box {
    background: linear-gradient(145deg, rgba(198, 40, 40, 0.1), rgba(253, 216, 83, 0.08), rgba(46, 125, 50, 0.08));
    border: 1px solid rgba(253, 216, 83, 0.4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--zion-rasta-gradient);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.summary-line span {
    background: transparent;
}

.summary-line.total {
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: none;
    padding-top: 20px;
    margin-top: 10px;
}

.summary-line.total span:last-child {
    background: var(--zion-rasta-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    margin-top: 25px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(253, 216, 83, 0.35);
}

.terms-note {
    font-size: 12px;
    color: #555;
    margin-top: 18px;
    text-align: center;
    width: 100%;
}

.terms-note a {
    color: #e33fa1;
    transition: color 0.3s;
}

.terms-note a:hover {
    color: #6549d5;
}

/* QR Modal */
.qr-modal-content {
    max-width: 450px;
    text-align: center;
    padding: 30px;
}

.qr-modal-content h2 {
    margin-bottom: 10px;
    text-align: center;
}

.qr-modal-content > p {
    color: #888;
    margin-bottom: 25px;
    width: 100%;
}

.qr-code {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 25px;
}

.qr-code img,
.qr-code canvas {
    display: block;
}

.bank-details {
    text-align: left;
    background: #111;
    padding: 20px;
    border-radius: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #222;
    background: transparent;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: #888;
    background: transparent;
}

.detail-row strong {
    color: #fff;
    background: transparent;
}

.qr-note {
    font-size: 13px;
    color: #4caf50;
    margin-top: 20px;
    width: 100%;
}

/* Responzivita */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-info {
        flex-basis: calc(100% - 80px);
    }
    
    .cart-item-quantity,
    .cart-item-price {
        flex-basis: 50%;
        margin-top: 10px;
    }
    
    .cart-item-price {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   GDPR / Terms Checkbox
   ======================================== */
.terms-checkbox {
    margin: 15px 0;
    padding: 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #111;
    border: 2px solid #444;
    border-radius: 5px;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 2px;
}

.checkbox-container:hover .checkmark {
    border-color: #FFC107;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-text {
    color: #999;
    font-size: 0.9rem;
}

.checkbox-text a {
    color: #FFC107;
    text-decoration: none;
    transition: color 0.2s;
}

.checkbox-text a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Error state for required checkbox */
.terms-checkbox.error .checkmark {
    border-color: #f44336;
    animation: shake 0.4s ease;
}

.terms-checkbox.error .checkbox-text {
    color: #f44336;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.terms-note {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

.terms-note i {
    color: #4CAF50;
    margin-right: 5px;
}

.terms-note a {
    color: #4CAF50;
    text-decoration: none;
}

.terms-note a:hover {
    text-decoration: underline;
}

/* === GLOBAL RESPONSIVE FIXES === */
img, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .cart-page {
        padding: 100px 12px 60px;
    }
}
