@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #ff5c20;
  --primary-hover: #e84c10;
  --bg-page: #f1f2f5;
  --bg-app: #ffffff;
  --bg-color: #ffffff;
  --surface-color: #f8fafc;
  
  --hero-gradient: linear-gradient(135deg, #faefee 0%, #fae6e9 50%, #fdf5f3 100%);
  --grad-orange: linear-gradient(135deg, #ff7a45 0%, #ff5c20 100%);
  --grad-blue: linear-gradient(135deg, #4f7eff 0%, #315df5 100%);
  --grad-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 30px rgba(0,0,0,0.12);
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

[data-theme='dark'] {
  --bg-page: #0f172a;
  --bg-app: #1e293b;
  --bg-color: #1e293b;
  --surface-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --border-color: #475569;
  --hero-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-page); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.app-wrapper {
  max-width: 1300px;
  margin: 1rem auto;
  background-color: var(--bg-app);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

/* Old Layout support */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { color: var(--text-main); line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: 3rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.025em; }
p { color: var(--text-muted); margin-bottom: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 700; border-radius: var(--radius-full); transition: all var(--transition-fast); cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); color: white; }
.btn-outline { background-color: transparent; border: 2px solid var(--text-main); color: var(--text-main); }
.btn-outline:hover { background-color: var(--text-main); color: var(--bg-color); }
.header { position: sticky; top: 0; background-color: transparent; border-bottom: 1px solid var(--border-color); z-index: 100; transition: all var(--transition-fast); padding: 1rem 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { color: var(--text-main); }
.nav-links { display: flex; gap: 2rem; align-items: center; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle { background: transparent; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); }
main { min-height: 60vh; }
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.card { background-color: var(--surface-color); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-normal); border: 1px solid var(--border-color); position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-color); }
.card-img-wrapper { position: relative; padding-top: 75%; background-color: var(--bg-color); }
.card-img-wrapper img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 80%; object-fit: contain; }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.card-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.875rem; flex-grow: 1; }
.card-footer { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.stars { color: #f59e0b; font-size: 0.875rem; }
.badge { position: absolute; top: 1rem; left: 1rem; background-color: var(--text-main); color: white; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; z-index: 10; text-transform: uppercase; }
.badge.deal { background-color: #ef4444; }
.footer { background-color: var(--surface-color); padding: 4rem 0 2rem 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col ul li { margin-bottom: 0.75rem; color: var(--text-muted); font-weight: 500; }
.disclaimer { font-size: 0.875rem; color: var(--text-muted); padding-top: 2rem; border-top: 1px solid var(--border-color); text-align: center; }

/* NEW REVAMPED INDEX PAGE STYLES */
.hero-glass {
  background: var(--hero-gradient);
  border-radius: var(--radius-xl);
  padding: 2rem 3rem 4rem 3rem;
  text-align: center;
  position: relative;
  margin: 1rem;
}
.top-bar-ref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}
.logo-ref {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: #171717;
}
.logo-icon-bg {
  background: #171717;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-center-ref {
  display: flex; gap: 2rem;
  font-weight: 600; font-size: 0.95rem;
  color: #6b7280;
}
.nav-center-ref a.active { color: #171717; }
.nav-center-ref a:hover { color: #171717; }
.search-cart-ref { display: flex; gap: 1rem; align-items: center; }
.search-pill {
  background: white; border-radius: var(--radius-full);
  display: flex; align-items: center; padding: 0.5rem 1rem; gap: 0.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.search-pill input { border: none; outline: none; font-family: 'Outfit'; font-weight: 500; background: transparent; width: 140px; }
.cart-circle { background: white; border: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 6px rgba(0,0,0,0.02); cursor: pointer; display: flex; align-items: center; justify-content: center; color:#171717; }
.hero-title-ref { font-size: 4rem; line-height: 1.05; font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; color: #171717; margin-bottom: 1rem; }
.hero-subtitle-ref { font-size: 1.125rem; color: #4b5563; font-weight: 500; margin-bottom: 4rem; }
.categories-carousel { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.car-arrow { width: 48px; height: 48px; border-radius: 50%; background: #171717; color: white; border: none; font-size: 1.25rem; cursor: pointer; }
.cat-pill { width: 130px; height: 130px; border-radius: 2rem; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 1.125rem; cursor: pointer; transition: transform 0.2s; box-shadow: 0 10px 20px rgba(0,0,0,0.05); padding: 1rem; line-height: 1.2; }
.cat-pill:hover { transform: translateY(-5px); }
.orange-grad { background: var(--grad-orange); color: white; }
.blue-grad { background: var(--grad-blue); color: white; }
.green-grad { background: var(--grad-green); color: white; }
.white-bg { background: white; color: #171717; }
.main-dash { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: 1rem 2rem 3rem 2rem; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.modern-card { background: var(--surface-color); border-radius: var(--radius-xl); padding: 1rem; display: flex; flex-direction: column; }
.mc-img { background: var(--bg-color); border-radius: var(--radius-lg); padding: 2rem; position: relative; height: 200px; display: flex; justify-content: center; align-items: center; margin-bottom: 1rem; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.mc-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.mc-tag { position: absolute; bottom: -0.75rem; left: 1rem; background: #eaff96; color: #4d7c0f; padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; z-index: 2; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.mc-add { position: absolute; bottom: -0.75rem; right: 1rem; width: 36px; height: 36px; background: #171717; color: white; border: none; border-radius: 50%; font-size: 1.25rem; font-weight: 600; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.mc-info { padding: 0.5rem; display: flex; flex-direction: column; flex-grow: 1;}
.mc-title-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.125rem; color: var(--text-main); margin-bottom: 0.25rem;}
.mc-info p { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; flex-grow: 1; }
.mc-bottom { display: flex; justify-content: space-between; align-items: center; }
.mc-bottom .price { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.btn-dark { background: #171717; color: white; border: none; border-radius: var(--radius-full); padding: 0.5rem 1.25rem; font-weight: 700; cursor: pointer; font-family: 'Outfit'; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.promo { border-radius: var(--radius-xl); padding: 1.5rem; color: white; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-sm); }
.promo-tall { grid-row: span 2; background: #ff5c20; position: relative; }
.promo-tall h2 { font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; color: white; text-transform: uppercase;}
.promo-tall svg { margin-top: auto; }
.promo-blue { background: var(--grad-blue); text-align: center; padding:2rem;}
.promo-blue .pb-logo { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;}
.pb-icon { background: white; color: #315df5; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; fill: currentColor; }
.promo-clear { background: transparent; color: var(--text-main); gap: 1rem; box-shadow: none; padding:0; border: none; display: flex; flex-direction: row; align-items: center;}
.circle-arr { background: #ff5c20; color: white; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0; font-weight: bold; font-size: 1.25rem; flex-shrink:0; cursor:pointer;}
.promo-clear h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; line-height:1.2;}
.promo-clear p { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0; line-height:1.4;}

@media (max-width: 1024px) {
  .main-dash { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-center-ref { display: none; }
  .hero-title-ref { font-size: 3rem; }
  .categories-carousel { flex-wrap: wrap; }
  .mc-grid { grid-template-columns: 1fr; }
  .hero-glass { padding: 2rem 1rem; }
  .promo-grid { grid-template-columns: 1fr; }
}

/* Gallery Styles */
.gallery-container { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; width: 100%; }
.gallery-thumbnails { display: flex; gap: 1rem; overflow-x: auto; justify-content: center; }
.thumb-box { width: 80px; height: 80px; background: white; border-radius: 1rem; padding: 0.5rem; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.thumb-box:hover, .thumb-box.active { border-color: #171717; transform: translateY(-2px); }
.thumb-box img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* COMPARE FEATURE STYLES */
#compare-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #171717;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
}
#compare-banner.show { bottom: 30px; }
#compare-banner button {
    background: white; color: #171717; border: none; padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full); font-weight: 800; cursor: pointer; font-family: 'Outfit';
}
#compare-modal {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    display: none; justify-content: center; align-items: center; z-index: 2000; padding: 2rem;
    backdrop-filter: blur(5px);
}
#compare-modal.show { display: flex; }
.compare-content {
    background: var(--bg-app); border-radius: var(--radius-xl); width: 100%; max-width: 900px;
    max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.compare-close {
    position: absolute; top: 1.5rem; right: 1.5rem; background: #f1f5f9; border: none;
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.25rem; font-weight: 800; color: #1e293b;
    transition: all 0.2s;
}
.compare-close:hover { background: #e2e8f0; transform: scale(1.05); }
.compare-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem;
}
.compare-card {
    background: var(--surface-color); padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border-color);
}
.compare-card img {
    width: 100%; height: 200px; object-fit: contain; margin-bottom: 1rem; border-radius: var(--radius-sm);
    background: white; padding: 1rem;
}
.compare-card h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.5rem; }
.compare-card .price { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; display: block; }
.compare-list { margin-top: 1rem; }
.compare-list li {
    position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-muted);
}
.compare-list.pros li::before {
    content: '✓'; color: #16a34a; position: absolute; left: 0; font-weight: 800;
}
.compare-list.cons li::before {
    content: '✕'; color: #ef4444; position: absolute; left: 0; font-weight: 800;
}
@media (max-width: 768px) {
    .compare-grid { grid-template-columns: 1fr; }
    #compare-banner { width: 90%; justify-content: center; flex-wrap: wrap; text-align: center; }
}
