/**
 * GM Toys Starter Theme Styles
 * Replicates the orange-accented B2B product showcase layout from gmtoys.com
 */

/* ============================================
   CSS Variables & Root
   ============================================ */
:root {
    --primary: #FF6B00;
    --primary-light: #FF8C00;
    --primary-hover: #E55A00;
    --secondary: #FF9500;
    --accent: #FFA500;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #F5F5F5;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --border: #E8E8E8;
    --border-light: #F0F0F0;
    --footer-bg: #FF8C00;
    --footer-text: #FFFFFF;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 16px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin: 0 0 16px;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: 14px;
}

/* ============================================
   Layout Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 60vh;
    padding-bottom: 40px;
}

/* ============================================
   Accessibility
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

.site-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-white);
}

.search-field {
    flex: 1;
    border: none;
    padding: 8px 16px;
    outline: none;
    font-size: 13px;
}

.search-field::placeholder {
    color: var(--text-muted);
}

.search-image-btn {
    padding: 8px 10px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-light);
    background: none;
}

.search-submit {
    padding: 8px 20px;
    background: var(--primary);
    color: var(--bg-white);
    font-weight: 500;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--primary-hover);
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-white);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 0;
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.language-switcher:hover .lang-dropdown,
.lang-toggle[aria-expanded="true"] + .lang-dropdown {
    display: block;
}

.lang-dropdown li a {
    display: block;
    padding: 6px 16px;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

.lang-dropdown li a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* Sign In */
.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-white);
}

.sign-in-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   Main Navigation
   ============================================ */
.main-navigation-wrapper {
    background: var(--bg-white);
    border-bottom: 2px solid var(--primary);
}

.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}

#primary-menu {
    display: flex;
    justify-content: center;
    gap: 0;
}

#primary-menu li {
    position: relative;
}

#primary-menu li a {
    display: block;
    padding: 12px 40px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

#primary-menu li a:hover,
#primary-menu li a.current,
#primary-menu .current-menu-item a {
    background: var(--primary);
    color: var(--bg-white);
}

/* Sub-menu */
#primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    z-index: 99;
}

#primary-menu li:hover > .sub-menu {
    display: block;
}

#primary-menu .sub-menu li a {
    padding: 10px 20px;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text);
}

#primary-menu .sub-menu li a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* ============================================
   Floating Sidebar
   ============================================ */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    background: var(--bg-white);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    width: 60px;
    gap: 4px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.float-btn:last-child {
    border-bottom: none;
}

.float-btn:hover {
    color: var(--primary);
}

.float-label {
    font-size: 11px;
    white-space: nowrap;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Icons (CSS-only fallback)
   ============================================ */
.icon-bolt::before { content: "\26A1"; }
.icon-signal::before { content: "\1F4F6"; }
.icon-baby::before { content: "\1F476"; }
.icon-stroller::before { content: "\1F6F5"; }
.icon-doll::before { content: "\1F469"; }
.icon-home::before { content: "\1F3E0"; }
.icon-sun::before { content: "\2600"; }
.icon-sports::before { content: "\26BD"; }
.icon-ball::before { content: "\1F3C0"; }
.icon-music::before { content: "\1F3B5"; }
.icon-tag::before { content: "\1F3F7"; }
.icon-more::before { content: "\2026"; }
.icon-camera::before { content: "\1F4F7"; }
.icon-globe::before { content: "\1F310"; }
.icon-chevron-down::before { content: "\25BC"; }
.icon-chevron-right::before { content: "\25B6"; }
.icon-user::before { content: "\1F464"; }
.icon-cart::before { content: "\1F6D2"; }
.icon-arrow-up::before { content: "\2191"; }
.icon-building::before { content: "\1F3E2"; }
.icon-image::before { content: "\1F5BC"; }
.icon-trophy::before { content: "\1F3C6"; }
.icon-phone::before { content: "\260E"; }
.icon-mail::before { content: "\2709"; }
.icon-fax::before { content: "\1F4E0"; }
.icon-chat::before { content: "\1F4AC"; }
.icon-location::before { content: "\1F4CD"; }
.icon-grid::before { content: "\25A6"; }
.icon-list::before { content: "\2630"; }
.icon-sort::before { content: "\2195"; }

/* ============================================
   Category Icons Section
   ============================================ */
.category-icons-section {
    padding: 30px 0;
    background: var(--bg-white);
}

.category-icons-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    justify-items: center;
}

.category-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    min-width: 100px;
}

.category-icon-card:hover {
    background: var(--bg);
    transform: translateY(-2px);
}

.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF5E6;
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary);
}

