/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header styles */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: #e44d26;
    font-size: 2rem;
}

#cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-count {
    background-color: #e44d26;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-section {
    margin-bottom: 3rem;
}

.product-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e44d26;
    padding-bottom: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Product card styles */
.product-card {
    background: white;
    border-radius: 8px;
/*    overflow: hidden;*/
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image {
    opacity: 0.8;
}

/* Product popup styles */
.product-popup {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    padding-top: 0rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 2px solid #e44d26;
}

.product-popup h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.size-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size label {
    min-width: 60px;
}

.size input {
    width: 50px;
    padding: 0.3rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.size button {
    padding: 0.3rem 0.8rem;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
}

.size button:hover {
    background: #e0e0e0;
}

/* Button styles */
button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart {
    background-color: #e44d26;
    color: white;
    width: 100%;
    margin-bottom: 0.5rem;
}

.add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.add-to-cart:not(:disabled):hover {
    background-color: #d04323;
}

.cancel {
    background-color: #f0f0f0;
    color: #333;
    width: 100%;
}

.cancel:hover {
    background-color: #e0e0e0;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Checkout page styles */
.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-summary {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group h3 {
    margin-bottom: 1rem;
    color: #333;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input:focus {
    border-color: #e44d26;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-button {
    background-color: #e44d26;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #d04323;
}

.secondary-button {
    background-color: #f0f0f0;
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    background-color: #e0e0e0;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

/* Order confirmation page styles */
.confirmation-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.confirmation-message {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.confirmation-message h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.order-details {
    margin-bottom: 2rem;
}

.customer-info,
.delivery-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.items-list {
    margin: 1.5rem 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

.confirmation-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.confirmation-actions p {
    margin-bottom: 1rem;
    color: #666;
}

/* Responsive design for checkout and confirmation */
@media (max-width: 768px) {
    .checkout-container,
    .confirmation-container {
        margin: 1rem;
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .order-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
}

/* Responsive layout for contact method box in checkout */
@media (max-width: 600px) {
  .contact-method-box > div[style*='display: flex'] {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .contact-option-box {
    margin-bottom: 0.5rem;
    align-items: center !important;
    text-align: center;
  }
  .contact-option-box label.contact-radio-label {
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    text-align: center;
    width: 100%;
    display: flex;
  }
  .contact-option-box label.contact-radio-label input[type="radio"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.3em;
  }
} 