/* -------------------------
   GLOBAL MODALS & OVERLAYS
   ------------------------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: #888; font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover { color: #fff; }

/* Active Nav Link Highlight */
.nav-links a.active {
    color: #0066CC !important;
}

/* -------------------------
   ACCOUNT DROPDOWN PANEL
   ------------------------- */
.account-wrapper {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 240px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1500;
}

.account-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.account-dropdown a, .account-dropdown button {
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.account-dropdown a:hover, .account-dropdown button:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.account-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 5px 0;
}

/* Google Sign-in Button Style */
.btn-google {
    background: #fff !important;
    color: #000 !important;
    font-weight: 600;
    border-radius: 4px;
    justify-content: center !important;
    margin-top: 5px;
}
.btn-google:hover {
    background: #e6e6e6 !important;
}

/* -------------------------
   EXPANDING SEARCH BAR
   ------------------------- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-expand {
    position: absolute;
    right: 0;
    width: 0;
    height: 38px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0 0 0 15px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.search-container.active .search-input-expand {
    width: 250px;
    opacity: 1;
    pointer-events: auto;
    padding-right: 35px; /* space for icon */
}

.search-container svg {
    cursor: pointer;
    z-index: 2;
    transition: stroke 0.2s;
}

/* Cart Drawer Specific */
.cart-drawer {
    position: fixed;
    top: 0; right: -400px; width: 400px; height: 100%;
    background: #0d0d0d;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    color: #fff;
}
.cart-drawer.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.cart-body { flex-grow: 1; padding: 20px 0; color: #888; text-align: center; }
.cart-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.btn-checkout {
    width: 100%; padding: 15px; background: #0066cc; color: white; border: none; font-weight: 600; text-transform: uppercase; border-radius: 4px; cursor: pointer;
}