﻿:root {
    --bg-body: #020617;
    --bg-elevated: #020617;
    --bg-card: #020617;
    --bg-card-soft: #0b1120;
    --accent: #0ea5e9;
    --accent-soft: rgba(56, 189, 248, 0.14);
    --accent-strong: #38bdf8;
    --text-main: #e5e7eb;
    --text-soft: #9ca3af;
}

body {
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* NAVBAR */
.navbar {
    background: radial-gradient(circle at 0 0, #0f172a 0, #020617 55%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    transition: all 0.3s ease-in-out;
}

    .navbar.scrolled {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    }

.navbar-brand span {
    font-weight: 700;
}

/* Navigation Links with hover and active states */
.navbar-nav .nav-link {
    color: var(--text-soft) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #38bdf8, transparent);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-strong) !important;
}

.navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--accent-strong) !important;
}

.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Navbar Search - Old styles removed */

.navbar-search-input {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.4rem 1rem 0.4rem 2.5rem;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
    width: 300px;
}

    .navbar-search-input::placeholder {
        color: #64748b;
    }

.navbar-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

/* Navbar Search Animation */
.navbar-search-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.navbar-search-wrapper.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    width: 300px !important;
    margin-left: 1rem;
    margin-right: 1rem;
    pointer-events: auto;
    overflow: visible !important;
}

/* Wider dropdown for navbar search on large screens */
@media (min-width: 992px) {
    .search-navbar .search-dropdown {
        width: 500px;
        left: auto;
        right: 0;
    }
}

@media (min-width: 1200px) {
    .navbar-search-wrapper.visible {
        width: 350px !important;
    }
    
    .search-navbar .search-dropdown {
        width: 600px;
    }
}

@media (min-width: 1400px) {
    .navbar-search-wrapper.visible {
        width: 400px !important;
    }
    
    .search-navbar .search-dropdown {
        width: 700px;
    }
}

/* Navbar Search Box Overrides */
.search-navbar .search-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 2.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.search-navbar .search-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.search-navbar .search-icon {
    left: 12px;
}

/* Mobile Search always visible in menu */
@media (max-width: 991px) {
    .navbar-search-wrapper.d-lg-none {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        margin: 10px 0;
        pointer-events: auto !important;
        white-space: normal;
    }
    
    .search-mobile .search-input,
    .search-navbar .search-input {
        width: 100%;
    }
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #fb923c, #c2410c 40%, #7c2d12 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fffbeb;
}

.badge-pill-soft {
    font-size: .7rem;
    border-radius: 999px;
    padding: .15rem .7rem;
    border: 1px solid rgba(165, 180, 252, 0.6);
    background: rgba(79, 70, 229, 0.1);
    color: #c7d2fe;
    white-space: nowrap;
}

/* HERO */
.hero-wrap {
    padding: 1.6rem 0 1.4rem;
    background: linear-gradient(180deg, #020617 0%, #020617 100%);
}

.hero-card {
    border-radius: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
    padding: 1.5rem 1.6rem 1.3rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.23), rgba(56, 189, 248, 0.05) 22%, #020617 55%);
}

.hero-title {
    font-size: 1.45rem;
    font-weight: 700;
}

.hero-sub {
    font-size: .9rem;
    color: var(--text-soft);
}

/* Hero Search Box Overrides - Option B: CTA Style */
.search-hero .search-input {
    border-radius: 999px;
    border: 2px solid rgba(56, 189, 248, 0.25);
    padding-left: 3rem;
    padding-right: 1.3rem;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8),
                0 0 0 1px rgba(56, 189, 248, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-hero .search-input:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
}

.search-hero .search-input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2),
                0 24px 60px rgba(15, 23, 42, 0.9);
}

.search-hero .search-icon {
    left: 1.3rem;
    color: var(--accent-strong);
    font-size: 1.2rem;
}

.hero-tags .tag-pill {
    font-size: .75rem;
    border-radius: 999px;
    padding: .2rem .7rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.tag-pill.accent {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.6);
    color: #bae6fd;
}

/* LAYOUT */
.main-shell {
    margin-top: .5rem;
}

.section-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

    .section-title small {
        color: var(--accent);
    }

/* THUMBS – landscape & portrait */
.game-thumb-landscape {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #020617;
}

    .game-thumb-landscape img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Bundle cards - custom aspect ratio 0.83:1 (približno 5:6) */
