/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.5;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ff4d94; /* darker soft pink */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .left {
    display: flex;
    align-items: center;
}

.navbar .logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
    transition: transform 0.3s;
}

.navbar .logo:hover {
    transform: scale(1.1);
}

.navbar .store-name {
    font-size: 1.4rem; /* smaller for mobile */
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.navbar .right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Swap order: cart before hamburger */
.navbar .cart { order: 1; }
.navbar .hamburger { order: 2; }

.navbar .hamburger,
.navbar .cart {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.navbar .hamburger:hover,
.navbar .cart:hover {
    color: #ffd1e6;
}

/* HAMBURGER MENU */
#hamburger-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    width: 250px;
    background: #ff4d94; /* same pink, navbar stays consistent */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 0 0 10px 10px;
    padding: 15px;
    z-index: 1000;
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(-20px);
    opacity: 0;
}

#hamburger-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

#hamburger-menu li {
    margin-bottom: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
}

#hamburger-menu li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

#hamburger-menu li a:hover {
    color: #ffd1e6;
}

#hamburger-menu li ul {
    padding-left: 15px;
    margin-top: 5px;
}

/* HERO SECTION */
.hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #ffcce6;
}

.hero img,
.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero:hover img,
.hero:hover video {
    transform: scale(1.05);
}

/* BEST SELLERS */
.best-sellers {
    padding: 40px 20px;
    text-align: center;
    background: #fff0f6;
}

.best-sellers h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ff4da6;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(255, 102, 179, 0.5);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 2px solid #ffb3d9;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 0, 150, 0.2);
    border-color: #ff66b3;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.1rem;
    color: #ff3385;
    margin-bottom: 5px;
}

.product-card .price {
    font-weight: bold;
    color: #ff1a75;
}

/* MODAL */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255,0,150,0.2);
    animation: slideDown 0.4s;
}

.modal-content img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 15px;
}

.modal-content h2 {
    color: #ff3399;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.modal-content .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e60073;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #ff1a75;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff3385;
}

/* CART & ORDER */
.cart-table, .order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td,
.order-table th, .order-table td {
    border: 1px solid #ffcce6;
    padding: 10px;
    text-align: center;
}

.cart-table th, .order-table th {
    background-color: #ff4d94;
    color: #fff;
}

button {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background-color: #ff66b3;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #ff3385;
}

/* INPUT FIELDS */
input[type="text"], input[type="number"], input[type="password"], input[type="email"], select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ffb3d9;
    margin-bottom: 10px;
    width: 100%;
    transition: border 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus {
    border-color: #ff66b3;
    box-shadow: 0 0 8px rgba(255,102,179,0.3);
    outline: none;
}

/* Animations */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes slideDown { from {transform: translateY(-50px); opacity:0;} to {transform: translateY(0); opacity:1;} }

/* RESPONSIVE */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .navbar .store-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 250px;
    }
    .product-card img {
        height: 140px;
    }
}