.category-name {
    font-size: 13px;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

.view-more-cats {
    cursor: pointer;
    border: none;
    background: none;
}

.category-icons-hidden {
    display: none;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.category-icons-hidden.show {
    display: grid;
}

/* ============================================
   Filter Section
   ============================================ */
.filter-section {
    padding: 20px 0;
}

.filter-wrapper {
    background: #FFF8F0;
    border-radius: var(--radius-lg);
    padding: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-header h3 {
    font-size: 16px;
    margin: 0;
}

.see-more-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
}

.filter-form {
    transition: var(--transition);
}

.filter-form.collapsed {
    display: none;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-field {
    flex: 1;
    min-width: 200px;
}

.filter-field label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.filter-field input[type="text"],
.filter-field input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.filter-field input:focus {
    border-color: var(--primary);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs .separator {
    color: var(--text-muted);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-reset {
    background: var(--bg-white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-search,
.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-search:hover,
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-load-more {
    background: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 30px;
}

.btn-load-more:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-select-all,
.btn-bulk-cart {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-bulk-cart {
    background: var(--primary-light);
    color: var(--bg-white);
}

/* ============================================
   Product Tabs
   ============================================ */
.product-tabs-section {
    padding: 20px 0 40px;
}

.product-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-white);
    border-left: 1px solid var(--border-light);
    position: relative;
    transition: var(--transition);
}

.tab-btn:first-child {
    border-left: none;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary);
    background: #FFF5E6;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    padding: 16px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
}

.add-to-cart-btn,
.add-to-inquiry-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    z-index: 5;
}

.add-to-cart-btn:hover,
.add-to-inquiry-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--primary);
    color: var(--bg-white);
    font-size: 12px;
    border-radius: var(--radius);
}

.product-info {
    padding: 12px 16px;
}

.product-number {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.product-title a {
    color: var(--text);
}

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

.product-specs {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.spec-item {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0;
}

.spec-label {
    color: var(--text-muted);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
    text-align: center;
    flex: 1;
}

.view-more-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.view-more-link:hover {
    color: var(--primary);
}

/* ============================================
   Global Sales Section
   ============================================ */
.global-sales-section {
    padding: 40px 0;
}

.region-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
}

.region-tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-light);
    background: var(--bg-white);
    border-left: 1px solid var(--border-light);
    transition: var(--transition);
}

.region-tab:first-child {
    border-left: none;
}

.region-tab.active,
.region-tab:hover {
    color: var(--primary);
    background: #FFF5E6;
}

.region-tab.active {
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
}

.region-panel {
    display: none;
}

.region-panel.active {
    display: block;
}

/* ============================================
   Company Exhibits
   ============================================ */
.company-exhibits-section {
    padding: 40px 0 60px;
}

/* ============================================
   Products Template
   ============================================ */
.products-template {
    padding: 20px 0;
}

.product-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.type-tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
}

.type-tab.active,
.type-tab:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.products-layout {
    display: flex;
    gap: 20px;
}

.category-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    align-self: flex-start;
}

.sidebar-title {
    font-size: 15px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.category-list li {
    margin: 4px 0;
}

.category-list li a {
    display: block;
    padding: 6px 10px;
    color: var(--text-light);
    font-size: 13px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.category-list li.active a,
.category-list li a:hover {
    color: var(--primary);
    background: #FFF5E6;
}

.unfold-cats {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    color: var(--primary);
    font-size: 13px;
    margin-top: 8px;
}

.hidden-cats {
    display: none;
}

.hidden-cats.show {
    display: block;
}

.products-content {
    flex: 1;
}

.products-filter-bar {
    background: #FFF8F0;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.sort-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sort-buttons {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg-white);
    color: var(--text);
}

.sort-btn.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.selected-count strong {
    color: var(--primary);
}

.display-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.display-btn {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
}

.display-btn.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* List view */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    gap: 20px;
}

.products-grid.list-view .product-image {
    width: 200px;
    flex-shrink: 0;
}

.product-card-wrapper {
    position: relative;
}

.product-select {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    background: var(--bg-white);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* ============================================
   News Template
   ============================================ */
.news-template {
    padding: 30px 0;
}

.news-section .page-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 16px;
}

.news-content .entry-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.news-content .entry-title a {
    color: var(--text);
}

.news-content .entry-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-content .entry-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   About Template
   ============================================ */
.about-template {
    padding: 30px 0;
}

.about-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.about-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.about-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    color: var(--text-light);
    transition: var(--transition);
}

.about-tab i {
    font-size: 40px;
    color: var(--text-muted);
}

.about-tab.active,
.about-tab:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg-white);
}

