/* ============================================
   BuyBuyKart — Common / Shared Styles
   Shared across ALL pages (header, footer, 
   buttons, utilities, typography, reset)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --paper: #FBF7F0;
  --paper-soft: #F3EEE3;
  --ink: #14162E;
  --ink-70: #4A4C63;
  --ink-40: #8E90A6;
  --coral: #FF6355;
  --coral-dark: #E5493C;
  --coral-light: #FFF0EE;
  --marigold: #FFB238;
  --teal: #1E9E93;
  --stitch: #C9C2B4;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(20, 22, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 22, 46, 0.12);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
.display {
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'Space Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 700px) {
  .wrap {
    padding: 0 16px;
  }
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ---------- Buttons ---------- */
.sign-in-vp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-in-vp:hover {
  background: linear-gradient(135deg, var(--coral-dark), #D03D30);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 99, 85, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-coral:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 99, 85, 0.4);
}

.btn-ink {
  background: linear-gradient(135deg, var(--ink), #2A2D52);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-ink:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(20, 22, 46, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
}

/* ---------- Section Utility ---------- */
.section {
  padding: 70px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.section-head p {
  color: var(--ink-70);
  font-size: 15px;
  max-width: 420px;
}

/* ---------- Header ---------- */
header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.top-nav-vp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 24px;
}

.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 70px !important;
  width: auto;
  object-fit: contain;
}

.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

.search-bar-vp {
  flex-grow: 1;
  max-width: 600px;
  position: relative;
  display: flex;
}

.search-bar-vp input {
  width: 100%;
  padding: 8px 18px;
  border: 1.5px solid var(--stitch);
  border-right: none;
  border-radius: 999px 0 0 999px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  background: var(--paper-soft);
}

.search-bar-vp input:focus {
  border-color: var(--ink-40);
  background: #fff;
}

.search-btn-vp {
  background: var(--paper-soft);
  border: 1.5px solid var(--stitch);
  border-left: none;
  border-radius: 0 999px 999px 0;
  padding: 0 18px 0 12px;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.search-bar-vp input:focus+.search-btn-vp {
  background: #fff;
  border-color: var(--ink-40);
}

.actions-vp {
  display: flex;
  align-items: center;
  gap: 24px;
}

.action-item-vp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: opacity var(--transition);
}

.action-item-vp:hover {
  opacity: 0.8;
}

.action-text-vp {
  display: flex;
  flex-direction: column;
}

.action-text-vp .ac-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
}

.action-text-vp .ac-sub {
  font-size: 12px;
  color: var(--ink-70);
  line-height: 1.2;
}

.cart-action-vp {
  position: relative;
}

.cart-badge-vp {
  position: absolute;
  top: -8px;
  left: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.cat-scroll-arrow {
  display: none;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 2;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  height: 100%;
  position: absolute;
  top: 0;
}

.cat-scroll-arrow.left-arrow {
  left: 0;
  box-shadow: 5px 0 10px -5px rgba(0,0,0,0.1);
}

.cat-scroll-arrow.right-arrow {
  right: 0;
  box-shadow: -5px 0 10px -5px rgba(0,0,0,0.1);
}

.cat-links-vp {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 8px 5%;
  border-top: 1px solid var(--paper-soft);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

@media (min-width: 900px) {
  .cat-links-vp {
    justify-content: space-between;
    gap: 0;
  }
  .cat-scroll-arrow {
    display: none !important;
  }
}

.cat-links-vp::-webkit-scrollbar {
  display: none;
}

.cat-links-vp a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  padding: 5px 10px;
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}

.cat-links-vp a:hover,
.cat-links-vp a.active {
  color: var(--coral);
}

.cat-links-vp a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--coral);
  transition: width var(--transition);
}

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

.promo-bar-vp {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 5px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.copy-icon-vp {
  display: inline-flex;
  margin-left: 6px;
  cursor: pointer;
  font-size: 15px;
}

@media (max-width: 1050px) {
  .actions-vp .action-text-vp {
    display: none;
  }
}

@media (max-width: 900px) {
  .top-nav-vp {
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 10px;
  }

  .search-bar-vp {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
  }
}

/* ---------- Mobile Menu Styles ---------- */
.hamburger-btn-vp {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: none;
  color: var(--ink);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-vp {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 10001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-vp.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--paper-soft);
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu-body a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu-body hr {
  border: none;
  border-top: 1px solid var(--paper-soft);
  margin: 5px 0;
}

@media (max-width: 900px) {
  .hamburger-btn-vp {
    display: block;
  }
  
  .actions-vp > a:not(.cart-action-vp),
  .user-dropdown-vp {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* ---------- Footer ---------- */
footer {
  background: #111111;
  color: #ffffff;
  padding: 80px 0 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .logo {
  color: #ffffff !important;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.foot-col h5 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: #ffffff;
  position: relative;
}

.foot-col h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: #ff5e5e;
  /* Brand coral accent */
}

.foot-col p {
  color: #a0a0a0 !important;
  line-height: 1.6;
}

.foot-col a {
  display: block;
  font-size: 14.5px;
  color: #a0a0a0;
  margin-bottom: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.foot-col a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: #888888;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 800px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0 !important;
  transform: translateY(50px) !important;
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.reveal.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ---------- Favorites Button ---------- */
.fav-btn,
.card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink-40);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  z-index: 5;
  border: none;
  padding: 0;
  line-height: 1;
}

.fav-btn:hover,
.card-wishlist:hover {
  transform: scale(1.1);
  color: var(--coral) !important;
}

.fav-btn.liked,
.card-wishlist.liked {
  color: var(--coral) !important;
  background: #FFEBE9 !important;
}

/* ---------- User Avatar Dropdown ---------- */
.user-dropdown-vp {
  position: relative;
  display: inline-block;
}

.user-avatar-vp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  box-shadow: 0 4px 10px rgba(30, 158, 147, 0.2);
  transition: transform 0.2s;
}

.user-avatar-vp:hover {
  transform: scale(1.05);
}

.dropdown-menu-vp {
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  min-width: 180px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown-vp:hover .dropdown-menu-vp {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-vp a {
  padding: 12px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.dropdown-menu-vp a:hover {
  background: var(--paper-soft);
  color: var(--teal);
}

.dropdown-menu-vp hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0;
}

/* ---------- Footer Social Icons ---------- */
.social-icons a:hover {
  color: var(--teal) !important;
  transform: translateY(-2px);
}

.social-icons a {
  display: inline-flex !important;
  margin-bottom: 0 !important;
}

/* ---------- New Header Styles ---------- */
.top-bar-vp {
  background: #000000;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5%;
  font-size: 13px;
  font-weight: 500;
}
.tb-center {
  display: flex;
  gap: 20px;
}
.tb-left, .tb-center span, .tb-right {
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .top-bar-vp {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
.search-divider {
  width: 1px;
  background: var(--stitch);
  margin: 8px 0;
}
.search-select-vp {
  border: 1.5px solid var(--stitch);
  border-left: none;
  border-right: none;
  background: var(--paper-soft);
  padding: 0 10px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-70);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.search-select-vp:focus {
  background: #fff;
}
.search-btn-vp {
  background: #ff8c00 !important;
  color: #fff !important;
  border: none !important;
  padding: 0 20px !important;
  border-radius: 0 999px 999px 0 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-bar-vp {
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.search-bar-vp input {
  border-right: none !important;
}