* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffe0f0, #e0f7ff);
    color: #333;
}

/* HEADER */
.main-header {
    text-align: center;
    padding: 30px 15px;
    background: linear-gradient(90deg, #ff7eb3, #ff758c);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* NAVBAR */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 15px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover {
    color: #ff4f81;
}

.cart {
    font-weight: bold;
    color: #ff4f81;
}

/* LAYOUT */
.container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* PRODUCT GRID */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* PRODUCT CARD */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px;              
    object-fit: cover;      
    border-radius: 10px;
}


.desc {
    font-size: 14px;
    margin: 8px 0;
    color: #666;
}

.price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

/* BUTTON */
.btn {
    background: linear-gradient(90deg, #ff758c, #ff7eb3);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

/* SIDEBAR */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar h3 {
    margin-bottom: 15px;
}

.social-icons a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #ff4f81;
    font-weight: 500;
}

/* FOOTER */
.footer {
    background: #222;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer h3 {
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* ===== PRODUCT DETAIL PAGE ===== */

.product-detail-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-detail img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.detail-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.detail-info .price {
    font-size: 26px;
    color: #e74c3c;
    font-weight: bold;
    margin: 15px 0;
}

.detail-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.detail-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-buy {
    background: linear-gradient(90deg, #ff758c, #ff7eb3);
    border: none;
    padding: 12px 22px;
    color: white;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.btn-back {
    background: #eee;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn-back:hover {
    background: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}
