/* 
Theme CSS for Barbell Co
*/

:root {
  --bg-main: #050505;
  --bg-panel: #111111;
  --bg-card: #181818;
  --text-primary: #FFFFFF;
  --text-secondary: #8A8A8A;
  --accent-gold: #C29A62;
  --accent-gold-hover: #b08a56;
  --border-color: #2A2A2A;
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.text-gold {
  color: var(--accent-gold);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: 0.2s ease;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-main);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
}

.btn-gold-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-gold-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.btn-full {
  width: 100%;
}

.text-link {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Layout */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-right 0.3s ease;
  padding: 0 1rem; /* spacing for main area */
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-navigation a:hover {
  color: var(--accent-gold);
}

.header-right {
  gap: 1.5rem;
}

.header-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}

.happy-hour-btn {
  border-color: var(--accent-gold);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
}

.user-icon {
  color: var(--text-primary);
}

.tab-btn {
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 0.25rem 0.5rem 0.25rem 1rem;
}

.tab-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.tab-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.tab-price {
  font-size: 0.85rem;
}

.tab-count {
  background-color: var(--accent-gold);
  color: var(--bg-main);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

/* Sidebar (Your Tab) */
.tab-sidebar {
  width: 400px;
  background-color: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  right: 0;
  z-index: 100;
}

.tab-sidebar-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.tab-sidebar-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tab-sidebar-title h3 {
  font-size: 1.1rem;
  line-height: 1;
}

.tab-sidebar-title p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.edit-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
}

.tab-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-item {
  display: flex;
  gap: 1rem;
}

.tab-item-img-wrap {
  width: 80px;
  height: 100px;
  background-color: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.tab-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.tab-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-item-top {
  display: flex;
  justify-content: space-between;
}

.tab-item-top h4 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 500;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.tab-item-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.tab-item-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tab-item-price {
  font-family: var(--font-heading);
  font-weight: 500;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.25rem 0.5rem;
}

.qty-control button {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 20px;
  cursor: pointer;
}

.qty-control span {
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
}

.tab-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.progress-header h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.progress-header p {
  font-size: 0.8rem;
}

.progress-bar-container {
  height: 4px;
  background-color: var(--border-color);
  margin-bottom: 0.5rem;
  position: relative;
  border-radius: 2px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.progress-label {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
}

.progress-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.tab-totals {
  margin-bottom: 1.5rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.grand-total {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.free-shipping-msg {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.regulars-club-section {
  padding: 1.5rem;
  background-color: #0a0a0a;
}

.regulars-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.regulars-header h3 {
  font-size: 1rem;
}

.points {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.regulars-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tiers-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tier {
  flex: 1;
  border: 1px solid var(--border-color);
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-radius: 4px;
}

.tier.active {
  border-color: var(--accent-gold);
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.tier-pts {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.tier-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.active-icon {
  opacity: 1;
}

.tier-perk {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.view-rewards-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent-gold);
  display: block;
  text-align: right;
}

.sidebar-quote {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-quote p {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  flex: 1;
}

.quote-mark {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.logo-text-small {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 1.2rem;
}

/* Homepage specific styles */
.hero-section {
  position: relative;
  height: 50vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 300px;
}

.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

/* Features Row */
.features-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.happy-hour-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.happy-hour-top h3 {
  font-size: 1.2rem;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.countdown-boxes {
  display: flex;
  gap: 0.5rem;
}

.cd-box {
  background: var(--bg-main);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.cd-box span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1;
}

.cd-box small {
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.card-img-right {
  width: 40%;
  position: relative;
}

.placeholder-pint {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #cf9a5b 0%, #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-main);
  font-family: var(--font-heading);
  font-size: 3rem;
  opacity: 0.8;
}

.bundle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.gift-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Bottom Row */
.bottom-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-the-look {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.2rem;
}

.header-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-carousel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.product-card .product-img {
  background: var(--bg-main);
  border-radius: 4px;
  margin-bottom: 1rem;
  aspect-ratio: 4/5;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-img img {
  max-height: 100%;
  opacity: 0.8;
}

.product-info h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.color-dots {
  display: flex;
  gap: 0.25rem;
}

.color-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.the-routine {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.routine-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.routine-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.routine-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.routine-content p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Footer Banner */
.footer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  opacity: 0.8;
}

.feature-text h4 {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.feature-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
  .features-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .product-carousel { grid-template-columns: repeat(3, 1fr); }
  .tab-sidebar { position: fixed; right: -400px; transition: right 0.3s ease; }
  .tab-sidebar.open { right: 0; }
}
