@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");

/* ==================== GLOBAL STYLES ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #f6c21e;
    --primary-dark: #c89000;
    --accent-red: #1f1f1f;
    --light-gray: #f3f3f0;
    --dark-gray: #1c1c1c;
    --border-gray: #e4e4e1;
    --success: #2a2a2a;
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--dark-gray);
    background: linear-gradient(180deg, #ffffff 0%, #f6f5f2 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 28px;
    color: var(--dark-gray);
}

h3 {
    font-size: 16px;
    color: var(--dark-gray);
}

h4 {
    font-size: 14px;
    color: var(--dark-gray);
}

p {
    font-size: 14px;
    color: #666666;
}

.subtitle {
    color: #999999;
    font-size: 13px;
    margin-bottom: 1.5rem;
}

.account-note {
    padding: 0 16px 20px 16px;
}

.account-note p {
    background: #f7f9fc;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    color: #4d5d73;
    font-size: 13px;
    padding: 12px 14px;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
    background: linear-gradient(135deg, #ffd44d 0%, var(--primary-blue) 60%, var(--primary-dark) 100%);
    color: #1b1b1b;
    padding: 12px 24px;
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(245, 193, 30, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(245, 193, 30, 0.42);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-view-product {
    width: 100%;
    display: inline-block;
    text-align: center;
    background: #1c1c1c;
    color: #f6c21e;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-view-product:hover {
    background: #111111;
}

/* ==================== HEADER ==================== */

.header {
    background: white;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 56px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark-gray);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

.logo h1 {
    font-size: 24px;
    color: var(--dark-gray);
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    gap: 16px;
}

.search-btn, .user-btn, .cart-btn {
    background: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    padding: 0;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover, .user-btn:hover, .cart-btn:hover {
    background: var(--light-gray);
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    border-bottom: 1px solid var(--border-gray);
}

.mobile-menu.active {
    max-height: 300px;
}

.menu-item {
    padding: 12px 16px;
    display: block;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
}

.menu-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* Desktop Navbar */
.desktop-nav {
    display: none;
    padding: 0 16px;
    border-top: 1px solid var(--border-gray);
}

.desktop-nav a {
    display: inline-block;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-gray);
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--primary-blue);
}

/* ==================== BANNER SLIDER ==================== */

.banner-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #ffffff;
}

.slider-container {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide-photo {
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(12, 12, 12, 0.82) 0%, rgba(12, 12, 12, 0.55) 55%, rgba(245, 193, 30, 0.18) 100%);
}

.slide-photo .slide-content {
    position: relative;
    z-index: 1;
}

.slide-photo-1 {
    background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1600&q=80');
}

.slide-photo-2 {
    background-image: url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1600&q=80');
}

.slide-photo-3 {
    background-image: url('https://images.unsplash.com/photo-1551232864-3f0890e580d9?auto=format&fit=crop&w=1600&q=80');
}

.slide-content {
    max-width: 400px;
    padding: 16px;
}

.slide-content h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #f6c21e;
    width: 24px;
    border-radius: 4px;
}

/* ==================== XSIDE FEATURES ==================== */

.xside-features {
    padding: 10px 16px 14px 16px;
    text-align: center;
    background: #ffffff;
}

.xside-features h2 {
    margin-bottom: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 24px;
}

.feature-card {
    background: linear-gradient(135deg, #f6f6f4 0%, #ffffff 70%);
    border: 1px solid var(--border-gray);
    border-radius: 0;
    padding: 10px 10px;
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateX(6px);
    border-color: var(--primary-blue);
    box-shadow: -10px 0 24px rgba(245, 193, 30, 0.2);
}

.feature-button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 68px;
    background: linear-gradient(135deg, #f6f6f4 0%, #ffffff 70%);
}

.features-compact {
    border: 1px solid var(--border-gray);
    overflow: hidden;
}

.feature-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #5f7694;
    margin-bottom: 6px;
}

.feature-title {
    color: #1e1e1e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

/* ==================== CONCEPT PAGE BLOCKS ==================== */

.page-hero {
    background: linear-gradient(135deg, #0a2f5f 0%, #163f79 100%);
    color: white;
    padding: 28px 16px 22px;
}

.page-hero h2 {
    color: white;
    margin-bottom: 8px;
}

.page-hero .subtitle {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.hero-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(8px);
}

.stat-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 12px;
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #cfd9e6;
    background: #f7fbff;
    color: #22416f;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.chip.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.info-panel {
    background: #f7fbff;
    border: 1px solid #d6e1ef;
    border-radius: 14px;
    padding: 16px;
}

.detail-layout {
    display: grid;
    gap: 16px;
}

.detail-aside {
    display: grid;
    gap: 12px;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-card {
    border: 1px solid #d6e1ef;
    background: white;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    color: #27446f;
}

.size-card.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.step-list {
    display: grid;
    gap: 10px;
}

.step-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 12px;
}

.step-index {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbe7f7;
    color: #13386d;
    font-weight: 700;
    flex-shrink: 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.collection-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    overflow: hidden;
}

.collection-card .product-info {
    padding: 14px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    background: white;
}

.mini-item strong {
    display: block;
    margin-bottom: 4px;
}

.mini-item span {
    color: #6b7789;
    font-size: 12px;
}

.profile-panels {
    display: grid;
    gap: 16px;
}

.profile-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    padding: 16px;
}

