/* =====================================================================
   Apparel Flexthread — Global Design System
   Premium fashion/textile brand styling on top of Bootstrap 5.
   ===================================================================== */

:root {
  --color-primary: #1b1b1b;      /* near-black — text, dark surfaces   */
  --color-secondary: #c59d5f;    /* gold — accents, CTAs               */
  --color-bg: #ffffff;
  --color-light: #f5f5f5;
  --color-border: #e6e2da;
  --color-muted: #6f6f6f;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --shadow-soft: 0 10px 30px rgba(27, 27, 27, 0.08);
  --shadow-strong: 0 20px 45px rgba(27, 27, 27, 0.14);

  --transition-base: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   Base
   ------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-bg);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; transition: var(--transition-base); }

.text-gold { color: var(--color-secondary) !important; }
.bg-gold { background-color: var(--color-secondary) !important; }
.bg-light-grey { background-color: var(--color-light) !important; }
.bg-dark-premium { background-color: var(--color-primary) !important; }

.section-pad { padding: 80px 0; }
@media (max-width: 767px) { .section-pad { padding: 50px 0; } }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

.divider-gold {
  width: 70px;
  height: 3px;
  background: var(--color-secondary);
  margin: 18px auto;
  border-radius: 3px;
}

/* ---------------------------------------------------------------------
   Buttons — Black + Gold system
   ------------------------------------------------------------------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0.7rem 1.9rem;
  transition: var(--transition-base);
}

.btn-dark-gold {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.btn-dark-gold:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.btn-outline-gold:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.btn-gold:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-sm-pill { padding: 0.4rem 1.1rem; font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   Top utility bar
   ------------------------------------------------------------------- */
.topbar {
  background-color: var(--color-primary);
  color: #e9e4d8;
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar a { color: #e9e4d8; }
.topbar a:hover { color: var(--color-secondary); }

/* ---------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------- */
.navbar-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--color-primary) !important;
}
.navbar-brand-text span { color: var(--color-secondary); }

.main-navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 18px rgba(0,0,0,0.05);
  padding-top: 14px;
  padding-bottom: 14px;
  transition: var(--transition-base);
}
.main-navbar.navbar-scrolled { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 4px 22px rgba(0,0,0,0.09); }

.main-navbar .nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  color: var(--color-primary);
  margin: 0 10px;
  position: relative;
  padding: 6px 0 !important;
}
.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-secondary);
  transition: var(--transition-base);
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { width: 100%; }
.main-navbar .nav-link.active { color: var(--color-secondary); }

.nav-icon-btn {
  position: relative;
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-left: 14px;
}
.nav-icon-btn .badge-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------------
   Hero v2 — photographic split banners (image right, copy left)
   ------------------------------------------------------------------- */
.hero-v2 { position: relative; overflow: hidden; }

.hero-v2-bg {
  width: 100%;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  .hero-v2-bg { aspect-ratio: 4 / 3; }
}

.hero-v2-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-v2-content .hero-v2-inner {
  max-width: 560px;
  padding: 0 6%;
  animation: fadeUp 0.9s ease both;
}
@media (max-width: 767px) {
  .hero-v2-content { position: static; padding: 36px 24px 40px; }
  .hero-v2-content .hero-v2-inner { max-width: none; padding: 0; }
}