.game-thumb-bundle {
    position: relative;
    width: 100%;
    aspect-ratio: 0.83 / 1; /* Održava tačan aspect ratio bundle slika */
    overflow: hidden;
    border-radius: 1.25rem;
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .game-thumb-bundle img,
    .game-thumb-bundle .bundle-image {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Prikazuje cijelu sliku bez odsjecanja */
        display: block;
    }

.game-thumb-portrait {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0b1120;
}

    .game-thumb-portrait .cover-wrapper {
        position: relative;
        z-index: 3;
        filter: drop-shadow(0 4px 14px rgba(0,0,0,0.8));
    }
    /* blurred fill background (cropped) */
    .game-thumb-portrait::before {
        background-image: var(--bg);
        content: "";
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: blur(8px) brightness(0.5);
        transform: scale(1.2);
        z-index: 1;
    }

    /* real portrait image (full) */
    .game-thumb-portrait img {
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
        position: relative;
        z-index: 2;
        width: auto;
        height: 100%;
        margin: 0 auto;
        display: block;
        object-fit: contain;
        /* VAŽNO: ne reže više ništa */
    }

/* CARDS */
.top-deal-card,
.deal-card {
    background: #020617;
    border-radius: 1.5rem;
    border: 1px solid rgba(30, 64, 175, 0.6);
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.95);
    overflow: hidden;
}

.deal-card {
    background: #020617;
    border-radius: 1.25rem;
    border-color: rgba(30, 64, 175, 0.4);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.9);
}

    .top-deal-card .card-body,
    .deal-card .card-body {
        padding: .9rem .95rem 1rem;
    }

.game-title {
    font-size: .95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.game-price {
    font-size: .9rem;
    font-weight: 600;
    color: #fb923c;
}

.game-price-old {
    font-size: .75rem;
    color: #6b7280;
    text-decoration: line-through;
}

/* LOAD MORE SECTION */
.load-more-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.progress-bar-container {
  height: 3px;
  background: rgba(30, 64, 175, 0.2);
  border-radius: 999px;
  overflow: hidden;
  min-width: 200px; /* Ensure progress bar has minimum width */
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Load More Button - Compact */
.btn-load-more {
  background: var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  margin: 0; /* Ensure no auto margins center it */
}

.btn-load-more:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-load-more:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .load-more-wrapper {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .progress-bar-container {
    width: 100%;
    order: 2;
  }
  
  .btn-load-more {
    order: 3;
    align-self: center;
  }
}

/* Desktop: inline layout */
@media (min-width: 768px) {
    .load-more-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
    }
}

.load-more-progress {
    flex: 1;
    min-width: 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    gap: 0.5rem;
}

.progress-bar-container {
    height: 3px;
    background: rgba(30, 64, 175, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent), var(--accent-strong));
    border-radius: 999px;
    transition: width 0.4s ease;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.btn-load-more {
    background: var(--bg-card-soft);
    color: var(--text-main);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-load-more:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* Enhanced CTA variant for Load More button - balanced style */
.btn-load-more--cta {
    color: var(--accent-strong) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.15);
}

.btn-load-more--cta:hover {
    color: white !important;
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35), 0 0 20px rgba(56, 189, 248, 0.15);
}

.btn-load-more--cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.25);
}

