/*
Theme Name: Tepito Boys
Theme URI: https://tepitoboys.com
Description: Black and gold gothic streetwear storefront for Tepito Boys. Child theme of Storefront — parent updates never overwrite these files. Sticky header, hover zoom, lightbox and scroll animations. English, Spanish and Japanese included. Everything is editable in Appearance > Customize > Tepito Boys.
Author: RK CARE Project Management
Version: 2.0.0
Template: storefront
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tepito-boys
Tags: e-commerce, dark, two-columns, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --tb-black: #000000;
  --tb-panel: #000000;
  --tb-gold: #d4af37;
  --tb-gold-light: #f4e5a1;
  --tb-gold-dark: #9c7a1e;
  --tb-cream: #f5f0e1;
  --tb-muted: #a29a80;
  --tb-line: rgba(212, 175, 55, 0.25);
  --tb-line-strong: rgba(212, 175, 55, 0.55);
  --tb-font-gothic: 'UnifrakturMaguntia', 'Old English Text MT', serif;
  --tb-font-display: 'Cinzel', Georgia, serif;
  --tb-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   2. Global reset over Storefront
   ========================================================================== */
body,
body.woocommerce,
.site,
#page,
.site-content,
.site-header,
.site-footer,
.storefront-breadcrumb,
.site-content .col-full {
  background-color: var(--tb-black);
  color: var(--tb-cream);
}

body {
  font-family: var(--tb-font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title {
  font-family: var(--tb-font-display);
  color: var(--tb-cream);
  font-weight: 600;
  letter-spacing: 0.4px;
}

a { color: var(--tb-gold); text-decoration: none; }
a:hover, a:focus { color: var(--tb-gold-light); }

hr, .site-content hr { background-color: var(--tb-line); border-color: var(--tb-line); }

::selection { background: var(--tb-gold); color: #000; }

/* Visible keyboard focus — accessibility, not decoration */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tb-btn:focus-visible {
  outline: 2px solid var(--tb-gold);
  outline-offset: 2px;
}

.tb-screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==========================================================================
   3. Utility type
   ========================================================================== */
.tb-gothic { font-family: var(--tb-font-gothic); }
.tb-display { font-family: var(--tb-font-display); }

.tb-gold-text {
  background: linear-gradient(180deg, #f9e79f 0%, #d4af37 45%, #9c7a1e 55%, #d4af37 75%, #f4e5a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.tb-btn,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
button, input[type="submit"], .button {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--tb-gold);
  background: transparent;
  color: var(--tb-gold);
  font-family: var(--tb-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.4;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  text-shadow: none;
}

.tb-btn:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
button:hover, input[type="submit"]:hover, .button:hover {
  background: var(--tb-gold);
  color: #000;
  border-color: var(--tb-gold);
}

.tb-btn--solid,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--tb-gold);
  color: #000;
  border-color: var(--tb-gold);
}

.tb-btn--solid:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: transparent;
  color: var(--tb-gold);
}

/* ==========================================================================
   5. Announcement bar
   ========================================================================== */
.tb-announcement {
  background: var(--tb-black);
  border-bottom: 1px solid var(--tb-line);
  color: var(--tb-gold);
  text-align: center;
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--tb-line);
  padding-top: 18px;
  padding-bottom: 18px;
  background-color: var(--tb-black) !important;
}

.site-header .site-branding img,
.custom-logo-link img {
  max-height: 46px;
  width: auto;
}

.site-header .site-title a,
.site-header .site-description {
  color: var(--tb-gold);
  font-family: var(--tb-font-gothic);
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  color: var(--tb-cream);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 0;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover {
  color: var(--tb-gold);
}

.main-navigation ul.menu ul,
.main-navigation ul.nav-menu ul {
  background: var(--tb-black);
  border: 1px solid var(--tb-line);
}

.site-header-cart .cart-contents,
.site-header .widget_shopping_cart { color: var(--tb-cream); }
.site-header-cart .cart-contents:hover { color: var(--tb-gold); }
.site-header-cart .count { color: var(--tb-gold); }

.site-header .site-search .widget_product_search input[type="search"] {
  background: #000;
  border: 1px solid var(--tb-line);
  color: var(--tb-cream);
}

/* ==========================================================================
   7. Section shell
   ========================================================================== */
.tb-section { padding: 100px 0; }
.tb-section--tight { padding-top: 0; }
.tb-section--flush { padding: 0; }

.tb-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.tb-section-head { text-align: center; margin-bottom: 58px; }

.tb-section-head .tb-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--tb-gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.tb-section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.15;
  margin: 0;
}

.tb-divider {
  width: 70px;
  height: 1px;
  background: var(--tb-gold);
  margin: 22px auto 0;
  position: relative;
}

.tb-divider::before {
  content: '\2726';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--tb-black);
  padding: 0 10px;
  color: var(--tb-gold);
  font-size: 12px;
  line-height: 1;
}