.about-tab.active i,
.about-tab:hover i {
    color: var(--bg-white);
}

.about-tab span {
    font-size: 16px;
    font-weight: 500;
}

.about-panel {
    display: none;
}

.about-panel.active {
    display: block;
}

.about-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--bg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.placeholder {
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ============================================
   Contact Template
   ============================================ */
.contact-template {
    padding: 30px 0;
}

.contact-section {
    background: linear-gradient(180deg, #E8E8E8 0%, var(--bg) 40%);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 6px;
}

.contact-details .value {
    font-size: 14px;
    color: var(--text);
}

.contact-details a.value {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 40px;
}

.footer-top {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--footer-text);
}

.footer-menu {
    display: flex;
    gap: 30px;
}

.footer-menu a {
    color: var(--footer-text);
    font-size: 14px;
}

.footer-menu a:hover {
    opacity: 0.8;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-contact-info {
    margin-bottom: 16px;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 8px;
}

.contact-item .label {
    font-size: 13px;
    opacity: 0.9;
}

.contact-item .value {
    font-size: 13px;
}

.contact-item.full-width {
    flex-basis: 100%;
}

.footer-copyright {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-copyright p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   Posts Grid (Blog)
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.entry-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--text);
}

.entry-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.entry-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.entry-footer .read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Widget Area
   ============================================ */
.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .category-icons-grid,
    .category-icons-hidden {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-layout {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .floating-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    #primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow);
    }

    #primary-menu.active {
        display: flex;
    }

    .category-icons-grid,
    .category-icons-hidden {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid,
    .posts-grid,
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-tabs {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sort-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-tabs,
    .region-tabs {
        flex-wrap: wrap;
    }

    .tab-btn,
    .region-tab {
        flex: 1 0 calc(50% - 4px);
    }

    .contact-section {
        padding: 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn,
    .region-tab {
        flex: 1 0 100%;
    }

    .filter-row {
        flex-direction: column;
    }

    .header-tools {
        gap: 8px;
    }

    .lang-toggle span,
    .sign-in-btn span {
        display: none;
    }
}

/* ============================================
   ToyTrade Core Plugin Integration Styles
   ============================================ */

/* Inquiry Basket & My Inquiries Pages */
.inquiry-basket-template,
.my-inquiries-template {
    padding: 30px 0;
}

.inquiry-basket-template .page-title,
.my-inquiries-template .page-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.basket-loading,
.inquiries-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.basket-table,
.inquiries-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.basket-table th,
.basket-table td,
.inquiries-table th,
.inquiries-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font-size: 14px;
}

.basket-table th,
.inquiries-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: var(--text);
}

.basket-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.basket-product img {
    border-radius: var(--radius);
    object-fit: cover;
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-light);
}

.basket-qty {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
}

.basket-actions {
    margin-top: 24px;
    text-align: right;
}

.no-items {
    padding: 50px;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
}

/* Inquiry Form */
.inquiry-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inquiry-form .form-field {
    margin-bottom: 16px;
}

.inquiry-form .form-field label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.inquiry-form .form-field input,
.inquiry-form .form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    font-size: 14px;
}

.inquiry-form .form-field input:focus,
.inquiry-form .form-field textarea:focus {
    border-color: var(--primary);
}

/* Modal for Inquiry Detail */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.inquiry-items {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.inquiry-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.inquiry-items li:last-child {
    border-bottom: none;
}

.inquiry-items img {
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.status-badge {
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.login-required {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.login-required p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* Exhibitions Section */
.exhibitions-section {
    padding: 30px 0;
    background: var(--bg-white);
    margin-top: 30px;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exhibition-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.exhibition-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.exhibition-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.exhibition-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.exhibition-location,
.exhibition-booth {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.no-exhibitions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Product Specs in Cards */
.product-specs {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 4px 0;
    color: var(--text-light);
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    color: var(--text);
    font-weight: 500;
}

.product-price {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Notification Toast */
#gmtoys-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    max-width: 300px;
    box-shadow: var(--shadow-hover);
}

/* Responsive for ToyTrade sections */
@media (max-width: 1024px) {
    .exhibitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .exhibitions-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-form .form-row {
        grid-template-columns: 1fr;
    }

    .basket-table,
    .inquiries-table {
        font-size: 13px;
    }

    .basket-table th,
    .basket-table td,
    .inquiries-table th,
    .inquiries-table td {
        padding: 10px 12px;
    }
}

/* ============================================
   Animation & Utility
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card,
.news-card,
.post-card {
    animation: fadeIn 0.3s ease-out;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results .page-title {
    font-size: 24px;
    margin-bottom: 16px;
}