.profile-card h3 {
    margin-bottom: 10px;
}

.flow-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 16px;
    background: #f4f8fd;
    border-bottom: 1px solid #d6e1ef;
}

.flow-step {
    border: 1px solid #c7d6ea;
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.flow-step small {
    display: block;
    font-size: 11px;
    color: #607792;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.flow-step strong {
    font-size: 13px;
    color: #1b3d6a;
}

.flow-step.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.flow-step.active small,
.flow-step.active strong {
    color: white;
}

.review-layout {
    display: grid;
    gap: 16px;
}

.reward-card {
    border: 1px solid #bcd4ee;
    background: linear-gradient(135deg, #f2f8ff 0%, #ffffff 100%);
    border-radius: 14px;
    padding: 14px;
}

.reward-card h3 {
    margin-bottom: 8px;
    color: #123861;
}

.review-form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.form-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.input-group {
    display: grid;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    color: #4d6078;
    font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
    border: 1px solid #cfdbea;
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #2b2b2b;
}

.input-group textarea {
    min-height: 110px;
    resize: vertical;
}

.checkbox-line {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #4c607b;
    font-size: 13px;
}

.review-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reward-output {
    border: 1px dashed #86aedd;
    background: #eef5ff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #133a68;
}

.review-list {
    display: grid;
    gap: 12px;
}

.review-item {
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 12px;
    background: white;
}

.review-item strong {
    color: #193f6b;
}

.review-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #65788f;
}

.fit-meter {
    display: grid;
    gap: 8px;
}

.fit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #506079;
}

.fit-bar {
    height: 8px;
    border-radius: 999px;
    background: #e4edf7;
    overflow: hidden;
}

.fit-bar span {
    display: block;
    height: 100%;
    background: var(--primary-blue);
    border-radius: inherit;
}

/* ==================== TRENDING SECTION ==================== */

.trending {
    padding: 32px 16px;
    background: #ffffff;
}

/* ==================== XSIDE AI CTA ==================== */

.ai-cta {
    padding: 24px 16px 28px;
    background: linear-gradient(135deg, #f6f5f1 0%, #ffffff 70%);
}

.ai-card {
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    display: grid;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
}

.ai-tag {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: #9a7b00;
    font-weight: 700;
}

.ai-card p {
    color: #6f6f6f;
    font-size: 14px;
}

.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-actions .btn-primary {
    flex: 1 1 160px;
}

/* ==================== XSIDE TRY-ON ==================== */

.try-on {
    padding: 24px 16px 32px;
    background: linear-gradient(135deg, #fff7e1 0%, #ffffff 75%);
}

.try-on-card {
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    display: grid;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
}

.try-on-tag {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: #9a7b00;
    font-weight: 700;
}

.try-on-card p {
    color: #6f6f6f;
    font-size: 14px;
}

.try-on-flow {
    display: grid;
    gap: 8px;
}

.try-step {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f8f2e4;
    border: 1px dashed #e3d4b1;
    font-size: 13px;
    color: #5b4a1f;
}

.try-step span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    background: #f5c11e;
    color: #1b1b1b;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

/* ==================== TRY-ON PAGE ==================== */

.try-on-body {
    background: radial-gradient(circle at top, #ffffff 0%, #f4f4f1 55%, #efefec 100%);
    position: relative;
    overflow-x: hidden;
}

.try-on-body .bg-shape {
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    opacity: 0.25;
}

.try-on-body .shape-one {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 30% 30%, rgba(246, 194, 30, 0.5), transparent 70%);
    top: -140px;
    left: -160px;
}

.try-on-body .shape-two {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 60% 40%, rgba(160, 160, 160, 0.35), transparent 72%);
    bottom: -240px;
    right: -180px;
}

.try-on-body .hero {
    position: relative;
    z-index: 1;
    padding: 54px 8vw 24px;
}

.try-on-body .hero-inner {
    max-width: 740px;
}

.try-on-body .hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.try-on-body .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    color: #9a7b00;
    margin: 0 0 12px;
}

