:root {
    --neutral-green: #b7baa4;
    --light-cream: #f9f5ef;
    --golden: #d2ab66;
    --dark-brown: #7e674f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: white;
}

.btn-primary-custom {
    background-color: var(--golden);
    border-color: var(--golden);
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background-color: #c49a55;
    border-color: #c49a55;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 171, 102, 0.3);
}

.btn-outline-custom {
    border: 2px solid var(--golden);
    color: var(--golden);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: var(--golden);
    color: white;
}

.text-golden {
    color: var(--golden);
}

.text-dark-brown {
    color: var(--dark-brown);
}

.bg-light-cream {
    background-color: var(--light-cream);
}

.border-golden {
    border-color: var(--golden);
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid rgba(183, 186, 164, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Plan selection cards */
.plan-selection-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: 4px solid transparent;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.plan-selection-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plan-selection-card.selected {
    border-color: var(--golden);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(210, 171, 102, 0.3);
}

.plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

/* Period selection */
.period-btn {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--neutral-green);
    background: white;
    color: var(--dark-brown);
    transition: all 0.2s;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
}

.period-btn:hover {
    border-color: var(--golden);
}

.period-btn.active {
    border-color: var(--golden);
    background-color: var(--golden);
    color: white;
}

/* Order summary card */
.order-summary {
    border: 2px solid var(--golden);
    border-radius: 1rem;
    padding: 2rem;
    background: white;
    position: sticky;
    top: 8rem;
}

/* Benefits grid */
.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.benefit-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--golden);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Stat boxes */
.stat-box {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    width: 2rem;
    height: 2rem;
    color: var(--golden);
    margin: 0 auto 0.5rem;
}

/* Icon styles */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

/* Carousel styling */
.plans-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.swiper {
    overflow: hidden;
    padding: 0;
}

.swiper-wrapper {
    align-items: stretch;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(210, 171, 102, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.carousel-navigation:hover {
    background: var(--golden);
    transform: translateY(-50%) scale(1.1);
}

.carousel-navigation.prev {
    left: 0.5rem;
}

.carousel-navigation.next {
    right: 0.5rem;
}

.carousel-navigation.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Swiper slide styling */
.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.swiper-wrapper {
    transition-timing-function: ease-out;
}

.plan-selection-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Custom period input */
.custom-period-input {
    display: none;
    margin-top: 1.5rem;
}

.custom-period-input.active {
    display: block;
}

/* Custom range slider */
.period-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 20px;
    background: rgba(183, 186, 164, 0.3);
    outline: none;
    transition: background 0.3s;
}

.period-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--golden);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(210, 171, 102, 0.3);
}

.period-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(210, 171, 102, 0.4);
}

.period-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--golden);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(210, 171, 102, 0.3);
}

.period-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(210, 171, 102, 0.4);
}

.period-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 20px;
    background: rgba(183, 186, 164, 0.3);
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

.slider-label {
    font-size: 0.75rem;
    color: var(--dark-brown);
    opacity: 0.7;
}

.slider-value {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(210, 171, 102, 0.1);
    border-radius: 0.75rem;
    border: 1px solid rgba(210, 171, 102, 0.3);
}

.slider-value-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--golden);
    margin-bottom: 0.25rem;
}

.slider-value-text {
    font-size: 0.875rem;
    color: var(--dark-brown);
    opacity: 0.8;
}

/* Menu preview */
.menu-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid rgba(183, 186, 164, 0.3);
}

.week-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.week-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--golden);
    background: white;
    color: var(--golden);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.week-btn.active {
    background: var(--golden);
    color: white;
}

/* Benefits in order summary */
.order-benefits {
    background: rgba(210, 171, 102, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
}

.benefit-item-small {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.benefit-item-small:last-child {
    margin-bottom: 0;
}

.benefit-icon-small {
    width: 1rem;
    height: 1rem;
    color: var(--golden);
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .plans-carousel {
        padding: 0 3rem;
    }

    .carousel-navigation {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 639px) {
    .plans-carousel {
        padding: 0 2rem;
    }

    .carousel-navigation.prev {
        left: 0.25rem;
    }

    .carousel-navigation.next {
        right: 0.25rem;
    }

    .plan-overlay {
        padding: 1rem;
    }

    .plan-overlay .small p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .plans-carousel {
        padding: 0 1rem;
    }

    .carousel-navigation {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

.plans-description p {
    margin-bottom: 0 !important;
}