/**
 * T-RAYO Reusable Components Stylesheet
 */

/* Header / Navbar */
.tr-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tr-border-subtle);
  height: 66px;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.tr-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: clamp(1rem, 3vw, 2rem);
  max-width: 1440px;
  margin-inline: auto;
  gap: 0.75rem;
}

.tr-nav-left-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Universal Back Arrow Button */
.nav-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all 160ms ease;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}

.nav-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
  color: #ffffff;
}

.nav-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 160ms ease;
}

.nav-back-btn:hover svg {
  transform: translateX(-2px);
}

.tr-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff !important;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
  transition: opacity 160ms ease;
}

.tr-brand:hover .brand-text {
  opacity: 0.85;
}

.tr-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tr-nav-links::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: var(--tr-text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--tr-transition-fast);
  padding: 0.3rem 0;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.tr-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.action-btn {
  position: relative;
  font-size: 1.15rem;
  color: var(--tr-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
  text-decoration: none;
}

.action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--tr-accent-primary, #ff4757);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #09090b;
}

@media (max-width: 768px) {
  .tr-navbar {
    height: 60px;
  }
  .tr-nav-links {
    gap: 1rem;
  }
  .brand-text {
    font-size: 1.35rem;
    letter-spacing: 0.16em;
    margin-right: -0.16em;
  }
}

@media (max-width: 480px) {
  .tr-navbar {
    height: 56px;
  }
  .tr-nav-container {
    padding-inline: 0.75rem;
    gap: 0.5rem;
  }
  .brand-text {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    margin-right: -0.14em;
  }
  .tr-nav-actions {
    gap: 0.35rem;
  }
  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Product Card */
.tr-product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #13151f 0%, #0d0e15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 260ms ease, box-shadow 260ms ease;
}

.tr-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 175, 55, 0.1);
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 36%, #1c1e2b 0%, #0d0e15 100%);
  overflow: hidden;
}

.product-media .badge-gsm {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.product-media .badge-fit {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

/* ── Wishlist Heart Button (top-right corner of product image) ── */
.card-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.card-wish-btn:hover {
  transform: scale(1.12);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

.card-wish-btn.wished {
  color: #ffffff;
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
}

/* ── Add to Bag Button on Product Card ── */
.card-add-btn {
  margin-top: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(135deg, #1d202c 0%, #13151f 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 220ms cubic-bezier(.2, .8, .2, 1);
}

.card-add-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
}

.card-add-btn:active {
  transform: scale(0.98);
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}

.product-category {
  font-size: 0.65rem;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.price-original {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--tr-text-muted);
}

.price-discount-tag {
  font-size: 0.75rem;
  color: var(--tr-accent-primary);
  font-weight: 600;
}

/* Footer */
.tr-footer {
  background-color: var(--tr-bg-secondary);
  border-top: 1px solid var(--tr-border-subtle);
  margin-top: 4rem;
  padding-top: 3rem;
}

.tr-footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) {
  .tr-footer-container { grid-template-columns: 1fr; }
  .tr-nav-links { display: none; }
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--tr-text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--tr-text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--tr-text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--tr-border-subtle);
  padding-block: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--tr-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   MODERN FOOTER & HERO DISCOUNT BANNER (UNIVERSAL COMPONENT)
═══════════════════════════════════════════════════════════════ */
.footer-wrapper {
  background: #08090e;
  padding-top: 3.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.footer-discount-card {
  background: linear-gradient(135deg, #111420 0%, #0d0f17 50%, #151826 100%);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.25rem 3rem 4.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(251, 191, 36, 0.04);
  color: #ffffff;
}

.footer-discount-title {
  font-size: clamp(1.6rem, 4.2vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-discount-title .title-line {
  display: inline-block;
  width: 80px;
  height: 2px;
  background: #08090e;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-discount-desc {
  max-width: 700px;
  margin: 0 auto 2.4rem;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: #1a1b24;
  font-weight: 500;
  padding-inline: 0.5rem;
}

.footer-capsule-form {
  background: #ffffff;
  border-radius: 9999px;
  padding: 5px 6px 5px 20px;
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: box-shadow .2s;
}
.footer-capsule-form:focus-within {
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.footer-capsule-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  color: #111116;
  font-family: inherit;
  min-width: 0;
}
.footer-capsule-input::placeholder {
  color: #777;
}

.footer-capsule-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-capsule-btn:hover {
  background: #222;
  transform: scale(1.02);
}

.footer-grid-section {
  max-width: 1140px;
  margin: 4.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.1fr 1.2fr;
  gap: 3rem;
  color: #ffffff;
}

/* Tablet */
@media (max-width: 960px) {
  .footer-grid-section {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3.5rem;
  }
}

/* Large Mobile */
@media (max-width: 640px) {
  .footer-wrapper {
    padding-top: 2.5rem;
  }
  .footer-discount-card {
    padding: 3rem 1.5rem 3.5rem;
    border-radius: 24px;
    margin-inline: 0.75rem;
  }
  .footer-discount-title {
    gap: 10px;
    margin-bottom: 1rem;
  }
  .footer-discount-title .title-line {
    width: 50px;
  }
  .footer-grid-section {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-inline: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .footer-discount-card {
    padding: 2.5rem 1.25rem 3rem;
    border-radius: 20px;
    margin-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .footer-discount-title .title-line {
    display: none;
  }
  .footer-capsule-form {
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
    gap: 6px;
  }
  .footer-capsule-input {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0.5rem;
  }
  .footer-capsule-btn {
    width: 100%;
    border-radius: 12px;
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  .footer-grid-section {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-inline: 1rem;
  }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .footer-grid-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-col h3, .footer-col h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.15rem;
  letter-spacing: -0.2px;
}

.footer-col p {
  font-size: 0.84rem;
  color: #9ca3af;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.footer-outline-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.55rem 1.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.footer-outline-btn:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.12);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-size: 0.86rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-app-badges {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 1px solid #2a2b38;
  border-radius: 10px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  color: #ffffff;
  transition: all .2s;
  width: fit-content;
}
.app-badge-btn:hover {
  border-color: #555;
  background: #111;
}
.app-badge-text-small {
  font-size: 0.62rem;
  color: #9ca3af;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.app-badge-text-bold {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .footer-bottom-bar {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-bottom: 3.5rem;
  }
  .footer-bottom-bar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-bottom-bar > div:first-child a {
    margin-left: 0 !important;
  }
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all .2s;
  font-size: 0.95rem;
}
.footer-social-icon:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

