/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

body.light-mode .hamburger span {
  background-color: #0a0a0a;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-white);
  z-index: 1002;
  position: relative;
}

.nav-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 1002;
  position: relative;
}

.nav-icons a {
  display: flex;
  align-items: center;
}

.nav-icons i {
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-icons i:hover {
  color: var(--accent);
}

.theme-toggle-btn {
  width: 60px;
  height: 32px;
  border-radius: 16px;
  background: linear-gradient(
    to right,
    #f0f0f0 0%,
    #f0f0f0 50%,
    #1a1a1a 50%,
    #1a1a1a 100%
  );
  border: none;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

body.light-mode .theme-toggle-btn {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .theme-toggle-btn:hover {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn i {
  font-size: 1.1rem;
  z-index: 1;
  pointer-events: none;
  transition: all 0.4s ease;
}

.theme-toggle-btn i.bxs-sun {
  color: var(--accent);
  opacity: 1;
  transform: scale(1);
}

.theme-toggle-btn i.bxs-moon {
  color: var(--accent);
  opacity: 0.2;
  transform: scale(0.8);
}

body.light-mode .theme-toggle-btn i.bxs-sun {
  opacity: 0.2;
  transform: scale(0.8);
}

body.light-mode .theme-toggle-btn i.bxs-moon {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle-btn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background-color: #f0f0f0;
  border-radius: 50%;
  transform: translateX(28px);
  transition:
    transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    background-color 0.5s ease;
  z-index: 2;
}

body.light-mode .theme-toggle-btn::after {
  background-color: #1a1a1a;
  transform: translateX(0);
}

/* Footer */
footer {
  background: #000;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 80px 5% 0;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  font-size: var(--fs-h3-card);
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--text-gray);
  font-size: var(--fs-small);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-gray);
}

.footer-col ul li a:hover {
  color: var(--text-white);
}

.watermark {
  font-family: var(--font-heading);
  font-size: 16vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  text-align: center;
  line-height: 0.75;
  user-select: none;
  white-space: nowrap;
}

/* Newsletter */
.newsletter {
  background: var(--bg-card-light);
  padding: 60px 5%;
  text-align: center;
}

body.light-mode .newsletter {
  --text-white: #0a0a0a;
  --text-gray: #5a5a5a;
  color: var(--text-white);
}

.newsletter h2 {
  font-size: var(--fs-h2-section);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border-bottom: 2px solid var(--text-gray);
  padding-bottom: 10px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1rem;
  padding: 10px;
  outline: none;
}

.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 10px;
}

/* Mobile Bottom Navigation (skriveno na desktopu) */
.mobile-bottom-nav {
  display: none;
}

/* Responsive Overrides specific to Header/Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .watermark {
    display: none;
  }

  /* Dodajemo donji padding na body da donji meni ne bi prekrivao sadržaj */
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  body.light-mode .nav-links {
    background: rgba(245, 245, 245, 0.98);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
  }

  .nav-icons {
    gap: 12px;
  }

  /* Skrivamo duplirane ikonice iz gornjeg menija na telefonu */
  .top-icon {
    display: none !important;
  }

  /* Skrivamo staro dugme iz zaglavlja na mobilnom uređaju */
  .desktop-toggle {
    display: none !important;
  }

  .nav-icons i {
    font-size: 1.45rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    padding: 60px 5% 0;
    gap: 40px;
  }

  /* Prikazivanje i stilizacija bottom nav-a na mobilnom */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #0a0a0a;
    backdrop-filter: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    padding-bottom: env(
      safe-area-inset-bottom,
      0px
    ); /* iPhone zaštita (Home indicator) */
  }

  body.light-mode .mobile-bottom-nav {
    background: #fff;
    backdrop-filter: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-gray);
    text-decoration: none;
    flex: 1;
    transition: color 0.3s ease;
  }

  body.light-mode .bottom-nav-item {
    color: #5a5a5a;
  }

  .bottom-nav-item i {
    font-size: 1.5rem;
  }

  /* Zadržavamo originalnu veličinu ikonica u prekidaču da ne bi pucao unutrašnji padding */
  .bottom-nav-item .theme-toggle-btn i {
    font-size: 1.1rem;
  }

  .bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
  }

  /* Središnje ispupčeno dugme (Bulge efekat) */
  .center-bulge {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-self: stretch;
  }

  .bulge-bg {
    display: grid;
    place-content: center;
    position: absolute;
    top: -34px; /* Izdizanje brda */
    width: 100px;
    height: 72px;
    border-radius: 15px 15px 0 0;
    background: #0a0a0a;
    backdrop-filter: none;
  }

  .bulge-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px; /* Samo deo koji viri iznad navigacije */
    border-radius: 15px 15px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    box-sizing: border-box;
    pointer-events: none;
  }

  body.light-mode .bulge-bg {
    background: #fff;
    backdrop-filter: none;
  }

  body.light-mode .bulge-bg::before {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: none;
  }

  /* Resetovanje desktop margina za ovo dugme */
  .mobile-toggle {
    margin-left: 0;
  }

  .bottom-nav-item.active,
  .bottom-nav-item:hover {
    color: var(--accent);
  }

  body.light-mode .bottom-nav-item.active,
  body.light-mode .bottom-nav-item:hover {
    color: var(--accent);
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 50px 5% 0;
    margin-bottom: 50px;
    gap: 30px;
  }
  .footer-col h4 {
    margin-bottom: 15px;
  }
  .footer-col ul li {
    margin-bottom: 10px;
  }
  .newsletter {
    padding: 40px 5%;
  }
  .newsletter h2 {
    margin-bottom: 20px;
  }
  .newsletter-form input {
    font-size: var(--fs-body);
  }
  .watermark {
    font-size: 20vw;
  }
}

