/* Base Styles */
body {
    min-height: max(884px, 100dvh);
}

/* Custom CSS Variables for Theme Colors */
:root {
    --color-primary: #ee7c2b;
    --color-secondary: #008c45;
    --color-brand-cream: #fff9f7;
    --color-brand-dark: #1d1d1b;
    --color-text-main: #1d1d1b;
    --color-accent-gold: #C5A065;
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
    margin: 0;
}

button {
    border-width: 0px;
    background-color: transparent;
}

/* Typography */
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Layout */
.page-container {
    background-color: var(--color-brand-cream);
    color: var(--color-text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
}

/* Header Styles */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-brand-cream);
    color: var(--color-brand-dark);
    padding: 1.25rem 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: 20;
    flex-shrink: 0;
    position: relative;
    /* overflow: hidden; */
}

.header-back-button {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: background-color 0.3s;
    color: var(--color-brand-dark);
    position: relative;
    z-index: 10;
}

.header-back-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 0.5rem;
    position: relative;
    z-index: 10;
}

.header-title {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.025em;
    color: var(--color-brand-dark);
    margin-bottom: 0.25rem;
}

.header-divider {
    height: 1px;
    width: 4rem;
    background-color: rgba(29, 29, 27, 0.2);
    margin: 0.25rem 0;
}

.header-subtitle {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 300;
    color: #6b7280;
}

/* Page Title Section */
.page-title-section {
    background-color: var(--color-brand-cream);
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column
}

.page-title {
    font-size: 1.875rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #111827;
    position: relative;
    z-index: 10;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-brand-cream);
}

/* Product Card Styles */
.product-card {
    background-color: var(--color-surface-light);
    border-radius: 0.75rem;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07);
    border: 1px solid #f5f5f4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.12);
}

.product-image-container {
    position: relative;
    height: 14rem;
    width: 100%;
    background-color: #e5e7eb;
    overflow: hidden;
}

.product-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.7s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent, transparent);
    opacity: 0.6;
}

.product-info-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    width: 2.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #000;
    transition: background-color 0.3s, color 0.3s;
}

.product-info-button:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-title {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.product-subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    color: #6b7280;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.product-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-footer {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #111827;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fafaf9;
    border-radius: 9999px;
    padding: 0.25rem;
    border: 1px solid #e7e5e4;
}

.quantity-button {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.quantity-button:active {
    transform: scale(0.95);
}

.quantity-button-minus {
    background-color: #fecaca;
    color: #991b1b;
}

.quantity-button-minus:hover,
.quantity-button-minus:active {
    background-color: #ef4444;
    color: #fff;
}

.quantity-button-minus.disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.quantity-button-minus.disabled:hover,
.quantity-button-minus.disabled:active {
    background-color: #e5e7eb;
    color: #9ca3af;
}

.quantity-button-plus {
    background-color: #86efac;
    color: #166534;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quantity-button-plus:hover,
.quantity-button-plus:active {
    background-color: #22c55e;
    color: #fff;
}

.quantity-input {
    width: 2rem;
    padding: 0;
    text-align: center;
    background-color: transparent;
    font-weight: 500;
    font-size: 1.125rem;
    color: #111827;
    border: none;
    outline: none;
}

.quantity-input:focus {
    outline: none;
}

/* Remove spinner arrows from number input */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* Footer Styles */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e7e5e4;
    padding: 1.25rem;
    z-index: 20;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.05);
}

.checkout-button {
    width: 100%;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.checkout-button:active {
    transform: scale(0.99);
}

.checkout-button:hover {
    background-color: #d66f26;
}

.checkout-button-gradient {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    opacity: 0.2;
    transition: width 0.3s;
}

.checkout-button:hover .checkout-button-gradient {
    width: 100%;
}

.checkout-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.checkout-total {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.checkout-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.checkout-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s;
}

.checkout-button:hover .checkout-next {
    background-color: rgba(255, 255, 255, 0.3);
}

.checkout-arrow {
    transition: transform 0.3s;
}

.checkout-button:hover .checkout-arrow {
    transform: translateX(0.25rem);
}



/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.info-modal.active {
    display: flex;
}

.info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.info-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.info-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-brand-dark);
    margin: 0;
}

.info-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.info-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.info-modal-close .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--color-brand-dark);
}

