@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --brand-blue: #0052a3;
    --nav-gold: #a68a2d;
    --badge-yellow: #fcd535;
    --text-dark: #1f1f1f;
    --footer-bg: #87888a;
    --search-bg: #f4f5f5;
    --font-main: "Inter", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* GLOBAL HEADER */
#global-header {
    background: #fff;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 60px;
}
.header-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-blue);
    letter-spacing: -0.5px;
}
.header-nav ul {
    display: flex;
    gap: 32px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.header-nav a.active {
    color: var(--brand-blue);
    border-bottom: 3px solid var(--nav-gold);
    padding-bottom: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-search {
    position: relative;
}
.header-search input {
    background: var(--search-bg);
    border: none;
    padding: 10px 16px 10px 40px;
    border-radius: 6px;
    width: 260px;
    font-size: 14px;
    font-family: inherit;
    color: #555;
    outline: none;
}
.header-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icon-btn {
    position: relative;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
    background: transparent;
    border: none;
}
.icon-btn:hover {
    background: #f3f4f6;
}
.icon-btn svg {
    width: 20px;
    height: 20px;
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--badge-yellow);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ACCOUNT DROPDOWN STYLES */
.account-wrapper {
    position: relative;
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}
.account-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #f4f5f5;
}
.dropdown-name {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
}
.dropdown-email {
    font-size: 15px;
    color: #4b5563;
}
.dropdown-menu {
    padding: 8px 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: #f9fafb;
}
.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: #111;
    flex-shrink: 0;
}
.dropdown-item.active {
    background-color: #f8fbff;
    position: relative;
}
.dropdown-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #0052a3;
}
.dropdown-item.active span {
    color: #0052a3;
    font-weight: 700;
}
.dropdown-item.logout span {
    color: #b91c1c;
}
.dropdown-item.logout svg {
    color: #b91c1c;
}

/* GLOBAL FOOTER */
#global-footer {
    background-color: var(--footer-bg);
    color: #222;
    padding: 60px 40px 20px;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.footer-col h3.blue-header {
    color: var(--brand-blue);
    font-size: 13px;
    text-transform: uppercase;
}
.footer-col p,
.footer-col li {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    font-weight: 500;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    width: 220px;
}
.pay-icon {
    height: 32px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-links {
    display: flex;
    gap: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}
.footer-copyright {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}
