/*
 Theme Name:   Trillionaire Official Storefront (Crimson & Ivory Edition)
 Theme URI:    https://trillionaire000.shop/
 Description:  Official Trillionaire Clothing Brand (EST. 2025) custom storefront built from the official Facebook logo & color palette (#C53336 Crimson & #FAF8F6 Warm Ivory).
 Author:       Trillionaire Studio
 Template:     astra
 Version:      3.0.0
 Text Domain:  trillionaire-child
*/

:root {
  --brand-primary: #C53336;
  --brand-primary-hover: #A82629;
  --brand-on-primary: #FFFFFF;
  --brand-background: #FAF8F6;
  --brand-foreground: #1C1917;
  --brand-muted: #68625D;
  --brand-accent: #C53336;
  --brand-on-accent: #FFFFFF;
  --brand-surface: #F1EDE8;
  --brand-card: #FFFFFF;
  --brand-border: #E5DFD7;
  --brand-radius: 8px;
  --brand-font-heading: 'Prata', Georgia, 'Times New Roman', serif;
  --brand-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html.dark body,
body.trl-dark {
  --brand-primary: #E0484B;
  --brand-primary-hover: #C53336;
  --brand-on-primary: #FFFFFF;
  --brand-background: #141212;
  --brand-foreground: #FAF8F6;
  --brand-muted: #A8A09A;
  --brand-accent: #E0484B;
  --brand-on-accent: #FFFFFF;
  --brand-surface: #1F1C1C;
  --brand-card: #1A1717;
  --brand-border: #2E2929;
}

:where(body.trl-storefront),
:where(body.trl-shell-active) {
  background-color: var(--brand-background) !important;
  color: var(--brand-foreground) !important;
  font-family: var(--brand-font-body) !important;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.trl-storefront #masthead,
body.trl-storefront #colophon,
body.trl-shell-active #masthead,
body.trl-shell-active #colophon {
  display: none !important;
}

body.trl-storefront #content,
body.trl-storefront .ast-container,
body.trl-storefront .site-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.trl-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .trl-container {
    padding: 0 14px;
  }
}

/* 1. Scrolling Marquee Top Announcement Bar */
@keyframes trl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.trl-marquee-bar {
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  overflow: hidden;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 50;
}

.trl-marquee-track {
  display: flex;
  width: max-content;
  animation: trl-marquee 30s linear infinite;
}

.trl-marquee-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .trl-marquee-track {
    animation: none;
  }
}

.trl-marquee-half {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
}

.trl-marquee-item {
  padding-right: 48px;
  white-space: nowrap;
}

/* 2. Sticky Header with Official Trillionaire Facebook Logo */
.trl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--brand-background);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.04);
}

.trl-header__inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trl-header__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.trl-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.trl-logo__img {
  height: 54px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.trl-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trl-nav-links a {
  color: var(--brand-foreground);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

.trl-nav-links a:hover {
  color: var(--brand-primary);
}

.trl-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trl-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-card);
  color: var(--brand-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.trl-icon-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.trl-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.trl-lang-pill {
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  border-radius: 9999px;
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* 3. Wide Editorial Hero Banner with Official Branding */
.trl-hero-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(125deg, #181414 0%, #24191A 55%, #4A181B 100%);
  color: #FAF8F6;
  overflow: hidden;
  border-bottom: 1px solid var(--brand-border);
}

.trl-hero-banner__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}

.trl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.trl-hero-banner__title {
  font-family: var(--brand-font-heading);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 16px;
  color: #FAF8F6;
}

.trl-hero-banner__title span {
  color: #F87171;
}

.trl-hero-banner__sub {
  font-size: 16px;
  line-height: 1.6;
  color: #E5DFD7;
  margin: 0 0 28px;
  max-width: 52ch;
}

.trl-hero-banner__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trl-btn-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary) !important;
  text-decoration: none;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--brand-primary);
  transition: background-color 0.15s ease;
}

.trl-btn-crimson:hover {
  background-color: var(--brand-primary-hover);
}

.trl-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background-color: rgba(250, 248, 246, 0.08);
  color: #FAF8F6 !important;
  text-decoration: none;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(250, 248, 246, 0.45);
  transition: background-color 0.15s ease;
}

.trl-btn-outline-light:hover {
  background-color: rgba(250, 248, 246, 0.18);
}

.trl-hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.trl-hero-card-brand {
  background-color: #FAF8F6;
  color: #1C1917;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
}