.try-on-body .hero-link {
    font-size: 0.85rem;
    color: var(--dark-gray);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(28, 28, 28, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.try-on-body .hero-link:hover {
    border-color: rgba(246, 194, 30, 0.7);
}

.try-on-body .hero h1 {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    margin: 0 0 14px;
}

.try-on-body .lead {
    margin: 0 0 18px;
    color: #5f5f5f;
    font-size: 15px;
}

.try-on-body .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.try-on-body .hero-btn {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(28, 28, 28, 0.15);
    background: rgba(255, 255, 255, 0.85);
    color: var(--dark-gray);
}

.try-on-body .hero-btn.primary {
    background: linear-gradient(135deg, #ffd44d 0%, var(--primary-blue) 60%, var(--primary-dark) 100%);
    color: #1b1b1b;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 193, 30, 0.28);
}

.try-on-body .hero-btn.ghost:hover {
    border-color: rgba(246, 194, 30, 0.55);
}

.try-on-main,
.try-on-page {
    padding: 8px 16px 40px;
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.try-on-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 6px;
    border: 1px solid rgba(28, 28, 28, 0.08);
    box-shadow: 0 10px 24px rgba(20, 20, 20, 0.08);
}

.try-tab {
    flex: 1 1 140px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    color: #2b2b2b;
}

.try-tab.active {
    background: var(--dark-gray);
    color: #f6c21e;
    border-color: rgba(28, 28, 28, 0.1);
}

.try-on-panel {
    display: none;
    border: 1px solid rgba(28, 28, 28, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    gap: 14px;
    box-shadow: 0 16px 32px rgba(20, 20, 20, 0.1);
}

.try-on-panel.active {
    display: grid;
    animation: panel-in 0.3s ease;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.try-on-panel .info-panel {
    background: #f7f7f5;
    border-color: rgba(28, 28, 28, 0.08);
}

.barcode-form {
    display: grid;
    gap: 10px;
}

.stock-result {
    border-radius: 12px;
    border: 1px dashed rgba(28, 28, 28, 0.15);
    background: #f7f2e6;
    padding: 12px 14px;
    font-size: 13px;
    color: #5b4a1f;
}

.camera-shell {
    display: grid;
    gap: 12px;
    border-radius: 16px;
    border: 1px dashed rgba(28, 28, 28, 0.15);
    background: #f7f6f2;
    padding: 16px;
    text-align: center;
}

.camera-preview {
    height: 200px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e2e6ea 0%, #f7f7f6 100%);
    display: grid;
    place-items: center;
    color: #6b6b6b;
    font-size: 13px;
}

/* ==================== CHATBOT ==================== */

.chatbot-widget {
    position: fixed;
    right: 18px;
    bottom: 90px;
    z-index: 120;
    display: grid;
    gap: 10px;
    align-items: end;
}

.chatbot-fab {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd44d 0%, var(--primary-blue) 60%, var(--primary-dark) 100%);
    color: #1b1b1b;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 26px rgba(245, 193, 30, 0.35);
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.chatbot-panel {
    width: min(320px, calc(100vw - 40px));
    border-radius: 18px;
    border: 1px solid rgba(28, 28, 28, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 32px rgba(20, 20, 20, 0.12);
    max-height: 70vh;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
    transition: var(--transition);
    display: grid;
}

.chatbot-widget.open .chatbot-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(28, 28, 28, 0.08);
    background: #f7f7f5;
    border-radius: 18px 18px 0 0;
}

.chatbot-title {
    display: grid;
    gap: 4px;
}

.chatbot-header-avatar {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.chatbot-header span {
    display: block;
    font-size: 12px;
    color: #6b6b6b;
}

.chatbot-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
    color: #3b3b3b;
}

.chatbot-body {
    padding: 12px 14px;
    display: grid;
    gap: 12px;
    max-height: 42vh;
    overflow-y: auto;
}

.chatbot-bubble {
    background: #f7f2e6;
    border: 1px solid rgba(28, 28, 28, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: #5b4a1f;
}

.chatbot-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chatbot-quick button {
    border: 1px solid var(--border-gray);
    background: #ffffff;
    color: #2b2b2b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.chatbot-input {
    padding: 0 14px 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #cfdbea;
    background: #ffffff;
    border-radius: 10px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 13px;
    color: #2b2b2b;
}

.chatbot-input .btn-primary {
    padding: 9px 12px;
    font-size: 12px;
    box-shadow: none;
}

@media (max-width: 520px) {
    .chatbot-widget {
        right: 12px;
        bottom: 84px;
    }

    .chatbot-fab {
        width: 48px;
        height: 48px;
    }

    .chatbot-avatar {
        width: 28px;
        height: 28px;
    }

    .chatbot-panel {
        width: min(100%, calc(100vw - 28px));
    }

    .chatbot-input {
        flex-direction: column;
        align-items: stretch;
    }

    .chatbot-input .btn-primary {
        width: 100%;
    }

    .chatbot-header-avatar {
        width: 110px;
        height: 110px;
    }
}

/* ==================== XSIDE CLUB ==================== */

.club {
    padding: 28px 16px 36px;
    background: linear-gradient(135deg, #f4f3ef 0%, #ffffff 75%);
}

.club-card {
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 10px;
}

.club-tag {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: #9a7b00;
    font-weight: 700;
}

.club p {
    color: #6f6f6f;
    font-size: 14px;
}

.trending h2 {
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ==================== PRODUCT CARD ==================== */

.product-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px;
}

.product-photo-1 {
    background-image: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=900&q=80');
}

.product-photo-2 {
    background-image: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=900&q=80');
}

.product-photo-3 {
    background-image: url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=900&q=80');
}

.product-photo-4 {
    background-image: url('https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?auto=format&fit=crop&w=900&q=80');
}

.product-photo-5 {
    background-image: url('https://images.unsplash.com/photo-1464863979621-258859e62245?auto=format&fit=crop&w=900&q=80');
}

.product-photo-6 {
    background-image: url('https://images.unsplash.com/photo-1485968579580-b6d095142e6e?auto=format&fit=crop&w=900&q=80');
}

.product-photo-7 {
    background-image: url('https://images.unsplash.com/photo-1434389677669-e08b4cac3105?auto=format&fit=crop&w=900&q=80');
}

.product-photo-8 {
    background-image: url('https://images.unsplash.com/photo-1485230895905-ec40ba36b9bc?auto=format&fit=crop&w=900&q=80');
}

.badge {
    background: #1b1b1b;
    color: #f6c21e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.sale {
    background: #f6c21e;
    color: #1b1b1b;
}

.favorite-btn {
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid var(--border-gray);
    transition: var(--transition);
}

.favorite-btn:hover {
    background: #f6c21e;
    color: #1b1b1b;
    border-color: #f6c21e;
}

.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.category {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
}

.price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price {
    font-weight: 600;
    color: #1c1c1c;
    font-size: 14px;
}

.rating {
    font-size: 12px;
    color: #667587;
}

/* ==================== FOOTER ==================== */

.footer {
    background: #151515;
    color: white;
    padding: 32px 16px 80px 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-section a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: inline;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== BOTTOM NAVBAR (Mobile) ==================== */

.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-around;
    height: 70px;
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    color: #999999;
    font-size: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-blue);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet (768px) */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }

    .logo h1 {
        font-size: 28px;
    }

    .header-top {
        padding: 12px 32px;
    }

    .banner-slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 34px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending {
        padding: 40px 32px;
    }

    .xside-features {
        padding: 12px 32px 18px 32px;
    }

    .footer {
        padding: 40px 32px 80px 32px;
    }

    .account-note {
        padding: 0 32px 24px 32px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-navbar {
        display: none;
    }

    footer {
        padding-bottom: 40px !important;
    }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
    .header-top {
        padding: 12px 48px;
    }

    .desktop-nav {
        padding: 0 48px;
    }

    .banner-slider {
        height: 340px;
    }

    .slide-content h2 {
        font-size: 40px;
    }

    .slide-content p {
        font-size: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .review-layout {
        grid-template-columns: 1fr 1fr;
    }

    .trending {
        padding: 48px 48px;
    }

    .xside-features {
        padding: 14px 48px 20px 48px;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer {
        padding: 48px 48px 60px 48px;
    }

    .account-note {
        padding: 0 48px 24px 48px;
    }

    .product-image {
        height: 280px;
    }
}

/* Large Desktop (1440px) */
@media (min-width: 1440px) {
    body {
        max-width: 1440px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==================== FORCED MOBILE VIEW ==================== */

/* Keep the whole app in a phone-sized frame on all devices. */
html {
    background: #efefec;
}

body {
    width: 100%;
    max-width: 420px !important;
    margin: 0 auto !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6f5f2 100%);
    min-height: 100vh;
    box-shadow: 0 0 0 1px #e1e1de, 0 14px 40px rgba(20, 20, 20, 0.18);
    padding-bottom: 70px;
}

.menu-toggle {
    display: flex !important;
}

.mobile-menu {
    display: flex !important;
}

.desktop-nav {
    display: none !important;
}

.products-grid,
.form-row,
.review-layout,
.footer-content {
    grid-template-columns: 1fr !important;
}

.trending,
.xside-features,
.footer,
.account-note {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.header-top {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.banner-slider {
    height: 220px !important;
}

.slide-content h2 {
    font-size: 28px !important;
}

.slide-content p {
    font-size: 16px !important;
}

.bottom-navbar {
    display: flex !important;
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 420px;
    transform: translateX(-50%);
}

/* ==================== UTILITY CLASSES ==================== */

.container {
    width: 100%;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}