/* ==========================================================================
   8. Hero
   ========================================================================== */
.tb-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--tb-black);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--tb-line);
  padding: 90px 24px;
  overflow: hidden;
}

.tb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(212,175,55,0.07) 0%, rgba(0,0,0,0) 62%);
  pointer-events: none;
}

.tb-hero__inner { position: relative; z-index: 2; max-width: 780px; }

.tb-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--tb-gold);
  font-weight: 600;
  margin-bottom: 24px;
}

.tb-hero__logo {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto 26px;
}

.tb-hero h1 { margin: 0 0 26px; font-size: clamp(46px, 8vw, 96px); line-height: 1; }

.tb-hero__text {
  max-width: 540px;
  margin: 0 auto 34px;
  color: var(--tb-muted);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
}

/* ==========================================================================
   9. Category cards
   ========================================================================== */
.tb-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.tb-cat {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  border: 1px solid var(--tb-line);
  background: var(--tb-black);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: border-color .35s ease;
}

.tb-cat:hover { border-color: var(--tb-gold); }

.tb-cat::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%);
}

.tb-cat__glyph {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--tb-font-gothic);
  font-size: 104px;
  color: rgba(212, 175, 55, 0.10);
  transition: color .4s ease;
  z-index: 1;
}

.tb-cat:hover .tb-cat__glyph { color: rgba(212, 175, 55, 0.18); }

.tb-cat__info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px;
  border-top: 1px solid var(--tb-line);
}

.tb-cat__info h3 {
  margin: 0 0 6px;
  font-size: 23px;
  color: var(--tb-gold-light);
  letter-spacing: 0.5px;
}

.tb-cat__count {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tb-muted);
}

/* ==========================================================================
   10. Product grid (homepage + shop)
   ========================================================================== */
.woocommerce ul.products,
.tb-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  border: 1px solid var(--tb-line);
  background: var(--tb-panel);
  transition: transform .3s ease, border-color .3s ease;
  text-align: left;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: var(--tb-gold);
}

.woocommerce ul.products li.product a img {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: none;
  background: #050505;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  font-family: var(--tb-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--tb-cream);
  padding: 18px 20px 8px;
  margin: 0;
  letter-spacing: 0.3px;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 20px 18px;
  color: var(--tb-gold);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--tb-font-body);
}

.woocommerce ul.products li.product .price del {
  color: #6b6b5a;
  opacity: 1;
  font-weight: 400;
  font-size: 13px;
  margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
  background: none;
  color: var(--tb-gold);
  text-decoration: none;
  font-weight: 600;
}

.woocommerce ul.products li.product .button {
  margin: 0 20px 22px;
  padding: 12px 22px;
  font-size: 11px;
  width: calc(100% - 40px);
  text-align: center;
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  background: var(--tb-gold);
  color: #000;
  font-family: var(--tb-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0;
  padding: 6px 12px;
  min-height: 0;
  min-width: 0;
  line-height: 1.3;
  top: 14px;
  left: 14px;
  right: auto;
  margin: 0;
}

.tb-shop-cta { text-align: center; margin-top: 54px; }

/* ==========================================================================
   11. Brand story
   ========================================================================== */
.tb-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--tb-line);
  border-bottom: 1px solid var(--tb-line);
}

.tb-story__media {
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--tb-line);
  background-color: var(--tb-black);
  background-size: cover;
  background-position: center;
}

.tb-story__glyph {
  font-family: var(--tb-font-gothic);
  font-size: 62px;
  color: rgba(212, 175, 55, 0.25);
}