.trl-hero-card-brand img {
  width: 88%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.trl-hero-card-brand__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.trl-hero-card-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 246, 0.2);
  background-color: #262020;
}

.trl-hero-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trl-hero-card-photo__cap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background-color: rgba(20, 18, 18, 0.86);
  color: #FAF8F6;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* 4. Centered Prata Crimson Section Headings */
.trl-block {
  padding-top: 72px;
}

.trl-heading {
  text-align: center;
  font-family: var(--brand-font-heading);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--brand-primary);
  margin: 0 0 12px;
}

.trl-subheading {
  text-align: center;
  font-size: 14px;
  color: var(--brand-muted);
  margin: 0 auto 44px;
  max-width: 54ch;
}

/* 5. Category Grid (1:1 Square with bottom dark label overlay) */
.trl-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.trl-cat-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  display: block;
  text-decoration: none;
}

.trl-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.trl-cat-card:hover img {
  transform: scale(1.05);
}

.trl-cat-card__label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background-color: rgba(28, 25, 23, 0.85);
  color: #FFFFFF;
  padding: 12px 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  display: block;
  border-bottom: 2px solid var(--brand-primary);
}

.trl-view-more-wrap {
  margin-top: 40px;
  text-align: center;
}

/* 6. Product Cards (2:3 vertical portrait, Save BDT crimson pill, outlined Add to Cart button) */
.trl-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 40px;
}

.trl-prod-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trl-prod-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.trl-prod-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
}

.trl-prod-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.trl-prod-card:hover .trl-prod-card__media img {
  transform: scale(1.03);
}

.trl-save-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.trl-prod-card__title {
  margin: 18px 0 0;
  font-family: var(--brand-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--brand-foreground);
}

.trl-prod-card__prices {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trl-prod-card__price-now {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
}

.trl-prod-card__price-old {
  font-size: 13px;
  color: var(--brand-muted);
  text-decoration: line-through;
}

.trl-prod-card__action {
  margin-top: auto;
  padding-top: 14px;
}

.trl-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--brand-primary);
  background: transparent;
  color: var(--brand-primary) !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.trl-add-btn:hover {
  background-color: var(--brand-primary);
  color: var(--brand-on-primary) !important;
}

/* 7. Category Section Banner */
.trl-collection-banner {
  display: block;
  overflow: hidden;
  aspect-ratio: 1300 / 340;
  min-height: 160px;
  background-color: #1C1917;
  position: relative;
  margin-bottom: 40px;
  text-decoration: none;
  border: 1px solid var(--brand-border);
}

.trl-collection-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.65;
}

.trl-collection-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 20, 20, 0.85) 0%, rgba(197, 51, 54, 0.35) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.trl-collection-banner__tag {
  color: #FCA5A5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.trl-collection-banner__text {
  color: #FFFFFF;
  font-family: var(--brand-font-heading);
  font-size: clamp(24px, 3vw, 38px);
}

/* 8. Footer */
.trl-footer {
  margin-top: 88px;
  background-color: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
}

.trl-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0;
}

.trl-footer__col {
  padding: 4px;
}

.trl-footer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-foreground);
  margin: 0;
}

.trl-footer__divider {
  margin-top: 10px;
  height: 2px;
  width: 36px;
  background-color: var(--brand-primary);
}

.trl-footer__links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.trl-footer__links a {
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.trl-footer__links a:hover {
  color: var(--brand-primary);
}

.trl-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--brand-muted);
}

.trl-contact-icon {
  width: 34px;
  height: 34px;
  background-color: var(--brand-card);
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12px;
}

.trl-social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.trl-social-circle {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.trl-social-circle:hover {
  transform: scale(1.06);
}

.trl-footer__copyright {
  background-color: var(--brand-primary);
  color: var(--brand-on-primary);
  text-align: center;
  padding: 20px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* 9. Floating Messenger Button */
.trl-floating-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trl-chat-fab {
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  background-color: var(--brand-primary);
  color: var(--brand-on-primary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(197, 51, 54, 0.35);
  transition: transform 0.15s ease;
}

.trl-chat-fab:hover {
  transform: scale(1.06);
}

/* Responsive Collapse */
@media (max-width: 1023px) {
  .trl-hero-banner__grid {
    grid-template-columns: 1fr;
  }
  .trl-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trl-prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trl-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .trl-nav-links {
    display: none;
  }
  .trl-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trl-footer__grid {
    grid-template-columns: 1fr;
  }
}
