/* 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: #ffffff;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #dc143c;
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    height: fit-content;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    animation: fadeInUp 1.5s ease-out;
    position: relative;
    padding: 0;
    height: fit-content;
    background: none;
    border-radius: 0;
    color: #dc143c;
    box-shadow:
        0 0 10px rgba(220, 20, 60, 0.8),
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 30px rgba(220, 20, 60, 0.5),
        0 0 40px rgba(220, 20, 60, 0.4),
        0 0 50px rgba(220, 20, 60, 0.3);
    border: none;
    outline: none;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.logo-icon {
    display: inline-block;
    font-size: 1.8rem;
    margin-right: 10px;
    animation: iconPulse 2s ease-in-out infinite;
    color: #ff6b6b;
    text-shadow: 0 0 10px #ff6b6b, 0 0 20px #dc143c;
}

.logo h1::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: white;
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
    box-shadow: 
        0 0 10px #dc143c,
        0 0 20px #ff6b6b,
        0 0 30px #dc143c,
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Keyframes for heading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #dc143c;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        text-shadow: 0 0 15px #ff6b6b, 0 0 30px #dc143c, 0 0 40px #ff6b6b;
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b6b;
}

.search-bar {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.search-bar input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-bar button {
    padding: 0.5rem 1rem;
    background: #dc143c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 20, 60, 0.3);
}

.search-bar button:hover {
    background: #b22222;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 6px rgba(220, 20, 60, 0.4);
}

.search-bar button:active {
    transform: translateY(0) scale(0.98);
}

.cart-icon {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    margin-left: 1rem;
}

.cart-icon:hover {
    color: #ff6b6b;
}

#cart-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
    transition: all 0.3s ease;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.hamburger:hover {
    color: #ff6b6b;
}

#cart-count.animate {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #dc143c 0%, #ff6b6b 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1.5s ease-out 0.5s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s ease-out 1s both;
}

.hero .btn {
    animation: bounceIn 1s ease-out 1.5s both;
}

.btn {
    display: inline-block;
    background: #dc143c;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(220, 20, 60, 0.3);
}

.btn:hover {
    background: #b22222;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.4);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(220, 20, 60, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Products section */
.products {
    padding: 80px 0;
    background: white;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

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

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.2);
}

.product-image {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.placeholder-image {
    font-size: 4rem;
}

.product-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
}

.product-card p {
    padding: 0 1rem;
    color: #666;
}

.price {
    display: block;
    padding: 0 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.product-card .btn {
    margin: 1rem;
    width: calc(100% - 2rem);
}

/* About section */
.about {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact section */
.contact {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #666;
}

.contact-details {
    text-align: left;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-item strong {
    color: #333;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#submit-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

#form-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    display: none;
}

#form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact textarea {
    height: 150px;
    resize: vertical;
}

/* Payment section */
.payment {
    background: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.payment h2 {
    margin-bottom: 1rem;
    color: #dc143c;
}

.payment p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.payment-method {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-width: 200px;
}

.payment-method:hover {
    transform: translateY(-5px);
}

.payment-method img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.payment-method p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal-image {
    margin-bottom: 1rem;
}

.modal-image img {
    max-width: 100%;
    height: auto;
}

.modal-image .placeholder-image {
    font-size: 5rem;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.variant-image {
    font-size: 2rem;
    margin-right: 1rem;
}

.variant-details {
    flex: 1;
}

.variant-details h3 {
    margin: 0;
    font-size: 1.2rem;
}

.variant-details p {
    margin: 0.5rem 0;
    color: #666;
}

.variant-price {
    font-weight: bold;
    color: #e74c3c;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.cart-item-details h4 {
    margin: 0;
    font-size: 1.1rem;
}

.cart-item-details p {
    margin: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: bold;
    color: #e74c3c;
}

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

.qty-btn {
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
    min-width: 30px;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-btn {
    background: #e74c3c;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.remove-btn:hover {
    background: #c0392b;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.4);
}

#cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

/* Delivery Modal Styles */
#delivery-modal .modal-content {
    max-width: 700px;
    text-align: left;
}

#delivery-modal h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

#delivery-modal p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.delivery-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.delivery-summary h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.delivery-cart-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.delivery-cart-item:last-child {
    border-bottom: none;
}

.delivery-item-details h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.delivery-item-details p {
    margin: 0.2rem 0;
    color: #666;
    font-size: 0.9rem;
}

.delivery-item-price {
    font-weight: bold;
    color: #e74c3c;
}

#delivery-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    color: #27ae60;
}

#delivery-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#delivery-submit-btn:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

#delivery-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

#delivery-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

#delivery-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#delivery-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .search-bar {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: none;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 1rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        text-align: center;
    }
    
    .contact-details {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-method {
        min-width: 150px;
    }
}