/**
 * FOQI Shop - Unified Design System
 * Consistent styles for Cart, Checkout, and Product pages
 */

/* ==========================================================================
   Colors & Variables
   ========================================================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-darker: #653a8a;

    --secondary-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --secondary-color: #fbbf24;

    --success-gradient: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    --success-color: #10b981;

    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --danger-color: #ef4444;

    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;

    --border-light: #e2e8f0;
    --border-lighter: #e5e7eb;

    --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-primary: 0 4px 16px rgba(102, 126, 234, 0.4);
    --shadow-primary-hover: 0 6px 20px rgba(102, 126, 234, 0.5);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 50px;

    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
}

/* ==========================================================================
   Page Layouts
   ========================================================================== */
.cart-page,
.checkout-page {
    min-height: 100vh;
    padding: 2rem 0;
}

.cart-header,
.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-header h1,
.checkout-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-header p,
.checkout-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* ==========================================================================
   Buttons - Unified Gradient Design
   ========================================================================== */

/* Primary gradient buttons - používá se napříč celým e-shopem */
.btn-checkout,
.btn-submit,
.btn-add-upsell,
.btn-primary-gradient,
.btn-foqi,
.btn-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-xl);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-checkout:hover,
.btn-submit:hover,
.btn-add-upsell:hover,
.btn-primary-gradient:hover,
.btn-foqi:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    color: white !important;
    filter: none;
}

