/* ========================================
    APPLE-INSPIRED DESIGN SYSTEM
    Pure CSS - No Frameworks
    Optimized & Organized
======================================== */

/* ========== GLOBAL DEFAULTS ========== */

/* Remove focus ring by default; keyboard-navigation class restores it */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

html.keyboard-navigation *:focus {
    outline: 2px solid var(--color-accent, #2997ff) !important;
    outline-offset: 2px;
}

/* Prevent text/image selection globally */
*, *::before, *::after {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ========== CSS VARIABLES FOR EASY THEMING ========== */
:root {
    /* Typography */
    --font-primary: -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    --transition-bounce: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== DARK THEME (DEFAULT) ========== */
:root,
html[data-theme="dark"] {
    /* Colors - Dark Mode */
    --color-dark: #ffffff;
    --color-dark-alt: #f5f5f7;
    --color-light: #000000;
    --color-bg: #1d1d1f;
    --color-gray: #86868b;
    --color-gray-light: #2d2d2f;
    --color-accent: #2997ff;
    --color-accent-hover: #409cff;
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #2d2d2f;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --nav-bg-scrolled: rgba(0, 0, 0, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
    /* review action button (dark) */
    --review-btn-bg: rgba(255, 255, 255, 0.06);
    --review-btn-border: rgba(255, 255, 255, 0.08);
    --review-btn-color: var(--text-primary);
}

/* ========== LIGHT THEME ========== */
html[data-theme="light"] {
    /* Colors - Light Mode */
    --color-dark: #000000;
    --color-dark-alt: #1d1d1f;
    --color-light: #ffffff;
    --color-bg: #f5f5f7;
    --color-gray: #86868b;
    --color-gray-light: #f5f5f7;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;
    --text-primary: #000000;
    --text-secondary: #6e6e73;
    --border-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* review action button (light) */
    --review-btn-bg: rgba(0, 0, 0, 0.06);
    --review-btn-border: rgba(0, 0, 0, 0.08);
    --review-btn-color: var(--text-primary);
}

/* ========== RESET & BASE STYLES ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== UTILITY CLASSES ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== NAVIGATION ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 1px 3px var(--shadow-color);
}

.nav-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 44px;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    flex-shrink: 0;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
    height: 44px;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 44px;
    flex-shrink: 0;
}

.nav-icon,
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.nav-icon svg,
.theme-toggle svg {
    display: block;
    margin: auto;
    height: 22px;
    width: 22px;
}

.nav-icon:hover,
.theme-toggle:hover {
    opacity: 1;
}

/* User Profile Indicator (Always Visible) */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

html[data-theme="light"] .user-profile-btn {
    background: rgba(0, 0, 0, 0.03);
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="light"] .user-profile-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Cart Badge on Profile Button */
.user-profile-btn .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
    z-index: 1;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

.user-profile.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.user-name-large {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.user-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Dropdown Items */
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .user-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-dropdown-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.user-dropdown-item span {
    flex: 1;
}

/* Cart Button in Dropdown */
.user-dropdown-cart {
    position: relative;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.user-dropdown-cart:hover {
    background: rgba(41, 151, 255, 0.1);
    border-color: var(--color-accent);
}

.cart-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Divider */
.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Logout Button */
.user-dropdown-logout {
    color: #ff3b30;
}

.user-dropdown-logout:hover {
    background: rgba(255, 59, 48, 0.1);
}

.user-dropdown-logout svg {
    width: 16px;
    height: 16px;
}

html[data-theme="dark"] .logo-img {
    filter: brightness(1);
}

html[data-theme="light"] .logo-img {
    filter: brightness(1) invert(1);
}

.nav-link {
    font-size: 0.82rem;
    color: var(--color-dark);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    line-height: 1;
    padding: 0 0.25em;
    display: flex;
    align-items: center;
    height: 44px;
}

.nav-link:hover {
    opacity: 1;
}

.theme-icon {
    display: block;
    line-height: 1;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--color-bg) 100%);
    padding: 80px 80px 0px 60px;
    text-align: center;
    margin-bottom: 10px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 0.85rem 1.75rem;
    background: var(--color-accent);
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 980px;
    font-size: 1.0625rem;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-primary);
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-secondary {
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 980px;
    font-size: 1.0625rem;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-primary);
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.hero-image {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: end;
    min-height: 320px;
    height: 320px;
    max-width: 100%;
}

.hero-image img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* ========== PRODUCT SHOWCASE (APPLE STYLE) ========== */

.product-hero {
    background: var(--bg-secondary);
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 5px;
}

.product-hero.dark {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.product-content {
    max-width: 1200px;
    margin: 0 auto;
}

.product-name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.product-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.dark .product-tagline {
    color: #a1a1a6;
}

.product-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-learn {
    padding: 0.85rem 1.75rem;
    background: var(--color-accent);
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 980px;
    font-size: 1.0625rem;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-primary);
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-learn:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
}

.btn-buy-link {
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 980px;
    font-size: 1.0625rem;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-primary);
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-buy-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
}

.product-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.product-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ========== PRODUCT GRID SECTION (2-COLUMN TILES) ========== */
.product-grid-section {
    padding: 0.75rem;
    margin-bottom: 5px;
}

.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 2560px;
    margin: 0 auto;
}

.product-tile {
    padding: 1.5rem 2rem 0rem;
    text-align: center;
    overflow: hidden;
    min-height: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-tile-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.product-name-small {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.product-tagline-small {
    font-size: 1.125rem;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.product-tile-image {
    margin-top: auto;
    margin-bottom: 0;
    align-items: end;
    height: auto;
}

.product-tile-image img {
    width: auto;
    max-width: 100%;
    max-height: 320px;
    display: block;
    margin: 0 auto;
}

/* Product tile theme colors */
.product-tile {
    background: var(--bg-tertiary);
}

/* Top Left - POF */
.gradient-tl {
    background: linear-gradient(360deg, #fafff9 30%, #cdffc0 200%) !important
}

/* Top Right - FrozedHider */
.gradient-tr {
    background: linear-gradient(360deg, #f6fbff 30%, #c0e5ff 200%) !important
}

/* Bottom Left - FrozedSnow */
.gradient-bl {
    background: linear-gradient(360deg, #f5f5f7 30%, #bfe5ff 200%) !important
}

/* Bottom Right - SoupPvP */
.gradient-br {
    background: linear-gradient(360deg, #f5f5f7 30%, #ffefca 200%) !important
}

/* ========== DARK MODE GRID GRADIENTS ========== */
html[data-theme="dark"] .gradient-tl {
    background: linear-gradient(180deg, #080808 30%, #20713d 100%) !important
}

html[data-theme="dark"] .gradient-tr {
    background: linear-gradient(180deg, #080808 30%, #204d71 100%) !important
}

html[data-theme="dark"] .gradient-bl {
    background: linear-gradient(360deg, #060606 30%, #4479c9 100%) !important;
}

html[data-theme="dark"] .gradient-br {
    background: linear-gradient(360deg, #060606 30%, #7b6133 100%) !important
}

html[data-theme="dark"] .product-name-small,
html[data-theme="dark"] .product-tagline-small {
    color: #f5f5f7;
}

/* ========== FEATURES SECTION ========== */

.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-tertiary);
    border-radius: 24px;
    transition: var(--transition-bounce);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--color-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 1.0625rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ========== CTA SECTION ========== */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-light);
    text-align: center;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #000000;
    border-radius: 980px;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-bounce);
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* ========== FOOTER ========== */

.footer {
    background: rgb(29, 29, 31);
    padding: 1rem 0 1.5rem;
    font-size: 0.75rem;
    color: #a1a1a6;
}

.footer-disclaimer {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #a1a1a6;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: #a1a1a6;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #f5f5f7;
}

.footer-bottom {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #a1a1a6;
}

.footer-links-inline {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links-inline a {
    color: #f5f5f7;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem;
}

.footer-links-inline a:last-child {
    border-right: none;
}

/* ========== REVIEWS CAROUSEL ========== */
.reviews-section {
    padding: var(--spacing-md) 0;
    background: var(--bg-secondary);
    margin-bottom: 5px;
}

.section-header {
    text-align: center;
    padding: 5px;
}

.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.reviews-track-wrapper {
    overflow: hidden;
    flex: 1 1 auto;
}

.reviews-track {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

/* hide native scrollbars but keep scrolling enabled */
.reviews-track {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(36% - 0.75rem);
    min-width: 280px;
    height: 150px;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.review-media {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    background-size: cover;
    background-position: center;
}

.review-content {
    padding: 0.6rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: flex-start;
    flex: 1 1 auto;
}

.review-title {
    margin-bottom: 0.25rem;
}

.review-customer {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.review-sub {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -16px;
    /* lift button slightly up from bottom */
}

.review-card .btn-secondary {
    /* match colors of global .btn-secondary but keep smaller sizing elsewhere */
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

/* smaller action button inside review-cards */
.review-actions .btn-secondary {
    padding: 0.35rem 0.7rem;
    font-size: 0.875rem;
    border-radius: 14px;
    border-width: 1px;
    background: transparent;
    color: var(--color-accent);
}

.review-actions .btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-light);
    border-color: var(--color-accent);
}

.review-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

.review-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1 1 auto;
}

@media (max-width: 1000px) {
    .review-card {
        flex: 0 0 calc(33.333% - 0.75rem);
    }
}

@media (max-width: 700px) {
    .review-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 420px) {
    .review-card {
        flex: 0 0 calc(90% - 0.75rem);
    }
}

.footer-links-inline a:hover {
    text-decoration: underline;
}

.footer-region {
    color: #a1a1a6;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 44px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 44px);
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right var(--transition-smooth);
        box-shadow: -2px 0 10px var(--shadow-color);
        justify-content: flex-start;
        margin: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Push nav-actions + hamburger to the right; logo stays left */
    .nav-content {
        justify-content: space-between;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    /* Hide theme toggle on mobile — keep cart/profile button */
    .nav-actions .theme-toggle {
        display: none;
    }

    /* Hide username text — show avatar + badge only */
    .user-profile-btn .user-name {
        display: none;
    }

    /* Compact icon-only button */
    .user-profile-btn {
        padding: 0.25rem;
        border-radius: 50%;
        min-width: 34px;
        min-height: 34px;
        justify-content: center;
    }

    /* Keep dropdown on-screen */
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 240px;
        max-width: calc(100vw - 1.5rem);
    }

    .mobile-menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-split {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-tile {
        padding: 2rem 1.5rem 3rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links-inline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links-inline a {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 80px 1rem 60px;
    }

    .product-section {
        padding: var(--spacing-lg) 0;
    }

    .features-section {
        padding: var(--spacing-lg) 0;
    }

    .cta-section {
        padding: var(--spacing-lg) 0;
    }
}

/* ========== ACCESSIBILITY ========== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== CUSTOM STYLES ========== */

.frost-hero {
    padding-top: 5rem !important;
    padding-bottom: 0 !important;
}