/* ============================================
   chance king - Streamers Page
   Complete Static Replica
   ============================================ */

/* --- CSS Variables (based on XStore dark theme) --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-header: rgba(10, 10, 10, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-price: #ff4757;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --border-color: #2a2a2a;
    --border-light: #333333;
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'DM Sans', sans-serif;
    --max-width: 1280px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-round: 50%;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-elevated: 0 8px 40px rgba(0,0,0,0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent); }

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

ul, ol { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.7rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { line-height: 1.7; color: var(--text-secondary); }

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo {
    flex-shrink: 0;
    color: var(--text-primary);
}

.header-logo img {
    height: 40px;
    width: auto;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-transform: lowercase;
}

.header-logo:hover .brand-wordmark {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 1.1rem;
}

.header-icon-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* --- Off Canvas (Mobile Menu, Cart, Account) --- */
.off-canvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.off-canvas-overlay.open {
    opacity: 1;
    visibility: visible;
}

.off-canvas-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--bg-secondary);
    z-index: 2001;
    overflow-y: auto;
    transition: transform var(--transition);
    padding: 24px;
}

.off-canvas-left {
    left: 0;
    transform: translateX(-100%);
}

.off-canvas-left.open { transform: translateX(0); }

.off-canvas-right {
    right: 0;
    transform: translateX(100%);
}

.off-canvas-right.open { transform: translateX(0); }

.off-canvas-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.off-canvas-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Mobile nav links */
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--text-primary); }

/* Cart panel */
.cart-items-list { margin-bottom: 24px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
}

.cart-item-details { flex: 1; }
.cart-item-name { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-size: 0.85rem; }
.cart-item-remove { color: var(--text-muted); font-size: 0.8rem; }
.cart-item-remove:hover { color: var(--accent); }

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }

.btn-load-more {
    padding: 14px 48px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-load-more:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group label .required {
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border-color);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* --- Streamer Lineup --- */
.streamer-section {
    padding: 48px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.streamer-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.streamer-card {
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition);
    flex: 0 0 auto;
}

.streamer-card:hover {
    transform: translateY(-6px);
}

.streamer-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 10px;
}

.streamer-card:hover .streamer-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.streamer-card.active .streamer-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(233, 69, 96, 0.4);
}

.streamer-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.streamer-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .streamer-grid { gap: 16px; }
    .streamer-avatar { width: 72px; height: 72px; }
    .streamer-name { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .streamer-grid { gap: 12px; }
    .streamer-avatar { width: 60px; height: 60px; }
    .streamer-name { font-size: 0.75rem; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #1a0a0a 0%, #0a0a0a 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Streamer Content Panels --- */
.streamer-panel {
    animation: fadeInUp 0.4s ease forwards;
}

/* --- Section Common --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-label { margin-bottom: 12px; }

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Get to Know Me --- */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-item:nth-child(even) {
    flex-direction: row-reverse;
}

.about-item-image {
    flex: 0 0 280px;
}

.about-item-image img {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-round);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.about-item-content { flex: 1; }

.about-item-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-item-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    border: 1px solid transparent;
}

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

.product-card.sale .product-badge {
    display: flex;
}

.product-badge {
    display: none;
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 2;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-primary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card-body {
    padding: 16px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-title a { color: var(--text-primary); }
.product-card-title a:hover { color: var(--accent); }

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-variant-select {
    width: 100%;
    margin: 2px 0 10px;
    padding: 9px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
}

.product-variant-select:focus {
    outline: none;
    border-color: var(--accent);
}

.product-card.has-variants .product-card-body .btn-block {
    margin-top: 12px;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* --- Pet Section --- */
.pet-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.pet-image {
    flex: 0 0 200px;
}

.pet-image img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-round);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.pet-info h3 { margin-bottom: 8px; }
.pet-info p { color: var(--text-muted); }

/* --- Private Tour Card --- */
.tour-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.tour-card-image {
    flex: 0 0 200px;
}

.tour-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tour-card-body {
    flex: 1;
    padding: 24px;
}

.tour-card-body h3 { margin-bottom: 8px; }
.tour-card-body .price-current { font-size: 1.5rem; }

/* --- Account Page --- */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.auth-card .form-divider {
    margin: 24px 0;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    padding: 60px 24px 40px;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- Content Pages --- */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-section h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.content-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-section a {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Cart / Checkout Table --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-table .product-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
}

.cart-table .product-remove {
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-table .product-remove:hover { color: var(--accent); }

.cart-totals {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 32px;
}

.cart-totals h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
}

.cart-totals-row.total {
    border-top: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding-top: 20px;
    margin-top: 8px;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

/* --- Notification Toast --- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    z-index: 3000;
    transition: transform var(--transition);
    box-shadow: var(--shadow-elevated);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .about-item, .about-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .about-item-image img {
        width: 200px;
        height: 200px;
    }
    .auth-layout { grid-template-columns: 1fr; }
    .pet-header { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .header-nav { display: none; }
    .header-actions .hide-mobile { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero-section { min-height: 50vh; }
    .hero-title { font-size: 2rem; }

    .section { padding: 50px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.8rem; }

    .about-item-image img { width: 160px; height: 160px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
    }
    .cart-table thead { display: none; }
    .cart-table tr {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .cart-table td {
        border: none;
        padding: 6px 0;
    }

    .tour-card { flex-direction: column; max-width: 100%; }
    .tour-card-image { flex: none; width: 100%; }
    .tour-card-image img { height: 180px; width: 100%; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card-body { padding: 10px; }
    .product-card-title { font-size: 0.85rem; }

    .container { padding: 0 12px; }
    .hero-title { font-size: 1.6rem; }

    .off-canvas-panel { width: 100%; max-width: 100%; }

    .auth-card { padding: 24px; }
}