.btn-checkout:active,
.btn-submit:active,
.btn-add-upsell:active,
.btn-primary-gradient:active,
.btn-foqi:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Varianty velikosti tlačítek */
.btn-lg.btn-primary,
.btn-lg.btn-foqi {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

.btn-sm.btn-primary,
.btn-sm.btn-foqi {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Width modifikátory */
.btn-checkout,
.btn-submit,
.btn-primary-gradient {
    width: 100%;
}

.btn-foqi:not(.w-100):not(.btn-block),
.btn-primary:not(.w-100):not(.btn-block) {
    width: auto;
}

/* Small button variant for upsell cards */
.btn-add-upsell {
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    width: auto;
    box-shadow: none;
}

.btn-add-upsell:hover {
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

/* Submit button specific styles */
.btn-submit {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

/* Secondary button */
.btn-continue,
.btn-secondary-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-continue:hover,
.btn-secondary-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Remove button */
.btn-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fee;
    background: white;
    color: var(--danger-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-remove:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(1.1);
}

/* ==========================================================================
   Cards & Containers
   ========================================================================== */
.cart-item-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.cart-item-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.form-section:hover {
    box-shadow: var(--shadow-lg);
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-badge {
    background: var(--primary-gradient);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 2rem;
}

.summary-card h4,
.summary-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Product Items
   ========================================================================== */
.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
}

.checkout-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.checkout-item:hover {
    background: var(--bg-lighter);
    border-color: var(--border-light);
}

.checkout-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.checkout-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.checkout-item-variant {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkout-item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.checkout-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    white-space: nowrap;
    min-width: 80px;
}

/* ==========================================================================
   Gift Items
   ========================================================================== */
.cart-gift-badge,
.gift-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.gift-badge {
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.gift-item,
.gift-item-small {
    background: #fffbeb;
    border-left: 3px solid var(--secondary-color);
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-item-small {
    margin: 0.25rem 0 0.5rem 0;
}

.gift-item i,
.gift-item-small i {
    color: #f59e0b;
}

.free-gifts-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.free-gifts-banner i {
    font-size: 2rem;
    color: #f59e0b;
}

.free-gifts-banner .title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.free-gifts-banner .subtitle {
    color: #b45309;
    font-size: 0.875rem;
}

/* ==========================================================================
   Summary & Pricing
   ========================================================================== */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.summary-row-label {
    font-weight: 400;
}

.summary-row-value {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.summary-row.total {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 1rem;
    border-top: 2px solid var(--border-light);
    margin-top: 1rem;
}

.summary-row.total .summary-row-value {
    color: var(--primary-color);
}

.summary-row.shipping {
    color: var(--success-color);
    font-weight: 600;
}

/* ==========================================================================
   Shipping Progress
   ========================================================================== */
.progress-shipping {
    background: var(--border-light);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-shipping .bar {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.shipping-info {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.shipping-info.success {
    color: var(--success-color);
    font-weight: 600;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-light);
    margin-top: 0.125rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #4a5568;
    cursor: pointer;
}

/* ==========================================================================
   Shipping & Payment Methods
   ========================================================================== */
.shipping-method-option,
.payment-method-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 1rem;
    background: white;
}

.shipping-method-option:hover,
.payment-method-option:hover {
    border-color: #cbd5e0;
    background-color: var(--bg-light);
    transform: translateX(4px);
}

.shipping-method-option:has(input:checked),
.payment-method-option:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.shipping-method-option input[type="radio"],
.payment-method-option input[type="radio"] {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.method-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.method-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ==========================================================================
   Quantity Control
   ========================================================================== */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 0.25rem 0.5rem;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.qty-control button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.qty-control input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   Upsell Section - Cart Page (Product Card Style)
   ========================================================================== */
.upsell-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px dashed var(--border-light);
}

.upsell-section h2 {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 2rem;
}

.upsell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 991px) {
    .upsell-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .upsell-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Product Card in Upsell - extends base product-card styles */
.upsell-product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.upsell-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

/* Product Image Wrapper */
.upsell-product-card .product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8fafc;
}

.upsell-product-card .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.upsell-product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Tags */
.upsell-product-card .product-tags {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    z-index: 2;
}

.upsell-product-card .product-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    white-space: nowrap;
}

.upsell-product-card .product-tag--sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.upsell-product-card .product-tag--bestseller {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Product Info */
.upsell-product-card .product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.upsell-product-card .product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stock Status */
.upsell-product-card .product-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
}

.upsell-product-card .product-stock--in-stock {
    color: #10b981;
}

.upsell-product-card .product-stock i {
    font-size: 0.875rem;
}

/* Price Wrapper */
.upsell-product-card .product-price-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.upsell-product-card .product-price-old {
    font-size: 0.9375rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.upsell-product-card .product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.upsell-product-card .product-price-vat {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Add to Cart Button */
.upsell-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    width: 100%;
}

.upsell-add-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.upsell-add-btn i {
    font-size: 1rem;
}

/* ==========================================================================
   Utility Classes from style.css (e-shop specific)
   ========================================================================== */

/* Rating stars */
.rating {
    color: #ffb300;
}

/* Price display */
.price {
    font-weight: 800;
    font-size: 1.2rem;
    color: #111;
}

.oldprice {
    color: #9b9b9b;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Pills / badges */
.pill {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
}

.badge-soft {
    background: rgba(160, 123, 54, 0.10);
    color: var(--primary-color);
    border: 1px solid rgba(160, 123, 54, 0.25);
}

/* Progress bar (for free shipping) */
.progress-thin .progress-bar {
    transition: width 0.25s ease;
}

/* ==========================================================================
   Security & Trust Badges
   ========================================================================== */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-lighter);
}

.pickup-point-selector {
    margin-top: 1rem;
    padding: 1rem;
    background: #fffbeb;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
}

.selected-pickup-point {
    background: #f0fdf4;
    border-radius: var(--radius-md);
    padding: 1rem;
    border-left: 4px solid var(--success-color);
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-cart img {
    max-width: 200px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.empty-cart h2 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #718096;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
#shippingAddressFields {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

#differentShipping:checked ~ #shippingAddressFields {
    display: block;
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================================================
   PRIORITY OVERRIDES - Must load after style.css and fixes.css
   ========================================================================== */

/**
 * Důležité: Tyto přepisy zajišťují, že gradient tlačítka se použijí
 * konzistentně napříč celým e-shopem, i když style.css definuje
 * .btn-foqi s var(--current-product-color)
 */

/* Override pro .btn-foqi z style.css */
body[data-product="focus"] .btn-foqi,
body[data-product="relax"] .btn-foqi,
body[data-product="imunity"] .btn-foqi,
body[data-product="premium"] .btn-foqi,
.btn-foqi {
    background: var(--primary-gradient) !important;
    background-color: transparent !important;
    border-radius: var(--radius-xl) !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    box-shadow: var(--shadow-primary) !important;
}

body[data-product="focus"] .btn-foqi:hover,
body[data-product="relax"] .btn-foqi:hover,
body[data-product="imunity"] .btn-foqi:hover,
body[data-product="premium"] .btn-foqi:hover,
.btn-foqi:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%) !important;
    background-color: transparent !important;
    filter: none !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-primary-hover) !important;
}

/* Override pro Bootstrap .btn-primary */
.btn-primary,
.btn.btn-primary {
    background: var(--primary-gradient) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: var(--radius-xl) !important;
    color: white !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%) !important;
    background-color: transparent !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-primary-hover) !important;
}

/* Zajisti že outline varianty zůstávají nezměněné */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    background: transparent !important;
    background-color: white !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
    transform: none !important;
}

/* ==========================================================================
   Order Confirmation Page
   ========================================================================== */
.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.success-icon-wrapper i {
    font-size: 3rem;
    color: var(--success-color);
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.confirmation-order-number {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.confirmation-order-number strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Order items list */
.order-items-list {
    margin-bottom: 1.5rem;
}

.checkout-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.gift-item-special {
    background: #fffbeb;
    border-left: 3px solid var(--secondary-color);
}

.gift-icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gift-icon-box i {
    font-size: 1.5rem;
    color: white;
}

/* Delivery & Payment Info */
.delivery-payment-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-label i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Account CTA Card */
.account-cta-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.account-cta-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.account-cta-card p {
    font-size: 0.95rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
    text-decoration: none;
    font-size: 1.25rem;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

.social-icon.instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.twitter {
    background: #1da1f2;
}

/* ==========================================================================
   Voucher Section
   ========================================================================== */
.voucher-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.voucher-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Voucher form - spojený input s tlačítkem */
.voucher-form .input-group {
    display: flex;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    transition: var(--transition-fast);
}

.voucher-form .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.voucher-form .input-group .form-control {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    box-shadow: none !important;
    background: transparent;
}

.voucher-form .input-group .form-control:focus {
    box-shadow: none !important;
    outline: none;
}

.voucher-form .input-group .form-control::placeholder {
    color: var(--text-light);
}

.voucher-form .input-group .btn {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.voucher-form .input-group .btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%) !important;
    transform: none !important;
}

/* Aplikovaný voucher */
.voucher-applied {
    background: var(--success-gradient);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: white;
}

.voucher-applied .btn-remove-voucher {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: none !important;
}

.voucher-applied .btn-remove-voucher:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .confirmation-title {
        font-size: 1.75rem;
    }

    .success-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .success-icon-wrapper i {
        font-size: 2rem;
    }

    .summary-card {
        position: relative;
        top: 0;
    }

    /* Voucher form na mobilu */
    .voucher-form .input-group {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .voucher-form .input-group .form-control {
        border-bottom: 1px solid var(--border-light) !important;
    }

    .voucher-form .input-group .btn {
        border-radius: 0 0 calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) !important;
    }
}