.hero-v2-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.hero-v2-heading {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-v2-heading .line-b { display: block; }
.hero-v2-sub {
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.hero-v2-rule {
  width: 60px; height: 3px; border-radius: 3px;
  background: var(--color-secondary);
  margin-bottom: 20px;
}

.hero-v2-features {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 22px 0 28px;
}
.hero-v2-features .feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-v2-features .feature-item i { font-size: 1.15rem; }

.hero-v2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
}
.hero-v2-stats .stat-item { text-align: left; }
.hero-v2-stats .stat-icon {
  width: 44px; height: 44px;
  border: 1.5px solid var(--color-secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.hero-v2-stats .stat-value { font-weight: 700; font-size: 1.05rem; display: block; }
.hero-v2-stats .stat-label { font-size: 0.78rem; opacity: 0.85; }

.btn-outline-gold-dark {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.9rem;
  transition: var(--transition-base);
}
.btn-outline-gold-dark:hover { background: var(--color-secondary); color: var(--color-primary); transform: translateY(-2px); }

/* Theme: dark background photo (slides 1 & 3) */
.hero-theme-dark .hero-v2-eyebrow { color: var(--color-secondary); }
.hero-theme-dark .hero-v2-heading, .hero-theme-dark .hero-v2-heading .line-a { color: #fff; }
.hero-theme-dark .hero-v2-heading .line-b { color: var(--color-secondary); }
.hero-theme-dark .hero-v2-sub { color: #e9e4d8; }
.hero-theme-dark .hero-v2-features .feature-item { color: #fff; }
.hero-theme-dark .hero-v2-features .feature-item i { color: var(--color-secondary); }
.hero-theme-dark .hero-v2-stats .stat-value, .hero-theme-dark .hero-v2-stats .stat-label { color: #f0ede6; }
@media (max-width: 767px) { .hero-theme-dark .hero-v2-content { background: var(--color-primary); } }

/* Theme: light background photo (slide 2) */
.hero-theme-light .hero-v2-eyebrow { color: #555; }
.hero-theme-light .hero-v2-heading, .hero-theme-light .hero-v2-heading .line-a { color: var(--color-primary); }
.hero-theme-light .hero-v2-heading .line-b { color: var(--color-secondary); }
.hero-theme-light .hero-v2-sub { color: #555; }
.hero-theme-light .hero-v2-features .feature-item { color: var(--color-primary); }
.hero-theme-light .hero-v2-features .feature-item i { color: var(--color-primary); }
@media (max-width: 767px) { .hero-theme-light .hero-v2-content { background: var(--color-light); } }

/* ---------------------------------------------------------------------
   Hero / Banner (legacy DB-driven carousel — kept for other pages/fallback)
   ------------------------------------------------------------------- */
.hero-slide {
  position: relative;
  height: 88vh;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27,27,27,0.72) 0%, rgba(27,27,27,0.35) 60%, rgba(27,27,27,0.15) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 680px;
  animation: fadeUp 0.9s ease both;
}
.hero-slide p {
  color: #f0ede6;
  font-size: 1.15rem;
  max-width: 520px;
  animation: fadeUp 1.1s ease both;
}
.hero-slide .hero-cta { animation: fadeUp 1.3s ease both; }

.carousel-indicators [data-bs-target] {
  background-color: var(--color-secondary);
  width: 30px; height: 3px;
}

/* ---------------------------------------------------------------------
   Cards — products, categories, features
   ------------------------------------------------------------------- */
.card-elevated {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  overflow: hidden;
}
.card-elevated:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.category-card { position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; }
.category-card img { height: 340px; object-fit: cover; width: 100%; transition: var(--transition-base); }
.category-card:hover img { transform: scale(1.08); }
.category-card .category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,27,0) 40%, rgba(27,27,27,0.85) 100%);
  display: flex; align-items: flex-end; padding: 22px;
}
.category-card .category-overlay h5 { color: #fff; margin-bottom: 2px; }
.category-card .category-overlay span { color: var(--color-secondary); font-size: 0.85rem; }

.product-card { position: relative; }
.product-card .product-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-light);
  aspect-ratio: 3/4;
}
.product-card .product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-media img { transform: scale(1.07); }

.badge-discount, .badge-stock {
  position: absolute; top: 12px; left: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.badge-stock.out { background: #b23b3b; }
.badge-discount { background: var(--color-secondary); color: var(--color-primary); }

.product-quick-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px);
  transition: var(--transition-base);
  z-index: 2;
}
.product-card:hover .product-quick-actions { opacity: 1; transform: translateX(0); }
.product-quick-actions .qa-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  color: var(--color-primary);
  border: none;
}
.product-quick-actions .qa-btn:hover { background: var(--color-secondary); }

.product-card .product-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  margin: 14px 0 4px;
}
.product-card .product-category { color: var(--color-muted); font-size: 0.8rem; }
.product-card .product-price .old-price { text-decoration: line-through; color: var(--color-muted); font-size: 0.85rem; margin-right: 8px; }
.product-card .product-price .new-price { color: var(--color-primary); font-weight: 700; }

.rating-stars { color: var(--color-secondary); font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   Feature / Why-choose-us
   ------------------------------------------------------------------- */
.feature-icon-box {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--color-secondary);
  margin-bottom: 18px;
  transition: var(--transition-base);
}
.feature-card:hover .feature-icon-box {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: rotate(-8deg) scale(1.05);
}

/* ---------------------------------------------------------------------
   Process steps (Manufacturing)
   ------------------------------------------------------------------- */
.process-step {
  text-align: center;
  position: relative;
  padding: 0 10px;
}
.process-step .step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: #fff;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px; left: 60%;
  width: 100%;
  height: 1px;
  border-top: 1px dashed var(--color-border);
}
@media (max-width: 991px) { .process-step:not(:last-child)::after { display: none; } }

/* ---------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------- */
.testimonial-card {
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
}
.testimonial-card .quote-icon { color: var(--color-secondary); font-size: 2rem; }
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
}

