:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --accent-hover: #ff6b6b;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 50%, #ffa502 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(233, 69, 96, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Onest', -apple-system, sans-serif;
    color: var(--primary);
    background: var(--light);
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-link {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

main {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* Options */
.calc-options {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.option-group {
    margin-bottom: 32px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.option-card {
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card label {
    display: block;
    padding: 16px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.option-card label:hover {
    border-color: var(--gray-light);
}

.option-card input:checked+label {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.option-card label strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.option-card label span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Extras */
.extras-grid {
    display: grid;
    gap: 12px;
}

.extra-item {
    position: relative;
}

.extra-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.extra-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.extra-item label:hover {
    border-color: var(--gray-light);
}

.extra-item input:checked+label {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.extra-info {
    display: flex;
    flex-direction: column;
}

.extra-info strong {
    font-size: 0.95rem;
}

.extra-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

.extra-price {
    font-weight: 600;
    color: var(--accent);
}

/* Urgency */
.urgency-slider {
    padding: 0 8px;
}

.urgency-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.urgency-value {
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.urgency-value strong {
    color: var(--accent);
}

/* Result Card */
.calc-result {
    position: sticky;
    top: 100px;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.result-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.result-row span:first-child {
    color: var(--gray);
}

.result-row.total {
    padding-top: 16px;
    border-top: 2px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.result-row.total span:last-child {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-note {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

/* Order Section New */
.order-section {
    text-align: center;
    margin: 24px 0;
}

.order-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    animation: titleBeat 2s ease-in-out infinite;
}

.order-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.order-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.order-icon-link img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.order-icon-link span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.order-icon-link:hover {
    transform: translateY(-5px);
}

.order-icon-link:hover img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@keyframes titleBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); color: var(--accent); }
}

/* Delivery */
.free-delivery {
    display: none;
}

.delivery-info {
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--gray-light);
    font-weight: 500;
    gap: 8px;
}
.delivery-info svg {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

/* Mobile Sticky Bar */
.mobile-sticky-price {
    display: none;
}

.mobile-details-container {
    display: none;
}

@media (max-width: 900px) {
    .mobile-details-container {
        display: block !important;
        margin-bottom: 20px;
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-result {
        position: static;
    }

    .result-card h3,
    .result-rows,
    .result-note {
        display: none;
    }

    .result-card {
        padding: 20px;
        box-shadow: none;
        border: 1px solid var(--gray-light);
        margin-top: 32px;
    }

    .mobile-sticky-price {
        display: block;
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: #f3f3f7;
        border-bottom: 1px solid var(--gray-light);
        z-index: 999;
        padding: 12px 24px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .mobile-sticky-details {
        display: block;
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px dashed var(--gray-light);
    }

    .mobile-details-list {
        font-size: 0.85rem;
        color: var(--primary);
        margin-bottom: 8px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-detail-row {
        display: flex;
        justify-content: space-between;
        line-height: 1.3;
    }
    
    .mobile-detail-name {
        flex: 1;
        padding-right: 12px;
    }
    
    .mobile-detail-price {
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-sticky-price.visible {
        transform: translateY(0);
    }

    .mobile-sticky-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-bottom: 4px;
    }

    .mobile-sticky-label {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--accent);
        text-transform: uppercase;
    }

    .mobile-sticky-value {
        background: white;
        padding: 5px 15px;
        border-radius: 4px;
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary);
        min-width: 100px;
        text-align: center;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    }

    .mobile-sticky-note {
        font-size: 0.75rem;
        color: var(--accent);
        text-align: center;
        font-weight: 500;
    }

    .order-icons {
        gap: 24px;
    }

    .order-icon-link img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .option-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}