/* ==========================================================================
   Towell_Store TikTok Funnel & High-SEO Styling (Mobile-First Perfected)
   ========================================================================== */

:root {
  --color-primary: #121212;
  --color-primary-dark: #000000;
  --color-accent: #e07a5f;
  --color-accent-hover: #d0664a;
  
  /* TikTok Brand Palette */
  --tiktok-cyan: #25f4ee;
  --tiktok-red: #fe2c55;
  --tiktok-black: #000000;

  --color-bg-main: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

main {
  flex-grow: 1;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Top Announcement Bar (TikTok Deal Alert)
   ========================================================================== */

.announcement-bar {
  display: block;
  background: #000000;
  color: #ffffff;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--tiktok-red);
  width: 100%;
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.announcement-badge {
  background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red));
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ==========================================================================
   Header & Mobile Navigation Drawer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--tiktok-red);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* Standalone Mobile Dropdown Menu */
.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 3px solid var(--tiktok-red);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.mobile-dropdown-menu .mobile-nav-link {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  text-decoration: none;
}

.mobile-dropdown-menu .mobile-nav-link.tiktok-link {
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-bottom: none;
}

/* TikTok CTA Button */
.tiktok-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #000000;
  color: #ffffff !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tiktok-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.3);
  border-color: var(--tiktok-red);
}

.tiktok-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Landing Section
   ========================================================================== */

.hero-landing {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content-block {
  width: 100%;
}

.tiktok-viral-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(254, 44, 85, 0.15);
  color: #ff6b8b;
  border: 1px solid rgba(254, 44, 85, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-landing h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-landing p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
  width: 100%;
}

.spec-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  box-sizing: border-box;
}

.spec-pill strong {
  display: block;
  color: #ffffff;
}

.spec-pill span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.hero-cta-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-rating-text {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Hero Image & Color Switcher Block */
.hero-image-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.color-toggle-float {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.color-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  margin-right: 0.2rem;
}

.color-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.2s ease;
}

.color-btn.active, .color-btn:hover {
  background: var(--tiktok-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.4);
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  padding: 0.65rem 1rem;
  z-index: 9999;
  border-top: 2px solid var(--tiktok-red);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  width: 100vw;
  box-sizing: border-box;
}

.mobile-sticky-bar .tiktok-cta-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #000000 0%, #1e1e1e 100%);
  border: 1px solid var(--tiktok-red);
}

/* ==========================================================================
   Comparison Table & Mobile Cards Section
   ========================================================================== */

.comparison-section {
  padding: 4rem 0;
  background: #ffffff;
  width: 100%;
}

.comparison-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.comparison-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.comparison-table-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  display: block;
}

.comp-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.comp-table th {
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 800;
}

.comp-table th.col-feature { width: 40%; background: #ffffff; }
.comp-table th.col-10a { width: 30%; background: #000000; color: #ffffff; text-align: center; }
.comp-table th.col-paper { width: 30%; background: #e2e8f0; color: var(--color-text-muted); text-align: center; }

.comp-table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.comp-table td.text-center { text-align: center; }

.check-green { color: #10b981; font-weight: 800; }
.cross-red { color: #ef4444; font-weight: 800; }

/* Mobile Comparison Cards Styling */
.mobile-comp-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-comp-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.mobile-comp-feature {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--color-border);
}

.mobile-comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.88rem;
}

.mobile-comp-row.winner {
  background: rgba(16, 185, 129, 0.06);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  border-left: 3px solid #10b981;
}

.mobile-comp-row.loser {
  padding: 0.4rem 0.75rem;
  color: var(--color-text-muted);
}

.mobile-comp-label {
  font-weight: 700;
}

.mobile-comp-value {
  font-weight: 800;
}

/* ==========================================================================
   Product Cards & Uniform Equal-Height Alignment
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  align-items: stretch;
}

.product-card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  width: 100%;
}

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

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  min-height: 2.7rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tiktok-red);
}

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

.product-info .tiktok-cta-btn {
  margin-top: auto !important;
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.reviews-section {
  padding: 4rem 0;
  width: 100%;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 0.4rem;
}

.review-author {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.verified-badge {
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #000000;
  color: #94a3b8;
  padding: 3.5rem 0 7rem;
  margin-top: 3rem;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .brand-name { color: #ffffff; }

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE MEDIA QUERIES (< 768px and < 650px)
   ========================================================================== */

@media (max-width: 900px) {
  .hero-landing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 650px) {
  .comparison-table-container {
    display: none;
  }

  .mobile-comp-cards {
    display: flex;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 60px;
  }

  .announcement-bar {
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
    text-align: center;
  }

  .announcement-content {
    justify-content: center;
  }

  .announcement-badge {
    display: none;
  }

  .header-inner {
    height: 60px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  .main-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
  }

  .header-actions .tiktok-cta-btn {
    display: none;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .hero-landing {
    padding: 2rem 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .hero-content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .tiktok-viral-badge {
    margin: 0 auto 1rem !important;
  }

  .hero-landing h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero-landing p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    text-align: center;
  }

  .hero-specs-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .spec-pill {
    padding: 0.6rem 0.4rem;
    font-size: 0.78rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-cta-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  .hero-main-cta {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .hero-rating-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
  }

  .hero-main-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .color-toggle-float {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
  }

  .color-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
