/* Tohfa Hub - Global Stylesheet. Palette: White, Gold, Soft Pink, Dark Gray */

:root {
  --white: #ffffff;
  --gold: #c9a227;
  --gold-light: #e8cf7d;
  --gold-dark: #a9861a;
  --pink: #f7e3e5;
  --pink-deep: #e9c3c8;
  --gray: #2f3237;
  --gray-soft: #6b7078;
  --cream: #fdfbf7;
  --radius: 18px;
  --shadow-soft: 0 10px 30px -14px rgba(47, 50, 55, 0.25);
  --shadow-lux: 0 26px 60px -28px rgba(47, 50, 55, 0.4);
  --gradient-gold: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .3px; }
p { color: var(--gray-soft); line-height: 1.75; }
a { text-decoration: none !important; transition: var(--transition); }
img { max-width: 100%; }
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-pink { background: linear-gradient(160deg, #fffdfb, var(--pink)); }

.text-gold { color: var(--gold) !important; }
.text-gray-soft { color: var(--gray-soft) !important; }
.bg-ink { background: var(--gray) !important; color: #fff; }
.gold-line { width: 70px; height: 3px; background: var(--gradient-gold); border-radius: 3px; margin: 14px auto 22px; }
.gold-line.start { margin-left: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: .72rem; font-weight: 600; color: var(--gold); }
.title { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* Buttons */
.btn { border-radius: 50px; font-weight: 500; padding: .7rem 1.7rem; transition: var(--transition); }
.btn-gold { background: var(--gradient-gold); color: #fff; border: none; box-shadow: var(--shadow-soft); }
.btn-gold:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(201, 162, 39, .85); }
.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.btn-ink { background: var(--gray); color: #fff; border: none; }
.btn-ink:hover { background: #1e2024; color: #fff; transform: translateY(-3px); }

/* Page loader */
#pageLoader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: var(--white); transition: opacity .5s ease, visibility .5s ease;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 62px; height: 62px; border-radius: 50%;
  border: 3px solid var(--pink); border-top-color: var(--gold);
  animation: spin .9s linear infinite; margin: 0 auto;
}
.loader-text { margin-top: 16px; letter-spacing: 5px; font-size: .7rem; text-transform: uppercase; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.topbar { background: var(--gray); color: #e9e9e9; font-size: .8rem; padding: 8px 0; }
.topbar a { color: var(--gold-light); }
.site-header {
  position: sticky; top: 0; z-index: 1040;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, .18);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-soft); background: rgba(255, 255, 255, .95); }
.brand { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; font-weight: 700; color: var(--gray); line-height: 1.1; }
.brand span { color: var(--gold); }
.brand small { display: block; font-family: "Poppins", sans-serif; font-size: .58rem; letter-spacing: 4px; color: var(--gray-soft); text-transform: uppercase; }
.navbar-nav .nav-link { color: var(--gray); font-size: .93rem; font-weight: 500; margin: 0 .55rem; position: relative; }
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px;
  background: var(--gradient-gold); transition: width .3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gold-dark); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201,162,39,.28);
  display: inline-grid; place-items: center; color: var(--gray); background: #fff; position: relative;
}
.icon-btn:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.icon-btn .badge-count {
  position: absolute; top: -5px; right: -5px; background: var(--gray); color: #fff;
  font-size: .62rem; min-width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
}
.mega .dropdown-menu {
  border: none; border-radius: var(--radius); box-shadow: var(--shadow-lux); padding: 22px;
  min-width: 520px; background: rgba(255,255,255,.97);
}
.mega .dropdown-item { border-radius: 10px; font-size: .9rem; padding: .5rem .7rem; color: var(--gray); }
.mega .dropdown-item:hover { background: var(--pink); color: var(--gold-dark); }
@media (max-width: 991.98px) { .mega .dropdown-menu { min-width: 100%; box-shadow: none; } }

/* Hero and page banners */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: url("../images/hero-gifts.jpg") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.94) 30%, rgba(255,255,255,.55) 62%, rgba(255,255,255,.15)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.08; }
.page-hero {
  position: relative; padding: 90px 0 70px; text-align: center;
  background: linear-gradient(160deg, #fffdfb, var(--pink));
}
.breadcrumb-lux { justify-content: center; font-size: .85rem; }
.breadcrumb-lux a { color: var(--gold-dark); }
.breadcrumb-lux .breadcrumb-item.active { color: var(--gray-soft); }

/* Glassmorphism cards */
.glass {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.glass:hover { transform: translateY(-8px); box-shadow: var(--shadow-lux); border-color: rgba(201,162,39,.35); }

.category-card { padding: 26px 16px; text-align: center; display: block; color: var(--gray); height: 100%; }
.category-card i { font-size: 1.9rem; color: var(--gold); display: block; margin-bottom: 12px; transition: var(--transition); }
.category-card:hover i { transform: scale(1.18) rotate(-6deg); }
.category-card h3 { font-size: 1.08rem; margin: 0; }
.category-card small { color: var(--gray-soft); }

/* Product cards */
.product-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; background: #fff; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--cream); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.product-card:hover .product-media img { transform: scale(1.09); }
.badge-discount {
  position: absolute; top: 12px; left: 12px; background: var(--gradient-gold); color: #fff;
  font-size: .72rem; padding: .32rem .7rem; border-radius: 50px; letter-spacing: .5px;
}
.badge-soft { position: absolute; top: 12px; right: 12px; background: var(--pink); color: var(--gray); font-size: .7rem; padding: .3rem .65rem; border-radius: 50px; }
.wish-btn {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: var(--gray); display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); transition: var(--transition);
}
.product-card:hover .wish-btn { opacity: 1; transform: translateY(0); }
.wish-btn.active, .wish-btn:hover { background: var(--gold); color: #fff; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.12rem; margin: 0; }
.product-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.stars { color: var(--gold); font-size: .8rem; }
.price { font-weight: 600; font-size: 1.05rem; color: var(--gray); }
.price del { color: var(--gray-soft); font-weight: 400; font-size: .88rem; margin-left: 6px; }

/* Features, process, stats */
.feature-card { padding: 30px 22px; text-align: center; height: 100%; }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--gradient-gold);
  box-shadow: 0 14px 26px -14px rgba(201,162,39,.9);
}
.step-card { padding: 34px 22px; text-align: center; height: 100%; }
.step-num {
  font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--gold);
  line-height: 1; display: block; margin-bottom: 8px;
}
.counter { font-family: "Cormorant Garamond", serif; font-size: 2.8rem; color: var(--gold); font-weight: 700; }

