:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-alt);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

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

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

.btn-secondary:hover {
    background: var(--border);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Categories */
.categories-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

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

.category-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

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

.product-link {
    text-decoration: none;
    color: var(--text);
    display: block;
}

.product-image {
    aspect-ratio: 1 / 1;
    background: var(--bg-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #cbd5e1;
}

.placeholder-card {
    opacity: 0.5;
    pointer-events: none;
}

.placeholder-card .btn-view {
    opacity: 0.5;
}

.placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #cbd5e1;
    font-weight: 700;
    letter-spacing: 2px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.btn-view {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Features */
.features-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

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

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 18px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* CTA */
.cta-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-alt);
}

/* Page Header */
.page-header {
    background: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Product Detail */
.product-detail-section { padding: 60px 0; }
.home-composer-block h1,
.home-composer-block h2,
.home-composer-block h3 { color: var(--home-title-color, inherit) !important; }
.home-composer-block p,
.home-composer-block .section-header p,
.home-composer-block .showcase-subtitle,
.home-composer-block .showcase-description { color: var(--home-subtitle-color, inherit) !important; }
.home-composer-block .btn-primary { background: var(--home-button-bg, var(--primary)); color: var(--home-button-color, #fff); border-color: var(--home-button-bg, var(--primary)); }
.home-composer-block .btn-outline { color: var(--home-button-bg, var(--primary)); border-color: var(--home-button-bg, var(--primary)); }
.pd-composer-block { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.pd-info .pd-composer-block { margin-top: 22px; padding-top: 20px; padding-bottom: 0; border-top: 1px solid var(--border); }
.pd-info .pd-specs h3 { font-size: 18px; margin-bottom: 12px; }
.pd-inquiry-cta { display:flex; align-items:center; justify-content:space-between; gap:20px; background:var(--bg-alt); border:1px solid var(--border); border-radius:12px; padding:28px; }
.pd-inquiry-cta h2 { margin:0 0 8px; }
.pd-inquiry-cta p { margin:0; color:var(--text-light); }

.pd-layout { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 30px; margin-bottom: 20px; }

.pd-sidebar { background: var(--bg-alt); border-radius: 10px; padding: 16px; position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.pd-sidebar h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.pd-sidebar a { display: block; padding: 6px 0; font-size: 12px; color: var(--text-light); text-decoration: none; border-bottom: 1px solid var(--border); }
.pd-sidebar a:hover { color: var(--primary); }
.pd-sidebar .sub { padding-left: 14px; font-size: 11px; }

.pd-gallery { position: sticky; top: 80px; align-self: start; max-width: 600px; width: 100%; }
.pd-main-image { border-radius: 10px; overflow: hidden; background: var(--bg-alt); margin-bottom: 10px; cursor: zoom-in; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; transition: aspect-ratio 0.2s ease, min-height 0.2s ease; }
.pd-main-image.img-square { aspect-ratio: 1 / 1; }
.pd-main-image.img-landscape { aspect-ratio: 4 / 3; }
.pd-main-image.img-wide { aspect-ratio: 16 / 9; }
.pd-main-image.img-portrait { aspect-ratio: 4 / 5; }
.pd-main-image.img-tall { aspect-ratio: 3 / 4; }
.pd-main-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.pd-main-image.zoomed { overflow: auto; }
.pd-main-image.zoomed img { transform: scale(1.8); cursor: zoom-out; max-height: none; transform-origin: center; }

.pd-thumbs { display: flex; gap: 8px; margin-bottom: 8px; }
.pd-thumb { width: 72px; height: 72px; border-radius: 6px; object-fit: contain; object-position: center; background: var(--bg-alt); border: 2px solid var(--border); cursor: pointer; transition: border-color 0.15s; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--primary); }
.pd-video { margin-top: 12px; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.pd-info { }
.pd-name { font-size: 28px; margin-bottom: 8px; }
.pd-desc { color: var(--text-light); margin-bottom: 16px; font-size: 15px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pd-price-now { font-size: 28px; font-weight: 700; color: var(--primary); }
.pd-price-old { font-size: 18px; color: var(--text-light); text-decoration: line-through; }
.pd-variant-picker { margin: 0 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); }
.pd-option-group { margin-bottom: 12px; }
.pd-option-group:last-of-type { margin-bottom: 8px; }
.pd-option-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.pd-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-option-btn { min-height: 34px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.15s; }
.pd-option-btn:hover { border-color: var(--primary); color: var(--primary); }
.pd-option-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pd-option-btn[disabled] { opacity: 0.35; cursor: not-allowed; color: var(--text-light); border-color: var(--border); background: #f1f5f9; }
.pd-selected-sku { min-height: 18px; color: var(--text-light); font-size: 12px; }
.pd-actions { display: flex; gap: 10px; margin-bottom: 24px; }

.pd-specs { background: var(--bg-alt); border-radius: 10px; padding: 20px; }
.pd-specs h3 { margin-bottom: 12px; font-size: 16px; }
.pd-specs table { width: 100%; border-collapse: collapse; }
.pd-specs th, .pd-specs td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; text-align: left; }
.pd-specs th { color: var(--text-light); font-weight: 500; width: 120px; }

.variant-tag { display: inline-block; padding: 2px 8px; background: #eff6ff; border-radius: 4px; font-size: 12px; margin: 2px; }

.pd-description { max-width: 900px; }

.pd-detail-grid { display: flex; flex-direction: column; gap: 16px; }
.pd-detail-item { border-radius: 10px; overflow: hidden; width: 100%; }
.pd-detail-item img { width: 100%; display: block; object-fit: contain; }

@media (max-width: 768px) { .pd-layout { grid-template-columns: 1fr; } .pd-gallery { position: static; max-width: none; } .pd-detail-grid { grid-template-columns: repeat(2, 1fr); } .pd-main-image.img-landscape, .pd-main-image.img-wide { aspect-ratio: 1 / 1; } }

.main-image {
    max-height: 500px;
    aspect-ratio: auto;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.main-image.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
    max-height: none;
    object-fit: contain;
}

.main-image.zoomed {
    overflow: auto;
    max-height: none;
}

/* Video section */
.product-videos {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Image Text Overlay */
.main-image {
    position: relative;
}

.image-overlay {
    position: absolute;
    z-index: 2;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    padding: 8px 16px;
    line-height: 1.3;
}

.overlay-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    padding: 32px 16px 16px;
}

.overlay-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overlay-top {
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), transparent);
    padding: 16px 16px 32px;
}

.overlay-bottom-left {
    bottom: 16px;
    left: 16px;
}

.overlay-bottom-right {
    bottom: 16px;
    right: 16px;
}

.main-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.thumbnail {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

.product-videos {
    margin-top: 24px;
}

.product-videos h4 {
    margin-bottom: 12px;
}

.product-videos video {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.section-video-frame {
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 16px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
}

.section-video-frame.full {
    max-width: 1080px;
}

.section-video-frame.compact {
    max-width: 760px;
}

.section-video-frame video,
.section-video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.section-video-frame video {
    object-fit: cover;
}

.product-info-panel {
    padding-top: 8px;
}

.product-breadcrumb {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

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

.product-info-panel h1 {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-short-desc {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.compare-price {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.tag-label {
    color: var(--text-light);
    font-size: 14px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.tag-secondary {
    background: var(--bg-alt);
    color: var(--text-light);
}

.product-meta-box {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.product-meta-box h3 {
    margin-bottom: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    color: var(--text-light);
    font-weight: 500;
    width: 160px;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.product-description {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.product-description h2 {
    margin-bottom: 20px;
}

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

.related-products {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.related-products h2 {
    margin-bottom: 32px;
}

/* About */
.about-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

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

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.about-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.about-stat h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 4px;
}

.about-stat p {
    margin: 0;
    font-size: 14px;
}

.about-values h3 {
    margin-bottom: 24px;
}

.value-card {
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.value-card h4 {
    margin-bottom: 8px;
}

.value-card p {
    color: var(--text-light);
    margin: 0;
}

/* Contact */
.contact-section {
    padding: 60px 0;
}

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

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-methods {
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.method-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content h4 {
    margin-bottom: 4px;
}

.method-content p {
    color: var(--text-light);
    margin: 0;
}

.contact-services h3 {
    margin-bottom: 16px;
}

.contact-services ul {
    list-style: none;
}

.contact-services li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 24px;
}

.contact-services li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.contact-form-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-form-card h3 {
    margin-bottom: 24px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

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

.contact-form textarea.form-control {
    resize: vertical;
}

.form-note {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.empty-state h3 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.dropdown-menu a.sub-category-link {
    padding-left: 28px;
    font-size: 13px;
    color: var(--text-light);
}

.dropdown-menu a.sub-category-link:hover {
    color: var(--primary);
}

/* Language Switcher — dropdown style */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 16px;
    z-index: 1001;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--bg, #fff);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text, #333);
    white-space: nowrap;
    transition: border-color 0.2s;
}

.lang-current:hover {
    border-color: var(--primary);
}

.lang-globe { font-size: 15px; }
.lang-arrow { font-size: 10px; margin-left: 2px; opacity: 0.6; }

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 200px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg, #fff);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    list-style: none;
    padding: 4px 0;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-dropdown li { margin: 0; padding: 0; }

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text, #333);
    text-decoration: none;
    transition: background 0.15s;
}

.lang-dropdown li a:hover {
    background: var(--bg-alt, #f1f5f9);
}

.lang-dropdown li.active a {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.lang-flag { font-size: 16px; }

/* RTL support */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 16px;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] header nav,
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .footer-grid {
    direction: rtl;
}

/* Mobile */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 8px;
    }
    .lang-current {
        padding: 6px 10px;
        font-size: 12px;
    }
    .lang-label {
        display: none;
    }
    .lang-dropdown {
        min-width: 160px;
    }
    .lang-dropdown li a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Breadcrumb */
.breadcrumb {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

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

.breadcrumb span {
    margin: 0 8px;
}

.category-description {
    max-width: 700px;
    margin: 16px auto 0;
    color: var(--text-light);
}

/* Hero Banner */
.hero-banner-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-banner-overlay {
    width: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-banner-content {
    max-width: 700px;
}

.hero-banner-content h1 { margin-bottom: 16px; font-weight: 700; }
.hero-banner-content p { margin-bottom: 24px; }

/* Icon Nav */
.icon-nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 18px 22px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.icon-nav-item:hover { transform: translateY(-4px); }
.icon-nav-item.placeholder { opacity: 0.3; pointer-events: none; }

.icon-nav-icon {
    font-size: 48px;
    width: 92px;
    height: 92px;
    background: var(--bg-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icon-nav-item span {
    font-size: 15px;
    font-weight: 500;
}

/* Image Banner */
.image-banner-wrapper { cursor: pointer; }
.image-banner-overlay { background: rgba(0,0,0,0.2); }
.image-banner-overlay h2 { margin-bottom: 12px; font-weight: 700; }
.image-banner-overlay p { margin-bottom: 20px; }

/* Hero Carousel */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 700px;
}

.carousel-content h2 {
    margin-bottom: 16px;
    font-weight: 700;
}

.carousel-content p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.4);
}

.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Product Showcase */
.product-showcase-section .showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.product-showcase-section .showcase-grid.right {
    direction: rtl;
}

.product-showcase-section .showcase-grid.right .showcase-content {
    direction: ltr;
}

.showcase-image img {
    width: 100%;
    border-radius: 12px;
}

.showcase-placeholder {
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.showcase-subtitle {
    color: var(--text-light);
    margin: 16px 0;
}

.showcase-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Section Padding */
.section-padding {
    padding-left: 0;
    padding-right: 0;
}

/* Text Section */
.text-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.text-section-grid.center {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.text-section-image img {
    width: 100%;
    border-radius: 12px;
}

.text-section-body {
    line-height: 1.8;
    margin: 20px 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

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

.news-image {
    height: 200px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.news-info {
    padding: 20px;
}

.news-date {
    color: var(--text-light);
    font-size: 13px;
}

@media (max-width: 768px) {
    .carousel-container { height: 400px; }
    .product-showcase-section .showcase-grid,
    .text-section-grid { grid-template-columns: 1fr; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 20px; }
    .carousel-dot { width: 8px; height: 8px; }
}

/* Subcategories */
.subcategories-section {
    padding: 60px 0 0;
    background: var(--bg-alt);
}

.subcategories-section h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
}

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

    .product-detail-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

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

@media (max-width: 768px) {
    .main-nav,
    .header-actions .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* Mobile Menu Active State */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.main-nav.active .nav-dropdown,
.main-nav.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: block;
}
