/* =========================================================
   UNIVERSAL ANTI-SCROLL FIX (MOST IMPORTANT)
========================================================= */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

* {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* =========================================================
   ROOT COLORS
========================================================= */
:root {
    --black: #000;
    --white: #fff;
    --gold: #C6A75E;
    --light: #F8F8F8;
    --dark: #121212;
    --card: #1F1F1F;
}

/* =========================================================
   BASE
========================================================= */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: #222;
}

/* =========================================================
   NAVBAR
========================================================= */
.premium-nav {
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.premium-nav .nav-link,
.premium-nav .navbar-brand,
.icon-link {
    color: #fff !important;
    margin: 0 0.4rem;
    text-decoration: none;
}

.premium-nav .nav-link:hover,
.icon-link:hover {
    color: var(--gold) !important;
}

.bg-gold {
    background: var(--gold) !important;
    color: #111;
}

/* SEARCH BAR */
.premium-search {
    border-radius: 30px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    max-width: 150px;
}

@media(max-width: 576px) {
    .premium-search {
        max-width: 110px;
    }
}

/* =========================================================
   HERO (FIXED VERSION)
========================================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
                url('https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?q=80&w=1600&auto=format&fit=crop')
                center/cover no-repeat;
    min-height: 70vh;
    border-radius: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 3rem 1.2rem;
    overflow: hidden;
}

@media(max-width: 768px) {
    .hero {
        min-height: 55vh;
        padding: 2rem 1rem;
    }
}

/* =========================================================
   SECTION TITLES
========================================================= */
.section-title {
    text-transform: uppercase;
    letter-spacing: .1rem;
    font-weight: 700;
}

/* =========================================================
   PRODUCT CARD (RESPONSIVE)
========================================================= */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.16);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform .4s;
}

.product-card:hover img {
    transform: scale(1.05);
}

@media(max-width: 576px) {
    .product-card img {
        height: 220px;
    }
}

.price del {
    color: #888;
    margin-right: .4rem;
}

.discount-badge {
    background: var(--gold);
    color: #111;
    padding: .25rem .5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-premium {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-premium:hover {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

/* =========================================================
   FOOTER
========================================================= */
.footer-dark {
    background: #000;
    color: #fff;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: .2s;
}

.footer a:hover {
    color: #fff;
}

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

.footer-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.social-icons a {
    color: white;
    font-size: 22px;
    margin-right: 12px;
    transition: .2s;
}

.social-icons a:hover {
    color: var(--gold);
}

@media(max-width: 768px) {
    .footer h5 {
        margin-top: 20px;
    }
}

/* =========================================================
   LOADER
========================================================= */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: .4s;
}

/* =========================================================
   FADE ANIMATION
========================================================= */
.fade-in {
    animation: fade .5s ease;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* =========================================================
   SKELETON
========================================================= */
.skeleton {
    background: linear-gradient(90deg,#ececec,#f6f6f6,#ececec);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 8px;
    min-height: 280px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================================
   ADMIN PANEL
========================================================= */
.admin-body {
    background: var(--dark);
    color: #fff;
}

.admin-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 260px;
    background: #1E1E1E;
    padding: 1rem;
}

.admin-content {
    margin-left: 260px;
    padding: 1.2rem;
}

.admin-card {
    background: var(--card);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    color: #fff;
}

.table-dark-premium {
    --bs-table-bg: #1F1F1F;
    --bs-table-color: #fff;
}

.badge-stock-red { background:#dc3545; }
.badge-stock-yellow { background:#ffc107; color:#111; }
.badge-stock-green { background:#198754; }

/* Mobile admin layout */
@media(max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: .3s;
    }
    .admin-sidebar.show {
        transform: none;
    }
    .admin-content {
        margin-left: 0;
    }
}

/* =========================================================
   BOOTSTRAP FIX: ROW OVERFLOW PROTECTION
========================================================= */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
