@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #0e2f4f !important;
    --primary-light: #1c4d77 !important;
    --bg: #f4f7fb !important;
    --bg-alt: #ebf1f7 !important;
    --card: #ffffff !important;
    --border: #d8e3ee !important;
    --text: #0f2233 !important;
    --text-light: #506479 !important;
    --accent: #2f8de0 !important;
    --accent-strong: #1d5fb8;
    --ink-soft: #163750;
    --shadow: 0 2px 10px rgba(12, 35, 56, 0.08) !important;
    --shadow-md: 0 16px 34px rgba(12, 35, 56, 0.14) !important;
}

* {
    font-family: 'Barlow', 'Segoe UI', sans-serif;
}

body {
    background:
        radial-gradient(circle at 12% 5%, rgba(72, 161, 232, 0.14), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(42, 101, 145, 0.16), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
    color: var(--text);
}

.logo,
.hero h1,
.section-title,
h1,
h2,
.product-info h1,
.account-header h1 {
    font-family: 'Space Grotesk', 'Barlow', sans-serif;
    letter-spacing: 0.01em;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    min-width: 132px;
    padding: 6px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.96) 0%, rgba(210, 233, 251, 0.9) 100%);
    border: 1px solid rgba(120, 181, 230, 0.55);
    box-shadow:
        0 12px 26px rgba(18, 71, 122, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    margin-left: 0;
}

.logo-mark {
    width: 118px;
    height: 72px;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    filter: saturate(1.05) contrast(1.02);
    display: block;
    margin: 0;
    transform: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header {
    border-bottom: 1px solid #cdd9e5 !important;
    background:
        radial-gradient(circle at 8% 8%, rgba(132, 199, 247, 0.32), transparent 34%),
        linear-gradient(180deg, #fafdff 0%, #e6f2ff 100%) !important;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, #2e8bd4 0%, #5eb9f3 52%, #2a6fc2 100%);
}

.header-content {
    max-width: 1400px !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    gap: 1rem;
}

#mainNav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    min-width: 0;
}

#mainNav #navLinks {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

#mainNav .search-bar {
    margin-left: auto;
}

nav a {
    font-weight: 600 !important;
    color: var(--ink-soft) !important;
}

nav a:hover,
#shopAllLink:hover {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
}

.search-bar {
    background: #ffffff !important;
    border: 1px solid #cdd9e5 !important;
    border-radius: 999px !important;
}

.search-bar input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    width: 230px;
    color: var(--text);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-bar:focus-within {
    box-shadow: 0 0 0 4px rgba(47, 141, 224, 0.16) !important;
    border-color: #8cc8ff !important;
}

.signin-btn,
nav a.contact-link,
nav a.contact-btn,
.logout-btn,
.btn,
.hero-button,
.product-link,
.scroll-product-link,
.category-view-btn,
.action-btn.available,
form button {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%) !important;
    border: 1px solid #2258a5 !important;
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 16px rgba(31, 94, 173, 0.24);
}

.signin-btn {
    padding: 0.45rem 1rem !important;
}

nav a.contact-link,
nav a.contact-btn {
    padding: 0.52rem 1.15rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
}

.signin-btn:hover,
nav a.contact-link:hover,
nav a.contact-btn:hover,
.logout-btn:hover,
.btn:hover,
.hero-button:hover,
.product-link:hover,
.scroll-product-link:hover,
.category-view-btn:hover,
.action-btn.available:hover,
form button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.02);
}

.logout-btn {
    width: 100%;
    padding: 0.6rem 1rem !important;
    font-weight: 700 !important;
}

.hero {
    background:
        linear-gradient(110deg, rgba(13, 48, 79, 0.95) 0%, rgba(26, 83, 125, 0.9) 64%, rgba(20, 108, 143, 0.86) 100%) !important;
    color: #eff7ff !important;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -20px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 212, 255, 0.48) 0%, rgba(147, 212, 255, 0) 72%);
}

.hero p {
    color: #cde4f8 !important;
}

.container,
.cart-items,
.order-summary,
.sidebar,
.section,
.auth-box,
.auth-modal-content,
.category-card,
.product-card,
.scroll-product-card {
    border-radius: 14px !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
}

.category-card,
.product-card,
.scroll-product-card,
.cart-item {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}

.category-card:hover,
.product-card:hover,
.scroll-product-card:hover,
.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: #a4bfd8 !important;
}

.product-desc,
.scroll-product-desc,
.cart-item-price,
.cart-item-qty,
p,
.auth-box p {
    color: var(--text-light) !important;
}

.price,
.summary-row.total,
.cart-summary-row.total {
    color: var(--accent-strong) !important;
}

.tab-btn.active {
    color: var(--accent-strong) !important;
    border-bottom-color: var(--accent-strong) !important;
}

.empty,
.empty-cart,
.not-auth,
.not-logged-in {
    background: #fff;
    border: 1px dashed #bccddd;
    border-radius: 12px;
}

footer {
    background: linear-gradient(180deg, #0d2c48 0%, #0b243a 100%) !important;
    color: #cde0f4 !important;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.product-card,
.scroll-product-card,
.cart-item,
.section,
.container {
    animation: riseIn 0.45s ease both;
}

.category-card:nth-child(2),
.product-card:nth-child(2),
.scroll-product-card:nth-child(2),
.cart-item:nth-child(2) {
    animation-delay: 0.06s;
}

.category-card:nth-child(3),
.product-card:nth-child(3),
.scroll-product-card:nth-child(3),
.cart-item:nth-child(3) {
    animation-delay: 0.12s;
}

@media (max-width: 768px) {
    .logo {
        min-height: 62px;
        min-width: 92px;
        padding: 4px;
        border-radius: 12px;
        margin-left: 0;
    }

    .logo-mark {
        width: 82px;
        height: 52px;
        border-radius: 8px;
        object-position: 50% 50%;
        transform: none;
    }

    .hero {
        padding-top: 3.5rem !important;
        padding-bottom: 4rem !important;
    }

    .search-bar {
        border-radius: 12px !important;
    }

    .search-bar input {
        width: 150px;
        font-size: 0.85rem;
    }

    #mainNav {
        gap: 0.6rem;
    }

    #mainNav #navLinks {
        display: none;
    }

    .container,
    .cart-items,
    .order-summary,
    .section,
    .auth-box {
        border-radius: 10px !important;
    }
}
