:root {
    --fs-navy: #0f172a;
    --fs-orange: #ea580c;
    --fs-bg: #f8fafc;
    --fs-card-bg: #ffffff;
    --fs-text-main: #1e293b;
    --fs-text-muted: #64748b;
    --fs-border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--fs-bg); color: var(--fs-text-main); }

/* Top Announcement Bar */
.top-bar {
    background: #1e293b; color: #f8fafc; text-align: center; padding: 8px 5%; font-size: 13px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #fbbf24; text-decoration: none; }

/* Navbar & Menu Bar */
.navbar {
    background: var(--fs-card-bg); border-bottom: 1px solid var(--fs-border); padding: 15px 5%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 1000;
}

.brand-logo img { height: 42px; width: auto; display: block; }
.search-bar { flex: 1; max-width: 420px; }
.search-bar input { width: 100%; padding: 10px 15px; border-radius: 20px; border: 1px solid var(--fs-border); outline: none; background: #f1f5f9; font-size: 13px; }

/* Navigation Links */
.nav-menu { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--fs-text-main); font-weight: 600; font-size: 14px; transition: color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--fs-orange); }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.btn-wa { background: #25d366; color: white; padding: 8px 16px; border-radius: 20px; text-decoration: none; font-size: 14px; font-weight: 600; }
.btn-cart { background: var(--fs-navy); color: white; border: none; padding: 8px 18px; border-radius: 20px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cart-badge { background: var(--fs-orange); color: white; border-radius: 50%; padding: 2px 7px; font-size: 12px; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 60px 5%; display: flex; flex-direction: column; gap: 30px; }
.hero-content { max-width: 800px; }
.hero-eyebrow { color: #fbbf24; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; line-height: 1.2; }
.hero h1 span, .hero h1 i { color: var(--fs-orange); font-style: italic; }
.hero p { color: #94a3b8; margin-bottom: 25px; font-size: 1.1rem; line-height: 1.6; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary { background: #dc2626; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block; }
.btn-outline { border: 1px solid #475569; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; }

/* Stats Bar */
.stats-bar { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px; }
.stat-item h4 { font-size: 1.5rem; color: #38bdf8; font-weight: 800; }
.stat-item p { font-size: 0.85rem; color: #94a3b8; margin: 0; }

/* Services Section */
.services-section { padding: 40px 5%; background: #ffffff; border-bottom: 1px solid var(--fs-border); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.service-card { background: #f8fafc; border: 1px solid var(--fs-border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.service-icon { font-size: 24px; color: var(--fs-orange); margin-bottom: 5px; }
.service-card h3 { font-size: 16px; color: var(--fs-navy); font-weight: 700; }
.service-card p { font-size: 13px; color: var(--fs-text-muted); line-height: 1.5; }
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.tag-pill { background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px; }

/* Catalog Section */
.catalog-container { padding: 40px 5%; }
.catalog-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 1.8rem; color: var(--fs-navy); }
.sort-select { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--fs-border); font-size: 14px; outline: none; background: white; }

.tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { background: white; border: 1px solid var(--fs-border); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--fs-text-muted); text-transform: capitalize; }
.tab-btn.active { background: var(--fs-navy); color: white; border-color: var(--fs-navy); }

/* ============================================================
   PRODUCT GRID & CARDS — fixed image display
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

.product-card {
    background: white;
    border: 1px solid var(--fs-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.15);
    border-color: #cbd5e1;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.stock-badge.in_stock { background: #dcfce7; color: #15803d; }
.stock-badge.low_stock { background: #fef3c7; color: #b45309; }
.stock-badge.out_of_stock { background: #fee2e2; color: #b91c1c; }

.product-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f8fafc;
    text-decoration: none;
}

/* Real product photos: fill the frame edge-to-edge, cropped to fit —
   no more tiny image floating in a big white box */
.product-img-wrapper.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.product-img-wrapper.has-photo:hover img { transform: scale(1.06); }

/* No photo uploaded yet: show the brand mark small and muted on a
   soft tinted background — reads clearly as "no photo" rather than
   looking like a broken or stretched product image */
.product-img-wrapper.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}
.product-img-wrapper.no-photo img {
    max-width: 46%;
    max-height: 46%;
    object-fit: contain;
    opacity: 0.5;
}
.product-img-wrapper.no-photo::after {
    content: "Photo coming soon";
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #94a3b8;
}

.product-category { font-size: 11px; text-transform: uppercase; color: var(--fs-text-muted); font-weight: 700; letter-spacing: 0.3px; }
.product-name { font-size: 15px; margin: 5px 0 12px 0; color: var(--fs-navy); line-height: 1.35; min-height: 40px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.price-tag { font-weight: 800; color: #dc2626; font-size: 15px; }
.btn-add-cart { background: var(--fs-navy); color: white; border: none; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: background 0.2s ease; white-space: nowrap; }
.btn-add-cart:hover { background: #1e293b; }
.btn-add-cart:disabled { background: #cbd5e1; cursor: not-allowed; }

/* Cart Drawer */
.cart-drawer { position: fixed; top: 0; right: -420px; width: 100%; max-width: 400px; height: 100vh; background: #ffffff; z-index: 2000; box-shadow: -5px 0 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.cart-drawer.open { right: 0; }
.cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px); z-index: 1999; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer-header { padding: 20px; border-bottom: 1px solid var(--fs-border); display: flex; justify-content: space-between; align-items: center; background: var(--fs-navy); color: white; }
.cart-close-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--fs-border); }
.cart-item-details h4 { font-size: 14px; color: var(--fs-navy); margin-bottom: 4px; }
.cart-item-details span { font-size: 12px; color: var(--fs-text-muted); }
.cart-qty-controls { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 4px 8px; border-radius: 6px; }
.cart-qty-controls button { border: none; background: none; font-weight: 800; cursor: pointer; padding: 2px 6px; }
.cart-drawer-footer { padding: 20px; border-top: 1px solid var(--fs-border); background: #f8fafc; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 15px; }
.cart-input { width: 100%; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--fs-border); border-radius: 6px; font-size: 13px; outline: none; }
.btn-checkout { width: 100%; background: #25d366; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* Site Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 60px 5% 20px 5%; margin-top: 60px; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #ffffff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-col p { font-size: 13.5px; line-height: 1.6; margin-bottom: 15px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #94a3b8; text-decoration: none; font-size: 13.5px; transition: color 0.2s ease; }
.footer-col ul a:hover { color: #fbbf24; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 15px; }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .navbar { flex-wrap: wrap; }
    .nav-menu { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--fs-border); padding-top: 10px; margin-top: 5px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .search-bar { order: 4; width: 100%; max-width: 100%; }
}