.info-modal-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* Multi-Tab Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5b5b5b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.optional-badge {
    font-size: 0.75rem;
    text-transform: none;
    font-weight: 400;
    color: #999;
}

.contact-form-group input,
.contact-form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding-left: 3rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.375rem;
    color: #5b5b5b;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.input-wrapper:focus-within .input-icon {
    color: #008c45;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #008c45;
    box-shadow: 0 0 0 3px rgba(0, 140, 69, 0.1);
}

.contact-form-group textarea {
    resize: none;
    min-height: 100px;
}

.contact-form-group input[type="tel"] {
    padding-left: 1rem;
}

.phone-number-container {
    display: flex;
    gap: 0.5rem;
}

.phone-number-container .input-wrapper {
    flex: 1;
}

.phone-number-container .input-wrapper:first-child {
    flex: 0.4;
}

.phone-number-container input[type="tel"] {
    padding: 0.75rem 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.phone-number-container .input-wrapper:last-child input[type="tel"] {
    padding-left: 3rem;
}

.phone-number-container input[type="tel"]:focus {
    outline: none;
    border-color: #008c45;
    box-shadow: 0 0 0 3px rgba(0, 140, 69, 0.1);
}

.contact-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
}

.contact-header {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.contact-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1d1d1b;
}

.contact-header p {
    font-size: 0.875rem;
    color: #5b5b5b;
    line-height: 1.5;
}

.contact-form {
    padding: 1.5rem;
}

.back-from-contact {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    color: #1d1d1b;
    cursor: pointer;
    border: none;
    background: transparent;
}

.back-from-contact:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.tab-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #d4d4d4;
    transition: all 0.3s;
}

.tab-dot.active {
    width: 1rem;
    background-color: #008c45;
    box-shadow: 0 0 8px rgba(0, 140, 69, 0.3);
}

/* ORDER SUMMARY STYLES */
.summary-section {
    padding: 1.5rem;
    margin: 0 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #f0f0f0;
}

.summary-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1b;
    margin-bottom: 1rem;
    display: block;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    border-left: 3px solid var(--color-secondary);
}

.summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-name {
    font-weight: 600;
    color: #1d1d1b;
    font-size: 0.95rem;
}

.summary-item-qty {
    font-size: 0.8rem;
    color: #888;
}

.summary-item-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
}

.summary-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-info-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    color: #5b5b5b;
}

.summary-info-group span:first-child {
    color: var(--color-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.summary-info-group span:last-child {
    color: #1d1d1b;
    word-break: break-word;
}

.summary-pricing {
    background-color: #fafafa;
}

.summary-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #5b5b5b;
}

.summary-price-row span:last-child {
    font-weight: 600;
    color: #1d1d1b;
}

.summary-divider {
    height: 1px;
    background-color: #d4d4d4;
    margin: 0.75rem 0;
}

.summary-total {
    font-size: 1.125rem;
    padding: 1rem 0 0.75rem 0;
    color: #1d1d1b;
}

.summary-total span:first-child {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.summary-total span:last-child {
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
}

/* WELCOME TAB STYLES */
.welcome-main-content {
    padding-top: 0;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-header-image-wrapper {
    padding: 1rem 1rem 0.75rem;
}

.welcome-hero-image {
    width: 100%;
    background: center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 0.75rem;
    min-height: 240px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.welcome-hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 1.5rem;
}

.welcome-hero-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.welcome-hero-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.welcome-headline-section {
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
}

.welcome-headline {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-brand-dark);
}

.welcome-headline .brand-highlight {
    color: var(--color-primary);
}

.welcome-body-section {
    padding: 0.25rem 2rem 1.5rem;
    text-align: center;
}

.welcome-body-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.welcome-timeline-wrapper {
    padding: 1rem;
    margin-bottom: 2rem;
}

.welcome-timeline-container {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-timeline-grid {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 0.75rem;
}

.welcome-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
}

.welcome-timeline-connector {
    width: 2px;
    background-color: rgba(238, 124, 43, 0.2);
    height: 2.5rem;
}

.welcome-timeline-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
    padding-top: 0.25rem;
}

.welcome-timeline-content-last {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

.welcome-timeline-step-title {
    color: var(--color-brand-dark);
    font-size: 1.125rem;
    font-weight: bold;
}

.welcome-timeline-step-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}