/* Testimonials */
.testimonial { padding: 28px; height: 100%; }
.testimonial .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; color: var(--gold-dark); font-weight: 600; }

/* Offer banner and CTA */
.offer-banner {
  border-radius: 26px; padding: 54px 34px; color: #fff; text-align: center;
  background: linear-gradient(120deg, #2f3237, #43474e);
  position: relative; overflow: hidden;
}
.offer-banner::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.55), transparent 70%);
  top: -120px; right: -80px;
}
.offer-banner h2, .offer-banner p { color: #fff; position: relative; z-index: 2; }

/* Newsletter, instagram, brands */
.newsletter-input { border-radius: 50px; padding: .85rem 1.3rem; border: 1px solid var(--pink-deep); }
.newsletter-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.12); }
.insta-item { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 1/1; display: block; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.insta-item::after {
  content: "\F437"; font-family: "bootstrap-icons"; position: absolute; inset: 0;
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
  background: rgba(47,50,55,.45); opacity: 0; transition: var(--transition);
}
.insta-item:hover::after { opacity: 1; }
.insta-item:hover img { transform: scale(1.1); }
.brand-logo { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; color: var(--gray-soft); opacity: .6; transition: var(--transition); text-align: center; }
.brand-logo:hover { opacity: 1; color: var(--gold); }

/* Footer */
.site-footer { background: var(--gray); color: #cfd2d6; padding: 70px 0 0; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.site-footer a { color: #cfd2d6; font-size: .92rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { color: #a9adb3; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 20px 0; font-size: .85rem; }

/* Back to top, filters, pagination */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 1050; width: 48px; height: 48px;
  border-radius: 50%; border: none; background: var(--gradient-gold); color: #fff;
  box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transition: var(--transition);
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); }
.filter-panel { padding: 24px; position: sticky; top: 110px; }
.filter-panel h5 { font-family: "Poppins", sans-serif; font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.page-link { color: var(--gray); border-radius: 50% !important; margin: 0 4px; border: 1px solid var(--pink-deep); }
.page-item.active .page-link { background: var(--gradient-gold); border-color: transparent; color: #fff; }

/* Product details */
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-main.zoom img { transform: scale(1.8); }
.thumb { border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; aspect-ratio: 1/1; }
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--pink-deep); border-radius: 50px; overflow: hidden; }
.qty-box button { border: none; background: transparent; width: 42px; height: 44px; color: var(--gray); }
.qty-box button:hover { color: var(--gold); }
.qty-box input { width: 48px; border: none; text-align: center; }
.qty-box input:focus { outline: none; }
.nav-tabs .nav-link { color: var(--gray-soft); border: none; border-bottom: 2px solid transparent; font-size: .95rem; }
.nav-tabs .nav-link.active { color: var(--gold-dark); border-bottom-color: var(--gold); background: transparent; }

/* FAQ accordion */
.accordion-item { border: none; margin-bottom: 14px; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow-soft); }
.accordion-button { font-weight: 500; background: #fff; }
.accordion-button:not(.collapsed) { background: var(--pink); color: var(--gold-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* Legal pages */
.legal h2 { font-size: 1.5rem; margin-top: 34px; }
.legal ul { color: var(--gray-soft); line-height: 1.9; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile first tweaks */
@media (max-width: 767.98px) {
  .section { padding: 56px 0; }
  .hero { min-height: 84vh; text-align: center; }
  .hero::before { background: rgba(255,255,255,.86); }
  .gold-line.start { margin-left: auto; margin-right: auto; }
}