.tb-story__body {
  padding: 76px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tb-story__body .tb-tag {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--tb-gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.tb-story__body h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  margin: 0 0 22px;
}

.tb-story__body p {
  color: var(--tb-muted);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 15px;
}

.tb-story__body .tb-btn { align-self: flex-start; margin-top: 18px; }

/* ==========================================================================
   12. Promo strip
   ========================================================================== */
.tb-promo {
  background: var(--tb-gold);
  color: #000;
  text-align: center;
  padding: 58px 24px;
}

.tb-promo h2 {
  color: #000;
  font-size: clamp(24px, 3vw, 38px);
  margin: 0 0 12px;
  font-weight: 700;
}

.tb-promo p { font-size: 14px; letter-spacing: 1px; font-weight: 500; margin: 0 0 24px; }

.tb-promo .tb-btn { border-color: #000; color: #000; }
.tb-promo .tb-btn:hover { background: #000; color: var(--tb-gold); border-color: #000; }

/* ==========================================================================
   13. Social wall
   ========================================================================== */
.tb-social-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.tb-social-tile {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--tb-line);
  background: var(--tb-black);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.28);
  font-size: 22px;
  transition: opacity .3s ease, border-color .3s ease;
}

.tb-social-tile:hover { opacity: .75; border-color: var(--tb-gold); }

/* ==========================================================================
   14. Connect / platform cards
   ========================================================================== */
.tb-connect { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.tb-connect__card {
  border: 1px solid var(--tb-line);
  background: var(--tb-panel);
  padding: 38px 26px;
  text-align: center;
  transition: border-color .3s ease, transform .3s ease;
}

.tb-connect__card:hover { border-color: var(--tb-gold); transform: translateY(-4px); }

.tb-connect__icon { color: var(--tb-gold); margin-bottom: 16px; display: block; }
.tb-connect__icon svg { width: 30px; height: 30px; fill: currentColor; }

.tb-connect__card h3 {
  font-family: var(--tb-font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--tb-cream);
}

.tb-connect__card p { font-size: 12.5px; color: var(--tb-muted); line-height: 1.6; margin: 0; }

/* ==========================================================================
   15. Newsletter
   ========================================================================== */
.tb-newsletter {
  text-align: center;
  border-top: 1px solid var(--tb-line);
  border-bottom: 1px solid var(--tb-line);
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.05), transparent 70%);
  padding: 90px 24px;
}

.tb-newsletter h2 { font-size: clamp(26px, 3.8vw, 44px); margin: 0 0 14px; }
.tb-newsletter p { color: var(--tb-muted); font-size: 14px; margin: 0 0 32px; }

.tb-newsletter__form {
  display: flex;
  max-width: 470px;
  margin: 0 auto;
  border: 1px solid var(--tb-gold);
}

.tb-newsletter__form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 18px;
  color: var(--tb-cream);
  font-family: var(--tb-font-body);
  font-size: 13px;
}

.tb-newsletter__form input[type="email"]::placeholder { color: #77705c; }

.tb-newsletter__form button {
  padding: 0 26px;
  border: none;
  background: var(--tb-gold);
  color: #000;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.tb-newsletter__consent {
  font-size: 11px;
  color: var(--tb-muted);
  margin: 16px auto 0;
  max-width: 470px;
  line-height: 1.6;
}

/* ==========================================================================
   16. WhatsApp float
   ========================================================================== */
.tb-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--tb-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
  transition: transform .25s ease;
}

