/* =============================
   GLOBAL RESET
============================= */

html, body {
    height: 100%;
    margin: 0;
}

* {
    box-sizing: border-box;
}

/* =============================
   PAGE FRAME & BACKGROUND
============================= */

/* Outer background */
.site-bg {
    min-height: 100vh;
    display: flex;
    justify-content: center;

    background:
        linear-gradient(
            to right,
            #ffffff 0%,
            #f2f2f2 15%,
            #cfcfcf 50%,
            #f2f2f2 85%,
            #ffffff 100%
        );
}

/* Inner content column */
.site-inner {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;

    display: flex;
    flex-direction: column;

    /* CRITICAL: allow dropdowns to escape */
    overflow: visible;
}

/* =============================
   HEADER & NAVIGATION
============================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;

    /* CRITICAL: dropdowns must escape */
    overflow: visible;
    position: relative;
    z-index: 3000;
}

/* Bootstrap navbar safety */
.navbar {
    overflow: visible;
}

.navbar-nav {
    align-items: center;
}

/* Logo */
.navbar-brand img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Ensure dropdown anchor */
.navbar-nav .dropdown {
    position: relative;
}

/* Dropdown menu (FIXED) */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    margin-top: 0.25rem;
    min-width: 220px;

    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;

    z-index: 9999;
}

/* Dropdown items */
.dropdown-menu .dropdown-item {
    color: #212529;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #f1f1f1;
    color: #000;
}

/* =============================
   PAGE CONTENT
============================= */

.page-content {
    flex: 1;
    padding-top: 1rem;
}

/* =============================
   CARDS / PRODUCTS
============================= */

.card {
    border-radius: 0.5rem;
}

.card-img-top {
    background: #fff;
}

/* =============================
   FOOTER (STICKY)
============================= */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.site-footer .container {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* =============================
   LINKS
============================= */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =============================
   BOOTSTRAP SAFETY OVERRIDES
============================= */

/* Prevent accidental clipping */
.container,
.row,
.col,
.navbar-collapse {
    overflow: visible;
}
