/* Modern Theme for Vendroom */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, #eff6ff, #ffffff);
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Features */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Gallery Grid - Justified (Google Images Style) */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 0;
}

.gallery-grid::after {
    content: '';
    flex-grow: 99999; /* Hack to keep last row items from expanding too much */
}

.gallery-item {
    height: 250px; /* Base height for Desktop */
    flex-grow: 1;
    width: auto; /* Width adapts to image ratio */
    position: relative;
    background-color: #f1f5f9;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img, .gallery-item video {
    height: 100%;
    width: auto;
    min-width: 100%; /* Ensure it fills width if stretched */
    display: block;
    object-fit: cover; /* Slight crop to keep edges aligned */
}

/* Mobile Rules */
@media (max-width: 992px) {
    .gallery-item {
        /* Smaller height means more items fit in a row */
        height: 120px; 
    }
}

@media (max-width: 576px) {
    .gallery-item {
        /* Even smaller for phones to fit ~3 items */
        height: 100px;
    }
}


.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 500;
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1070; /* Above modal content */
}

.lightbox-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Products/Offers */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-5px);
}

.product-header {
    background: #f8fafc;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.product-body {
    padding: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.feature-list li i {
    color: #10b981; /* Green checkmark */
}

/* Footer */
footer {
    background-color: #0f172a !important; /* Slate 900 */
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.3);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}