/* Favorites Modal */
.favorites-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.favorites-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.favorites-modal-content {
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: var(--bg-card-light);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.favorites-modal-overlay.active .favorites-modal-content {
  transform: translateX(0);
}

body.light-mode .favorites-modal-content {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.favorites-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .favorites-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.favorites-modal-header h2 {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--text-white);
}

body.light-mode .favorites-modal-header h2 {
  color: #0a0a0a;
}

.close-favorites {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

body.light-mode .close-favorites {
  color: #0a0a0a;
}

.close-favorites:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.favorites-list {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.favorites-list::-webkit-scrollbar {
  width: 6px;
}

.favorites-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.favorite-item {
  display: flex;
  align-items: stretch;
  height: 130px;
  flex-shrink: 0;
  gap: 15px;
  padding: 15px;
  background: transparent;
  border: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.favorite-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 4px;
  height: calc(100% - 30px);
  background: var(--accent);
}

body.light-mode .favorite-item {
  background: transparent;
  border: none;
}

.favorite-item:hover {
  transform: translateY(-4px);
}

.fav-img-wrapper {
  flex-shrink: 0;
  width: 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, #2a2a2a 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-mode .fav-img-wrapper {
  background: radial-gradient(circle, #f0f0f0 0%, #e0e0e0 100%);
}

.fav-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.favorite-item:hover .fav-img-wrapper img {
  transform: scale(1.1);
}

.favorite-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.favorite-info h3 {
  font-size: var(--fs-h3-card);
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.2;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

body.light-mode .favorite-info h3 {
  color: #0a0a0a;
}

.favorite-info p {
  font-size: var(--fs-small);
  color: var(--text-gray);
  margin-bottom: 8px;
}

.fav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.favorite-price {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-white);
  font-family: var(--font-heading);
  background: rgba(189, 162, 126, 0.1);
  padding: 4px 8px;
  border-left: 2px solid var(--accent);
}

body.light-mode .favorite-price {
  color: #0a0a0a;
  background: rgba(189, 162, 126, 0.15);
}

.fav-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.remove-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
}

body.light-mode .add-btn {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

body.light-mode .remove-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #777;
}

.add-btn:hover,
.remove-btn:hover {
  transform: translateY(-2px);
}

/* Footer Modal */
.favorites-modal-footer {
  padding: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card-light);
}

body.light-mode .favorites-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.move-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: var(--fs-body);
  line-height: 1;
}

.move-all-btn span {
  position: relative;
}

.move-all-btn i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  position: relative;
}

.move-all-btn:hover i {
  transform: translateX(5px);
}

/* Responsiveness for favorites modal */
@media (max-width: 480px) {
  .favorites-modal-content {
    max-width: 100%;
  }
  .favorites-modal-header h2 {
    font-size: var(--fs-h3-card);
  }
  .fav-img-wrapper {
    width: 70px;
  }
  .favorite-price {
    font-size: var(--fs-small);
  }
}

/* ============================================================
   SCROLL ANIMATIONS — CERAMICA
   Centralni sistem suptilnih animacija pri skrolu.
   Animacija se aktivira JS klasom .sa-visible.
   ============================================================ */

/* 1. Početno (skriveno) stanje — postavljeno JS-om */
.sa-init {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 700ms; /* default; JS može prepisati */
}

/* 2. Tipovi animacija — početne transformacije */
.sa-init[data-animate="fade-up"]    { transform: translateY(36px); }
.sa-init[data-animate="fade-down"]  { transform: translateY(-36px); }
.sa-init[data-animate="fade-left"]  { transform: translateX(-40px); }
.sa-init[data-animate="fade-right"] { transform: translateX(40px); }
.sa-init[data-animate="scale-in"]   { transform: scale(0.88); }
.sa-init[data-animate="fade"]       { transform: none; }

