* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fff8f0;
    color: #333;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #8B0000;
    color: white;
}

header img {
    width: 50px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: gold;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #8B0000, #B22222);
    color: white;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h2 {
    font-size: 40px;
}

/* PRODUCTS */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: 0.4s;
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.8s forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 1s; }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card:hover {
    transform: scale(1.05);
}

.card h3 {
    padding: 15px;
    color: #8B0000;
}

.card p {
    padding: 0 15px 20px;
}

/* BUY BUTTON */
.buy-section {
    text-align: center;
    margin: 40px 0;
}

.buy-section button {
    padding: 15px 40px;
    font-size: 18px;
    background: gold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.buy-section button:hover {
    background: orange;
    transform: scale(1.1);
}

/* CONTACT */
.contact {
    text-align: center;
    padding: 40px;
    background: #8B0000;
    color: white;
}

/* POPUP */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #8B0000;
    color: white;
    text-decoration: none;
    border-radius: 20px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
}

/* ANIMATIONS */
@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= IMAGE ZOOM MODERN ================= */

.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(255,215,0,0.6);
    animation: zoomIn 0.3s ease;
}

.image-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.image-close:hover {
    color: gold;
}

/* Smooth zoom animation */
@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= MODERN TOUCH ================= */

header {
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.card {
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    border: 2px solid gold;
    box-shadow: 0 15px 40px rgba(139,0,0,0.3);
}

.buy-section button {
    background: linear-gradient(45deg, gold, orange);
    font-weight: bold;
    letter-spacing: 1px;
}

.buy-section button:hover {
    background: linear-gradient(45deg, orange, gold);
}

.contact {
    background: linear-gradient(45deg, #8B0000, #B22222);
}