* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e89675 0%, #ef653f 100%);
    min-height: 100vh;
}
.preorder-notice{
    text-align: center;
    font-size: clamp(20px, 7vw, 50px);
    display:flex;
    justify-content: center;
    gap: 0px 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.preorder-notice2 {
    background: linear-gradient(135deg, #e89675 0%, #ef653f 100%);
    color: white;
    border: none;
    text-align: center;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(16px, 4vw, 50px);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49% {
        color: white;
    }
    50%, 100% {
        color: #ffd93a;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.flex-spacer{
    flex-grow: 1;
}
.logo {
    min-width: 375px;
    color: #3a0c06;
    font-size: clamp( 0.3rem,4vw - 2px,1.75rem );
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 10px;
    /*background: linear-gradient(135deg, #5c1b00 0%, #a52d0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
}

.cart-icon {
    background: #60190c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.cart-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: absolute;
    top: -8px;
    right: -8px;
}

.nav-buttons {
    align-self: flex-end;
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.active,
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color:  #60190c;
}

.page {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page.active {
    display: block;
}

.products-grid {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 500px));
    gap: 25px;

    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #ae4900;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/0.75;
    background-position: center;
    background-size: cover; /* Or 'contain' or '100% 100%' */
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d56203;
    margin-bottom: 15px;
}

.add-to-cart {
    background: linear-gradient(135deg, #e89675 0%, #ef653f 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cart-item-quantity-remove {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    max-width: 300px;
    min-width: 50px;
    place-items: center;
    gap: 10px 30px; /* 10px row-gap, 30px column-gap */
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {

    min-width: 150px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #ff5700;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.quantity-btn {
    background: #ff9216;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    min-width: 30px;  /* Minimum size */
    align-items: center;
    justify-content: center;
}

.quantity {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    width: 100px;
    background: #3a0c06;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.cart-total {
    background: linear-gradient(135deg, #e89675 0%, #ef653f 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

.checkout-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.pickup-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pickup-option {
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.pickup-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.pickup-option:hover {
    border-color: #667eea;
}

.hub-dropdown {
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ffffff, #f7f1ff);
    color: #ff6969;
    border: 2px solid #e3817a;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

.paypal-button {
    background: #ffc439;
    color: #003087;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.paypal-button:hover {
    background: #ffb700;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
}

.success-message {
    background: #2ed573;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.error-message {
    background: #ff4757;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Order Completed Page Styles */
.order-success-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.success-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.order-summary-card, .next-steps-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.order-summary-card h2, .next-steps-card h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row .label {
    font-weight: bold;
    color: #555;
}

.order-info-row .value {
    color: #333;
    font-weight: 500;
}

.order-items-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
}

.completed-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.completed-order-item:last-child {
    border-bottom: none;
}

.completed-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.completed-item-emoji {
    font-size: 2rem;
}

.completed-item-details h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.completed-item-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.completed-item-price {
    text-align: right;
}

.completed-item-quantity {
    font-weight: bold;
    color: #667eea;
}

.completed-item-subtotal {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.order-total-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 3px solid #667eea;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.step-icon {
    font-size: 1.5rem;
}

.step-text {
    font-size: 1rem;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.primary-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.secondary-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
}

@media (max-width: 768px) {
    .order-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .completed-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .completed-item-price {
        text-align: left;
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 300px;
    }
}