/* ======== GENERAL RESET ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #ffffff;
    overflow-x: hidden;
}

/* ======== BRANDING COLORS ======== */
:root {
    --brand-blue: #0c579a;
    --brand-pink: #ed4190;
    --brand-orange: #f7a833;
    --text-dark: #253d4e;
    --text-muted: #90979e;
    --bg-light: #f7f9fb;
    --border-light: #f1f2f4;
}

/* ======== NAVBAR CONTAINER (STICKY) ======== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ======== LOGO AREA ======== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    color: var(--brand-blue);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
}

/* ======== CATEGORIES BUTTON ======== */
.categories {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-blue);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

/* ======== SEARCH BOX ======== */
.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 550px;
    border: 1px solid var(--brand-blue);
    border-radius: 50px;
    overflow: hidden;
    margin: 0 40px;
    background: #ffffff;
    height: 44px;
}

.search-box input {
    flex: 1;
    padding: 10px 25px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: var(--brand-blue);
    border: none;
    padding: 0 22px;
    height: 100%;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

/* ======== NAV ICONS ======== */
.nav-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
}

.icon i {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--brand-blue);
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.icon-wrapper {
    position: relative;
    display: flex;
}

/* ======== HERO VIDEO SECTION ======== */
.video-section-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0;
    background: var(--bg-light);
}

.video-container {
    position: relative;
    width: 85%;
    max-width: 1200px;
    height: 450px;
    background: #000;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======== POPULAR PRODUCTS SECTION ======== */
.products-section {
    padding: 50px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.category-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    background: #f0f3f6;
    transition: all 0.2s;
}

.tab.active, .tab:hover {
    background: var(--brand-blue);
    color: #ffffff;
}

/* ======== PRODUCT CARD THEME (MATCHING SCREENSHOT) ======== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 440px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 3px 10px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    text-transform: lowercase;
}

.badge-sale { background: var(--brand-blue); }
.badge-hot { background: var(--brand-pink); }
.badge-orange { background: var(--brand-orange); }

.product-img-wrapper {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vendor-name {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 40px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.rating-star { color: var(--brand-orange); font-size: 11px; }
.rating-value { font-size: 12px; color: var(--text-muted); }
.review-count { font-size: 12px; color: var(--text-muted); }

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.current-price { font-size: 17px; font-weight: 700; color: var(--brand-blue); }
.old-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

.add-btn {
    width: 100%;
    padding: 10px;
    background: var(--brand-blue);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    margin-top: auto; /* Push only the button to the bottom */
}

/* ======== FOOTER SECTION ======== */
.main-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 60px 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.5fr;
    gap: 25px;
    margin-bottom: 40px;
}

.footer-col h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; list-style: none; }
.footer-col ul li a { text-decoration: none; color: #4a5568; font-size: 13px; }

.footer-logo { height: 38px; margin-bottom: 15px; }
.footer-brand-name { color: var(--brand-blue); font-size: 24px; font-weight: 800; display: block; margin-bottom: 10px; }
.brand-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.contact-info p { font-size: 13px; color: #4a5568; margin-bottom: 12px; display: flex; gap: 8px; }
.contact-info i { color: var(--brand-blue); }

.app-buttons { display: flex; flex-direction: column; gap: 10px; margin: 15px 0; }
.app-buttons img { height: 35px; border-radius: 4px; }

.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.support-item strong { display: block; font-size: 18px; color: var(--brand-blue); }
.support-item span { font-size: 11px; color: var(--text-muted); }
.social-row a { width: 32px; height: 32px; background: var(--brand-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ======== RESPONSIVENESS ======== */
@media (max-width: 1200px) {
    .video-container { width: 95%; height: 350px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-col, .install-app { grid-column: span 3; }
}

@media (max-width: 850px) {
    .navbar { padding: 12px 20px; }
    .search-box { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; }
    .support-numbers { flex-direction: column; gap: 15px; }
}