/* 3. Finalno (vidljivo) stanje — !important da uvek pobedi pre-sakrivanje */
.sa-init.sa-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* 4. Poštovanje sistemske preferencije za smanjene animacije */
@media (prefers-reduced-motion: reduce) {
  .sa-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   HERO ENTRANCE ANIMACIJE — pri ucitavanju stranice
   ============================================================ */

/* PRE-SAKRIVANJE hero elemenata (pre JS-a, sprecava flash) */
.hero .hero-content,
.hero-subpage .hero-content,
.hero-split-left,
.hero-split-right,
.psh-content { opacity: 0; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(-44px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-entrance       { animation: heroFadeUp     0.85s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero-entrance-left  { animation: heroSlideRight 0.9s  cubic-bezier(0.22,1,0.36,1) 0.1s  both; }
.hero-entrance-right { animation: heroSlideLeft  0.9s  cubic-bezier(0.22,1,0.36,1) 0.25s both; }

/* ============================================================
   PRE-SAKRIVANJE SVIH ANIMIRANIH ELEMENATA
   Svaki element pocinje nevidljiv — JS ga oživljava.
   .sa-init.sa-visible { opacity: 1 !important } uvek pobedjuje ovo.
   ============================================================ */

/* Trust bar */
.trust-item,

/* About sekcija */
.about-text h2,
.about-text p,
.about-text .btn,
.about-images,

/* Story sekcije (o-nama, kontakt) */
.story-section .story-content,
.story-section .story-image,

/* Products slider (index, single-product) */
.products > h2,
.products .product-card,

/* Features */
.features .glass-card,

/* Reviews naslov */
.reviews > h2,

/* Kategorije */
.cat-card,

/* Newsletter */
.newsletter h2,
.newsletter-form,

/* Footer */
.footer-col,

/* O-nama specificno */
.stats-section,
.seo-banner-content,

/* Kontakt specificno */
.contact-form-wrapper,
.detail-item,

/* Proizvodi specificno */
.products-top-bar,
.filters-sidebar,
.products-grid-full .product-card,
.pagination-wrapper,

/* Cart specificno */
.cart-header-top .psh-eyebrow,
.cart-header-top .psh-title,
.cart-header-top .psh-desc,
.cart-header-top .trust-item,
.checkout-section,
.cart-summary-wrapper,
.cbi-item,

/* Single product specificno */
.breadcrumb,
.sp-gallery,
.sp-details,
.related-products > h2 {
  opacity: 0;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.light-mode .search-overlay {
  background: rgba(245, 245, 245, 0.96);
}

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-overlay.active .search-overlay-inner {
  transform: translateY(0);
}

.search-label {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent, #bda27e);
  margin-bottom: 20px;
  display: block;
}

.search-input-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 14px;
  gap: 16px;
}

body.light-mode .search-input-row {
  border-bottom-color: rgba(0, 0, 0, 0.18);
}

.search-input-row i {
  font-size: 1.6rem;
  color: var(--accent, #bda27e);
  flex-shrink: 0;
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  color: #fff;
  caret-color: var(--accent, #bda27e);
}

body.light-mode #search-input {
  color: #0a0a0a;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

body.light-mode #search-input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.search-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  padding: 0;
}

body.light-mode .search-close-btn {
  color: rgba(0, 0, 0, 0.45);
}

.search-close-btn:hover {
  color: var(--accent, #bda27e);
  transform: scale(1.15) rotate(90deg);
}

.search-results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 55vh;
  overflow-y: auto;
}

.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-thumb {
  background: var(--accent, #bda27e);
  border-radius: 2px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
}

body.light-mode .search-result-item {
  background: rgba(0, 0, 0, 0.03);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(6px);
}

body.light-mode .search-result-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.sri-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}

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

.sri-name {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-mode .sri-name {
  color: #0a0a0a;
}

.sri-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-mode .sri-meta {
  color: rgba(0, 0, 0, 0.4);
}

.sri-price {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent, #bda27e);
  flex-shrink: 0;
}

.search-no-results {
  text-align: center;
  padding: 40px 0 20px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

body.light-mode .search-no-results {
  color: rgba(0, 0, 0, 0.35);
}

.search-hint {
  margin-top: 18px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  letter-spacing: 1px;
}

body.light-mode .search-hint {
  color: rgba(0, 0, 0, 0.2);
}

.search-loader {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  gap: 8px;
}

.search-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #bda27e);
  animation: searchDot 1s ease-in-out infinite;
}

.search-loader span:nth-child(2) { animation-delay: 0.16s; }
.search-loader span:nth-child(3) { animation-delay: 0.32s; }

@keyframes searchDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 500px) {
  .logo {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }
  .footer-col h4 {
    font-size: 1.1rem;
  }
}

