/* ========================================
   GLOBAL STYLES - style.css
   Applies to all pages across the site
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-cream: #f5f2ed;
    --text-dark: #1a1a1a;
    --accent-red: #c44536;
    --accent-orange: #e07b39;
    --accent-blue: #4a90a4;
    --accent-purple: #7b5ea7;
    --accent-pink: #d4a5a5;
    --accent-teal: #5a9e9e;
    --accent-green: #5dd9a6;
    --accent-yellow: #ffd84d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.navbar-logo {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Coming Soon Nav Item */
.nav-coming-soon {
    position: relative;
    cursor: default;
    opacity: 0.5;
}

.nav-coming-soon:hover {
    opacity: 0.5;
}

.coming-soon-badge {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgb(130, 100, 190);
    margin-top: 2px;
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cart-icon:hover {
    opacity: 0.6;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--text-dark);
    color: var(--bg-cream);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* Page wrapper for fixed navbar offset */
.page-wrapper {
    padding-top: 65px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 60px;
}

.footer a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 1;
}

/* Base Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal {
    background: var(--bg-cream);
    width: 90%;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

/* Cart bounce animation */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-icon.bounce {
    animation: cartBounce 0.3s ease;
}