.btn-load-more--cta i {
    opacity: 0.9;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.btn-load-more--cta:hover i {
    transform: translateY(2px);
}

.discount-badge {
    font-size: .75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .2rem .7rem;
    background: rgba(56, 189, 248, 0.16);
    color: #bfdbfe;
    border: 1px solid rgba(56, 189, 248, 0.6);
}

.store-pill {
    font-size: .7rem;
    border-radius: 999px;
    padding: .16rem .6rem;
    background: rgba(15, 23, 42, 0.9);
    color: #9ca3af;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

/* FILTERS */
.filters-bar {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    padding: .2rem .4rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
}

    .filters-bar button {
        font-size: .8rem;
    }

/* SIDEBAR */
.sidebar-card {
    background: linear-gradient(145deg, #020617, #020617 40%, #020617 100%);
    border-radius: 1.2rem;
    border: 1px solid rgba(51, 65, 85, 0.95);
    padding: 1.05rem 1.1rem;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    margin-right: .8rem;
}

    .sidebar-icon i {
        color: var(--accent-strong);
    }

.sidebar-card h5 {
    font-size: .98rem;
    margin-bottom: .2rem;
}

.sidebar-card p {
    font-size: .84rem;
    color: var(--text-soft);
}

.sidebar-tags span {
    font-size: .72rem;
    border-radius: 999px;
    padding: .18rem .6rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

    .sidebar-tags span.accent {
        background: rgba(34, 197, 94, 0.08);
        border-color: rgba(34, 197, 94, 0.6);
        color: #bbf7d0;
    }

@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 88px;
    }
}

/* FOOTER */
footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(30, 64, 175, 0.6);
    background: radial-gradient(circle at top, #020617 0, #020617 100%);
}

.footer-heading {
    font-size: .9rem;
    font-weight: 600;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-link {
    font-size: .85rem;
    color: var(--text-soft);
    text-decoration: none;
}

    .footer-link:hover {
        color: #e5e7eb;
        text-decoration: underline;
    }

.newsletter-input {
    background: #020617;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: var(--text-main);
}

    .newsletter-input::placeholder {
        color: #6b7280;
    }

.btn-send {
    border-radius: 999px;
}

.legal-small {
    font-size: .75rem;
    color: #6b7280;
}

/* announcement-bar */
/* Beta bar */
/* Root bar */
.beta-bar {
    background: #020617; /* very dark navy */
    color: #e5e7eb;
    font-size: 13px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Content container */
.beta-bar-inner {
    /*max-width: 1180px;*/
    /*margin: 0 auto;*/
    padding: 8px 20px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Left side */
.beta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* "Public Beta" badge */
.beta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-weight: 500;
}

.beta-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

/* Subtext */
.beta-text {
    color: #9ca3af;
}

/* Right side */
.beta-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.beta-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

    .beta-link:hover::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 1px;
        background: linear-gradient(to right, transparent, #38bdf8, transparent);
    }

.beta-link--muted {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.beta-link--muted:hover {
    color: var(--text-main);
}

/* CTA link with emphasis */
.beta-link--cta {
    color: var(--accent) !important;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
}

.beta-link--cta:hover {
    color: var(--accent-strong) !important;
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

.beta-link--cta i {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Last updated */
.beta-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.8rem;
}

.beta-updated i {
    color: #10b981;
    font-size: 0.75rem;
}

.beta-updated-icon {
    font-size: 12px;
}

/* Glowy blue line under bar */
.beta-glow-line {
    height: 1px;
    background: linear-gradient( to right, transparent, #38bdf8, #0ea5e9, #38bdf8, transparent );
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .beta-bar-inner {
        padding-inline: 12px;
    }

    .beta-right {
        justify-content: flex-start;
    }
}

/* ============================================
   SEARCH BOX & AUTOCOMPLETE
   ============================================ */

.search-box {
    position: relative;
    width: 100%;
}

.search-form {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
    z-index: 2;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-card-soft);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: var(--bg-elevated);
}

.search-input::placeholder {
    color: var(--text-soft);
}

/* Autocomplete Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.search-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.search-dropdown[hidden] {
    display: none;
}

/* Search Results */
.search-results-container {
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    position: relative;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--bg-card-soft);
    transform: translateX(4px);
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

.search-result-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark {
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-platform {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.search-result-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.search-result-discount {
    background: linear-gradient(135deg, #a4d007 0%, #84b005 100%);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

.search-result-price {
    font-weight: 700;
    color: rgb(251, 146, 60);
    font-size: 1.1rem;
    line-height: 1;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-soft);
}

.search-no-results i {
    font-size: 2.5rem;
    color: var(--text-soft);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.search-no-results p {
    margin: 0;
    font-size: 0.95rem;
}

/* View All Link */
.search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    background: var(--bg-card-soft);
    border-radius: 8px;
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-view-all:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.search-view-all i {
    transition: transform 0.2s ease;
}

.search-view-all:hover i {
    transform: translateX(4px);
}

/* Scrollbar styling for dropdown */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .search-dropdown {
        max-height: 80vh;
        max-width: calc(100vw - 2rem);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }
    
    /* Mobile search in navbar menu - use relative positioning */
    .navbar-search-wrapper.d-lg-none .search-dropdown {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(100% + 0.5rem) !important;
        width: 100% !important;
    }
    
    .search-result-item {
        padding: 0.6rem;
    }
    
    .search-result-image {
        width: 40px;
        height: 40px;
    }
    
    .search-result-title {
        font-size: 0.9rem;
    }
    
    .search-result-discount {
        font-size: 0.65rem;
        padding: 0.12rem 0.35rem;
    }
    
    .search-result-price {
        font-size: 1rem;
    }
    
    /* Ensure navbar doesn't clip dropdown */
    .navbar-collapse {
        overflow: visible !important;
    }
    
    .navbar-search-wrapper {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Improve touch targets */
    .search-result-item {
        min-height: 60px;
    }
}

/* ============================================
   END SEARCH BOX
   ============================================ */

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-enter {
    animation: fadeUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Start invisible */
}

/* Removed nth-child rules to use inline styles for reliable staggering */