.tb-whatsapp:hover { transform: scale(1.08); color: #000; }
.tb-whatsapp svg { width: 27px; height: 27px; fill: currentColor; }

/* ==========================================================================
   17. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--tb-black) !important;
  border-top: 1px solid var(--tb-line);
  color: var(--tb-muted);
  padding-top: 70px;
}

.site-footer a { color: var(--tb-cream); }
.site-footer a:hover { color: var(--tb-gold); }

.site-footer .widget-title,
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6 {
  color: var(--tb-gold);
  font-family: var(--tb-font-body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { margin-bottom: 10px; font-size: 13px; border: none; padding: 0; }

.site-info {
  border-top: 1px solid var(--tb-line);
  padding-top: 24px;
  margin-top: 34px;
  font-size: 11.5px;
  color: #7d7663;
}

.tb-footer-brand__logo { max-width: 210px; height: auto; margin-bottom: 14px; display: block; }
.tb-footer-brand p { font-size: 13px; line-height: 1.8; max-width: 300px; color: var(--tb-muted); }

.tb-social-links { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.tb-social-links a {
  width: 38px; height: 38px;
  border: 1px solid var(--tb-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--tb-gold);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.tb-social-links a:hover { background: var(--tb-gold); color: #000; border-color: var(--tb-gold); }
.tb-social-links svg { width: 17px; height: 17px; fill: currentColor; }

/* Trust badges row */
.tb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--tb-line);
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tb-muted);
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .tb-cats { grid-template-columns: 1fr; }
  .woocommerce ul.products, .tb-products { grid-template-columns: repeat(2, 1fr); }
  .tb-story { grid-template-columns: 1fr; }
  .tb-story__media { border-right: none; border-bottom: 1px solid var(--tb-line); min-height: 320px; }
  .tb-story__body { padding: 54px 32px; }
  .tb-connect { grid-template-columns: repeat(2, 1fr); }
  .tb-social-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .tb-section { padding: 64px 0; }
  .tb-wrap { padding-left: 20px; padding-right: 20px; }
  .woocommerce ul.products, .tb-products { grid-template-columns: 1fr; }
  .tb-hero { min-height: 64vh; padding: 64px 20px; }
  .tb-newsletter__form { flex-direction: column; border: none; gap: 10px; }
  .tb-newsletter__form input[type="email"] { border: 1px solid var(--tb-gold); }
  .tb-newsletter__form button { padding: 15px; border: 1px solid var(--tb-gold); }
  .tb-whatsapp { right: 16px; bottom: 16px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   19. Multilingual typography
   Cinzel and UnifrakturMaguntia have no Japanese glyphs. Noto Sans JP is
   appended so Japanese never falls back to a system serif mid-heading.
   ========================================================================== */
html[lang^="ja"] body,
html[lang^="ja"] .tb-hero__text,
html[lang^="ja"] .tb-story__body p {
  font-family: 'Noto Sans JP', var(--tb-font-body);
  line-height: 1.9;
}

html[lang^="ja"] h1, html[lang^="ja"] h2, html[lang^="ja"] h3,
html[lang^="ja"] h4, html[lang^="ja"] h5, html[lang^="ja"] h6,
html[lang^="ja"] .tb-section-head h2,
html[lang^="ja"] .tb-promo h2 {
  font-family: 'Noto Serif JP', var(--tb-font-display);
  font-weight: 600;
}

/* Japanese does not letterspace the way Latin display type does. */
html[lang^="ja"] .tb-tag,
html[lang^="ja"] .tb-hero__eyebrow,
html[lang^="ja"] .tb-announcement,
html[lang^="ja"] .main-navigation ul.menu > li > a,
html[lang^="ja"] .tb-btn,
html[lang^="ja"] .woocommerce a.button,
html[lang^="ja"] .tb-connect__card h3 {
  letter-spacing: 1px;
}

/* Spanish runs ~20% longer than English — stop button text wrapping badly. */
html[lang^="es"] .tb-btn,
html[lang^="es"] .woocommerce a.button {
  letter-spacing: 1.8px;
  padding-left: 32px;
  padding-right: 32px;
}

/* ==========================================================================
   20. Sticky header
   ========================================================================== */
.tb-has-sticky-header .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background-color: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s ease, box-shadow .35s ease, padding .35s ease;
  will-change: transform;
}

.tb-has-sticky-header .site-header.tb-header--pinned {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .7);
  border-bottom-color: var(--tb-line-strong);
}

.tb-has-sticky-header .site-header.tb-header--hidden { transform: translateY(-100%); }

.tb-has-sticky-header .site-header.tb-header--pinned .site-branding img,
.tb-has-sticky-header .site-header.tb-header--pinned .custom-logo-link img {
  max-height: 34px;
  transition: max-height .35s ease;
}

.tb-header-spacer { display: block; }

/* Admin bar must not sit on top of the pinned header. */
.admin-bar.tb-has-sticky-header .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar.tb-has-sticky-header .site-header { top: 46px; }
}

/* ==========================================================================
   21. Zoom + hover effects
   ========================================================================== */

/* Product cards — image zooms inside a fixed frame, card lifts. */
.tb-zoom .woocommerce ul.products li.product a img,
.tb-zoom.woocommerce ul.products li.product a img {
  transition: transform .65s cubic-bezier(.2, .7, .3, 1);
}

.tb-zoom .woocommerce ul.products li.product { overflow: hidden; }

.tb-zoom .woocommerce ul.products li.product:hover a img,
.tb-zoom.woocommerce ul.products li.product:hover a img {
  transform: scale(1.09);
}

/* Category cards */
.tb-zoom .tb-cat { overflow: hidden; }

.tb-zoom .tb-cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
  z-index: -1;
}

.tb-cat {
  background-repeat: no-repeat;
  transition: border-color .35s ease, transform .45s ease;
}

.tb-zoom .tb-cat:hover {
  transform: translateY(-5px);
  background-size: 112%;
}

.tb-cat { transition: background-size .7s cubic-bezier(.2,.7,.3,1), border-color .35s ease, transform .45s ease; }

/* Social tiles */
.tb-zoom .tb-social-tile {
  transition: background-size .7s cubic-bezier(.2, .7, .3, 1), border-color .3s ease, opacity .3s ease;
  background-size: 100%;
  cursor: zoom-in;
}

