/* /store/themes/css/modern-theme.css - Modern Theme for Sellora Stores */

/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary: #9333EA; /* Default, will be overridden by PHP */
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #64748B;
    --border-color: #E2E8F0;
    --danger: #ef4444;
    --star-yellow: #f59e0b;
}

body {
    background-color: var(--light);
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    margin: 0;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- STICKY TOP BAR --- */
.store-top-bar {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-bar-left { display: flex; align-items: center; gap: 1.5rem; }
.menu-toggle { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--dark); }
.store-name-top { font-weight: 700; font-size: 1.25rem; }
.top-bar-icons { display: flex; align-items: center; gap: 1.5rem; font-size: 1.25rem; }

/* --- IMMERSIVE HERO HEADER --- */
.hero-header {
    height: 65vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 1rem;
}
.hero-header::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2)); }
.hero-content { position: relative; z-index: 2; }
.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}
.hero-title { font-size: 3.5rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); margin: 0; }
.hero-bio { max-width: 600px; margin-top: 1rem; font-size: 1.1rem; opacity: 0.9; }

/* --- MAIN CONTENT & PRODUCTS --- */
main { padding: 2rem 0; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.product-image-wrapper { position: relative; background: var(--light); aspect-ratio: 1 / 1; }
.product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 10px; right: 10px; background: var(--danger); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; }
.product-details { padding: 0.75rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 500; font-size: 0.9rem; line-height: 1.4; height: 39.2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 0.5rem; }
.product-price { margin-top: auto; }
.current-price { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.old-price { color: var(--gray); text-decoration: line-through; font-size: 0.8rem; margin-left: 0.5rem; }
.product-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray); margin-top: 0.5rem; }
.star-rating { color: var(--star-yellow); }

/* --- FOOTER --- */
.store-footer { background: #111827; color: #9ca3af; padding: 3rem 0; margin-top: 2rem; text-align: center; }
.footer-links { margin-bottom: 1rem; }
.footer-links a { margin: 0 0.75rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.powered-by a { color: var(--primary); font-weight: 500; }

/* --- MOBILE RESPONSIVE & OFF-CANVAS MENU --- */
.mobile-nav-menu { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: #fff; z-index: 1002; transform: translateX(-100%); transition: transform 0.3s ease-in-out; display: flex; flex-direction: column; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
.mobile-nav-menu.is-open { transform: translateX(0); }
.mobile-nav-header { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.mobile-nav-header .store-name-top { font-size: 1.25rem; }
.mobile-nav-links { padding: 1rem; }
.mobile-nav-links a { display: block; padding: 0.75rem; border-radius: 6px; }
.mobile-nav-links a:hover { background: var(--light); }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1001; }
.nav-overlay.is-active { display: block; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .hero-header { height: 50vh; }
}