/* ---------------------------------------------------------------------
   Instagram / gallery grid
   ------------------------------------------------------------------- */
.insta-tile { position: relative; overflow: hidden; aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-base); }
.insta-tile:hover img { transform: scale(1.1); }
.insta-tile .insta-overlay {
  position: absolute; inset: 0; background: rgba(27,27,27,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition-base); color: #fff; font-size: 1.4rem;
}
.insta-tile:hover .insta-overlay { opacity: 1; }

/* ---------------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------------- */
.newsletter-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
  overflow: hidden;
}
.newsletter-band h3 { color: #fff; }
.newsletter-band .form-control {
  border-radius: 999px 0 0 999px;
  border: none;
  padding: 0.8rem 1.4rem;
}
.newsletter-band .btn {
  border-radius: 0 999px 999px 0;
}

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: #cfcabd;
}
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: #cfcabd; }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer .footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px;
}
.site-footer .footer-social a:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; padding: 18px 0; }

/* ---------------------------------------------------------------------
   Page header banner (inner pages)
   ------------------------------------------------------------------- */
.page-header-banner {
  background:
    radial-gradient(circle at 20% 20%, rgba(197,157,95,0.18), transparent 45%),
    linear-gradient(135deg, #1b1b1b 0%, #2a2a2a 100%);
  padding: 70px 0;
  color: #fff;
}
.page-header-banner h1 { color: #fff; margin-bottom: 6px; }
.page-header-banner .breadcrumb { justify-content: center; margin-bottom: 0; background: transparent; }
.page-header-banner .breadcrumb a { color: #d8d3c6; }
.page-header-banner .breadcrumb .active { color: var(--color-secondary); }

/* ---------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(197, 157, 95, 0.2);
}
.form-label { font-weight: 600; font-size: 0.88rem; }

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  padding: 44px;
}

/* ---------------------------------------------------------------------
   Filters / shop sidebar
   ------------------------------------------------------------------- */
.filter-box { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; margin-bottom: 22px; }
.filter-box h6 { text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; margin-bottom: 16px; }
.filter-box .form-check { margin-bottom: 8px; }

.view-toggle .btn { border-radius: var(--radius-sm); }
.view-toggle .btn.active { background: var(--color-primary); color: #fff; }

/* ---------------------------------------------------------------------
   Cart / Checkout
   ------------------------------------------------------------------- */
.cart-line-item { border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.qty-stepper button { border: none; background: #fff; width: 34px; height: 34px; }
.qty-stepper button:hover { background: var(--color-light); }
.qty-stepper input { width: 40px; border: none; text-align: center; }

.order-summary-box {
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.94rem; }
.summary-row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--color-border); margin-top: 10px; padding-top: 16px; }

.payment-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--transition-base);
}
.payment-option.selected { border-color: var(--color-secondary); background: #fdf9f2; }
.payment-option.disabled { opacity: 0.6; }

/* ---------------------------------------------------------------------
   Steps indicator (checkout)
   ------------------------------------------------------------------- */
.checkout-steps { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; }
.checkout-steps .step { text-align: center; color: var(--color-muted); font-size: 0.85rem; }
.checkout-steps .step .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px; font-weight: 700;
}
.checkout-steps .step.active .num { background: var(--color-primary); color: #fff; }
.checkout-steps .step.active { color: var(--color-primary); font-weight: 600; }

/* ---------------------------------------------------------------------
   Misc utility
   ------------------------------------------------------------------- */
.rounded-xl { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.object-fit-cover { object-fit: cover; }
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition-base);
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-secondary); color: var(--color-primary); }

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.7s ease both; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