.tb-zoom .tb-social-tile:hover { background-size: 118%; opacity: 1; border-color: var(--tb-gold); }

/* Story image */
.tb-zoom .tb-story__media {
  background-size: 100%;
  transition: background-size .9s cubic-bezier(.2, .7, .3, 1);
}

.tb-zoom .tb-story:hover .tb-story__media { background-size: 108%; }

/* Single product gallery gets a zoom-in cursor so the WooCommerce
   zoom/lightbox is discoverable. */
.woocommerce div.product div.images .woocommerce-product-gallery__image a { cursor: zoom-in; }

/* ==========================================================================
   22. Scroll reveal
   ========================================================================== */
.tb-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.tb-reveal--in { opacity: 1; transform: none; }

/* Never hide content from users who have JS disabled. */
.no-js .tb-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tb-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   23. Lightbox
   ========================================================================== */
.tb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.tb-lightbox--open { display: flex; }

.tb-lightbox__img {
  max-width: 88vw;
  max-height: 86vh;
  border: 1px solid var(--tb-line);
  object-fit: contain;
}

.tb-lightbox__close,
.tb-lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid var(--tb-line);
  color: var(--tb-gold);
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tb-lightbox__close:hover,
.tb-lightbox__nav:hover { background: var(--tb-gold); color: #000; }

.tb-lightbox__close { top: 26px; right: 26px; }
.tb-lightbox__nav--prev { left: 26px; top: 50%; transform: translateY(-50%); }
.tb-lightbox__nav--next { right: 26px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .tb-lightbox { padding: 16px; }
  .tb-lightbox__nav--prev { left: 10px; }
  .tb-lightbox__nav--next { right: 10px; }
}

/* ==========================================================================
   24. Back to top
   ========================================================================== */
.tb-to-top {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 880;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tb-gold);
  background: rgba(0, 0, 0, .82);
  color: var(--tb-gold);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background-color .3s ease;
  cursor: pointer;
}

.tb-to-top--on { opacity: 1; visibility: visible; transform: none; }
.tb-to-top:hover { background: var(--tb-gold); color: #000; }

/* Sits above the WhatsApp button when both are on. */
@media (max-width: 640px) { .tb-to-top { right: 16px; bottom: 80px; } }

/* ==========================================================================
   25. Language switcher
   ========================================================================== */
.tb-lang { position: relative; display: inline-block; margin-left: 18px; vertical-align: middle; }

.tb-lang__toggle {
  background: transparent;
  border: 1px solid var(--tb-line);
  color: var(--tb-cream);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  line-height: 1;
}

.tb-lang__toggle:hover,
.tb-lang--open .tb-lang__toggle { background: var(--tb-gold); color: #000; border-color: var(--tb-gold); }

.tb-lang__toggle::after {
  content: '\25BE';
  font-size: 9px;
  transition: transform .25s ease;
}

.tb-lang--open .tb-lang__toggle::after { transform: rotate(180deg); }

.tb-lang__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background: #000;
  border: 1px solid var(--tb-line-strong);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .8);
}

.tb-lang--open .tb-lang__list { opacity: 1; visibility: visible; transform: none; }

.tb-lang__list li { margin: 0; border-bottom: 1px solid var(--tb-line); }
.tb-lang__list li:last-child { border-bottom: none; }

.tb-lang__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--tb-cream);
  font-size: 12.5px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.tb-lang__list a:hover,
.tb-lang__list .tb-lang--active a { background: var(--tb-gold); color: #000; }

.tb-lang__flag { font-size: 15px; line-height: 1; }
.tb-lang__code { font-weight: 700; }

@media (max-width: 768px) {
  .tb-lang { display: block; margin: 12px 0 0; }
  .tb-lang__list { right: auto; left: 0; }
}

/* ==========================================================================
   26. Story layout — image left or right
   ========================================================================== */
.tb-story--image-right .tb-story__media {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--tb-line);
}

.tb-story--image-right .tb-story__body { order: 1; }

@media (max-width: 1100px) {
  .tb-story--image-right .tb-story__media {
    order: 0;
    border-left: none;
    border-bottom: 1px solid var(--tb-line);
  }
  .tb-story--image-right .tb-story__body { order: 1; }
}

/* Social tiles are <button> when the lightbox is on — strip button chrome. */
button.tb-social-tile {
  padding: 0;
  margin: 0;
  border: 1px solid var(--tb-line);
  border-radius: 0;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  width: 100%;
  background-color: var(--tb-black);
  background-repeat: no-repeat;
}

button.tb-social-tile:hover { background-color: var(--tb-black); color: inherit; }
