* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #f0f0f0; }
body { font-family: 'Source Sans 3', -apple-system, sans-serif; background: #fff; color: #4d4d4d; line-height: 1.5; max-width: 1440px; margin: 0 auto; }
h1, h2, h3, .section-title, .card-name, .logo-word { font-family: 'Exo 2', 'Source Sans 3', -apple-system, sans-serif; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; gap: 40px; position: sticky; top: 0; z-index: 100; }
.logo { text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; display: block; }
.logo-text { flex-direction: column; align-items: flex-start; line-height: 1.1; }
.logo-word { font-size: 26px; font-weight: 700; color: #ff8500; }
.logo-sub { font-size: 11px; font-weight: 600; color: #4d4d4d; letter-spacing: 0.03em; }
.header-spacer { flex: 1; }
.header-controls { display: flex; align-items: center; gap: 20px; }
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a { color: #4d4d4d; text-decoration: none; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: #ff8500; }
.lang-switch, .currency-switch { display: flex; gap: 2px; align-items: center; }
.lang-switch a, .currency-switch a { font-size: 12px; font-weight: 600; color: #999; text-decoration: none; padding: 4px 8px; border-radius: 4px; transition: all 0.15s; white-space: nowrap; }
.lang-switch a:hover, .currency-switch a:hover { color: #ff8500; }
.lang-switch a.active, .currency-switch a.active { background: #ff8500; color: #fff; }
.icons { display: flex; gap: 20px; align-items: center; }
.icon-btn { background: none; font-size: 18px; border: none; cursor: pointer; position: relative; padding: 0; text-decoration: none; display: inline-flex; align-items: center; }
.badge { position: absolute; top: -6px; right: -6px; background: #ff8500; color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 8px; font-weight: 600; min-width: 18px; text-align: center; }

/* Sections */
.section { padding: 60px 40px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 32px; }

/* Product Grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #f0f0f0; transition: all 0.2s; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-img { width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid #e4e4e4; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; position: relative; overflow: hidden; text-decoration: none; flex-shrink: 0; }
.card-product-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.badge-new { position: absolute; top: 12px; left: 12px; background: #2e7d32; color: #fff; padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 3px; }
.badge-tip { position: absolute; top: 40px; left: 12px; background: #00897b; color: #fff; padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 3px; }
.wish-btn { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.95); border: none; width: 32px; height: 32px; border-radius: 4px; font-size: 16px; cursor: pointer; opacity: 0; transition: opacity 0.2s; padding: 0; line-height: 1; }
.card:hover .wish-btn { opacity: 1; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
/* Fixed 2-line height so rating/price start at the same offset regardless of
   name length; longer names truncate with an ellipsis instead of pushing content. */
.card-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; min-height: calc(1.3em * 2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cat { font-size: 12px; color: #666; margin-bottom: 10px; }
.card-rating { font-size: 12px; color: #999; margin-bottom: 12px; text-align: right; }
.card-price { font-size: 16px; font-weight: 700; color: #ff8500; margin-bottom: 12px; text-align: right; }
/* Pushed to the bottom of the (now equal-height) card, so buttons align across a row. */
.card-btn { margin-top: auto; background: #ff8500; color: #fff; width: 100%; padding: 10px; font-size: 13px; font-weight: 600; border-radius: 4px; border: none; cursor: pointer; font-family: inherit; }
.card-btn:hover { background: #666666; }

/* Featured Collections (homepage spotlight) */
.featured-collections-section { background: #f5f7f2; }
.featured-collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-collection-card { display: block; background: #fff; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid #e0e0e0; transition: transform 0.2s, box-shadow 0.2s; }
.featured-collection-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.featured-collection-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #fff; display: block; }
.featured-collection-body { padding: 18px 20px; }
.featured-collection-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.featured-collection-tagline { font-size: 13px; font-style: italic; color: #ff8500; margin-bottom: 8px; }
.featured-collection-count { font-size: 12px; color: #999; }

/* Categories */
.cats-section { background: #f9f9f9; padding: 60px 40px; }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { background: #fff; border-left: 4px solid #ff8500; padding: 24px; cursor: pointer; transition: all 0.2s; border: 1px solid #e0e0e0; border-left: 4px solid #ff8500; text-align: left; font-family: inherit; text-decoration: none; display: block; color: inherit; border-radius: 4px; position: relative; overflow: hidden; }
.cat-card:hover { background: #f5f5f5; transform: translateX(4px); }
.cats-section .cat-card { padding-right: 110px; }
.cat-preview-img { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); height: 80px; width: 80px; object-fit: contain; opacity: 0.85; pointer-events: none; }
.cat-card.active { background: #ff8500; color: #fff; border-left-color: #ff8500; }
.cat-card.active .cat-count { color: rgba(255,255,255,0.7); }
.cat-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cat-tagline { font-size: 13px; font-weight: 400; font-style: italic; color: #7b8794; }
.cat-count { font-size: 13px; color: #999; }

/* Product Detail */
.detail-container { display: flex; gap: 60px; padding: 40px; }
.detail-img { width: 400px; flex-shrink: 0; }
.main-img { width: 100%; background: #fff; border: 1px solid #e4e4e4; border-radius: 6px; margin-bottom: 16px; position: relative; overflow: hidden; }
.product-main-img { display: block; position: relative; width: 100%; padding-top: 100%; }
.carousel-slide { position: absolute; inset: 0; }
.product-img-main { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; }
.img-counter { position: absolute; top: 10px; left: 12px; background: rgba(0,0,0,0.45); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; z-index: 2; }
.thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; display: block; }
.carousel-nav { position: absolute; background: rgba(0,0,0,0.5); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 60px; height: 60px; background: #fff; border-radius: 4px; border: 2px solid #e4e4e4; cursor: pointer; transition: border-color 0.2s; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #999; }
.thumb.active { border-color: #ff8500; }
.detail-info h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.detail-sku { font-size: 13px; color: #999; margin-bottom: 16px; }
.detail-price { font-size: 28px; font-weight: 700; color: #ff8500; margin-bottom: 20px; }
.detail-rating { font-size: 13px; color: #999; margin-bottom: 24px; }
.detail-desc { font-size: 14px; color: #666; margin-bottom: 28px; line-height: 1.7; }
.specs { width: 100%; font-size: 13px; margin-bottom: 28px; border-collapse: collapse; }
.specs td { padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.specs td:first-child { font-weight: 600; width: 140px; }
.add-section { display: flex; gap: 12px; align-items: center; margin-top: 36px; }
.qty-input { width: 80px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; text-align: center; font-family: inherit; }
.add-to-cart-btn { background: #ff8500; color: #fff; padding: 14px 20px; font-size: 14px; font-weight: 600; border-radius: 4px; flex: 1.3; border: none; cursor: pointer; font-family: inherit; }
.add-to-cart-btn:hover { background: #666666; }
.wish-detail-btn { background: #e0e0e0; color: #4d4d4d; padding: 14px 20px; font-size: 14px; font-weight: 600; border-radius: 4px; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap; flex: 1; }
.wish-detail-btn.active { background: #ff8500; color: #fff; }

/* Reviews */
.review-section { padding: 40px; background: #f9f9f9; border-top: 1px solid #e0e0e0; }
.review-card { background: #fff; padding: 20px; border-radius: 6px; margin-bottom: 16px; border: 1px solid #e0e0e0; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-author { font-weight: 600; font-size: 14px; }
.review-rating { font-size: 13px; color: #ff8500; }
.review-text { font-size: 14px; color: #666; line-height: 1.6; }

/* Cart */
.cart-container { display: flex; gap: 40px; padding: 40px; }
.cart-items { flex: 1; }
.cart-item { display: flex; gap: 20px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 16px; }
.item-img { width: 120px; height: 120px; background: #fff; border: 1px solid #e4e4e4; border-radius: 4px; flex-shrink: 0; overflow: hidden; }
.item-product-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item-info { flex: 1; }
.item-name { font-weight: 600; margin-bottom: 4px; }
.item-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.item-price { font-weight: 700; color: #ff8500; margin: 10px 0; }
.qty-controls { display: flex; gap: 8px; align-items: center; }
.qty-btn { background: #e0e0e0; border: none; width: 28px; height: 28px; border-radius: 3px; cursor: pointer; font-family: inherit; font-size: 16px; line-height: 1; }
.qty-btn:hover { background: #ccc; }
.remove-btn { background: none; color: #ff8500; cursor: pointer; font-size: 13px; text-decoration: underline; border: none; font-family: inherit; margin-left: 8px; }

/* Order Summary */
.summary { width: 300px; background: #f9f9f9; padding: 24px; border-radius: 6px; height: fit-content; }
.summary-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid #e0e0e0; padding-top: 12px; margin-top: 12px; }
.checkout-btn { background: #ff8500; color: #fff; width: 100%; padding: 14px; font-size: 14px; font-weight: 600; border-radius: 4px; margin-top: 20px; border: none; cursor: pointer; font-family: inherit; }
.checkout-btn:hover { background: #666666; }
.continue-btn { background: #ff8500; color: #fff; padding: 12px 24px; font-size: 14px; font-weight: 600; border-radius: 4px; border: none; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block; }
.continue-btn:hover { background: #666666; }

/* Empty state */
.empty { text-align: center; padding: 80px 40px; color: #999; }
.empty h2 { font-size: 22px; font-weight: 700; color: #4d4d4d; margin-bottom: 8px; }
.empty p { margin-bottom: 24px; }

/* Listing page */
.listing-layout { display: flex; gap: 32px; padding: 40px; }
.listing-sidebar { width: 220px; flex-shrink: 0; }
.listing-sidebar h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #999; margin-bottom: 16px; }
.listing-sidebar .cat-card { padding: 14px 16px; margin-bottom: 8px; }
.listing-content { flex: 1; }
.listing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.listing-header h1 { font-size: 24px; font-weight: 700; }
.listing-count { font-size: 14px; color: #999; }

/* Auth / Login */
.auth-box { max-width: 400px; margin: 60px auto; padding: 40px; background: #f9f9f9; border-radius: 6px; }
.auth-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; font-family: inherit; }
.form-group input:focus { outline: none; border-color: #ff8500; }
.auth-switch { text-align: center; font-size: 13px; margin-top: 16px; }
.auth-switch button { background: none; color: #ff8500; font-weight: 600; border: none; cursor: pointer; font-family: inherit; font-size: 13px; }
.form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; font-family: inherit; background: #fff; }

.social-login { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 4px; border: 1px solid #ddd; background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; color: #4d4d4d; transition: background 0.15s; }
.social-btn:hover { background: #f5f5f5; }
.social-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; }
.social-btn-google .social-btn-icon { background: #4285F4; }
.social-btn-facebook .social-btn-icon { background: #1877F2; }
.social-btn-apple .social-btn-icon { background: #000; }
.social-btn-apple .social-btn-icon::before { content: "\f8ff"; font-family: -apple-system, sans-serif; }
.social-divider { position: relative; text-align: center; margin: 4px 0 20px; font-size: 12px; color: #999; }
.social-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e0e0e0; }
.social-divider span { position: relative; background: #f9f9f9; padding: 0 10px; }

.account-type-switch { display: flex; gap: 8px; margin-bottom: 16px; }
.account-type-switch button { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; color: #666; }
.account-type-switch button.active { background: #ff8500; border-color: #ff8500; color: #fff; }

/* Account page */
.account-layout { max-width: 960px; margin: 0 auto; padding: 40px; }
.account-layout h1 { margin-bottom: 24px; font-size: 28px; font-weight: 700; }
.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e0e0e0; margin-bottom: 28px; }
.account-tabs button { padding: 10px 18px; border: none; background: none; font-size: 13px; font-weight: 600; color: #7b8794; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs button.active { color: #ff8500; border-bottom-color: #ff8500; }
.account-panel { max-width: 560px; }
.order-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-history-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #e0e0e0; color: #7b8794; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.order-history-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; }
.order-history-table tr:hover td { background: #f9f9f9; }
.order-history-table a { color: #ff8500; font-weight: 600; text-decoration: none; }
.account-empty { color: #999; font-size: 14px; padding: 20px 0; }
.account-hint { font-size: 12px; color: #7b8794; margin: 8px 0 20px; line-height: 1.5; }

/* Checkout */
.checkout-layout { max-width: 900px; margin: 0 auto; padding: 40px; }
.checkout-layout h1 { margin-bottom: 32px; font-size: 28px; font-weight: 700; }
.checkout-cols { display: flex; gap: 40px; }
.checkout-form { flex: 1; }
.checkout-form h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.checkout-form h2.section-gap { margin-top: 32px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* Confirmation */
.confirm-box { max-width: 600px; margin: 60px auto; padding: 40px; text-align: center; }
.confirm-box h1 { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: #ff8500; }
.confirm-box p { font-size: 16px; color: #666; margin-bottom: 24px; }
.confirm-details { background: #f9f9f9; padding: 24px; border-radius: 6px; margin-bottom: 24px; text-align: left; font-size: 14px; line-height: 2; }
.confirm-details strong { color: #4d4d4d; }

/* Page header */
.page-header { padding: 32px 40px 0; }
.page-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 0; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #ff8500; }

/* SEO body text */
.seo-text { margin-top: 40px; font-size: 14px; color: #555; line-height: 1.8; }
.seo-text h1, .seo-text h2, .seo-text h3 { color: #ff8500; font-weight: 700; margin: 20px 0 10px; }
.seo-text h2 { font-size: 20px; }
.seo-text h3 { font-size: 16px; }
.seo-text p { margin-bottom: 12px; }
.seo-text ul, .seo-text ol { margin: 12px 0 12px 24px; }
.seo-text a { color: #ff8500; }

/* Feature tags — product detail page */
.feature-tags { margin: 16px 0 0; }
.feature-tags-label { font-size: 12px; font-weight: 600; color: #9aa5b1; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.feature-tag { display: inline-block; background: #fff3e6; color: #ff8500; border: 1px solid #ffd9a8; border-radius: 20px; font-size: 12px; font-weight: 500; padding: 4px 12px; margin: 0 4px 6px 0; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.feature-tag:hover { background: #ff8500; color: #fff; border-color: #ff8500; }

/* Feature filter — listing sidebar */
.sidebar-features-heading { margin-top: 24px; }
.feature-filter-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 6px; font-size: 13px; color: #555; text-decoration: none; transition: background 0.15s, color 0.15s; margin-bottom: 2px; }
.feature-filter-link:hover { background: #fff3e6; color: #ff8500; }
.feature-filter-link.active { background: #ff8500; color: #fff; font-weight: 600; }
.feature-filter-name { flex: 1; }
.feature-filter-count { font-size: 11px; background: rgba(0,0,0,0.08); padding: 1px 6px; border-radius: 10px; margin-left: 8px; }
.feature-filter-link.active .feature-filter-count { background: rgba(255,255,255,0.25); color: #fff; }

/* Active feature bar — above product grid */
.active-feature-bar { display: flex; align-items: center; gap: 10px; background: #fff3e6; border: 1px solid #ffd9a8; border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; color: #555; }
.active-feature-tag { background: #ff8500; color: #fff; border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.clear-filter { color: #c0392b; text-decoration: none; font-size: 12px; font-weight: 600; margin-left: auto; }
.clear-filter:hover { text-decoration: underline; }
.listing-header-sub { font-size: 16px; font-weight: 400; color: #9aa5b1; }

/* Shop by Features */
.features-section { padding: 60px 40px; background: #fff; }
.features-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-card { display: inline-flex; align-items: center; gap: 8px; background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; padding: 11px 16px; text-decoration: none; color: #4d4d4d; font-size: 14px; font-weight: 500; transition: all 0.18s; }
.feature-card:hover { border-color: #ff8500; color: #ff8500; background: #fff3e6; transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,0.07); }
.feature-card-count { background: #ebebeb; color: #999; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; line-height: 1.4; transition: all 0.18s; }
.feature-card:hover .feature-card-count { background: #ffd9a8; color: #ff8500; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: #ff8500; color: #fff; padding: 14px 20px; border-radius: 4px; font-size: 13px; z-index: 300; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Responsive */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .summary { width: 260px; }
}
@media (max-width: 768px) {
    .header { flex-direction: column; padding: 12px 16px; gap: 0; align-items: stretch; }
    .header-spacer { display: none; }
    .logo { padding-bottom: 12px; }
    .nav { padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; gap: 20px; font-size: 13px; }
    .header-controls { padding-top: 10px; gap: 12px; }
    .header-controls .icons { margin-left: auto; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .section, .cats-section { padding: 40px 20px; }
    .cats-grid { grid-template-columns: 1fr; }
    .detail-container { flex-direction: column; gap: 30px; padding: 20px; }
    .detail-img { width: 100%; }
    .cart-container { flex-direction: column; gap: 24px; padding: 20px; }
    .summary { width: 100%; }
    .listing-layout { flex-direction: column; padding: 20px; }
    .listing-sidebar { width: 100%; }
    .checkout-cols { flex-direction: column; }
    .checkout-layout { padding: 20px; }
    .page-header { padding: 20px 20px 0; }
}

/* Variant pickers (color / size) */
.variant-section { margin-bottom: 22px; }
.variant-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #555; }
.variant-label strong { color: #4d4d4d; }
.color-picker, .size-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip, .size-chip { background: #f9f9f9; border: 1.5px solid #e0e0e0; border-radius: 4px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: all 0.15s; font-family: inherit; color: #444; line-height: 1.3; }
.color-chip:hover, .size-chip:hover { border-color: #ff8500; color: #ff8500; background: #fff3e6; }
.color-chip.active, .size-chip.active { background: #ff8500; color: #fff; border-color: #ff8500; font-weight: 600; }
.color-chip { display: inline-flex; align-items: center; gap: 9px; }

.color-swatch {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.color-swatch-multi { background: conic-gradient(#e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.color-swatch-transparent { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); border: 1px dashed #999; }

/* Search page */
.search-layout { display: flex; gap: 32px; padding: 40px; }
.search-sidebar { width: 220px; flex-shrink: 0; }
.search-content { flex: 1; min-width: 0; }
.search-sidebar h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #999; margin-bottom: 14px; margin-top: 24px; }
.search-sidebar h3:first-child { margin-top: 0; }
.search-filter-link { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 5px; font-size: 13px; color: #555; text-decoration: none; transition: background 0.12s, color 0.12s; margin-bottom: 2px; cursor: pointer; background: none; border: none; width: 100%; font-family: inherit; text-align: left; }
.search-filter-link:hover { background: #fff3e6; color: #ff8500; }
.search-filter-link.active { background: #ff8500; color: #fff; font-weight: 600; }
.search-filter-count { font-size: 11px; background: rgba(0,0,0,0.08); padding: 1px 6px; border-radius: 10px; margin-left: 6px; flex-shrink: 0; }
.search-filter-link.active .search-filter-count { background: rgba(255,255,255,0.25); color: #fff; }
.color-filter-list, .size-filter-list { max-height: 180px; overflow-y: auto; }
.keyword-row { display: flex; gap: 10px; margin-bottom: 20px; }
.keyword-input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; outline: none; }
.keyword-input:focus { border-color: #ff8500; }
.keyword-btn { background: #ff8500; color: #fff; padding: 10px 18px; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.keyword-btn:hover { background: #666666; }
.active-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff3e6; border: 1px solid #ffd9a8; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.active-filter-tag { background: #ff8500; color: #fff; border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.active-filter-tag a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; line-height: 1; }
.active-filter-tag a:hover { color: #fff; }
.clear-all-link { color: #c0392b; text-decoration: none; font-size: 12px; font-weight: 600; margin-left: auto; }
.clear-all-link:hover { text-decoration: underline; }

/* AI search box */
.ai-box { background: linear-gradient(135deg, #fff3e6 0%, #ffe8cc 100%); border: 1px solid #ffd9a8; border-radius: 8px; padding: 22px 24px; margin-bottom: 24px; }
.ai-box-title { font-size: 15px; font-weight: 700; color: #ff8500; margin-bottom: 4px; }
.ai-box-sub { font-size: 12px; color: #808080; margin-bottom: 14px; }
.ai-row { display: flex; gap: 10px; }
.ai-input { flex: 1; padding: 11px 14px; border: 1px solid #ffd9a8; border-radius: 4px; font-size: 14px; font-family: inherit; outline: none; background: #fff; }
.ai-input:focus { border-color: #ff8500; box-shadow: 0 0 0 2px rgba(45,80,22,0.1); }
.ai-btn { background: #ff8500; color: #fff; padding: 11px 20px; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background 0.15s; }
.ai-btn:hover:not(:disabled) { background: #666666; }
.ai-btn:disabled { opacity: 0.55; cursor: default; }
.ai-result-bar { background: #fff3e6; border: 1px solid #ffd9a8; border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; color: #ff8500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-result-bar .explanation { color: #555; font-style: italic; }
.ai-clear { margin-left: auto; color: #c0392b; background: none; border: none; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; }
.ai-error { color: #c0392b; font-size: 13px; margin-top: 10px; }
.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.search-header h1 { font-size: 24px; font-weight: 700; }
.search-count { font-size: 14px; color: #999; }

@media (max-width: 768px) {
    .search-layout { flex-direction: column; padding: 20px; }
    .search-sidebar { width: 100%; }
    .ai-row { flex-direction: column; }
}

/* Footer */
.site-footer { background: #f7f7f7; border-top: 1px solid #e0e0e0; color: #4d4d4d; padding: 32px 40px 20px; text-align: center; font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 8px; }
.footer-links a { color: #666666; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #ff8500; }
.footer-copy { color: #999; font-size: 12px; }

/* GLightbox overrides */
.goverlay { background: #f0f0f0; }
.gprev svg, .gnext svg, .gclose svg { filter: invert(1) brightness(0); }
