        :root {
            --primary: #0b1461;
            --bg-blue: #79D5FF;
            --white: #ffffff;
            --red: #be0005;
            --light-blue: #dff5ff;
            --grey: #505050;
            --light-red: #ffbfa4;

            --modal-overlay: rgba(11, 20, 97, 0.4);
            --modal-border: rgba(255, 255, 255, 0.3);
            --shadow-color: rgba(0, 0, 0, 0.2);
            
            --dosage-orange: #e67e22;
            --dosage-orange-dark: #d35400;
            --dosage-bg: #fff9f2;
            --dosage-border: #ffebd4;

            --info-box-bg: #f0faff;
            --warning-box-bg: #fff5f5;

            --ui-border: #f0f0f0;
            --ui-border-dark: #e2e8f0;
            --ui-bg-light: #f8fafc;
            --ui-text-muted: #94a3b8;
            --ui-text-info: #64748b;
            --ui-stepper-inactive: #cbd5e1;
            
            --status-success-bg: #ecfdf5;
            --status-success-text: #059669;
            
            --map-overlay-bg: rgba(255, 255, 255, 0.9);

        }

        * { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; }

        body {
            font-family: 'Nunito', sans-serif;
            font-weight: 300;
            color: var(--primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            background-color: var(--light-blue);
            background-image: 
                radial-gradient(at 0% 0%, var(--bg-blue) 0px, transparent 50%),
                radial-gradient(at 100% 0%, var(--light-red) 0px, transparent 50%),
                radial-gradient(at 50% 100%, var(--white) 0px, transparent 50%);
            background-size: 200% 200%;
            background-attachment: fixed;
            animation: aurora 5s ease infinite;
        }

        @keyframes aurora {
            0% {
                background-position: 0% 0%, 100% 0%, 50% 100%;
            }
            33% {
                background-position: 50% 50%, 0% 100%, 100% 0%;
            }
            66% {
                background-position: 100% 100%, 50% 0%, 0% 50%;
            }
            100% {
                background-position: 0% 0%, 100% 0%, 50% 100%;
            }
        }

        .nav-container {
            width: 100%;
            background-color: var(--white);
            padding: 1.2rem 0;
            box-shadow: 0 4px 20px rgba(11, 20, 97, 0.05);
            z-index: 100;
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 5%;
        }

        .main-hero-wrapper {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 50px;
            padding: 60px 5%;
            flex: 1;
        }

        .woman-side-img {
            height: 580px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(10px 20px 30px rgba(11, 20, 97, 0.15));
            flex-shrink: 0;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-20px);
            }
            100% {
                transform: translateY(0px);
            }
        }

        .hero-content-block {
            flex: 2;
            max-width: 900px;
            display: flex;
            flex-direction: column;
            align-items: center; 
            text-align: center;
        }

        .hero-title {
            font-weight: 700;
            letter-spacing: -0.05em;
            font-size: clamp(2.2rem, 4.5vw, 3.8rem);
            line-height: 1.15;
            margin-bottom: 4rem;
            color: var(--primary);
            width: 100%;
        }

        .hero-title span { display: block; width: 100%; color: var(--red);}

        .search-box-wrapper {
            width: 100%;
            max-width: 100%;
            position: relative;
        }

        .main-search-box {
            background: var(--white);
            border-radius: 50px;
            padding: 10px;
            display: flex;
            align-items: center;
            box-shadow: 0 20px 40px rgba(11, 20, 97, 0.2);
            border: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .main-search-box:focus-within {
            border-color: var(--bg-blue);
            transform: translateY(-8px);
        }

        .search-input {
            flex: 1;
            padding: 18px 25px;
            border: none;
            outline: none;
            font-size: 1.2rem;
            font-weight: 400;
            background: transparent;
        }

        .search-icon { margin-right: 20px; color: var(--bg-blue); }

        .results-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 10px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            max-height: 350px;
            overflow-y: auto;
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
            z-index: 10;
        }

        .result-card {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 15px 25px;
            border-bottom: 3px solid var(--light-blue);
            transition: background 0.2s ease;
        }

        .med-image-wrapper {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--ui-bg-light);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--light-blue);
        }

        .med-image-wrapper svg {
            display: block;
            margin: auto;
        }

        .result-card:hover {
            background: var(--light-blue);
        }

        .med-info {
            flex: 1;
            padding-right: 20px;
        }

        .med-info strong {
            font-weight: 700;
        }

        .med-info small {
            font-weight: 400;
            color: var(--grey);
        }

        .result-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .btn-detail, .btn-reserve {
            padding: 10px 18px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            border: none;
            white-space: nowrap;
        }

        .btn-detail {
            background: var(--light-blue);
            color: var(--primary);
            text-decoration: none;
        }

        .btn-detail:hover {
            background: var(--bg-blue);
            color: var(--white);
        }

        .btn-reserve {
            background: var(--primary);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(11, 20, 97, 0.2);
        }

        .btn-reserve:hover {
            background: var(--bg-blue);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(11, 20, 97, 0.3);
        }

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

        .btn-disabled:hover {
            background: var(--primary);
        }

        .floating-badge {
            background: var(--red);
            color: var(--white);
            padding: 12px 30px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
            display: inline-block;
            width: fit-content;
        }

        .cart-badge {
            animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .cart-view {
            position: relative;
            display: inline-block;
            padding-right: 4px;
            padding-left: 2px;
        }

        .cart-view span {
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem; 
            line-height: 1;
        }

        @keyframes pop {
            0% { transform: scale(0.5); }
            100% { transform: scale(1); }
        }

        @media (max-width: 899px) {
            .main-hero-wrapper { flex-direction: column; text-align: center; }
            .woman-side-img { height: 240px; }
            .main-hero-wrapper {
                flex-direction: column-reverse;
                width: 100%;
                max-width: none;
                padding: 60px 20px;
                margin: 0;
                gap: 0px;
                box-sizing: border-box;
            }
            .hero-content-block {
                flex: 2;
                width: 100%;
                max-width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center; 
                text-align: center;
            }
            .result-card {
                flex-direction: row;
                flex-wrap: wrap;
                padding: 25px;
                gap: 15px;
            }
            .med-info {
                flex: 1;
                padding-right: 0;
            }
            .result-actions {
                width: 100%;
            }
        }

        @media (max-width: 1099px) {
            .main-hero-wrapper {
                width: 100%;
                max-width: none;
                padding: 60px 20px;
                margin: 0;
                gap: 0px;
                box-sizing: border-box;
            }
            .hero-content-block {
                flex: 2;
                width: 100%;
                max-width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center; 
                text-align: center;
            }
            .result-card {
                flex-direction: row;
                flex-wrap: wrap;
                padding: 25px;
                gap: 15px;
            }
            .med-info {
                flex: 1;
                padding-right: 0;
            }
            .result-actions {
                width: 100%;
            }
        }

        @media (max-width: 1200px) {
            .hero-content-block {
                flex: 2;
                width: 100%;
                max-width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center; 
                text-align: center;
            }
            .result-card {
                flex-direction: row;
                flex-wrap: wrap;
                padding: 25px;
                gap: 15px;
            }
            .med-info {
                flex: 1;
                padding-right: 0;
            }
            .result-actions {
                width: 100%;
            }
        }

        .cart-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 5px 10px;
            border-radius: 10px;
        }

        .cart-wrapper:hover {
            background-color: var(--light-blue);
        }

        .cart-wrapper svg {
            flex-shrink: 0;
        }

        .cart-text-container {
            position: relative;
            display: inline-block;
        }

        .cart-text-container span {
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem;
            line-height: 1;
            padding-right: 12px; 
        }

        .cart-badge {
            position: absolute;
            top: -8px;
            right: -10px;
            
            background-color: var(--red);
            color: var(--white);
            
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            
            font-family: 'Nunito', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            line-height: 1;
            
            box-shadow: 0 2px 5px rgba(190, 0, 5, 0.3);
            border: 2px solid var(--white);
            
            animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1;
        }

        .cart-view {
            position: static;
            display: contents;
        }

        .cart-wrapper:hover .cart-text-container span {
            color: var(--red);
        }

        @keyframes pop {
            0% { transform: scale(0.5); opacity: 0; }
            80% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--modal-overlay);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 20px;
        }

        .modal-content {
            background: var(--white);
            border-radius: 30px;
            width: 100%;
            max-width: 800px;
            max-height: 85vh;
            position: relative;
            box-shadow: 0 25px 50px var(--shadow-color);
            border: 1px solid var(--modal-border);
            padding: 0 !important; 
            overflow-y: scroll !important;
        }

        .modal-body-wrapper {
            padding: 50px;
        }

        .modal-content::-webkit-scrollbar {
            width: 10px !important;
            display: block !important;
        }

        .modal-content::-webkit-scrollbar-track {
            background: var(--light-blue);
            border-radius: 10px;
            margin: 10px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: var(--bg-blue);
            margin: 15px 0;
            border-radius: 10px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--light-blue);
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 20;
        }

        .modal-close:hover {
            background: var(--red);
            color: white;
            transform: rotate(90deg);
        }

        .modal-header {
            border-bottom: 2px solid var(--light-blue);
            padding-bottom: 15px;
            margin-bottom: 25px;
        }

        .modal-header h2 {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 5px;
            line-height: 1.2;
        }

        .modal-body {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--grey);
        }

        .modal-section {
            margin-bottom: 30px;
        }

        .modal-section h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .modal-section:nth-of-type(1) h3 { 
            color: var(--bg-blue); 
        }

        .modal-section:nth-of-type(1) .info-box {
            background: var(--info-box-bg);
            border-left: 4px solid var(--bg-blue);
            padding: 20px;
            border-radius: 0 15px 15px 0;
            font-size: 0.95rem;
        }

        .modal-section:nth-of-type(2) h3 { 
            color: var(--dosage-orange); 
        }

        .modal-section:nth-of-type(2) .dosage-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .modal-section:nth-of-type(2) .dosage-grid > div {
            background: var(--dosage-bg);
            border: 1px solid var(--dosage-border);
            padding: 15px;
            border-radius: 12px;
        }

        .modal-section:nth-of-type(2) .dosage-grid strong {
            color: var(--dosage-orange-dark);
        }

        .modal-section:nth-of-type(3) h3 { 
            color: var(--red); 
        }

        .modal-section:nth-of-type(3) .warning-box {
            background: var(--warning-box-bg);
            border-left: 4px solid var(--red);
            padding: 20px;
            border-radius: 0 15px 15px 0;
            font-size: 0.95rem;
        }

        .modal-section:nth-of-type(3) .warning-box li {
            margin-bottom: 8px;
        }

        .modal-footer-actions {
            position: sticky;
            bottom: -41px;
            padding: 20px 0;
            margin-top: 20px;
            border-top: 1px solid var(--light-blue);
            display: flex;
            justify-content: flex-end;
            z-index: 10;
        }

        @media (max-width: 650px) {
            .modal-section:nth-of-type(2) .dosage-grid { 
                grid-template-columns: 1fr; 
            }
            .modal-content {
                padding: 25px;
            }
            .modal-header h2 {
                font-size: 1.5rem;
            }
        }

        .checkout-modal {
            max-width: 1400px !important;
            max-height: 90vh !important;
            height: 90vh;
            padding: 0 !important;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .checkout-body {
            flex: 1; 
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .checkout-stepper {
    display: flex;
    justify-content: center;
    gap: 20px; /* Zmenšíme fixnú medzeru */
    padding: 20px 15px;
    background: var(--white);
    border-bottom: 1px solid var(--ui-border);
    width: 100%;
}

        .step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-stepper-inactive);
    transition: 0.3s;
    white-space: nowrap; /* Zabráni zalomeniu textu vnútri kroku */
}

        .step.active { color: var(--primary); }
        .step.active span { background: var(--primary); color: var(--white); border-color: var(--primary); }

        .step span {
            width: 32px; height: 32px;
            border: 2px solid var(--ui-stepper-inactive);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 0.9rem;
        }

        .step p { font-weight: 700; font-size: 0.95rem; }


        @media (max-width: 768px) {
            .checkout-stepper {
                gap: 5px; 
                padding: 15px 5px;
                justify-content: space-between; 
            }

            .step {
                flex-direction: column; 
                gap: 6px;
                flex: 1;
                text-align: center;
            }

            .step p {
                font-size: 0.8rem;
                line-height: 1.2;
                white-space: normal; 
                max-width: 80px;
            }
        }

        @media (max-width: 360px) {
            .step p {
                font-size: 0.6rem;
                letter-spacing: -0.02em;
            }
        }


        .pharmacy-grid {
            display: grid;
            grid-template-columns: 4fr 6fr;
            flex-grow: 1;
            min-height: 0;
            gap: 0;
            border-top: 1px solid var(--ui-border);
            overflow: hidden;
        }

        .pharmacy-list-side, 
        .pharmacy-map-side {
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .pharmacy-list-side {
            padding: 0 20px;
        }

        .pharmacy-scroll-area {
            flex: 1;
            overflow-y: auto;
            padding: 20px 0;
        }

        .pharmacy-list-side h3 {
            font-size: 1.3rem;
            padding-bottom: 5px;
        }

        

        .search-mini {
            position: relative;
            margin-bottom: 25px;
        }

        .search-mini input {
            width: 100%;
            padding: 14px 15px 14px 45px;
            border-radius: 12px;
            border: 2px solid var(--ui-border-dark);
            background: var(--ui-bg-light);
            outline: none;
            transition: 0.2s;
            font-family: 'Nunito', sans-serif;
            font-weight: 400;
            font-size: 0.9rem;
        }

        .search-mini input:focus { border-color: var(--bg-blue); background: var(--white); }

        .search-mini-icon {
            position: absolute;
            left: 15px; top: 50%;
            transform: translateY(-50%);
            color: var(--ui-text-muted);
        }

        

        .pharmacy-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border: 2px solid var(--ui-border-dark);
            border-radius: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: 0.2s;
            gap: 10px;
        }

        .pharmacy-card:hover { border-color: var(--bg-blue); transform: translateY(-4px); }
        .pharmacy-card.selected { border-color: var(--bg-blue); background: var(--light-blue); }

        .ph-logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 40px;
        }

        .badge-stock {
            display: inline-flex;
            align-items: center;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .badge-stock.positive {
            background: rgba(34, 197, 94, 0.1);
            color: var(--status-success-text);
        }

        .badge-stock.partial {
            background: var(--dosage-border);
            color: var(--dosage-orange-dark);
        }

        .badge-stock.negative {
            background: var(--dosage-border);
            color: var(--dosage-orange-dark);
        }

        .ph-info {
            gap: 0px !important;
        }

        .ph-info h4 {
            font-weight: 700;
        }

        .ph-info p {
            width: 100%;
            font-size: 0.9rem;
        }

        .pharmacy-card:hover .ph-logo-container svg {
            transform: scale(1.05);
            transition: transform 0.2s ease;
        }

        .radio-dot {
            width: 22px; height: 22px; border: 2px solid var(--ui-border-dark); border-radius: 50%;
            transition: 0.2s;
        }

        .selected .radio-dot {
            background: var(--primary); border-color: var(--primary);
            box-shadow: inset 0 0 0 4px var(--dosage-bg);
        }

        .pharmacy-confirm-box {
            padding: 30px;
            background: var(--white);
            border-top: 1px solid var(--ui-border);
            height: 100%;
        }

        .primary-action {
            width: 100%; justify-content: center; padding: 18px !important;
            border-radius: 14px !important; font-size: 1rem !important;
        }

        .map-mock-bg {
            height: 200px; background: var(--ui-stepper-inactive); position: relative;
            display: flex; align-items: center; justify-content: center;
        }

        .pharmacy-confirm-box {
            pointer-events: auto;
            margin: 15px;
            background: var(--white);
            box-shadow: 0 10px 25px rgba(11, 20, 97, 0.15);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid var(--ui-border);
        }

        .confirm-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }

        .confirm-header h4 {
            color: var(--primary);
            font-size: 1.15rem;
            margin: 0;
            font-weight: 800;
        }

        .address-row {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--ui-text-info);
            font-size: 0.85rem;
        }

        .status-badge {
            background: var(--status-success-bg);
            color: var(--status-success-text);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .pharmacy-details-mini {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 15px;
            padding: 10px 0;
            border-top: 1px solid var(--ui-border);
            border-bottom: 1px solid var(--ui-border);
        }

        .detail-item {
            display: flex;
            flex-direction: column;
        }

        .detail-item small {
            color: var(--ui-text-muted);
            font-size: 0.7rem;
            text-transform: uppercase;
        }

        .detail-item span {
            font-size: 0.85rem;
            color: var(--primary);
            font-weight: 600;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
        }

        .btn-cancel {
            padding: 12px;
            background: var(--ui-bg-light);
            color: var(--grey);
            border: 1px solid var(--ui-border-dark);
            border-radius: 12px;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-cancel:hover {
            background: var(--light-red);
            color: var(--red);
            border-color: var(--light-red);
        }

        .primary-action {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: var(--red);
            color: white;
            border: none;
            font-weight: 700;
            transition: 0.3s;
            cursor: pointer;
        }

        .primary-action:hover {
            background: var(--red);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(190, 0, 5, 0.3);
        }

        .location-picker {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 20px 0;
        }

        .btn-location {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: var(--primary);
            border: 2px solid var(--primary);
            border-radius: 12px;
            color: var(--white);
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-location:hover {
            border-color: var(--red);
            background: var(--red);
        }

        .btn-location.active {
            background: var(--white);
            border-color: var(--status-success-text);
            color: var(--status-success-text);
        }

        .btn-location svg {
            flex-shrink: 0;
        }

        .is-locating svg {
            animation: pulse-location 1.5s infinite;
        }

        .distance-tag {
            color: var(--primary); 
            font-weight: 700; 
            font-size: 0.7rem; 
            white-space: nowrap; 
            background: var(--light-blue); 
            padding: 6px 14px; 
            border-radius: 50px; 
            display: flex; 
            align-items: center; 
            gap: 4px;
        }

        @keyframes pulse-location {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
            100% { opacity: 1; transform: scale(1); }
        }

        .btn-clear-location {
            font-size: 0.75rem;
            color: var(--red);
            background: none;
            border: none;
            cursor: pointer;
            font-weight: 700;
            text-decoration: underline;
            padding: 0;
        }

        .btn-clear-location:hover {
            color: var(--red);
        }

        @media (max-width: 899px) {
            .pharmacy-grid {
                grid-template-columns: 1fr;
            }
            .pharmacy-list-side {
                border-right: none;
                border-bottom: 1px solid var(--ui-border);
            }
            .location-picker {display: none;}
            .search-mini {
                margin-bottom: 10px;
                margin-top: 10px;
            }
            .pharmacy-list-side h3 {display: none;}
            .pharmacy-scroll-area {padding: 0;}
            #map-canvas {min-height: 320px!important;}

            .modal-overlay {padding: 0;}
            .checkout-modal {max-height: 100vh !important;height: 100vh;border-radius: 0!important;}
        }




        .checkout-split-container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            height: 100%;
            min-height: 0;
        }

        .checkout-summary-side {
            background: var(--ui-bg-light);
            border-right: 1px solid var(--ui-border);
            padding: 40px 30px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(11, 20, 97, 0.2) transparent;
        }

        .checkout-summary-side::-webkit-scrollbar {
            width: 6px;
        }

        .checkout-summary-side::-webkit-scrollbar-track {
            background: transparent;
        }

        .checkout-summary-side::-webkit-scrollbar-thumb {
            background: var(--bg-blue);
            border-radius: 20px;
            transition: background 0.3s ease;
        }

        .checkout-summary-side::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        .summary-box h4 {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .selected-ph-mini {
            background: var(--white);
            padding: 20px;
            border-radius: 20px;
            border: 1px solid var(--ui-border-dark);
            box-shadow: 0 4px 12px rgba(11, 20, 97, 0.03);
        }

        .selected-ph-mini strong { font-size: 1.05rem; display: block; font-weight:700;}
        .selected-ph-mini p { font-size: 0.8rem; color: var(--grey); line-height: 1.4; }

        .ph-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }

        .status-badge-mini {
            font-size: 0.7rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 6px;
            text-transform: uppercase;
        }
        .status-badge-mini.open { background: var(--status-success-bg); color: var(--status-success-text); }
        .status-badge-mini.closed { background: var(--light-red); color: var(--red); }

        .reserved-items-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mini-item-card {
            display: flex;
            gap: 12px;
            padding: 25px;
            background: var(--white);
            border-radius: 10px;
            margin-bottom: 8px;
            border: 1px solid var(--ui-border);
        }

        .mini-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 4px;
        }

        .mini-name {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--primary);
            line-height: 1.2;
        }

        .mini-price {
            font-weight: 700;
            color: var(--dosage-orange-dark);
            white-space: nowrap;
        }

        .mini-row-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mini-stock-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 12px;
        }

        .mini-stock-badge.in-stock {
            background: var(--status-success-bg);
            color: var(--status-success-text);
        }

        .mini-stock-badge.out-of-stock {
            background: var(--light-red);
            color: var(--red);
        }

        .mini-row-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }

        .mini-img {
            width: 40px; height: 40px;
            background: var(--light-blue);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
        }

        .mini-details span { font-weight: 700; font-size: 0.9rem; display: block; line-height: 1.2; }
        .mini-details small { color: var(--ui-text-muted); font-size: 0.75rem; }

        .checkout-form-side {
            background: var(--white);
            padding: 60px;
            overflow-y: auto;
        }

        .form-container {
            max-width: 550px;
            margin: 0 auto;
        }

        .form-intro h2 { font-size: 2rem; margin-bottom: 10px; }
        .form-intro p { color: var(--grey); margin-bottom: 40px; }

        .checkout-form-grid {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .input-group label {
            display: block;
            font-weight: 700;
            font-size: 0.9rem;
            margin-bottom: 8px;
            color: var(--primary);
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            color: var(--ui-text-muted);
            z-index: 10;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .main-input {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 2px solid var(--ui-border-dark);
            border-radius: 15px;
            font-family: 'Nunito', sans-serif;
            font-size: 1rem;
            transition: all 0.2s;
        }

        .main-input:focus {
            outline: none;
            border-color: var(--bg-blue);
            background: var(--info-box-bg);
        }

        .phone-flex .prefix {
            background: var(--ui-bg-light);
            padding: 15px 20px;
            border: 2px solid var(--ui-border-dark);
            border-right: none;
            border-radius: 15px 0 0 15px;
            font-weight: 700;
            color: var(--primary);
        }

        .phone-flex .main-input {
            border-radius: 0 15px 15px 0;
            padding-left: 15px;
        }

        .form-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px solid var(--ui-border);
        }

        .btn-secondary {
            background: none; border: none;
            font-weight: 700; color: var(--grey);
            cursor: pointer; display: flex; align-items: center; gap: 8px;
        }

        .btn-primary-lg {
            background: var(--primary);
            color: var(--white);
            padding: 16px 35px;
            border-radius: 15px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            display: flex; align-items: center; gap: 12px;
            box-shadow: 0 10px 20px rgba(11, 20, 97, 0.2);
            transition: 0.2s;
        }

        .btn-primary-lg:hover {
            transform: translateY(-2px);
            background: var(--bg-blue);
        }

        .input-error {
            border-color: var(--red) !important;
            background-color: var(--light-red) !important;
        }

        .text-red { color: var(--red) !important; }
        .color-red { color: var(--red) !important; }
        .border-red { border-color: var(--red) !important; }

        .input-error {
            animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
        }

        @keyframes shake {
            10%, 90% { transform: translate3d(-1px, 0, 0); }
            20%, 80% { transform: translate3d(2px, 0, 0); }
            30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
            40%, 60% { transform: translate3d(4px, 0, 0); }
        }

        @media (max-width: 992px) {
            .checkout-split-container {
                grid-template-columns: 1fr;
                height: auto;
                overflow-y: visible;
            }

            .checkout-summary-side {
                border-right: none;
                border-bottom: 1px solid var(--ui-border);
                overflow-y: visible;
                padding: 30px 20px;
            }

            .checkout-form-side {
                padding: 40px 20px;
                overflow-y: visible;
            }

            .form-container {
                max-width: 100%;
            }

            .form-footer {
                flex-direction: column-reverse;
                gap: 20px;
                align-items: stretch;
            }

            .btn-primary-lg {
                justify-content: center;
                width: 100%;
            }

            .btn-secondary {
                justify-content: center;
                padding: 10px;
            }
        }



        .checkout-step-final {
            padding: 40px;
            background: var(--white);
            max-width: 1200px;
            margin: 0 auto;
        }

        .summary-header-centered {
            text-align: center;
            margin-bottom: 60px;
        }

        .summary-header-centered h2 {
            font-size: 2.4rem;
            color: var(--primary);
            margin-top: 10px;
        }

        .summary-header-centered p {
            color: var(--ui-text-info);
            font-size: 1.1rem;
        }

        .summary-info-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-bottom: 50px;
        }

        .summary-card {
            background: var(--ui-bg-light);
            border: 1px solid var(--ui-border);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .summary-card.highlight {
            border-color: var(--bg-blue);
            background: var(--info-box-bg);
        }

        .summary-card.highlight2 {
            border-color: var(--primary);
            background: var(--primary);
        }

        .card-header {
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            color: var(--primary);
            justify-content: space-between;
        }

        .highlight2 .card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            color: var(--white);
        }

        .card-body {
            padding: 8px 25px;
            flex: 1;
        }

        .card-body h4 {
            color: var(--primary);
            margin-bottom: 3px;
            font-size: 0.95rem;
        }

        .contact-item span {
            font-size: 0.85rem;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
            padding: 8px 0;
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        .address-text {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 15px;
        }

        .item-mini-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            gap: 15px;
        }

        .item-mini-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }

        .item-mini-name {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--bg-blue)!important;
            line-height: 1.4;
        }

        .item-mini-meta {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .item-mini-meta small {
            color: var(--ui-text-muted);
            font-size: 0.75rem;
        }

        .item-mini-price {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--primary);
            white-space: nowrap;
        }

        .mini-status-text {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .mini-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: currentColor;
        }

        .text-success { color: var(--status-success-text); }
        .text-danger { color: var(--red); }

        .item-mini-row span {
            color: var(--white);
        }

        .summary-footer-action {
            border-top: 2px solid var(--ui-border);
            padding-top: 40px;
        }

        .action-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .button-group {
            display: flex;
            gap: 15px;
            width: 100%;
            max-width: 600px;
        }

        .btn-submit-final {
            flex: 2;
            padding: 18px;
            border-radius: 12px;
            border: none;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-submit-final.active {
            background: var(--primary);
            color: var(--white);
        }

        .btn-submit-final:hover {
            background: var(--bg-blue);
            color: var(--primary);
        }

        .btn-submit-final.disabled {
            background: var(--ui-bg-light);
            color: var(--ui-text-muted);
            cursor: not-allowed;
        }

        .btn-back-outline {
            flex: 1;
            background: transparent;
            border: 1px solid var(--ui-border-dark);
            border-radius: 12px;
            color: var(--primary);
            cursor: pointer;
        }

        .btn-back-outline:hover {
            border-color: var(--bg-blue);
            background: var(--info-box-bg);
        }

        .check-text-dark {
            font-size: 0.9rem;
            color: var(--primary);
        }

        .check-item-light {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .status-pill {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-pill.is-open {
            background: #e6f7ed;
            color: #28a745;
        }

        .status-pill.is-closed {
            background: #fff0f0;
            color: #dc3545;
        }

        .status-pill .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
        }

        .distance-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--white);
            padding: 6px 12px;
            border-radius: 10px;
            border: 1px solid var(--ui-border-dark);
            color: var(--primary);
            font-weight: 800;
            font-size: 0.85rem;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        @media (max-width: 992px) {
            .summary-info-grid {
                grid-template-columns: 1fr;
            }
        }



        .legal-wrap {
            margin-bottom: 25px;
            padding: 15px 20px;
            background: var(--ui-bg-light);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .check-item-light {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            user-select: none;
        }

        .hidden-checkbox {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .custom-check-visual {
            width: 24px;
            height: 24px;
            border: 2px solid var(--ui-border-dark);
            border-radius: 8px;
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
        }

        .check-item-light:hover .custom-check-visual {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
        }

        .custom-check-visual.checked {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
        }

        .check-text-dark {
            font-size: 0.95rem;
            color: var(--primary);
            line-height: 1.4;
            font-weight: 500;
        }

        .check-text-dark a {
            color: var(--primary);
            text-decoration: underline;
            text-underline-offset: 3px;
            font-weight: 700;
            transition: opacity 0.2s;
        }

        .check-text-dark a:hover {
            opacity: 0.7;
        }

        [x-show] {
            transition: transform 0.2s ease;
        }




        .step-header-centered {
            text-align: center;
            margin-bottom: 35px;
            padding-top: 35px;
        }

        .step-header-centered h2 {
            color: var(--primary);
            font-size: 1.8rem;
            margin: 15px 0 5px 0;
        }

        .step-header-centered p {
            color: var(--ui-text-info);
            font-size: 1rem;
        }

        .icon-circle {
            width: 60px;
            height: 60px;
            background: var(--light-blue);
            color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            box-shadow: 0 4px 15px rgba(121, 213, 255, 0.3);
        }

        .medication-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            padding: 0 50px;
            margin-bottom: 25px;
        }

        .medication-card {
            background: var(--white);
            border-radius: 20px;
            border: 1px solid var(--ui-border);
            padding: 20px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            position: relative;
        }

        .medication-card:hover {
            border-color: var(--bg-blue);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .card-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--ui-bg-light);
            color: var(--ui-text-muted);
            font-size: 0.7rem;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: bold;
            z-index: 1;
        }

        .card-button {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--primary);
            border: 1px solid var(--primary);
            color: var(--white);
            font-size: 0.7rem;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: bold;
            z-index: 1;
            cursor: pointer;
            text-transform: uppercase;
        }

        .card-button:hover {
            background: var(--bg-blue);
            border: 1px solid var(--bg-blue);
        }

        .card-image-wrapper {
            height: 140px;
            background: var(--light-blue);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            padding: 15px;
            overflow: hidden;
        }

        .card-image-wrapper img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
        }

        .card-image-wrapper svg {
            filter: drop-shadow(0 2px 4px rgba(11, 20, 97, 0.2));
        }

        .card-body h3 {
            font-size: 1rem;
            color: var(--primary);
            margin-bottom: 8px;
            line-height: 1.3;
            height: 2.6em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
        }

        .availability-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            margin-bottom: 18px;
        }

        .availability-indicator span {
            font-weight: 700;
        }

        .dot { width: 8px; height: 8px; border-radius: 50%; }
        .dot-green { background: var(--status-success-text); }
        .dot-orange { background: var(--dosage-orange); }

        .dot-text-green { color: var(--status-success-text); }
        .dot-text-orange { color: var(--dosage-orange); }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .quantity-selector-mini {
            display: flex;
            align-items: center;
            background: var(--light-blue);
            border-radius: 12px;
            padding: 4px;
        }

        .q-btn {
            width: 28px;
            height: 28px;
            border: none;
            background: var(--white);
            color: var(--primary);
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .q-btn:hover {
            background: #f0faff;
        }

        .q-val {
            padding: 0 12px;
            font-weight: 700;
            color: var(--primary);
            min-width: 30px;
            text-align: center;
        }

        .checkout-actions-floating {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px 50px;
            border-top: 1px solid var(--ui-border);
            gap: 10px;
        }

        .btn-cancel {
            background: var(--light-blue);
            border: none;
            color: var(--primary);
            cursor: pointer;
            font-weight: 700;
            transition: color 0.2s;
            padding: 14px 32px;
        }

        .btn-cancel:hover {
            color: var(--primary);
        }

        .btn-next-step {
            background: var(--primary);
            color: var(--white);
            border: none;
            padding: 14px 32px;
            border-radius: 15px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-next-step:hover:not(:disabled) {
            background: var(--bg-blue);
            transform: translateX(5px);
        }

        .btn-next-step:disabled {
            background: var(--ui-stepper-inactive);
            cursor: not-allowed;
            opacity: 0.7;
        }




        .reservation-success-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--white);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
        }

        .reservation-success-container {
            text-align: center;
            padding: 30px;
            max-width: 500px;
            width: 100%;
        }

        .success-icon-circle {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, var(--status-success-text) 0%, var(--status-success-text) 100%);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
            position: relative;
        }

        .success-icon-circle::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid var(--status-success-text);
            animation: pulseSuccess 2s infinite;
        }

        .reservation-success-container h2 {
            color: var(--primary);
            font-size: 34px;
            font-weight: 700;
            margin-bottom: 5px;
            letter-spacing: -0.5px;
        }

        .reservation-success-container p {
            color: var(--grey);
            font-size: 16px;
            line-height: 1.5;
        }

        .reservation-success-container strong {
            font-weight: 700;
        }

        .reservation-number-box {
            background: var(--ui-bg-light);
            border: 2px solid var(--ui-border);
            padding: 18px;
            border-radius: 16px;
            margin: 40px 0;
            display: block;
            transition: transform 0.3s ease;
        }

        .reservation-number-box:hover {
            transform: translateY(-3px);
            border-color: var(--bg-blue);
        }

        .reservation-number-box span {
            display: block;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--ui-text-info);
            margin-bottom: 5px;
            font-weight: 700;
        }

        .reservation-number-box strong {
            font-size: 24px;
            color: var(--primary);
            font-weight: 700;
        }

        .success-note {
            background: var(--dosage-border);
            border-radius: 12px;
            padding: 12px;
            color: var(--dosage-orange-dark) !important;
            font-size: 14px !important;
            margin-bottom: 30px !important;
            border-left: 4px solid var(--dosage-orange-dark);
        }

        .btn-finish {
            background: var(--primary);
            color: var(--white);
            border: none;
            padding: 16px 45px;
            border-radius: 18px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(11, 20, 97, 0.2);
            transition: all 0.3s ease;
            width: 60%;
        }

        .btn-finish:hover {
            background: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(11, 20, 97, 0.3);
        }

        @keyframes pulseSuccess {
            0% { transform: scale(1); opacity: 0.5; }
            100% { transform: scale(1.4); opacity: 0; }
        }




        .animate-spin {
            animation: spin 1s linear infinite;
            width: 20px;
            height: 20px;
            margin-right: 10px;
            display: inline-block;
            vertical-align: middle;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .btn-submit-final.disabled, .btn-submit-final:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }




        [x-cloak] { display: none !important; }