/* --- Base & Fonts --- */
:root {
    --primary-color: #1b263b;
    --secondary-color: #415a77;
    --accent-color: #778da9;
    --text-color: #0d1b2a;
    --bg-color: #f8f9fa;
    --light-bg: #ffffff;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* --- Entry Page Styles --- */
.entry-page { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 2000; transition: opacity 1s ease-in-out, visibility 1s; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.entry-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 27, 42, 0.5); }
.entry-content { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; text-align: center; color: white; animation: fadeIn 2s ease-in-out; }
.entry-title { font-size: 8vw; font-weight: 700; margin: 0; letter-spacing: 8px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.entry-subtitle { font-size: 1.5vw; font-weight: 300; margin-top: 1rem; opacity: 0.9; }
.entry-button { margin-top: 2.5rem; padding: 1rem 3rem; font-size: 1.2rem; font-weight: 500; background: rgba(255, 255, 255, 0.9); color: var(--primary-color); border: none; border-radius: 50px; cursor: pointer; transition: all 0.3s; }
.entry-button:hover { transform: scale(1.05); background: white; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Main Store Layout --- */
.container { max-width: 1400px; margin: 0 auto; padding: 2rem; animation: fadeInStore 1s ease-in-out; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid #ddd; padding-bottom: 1rem; }
.page-layout { display: flex; gap: 2.5rem; }
.sidebar { width: 280px; background-color: var(--light-bg); padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); align-self: flex-start; }
.filter-group { margin-bottom: 2rem; }
.filter-group h3 { margin-bottom: 1rem; }
.category-label { display: block; margin-bottom: 0.75rem; cursor: pointer; }

/* ADDED: Styling for the new search input */
.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* --- Product Cards --- */
.products-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background-color: var(--light-bg); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 250px; object-fit: cover; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.product-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.8rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; }
.product-name { font-size: 1.3rem; margin: 0.5rem 0; font-weight: 700; flex-grow: 1; }
.product-description { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.add-to-cart-btn { background-color: var(--primary-color); color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; transition: all 0.2s; }
.add-to-cart-btn:hover { background-color: var(--secondary-color); }

/* --- Side Cart & Checkout --- */
.side-cart { position: fixed; top: 0; right: -400px; width: 380px; height: 100%; background-color: var(--light-bg); box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1500; transition: right 0.4s ease-in-out; display: flex; flex-direction: column; }
.side-cart.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid #eee; }
.cart-items-container { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1rem; }
.cart-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; }
.cart-item-details { flex-grow: 1; }
.cart-item-title { font-weight: 600; margin: 0 0 5px 0; }
.quantity-controls { display: flex; align-items: center; gap: 10px; }
.quantity-btn { background: #eee; border: none; width: 25px; height: 25px; cursor: pointer; }
.cart-footer { padding: 1.5rem; border-top: 1px solid #eee; background: #f8f9fa; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.checkout-btn { width: 100%; padding: 1rem; background-color: var(--primary-color); color: white; border: none; font-size: 1rem; cursor: pointer; }
.checkout-page { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 1600; overflow-y: auto; padding: 2rem; animation: fadeInStore 0.5s; }
.checkout-container { max-width: 800px; margin: 2rem auto; }
.checkout-summary, #payment-form, #order-success { background: white; padding: 2rem; border-radius: 10px; margin-bottom: 2rem; }
#payment-form input { width: 100%; padding: 12px; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.action-button, #return-to-store-btn { background: var(--primary-color); color: white; }
#back-to-store-btn { background-color: #6c757d; color: white; }

/* --- Utility Classes --- */
.hidden { display: none !important; }
.cart-icon { position: relative; background: none; border: none; cursor: pointer; color: var(--primary-color); }
.cart-badge { background-color: var(--secondary-color); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; position: absolute; top: -5px; right: -5px; }
.close-btn { font-size: 2rem; background: none; border: none; cursor: pointer; }
.cart-item-price { font-weight: 600; }
.checkout-total { font-size: 1.5rem; font-weight: 700; text-align: right; margin-top: 1rem; }