html {
    overflow-x: hidden;
}
:root {
    --primary-color: #101A33;
    --primary-dark: #080B14;
    --accent-color: #3B6BFF;
    --gold: #F0B429;
    --text-dark: #12141C;
    --text-medium: #4A4E5A;
    --text-light: #767B8A;
    --bg-light: #F5F6FA;
    --bg-white: #ffffff;
    --border-color: #E4E7EF;
    --shadow-sm: 0 2px 8px rgba(8,11,20,0.08);
    --shadow-md: 0 4px 20px rgba(8,11,20,0.10);
    --shadow-lg: 0 12px 40px rgba(8,11,20,0.14);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-cut: 18px 4px 18px 4px;
    --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

/* Header & Navigation */
.header {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 18, 43, 0.96);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    margin-left: 164px;
}

.logo svg {
    display: block;
}

@media (max-width: 900px) {
    .logo { margin-left: 0; }
}

.logo-icon {
    font-size: 20px;
    color: var(--accent-color);
}

.logo strong {
    font-weight: 800;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
    opacity: 0.88;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.cart-form {
    margin-top:20px;
}


.btn-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0B1E42 0%, #05122B 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(47, 111, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(47, 111, 237, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 80px 0;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 16px rgba(47, 111, 237, 0.3);
}

.btn-primary:hover {
    background: #1F5AD6;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(47, 111, 237, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    width: 100%;
}

/* Sections */
.featured-categories,
.featured-products,
.stats,
.cta-section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-arrow {
    font-size: 20px;
    color: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.sale {
    background: #e53e3e;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.old-price {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-top: 2px;
}

.btn-view {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-view:hover {
    transform: translateX(4px);
}

/* Stats Section */
.stats {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-medium);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

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

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

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* Category Page Layout */
.category-page {
    padding: 60px 0;
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Filters */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 32px;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition);
}

.filter-list label:hover {
    color: var(--primary-color);
}

.filter-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.filter-reset {
    width: 100%;
    margin-top: 24px;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.products-count {
    font-size: 16px;
    color: var(--text-medium);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-sort select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-link {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-medium);
    transition: var(--transition);
}

.page-link:hover:not(.disabled) {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-light);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background: var(--bg-light);
}

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

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

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    min-width: 0;
}

/* Prevent grid blowout on both columns */
.product-layout > * {
    min-width: 0;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

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

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.thumb:hover,
.thumb.active {
    border-color: var(--accent-color);
}

/* Product Details */
.product-badge-detail {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

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

.product-price-detail {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.price-current {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.price-tax {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.product-options {
    margin-bottom: 32px;
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 12px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

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

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.product-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    cursor: pointer;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.product-features {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-medium);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: #48bb78;
    font-weight: 700;
    font-size: 18px;
}

/* Tabs */
.product-info-tabs {
    margin-bottom: 80px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.tab-content h4 {
    font-size: 18px;
    margin: 24px 0 12px;
}

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

.tab-content ul {
    margin-left: 24px;
    color: var(--text-medium);
}

.tab-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    color: var(--text-dark);
    width: 30%;
    background: var(--bg-light);
}

.specs-table td {
    padding: 16px;
    color: var(--text-medium);
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 24px;
    margin-bottom: 8px;
}

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

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar span:first-child {
    width: 30px;
    color: var(--text-medium);
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: var(--text-light);
    font-size: 14px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

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

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-stars {
    color: #fbbf24;
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Related Products */
.related-products {
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 32px 32px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .price-current {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRODUCT PAGE IMAGE GALLERY ===== */
.product-gallery {
    position: relative;
    width: 100%;
}

.gallery-main {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    max-width: 100%;
}

.gallery-thumbs .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbs .thumb:hover {
    opacity: 1;
    border-color: #2F6FED;
    transform: scale(1.05);
}

.gallery-thumbs .thumb.active {
    border-color: #2F6FED;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(47, 111, 237, 0.3);
}

@media (max-width: 768px) {
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* UPDATED PRODUCT PAGE IMAGE GALLERY - OPTIMIZED SIZE */
.product-gallery {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.gallery-main {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-thumbs .thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gallery-thumbs .thumb:hover {
    opacity: 1;
    border-color: #2F6FED;
}

.gallery-thumbs .thumb.active {
    border-color: #2F6FED;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.2);
}

@media (max-width: 768px) {
    .product-gallery {
        max-width: 100%;
    }
    
    .gallery-thumbs .thumb {
        height: 80px;
    }
}

/* Footer Link Color Fix */
.footer-bottom a {
    color: #2F6FED !important;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}


/* FOOTER */
.site-footer { background:#0B1220; border-top:1px solid rgba(255,255,255,0.06); padding:48px 32px 28px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px; max-width:var(--container); margin-left:auto; margin-right:auto; }
.footer-brand .footer-name { font-family:var(--font-d); font-size:16px; font-weight:700; color:#fff; margin-bottom:10px; }
.footer-brand p { font-size:13px; color:rgba(255,255,255,0.4); line-height:1.7; }
.footer-col h4 { font-size:11px; font-weight:600; color:rgba(255,255,255,0.4); text-transform:uppercase; letter-spacing:.12em; margin-bottom:14px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:8px; }
.footer-col a { font-size:13px; color:rgba(255,255,255,0.4); text-decoration:none; transition:color var(--tr); }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid rgba(255,255,255,0.06); flex-wrap:wrap; gap:12px; max-width:var(--container); margin:0 auto; }
.footer-copy { font-size:12px; color:rgba(255,255,255,0.25); }
.footer-legal { display:flex; gap:18px; list-style:none; }
.footer-legal a { font-size:12px; color:rgba(255,255,255,0.3); text-decoration:none; transition:color var(--tr); }
.footer-legal a:hover { color:var(--accent); }



/* ===================================================================
   CoreParts shared chrome — header, utility bar, search, nav, buttons.
   Lives here (not per-page) so every page gets the same header, not just
   the homepage.
   =================================================================== */
:root {
    --nc-navy: #101A33;
    --nc-navy-dark: #080B14;
    --nc-blue: #3B6BFF;
    --nc-blue-light: #9DB6FF;
    --nc-gold: #F0B429;
}

.cp-utility { background: var(--nc-navy-dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
.cp-utility-inner { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 24px; font-size: 12.5px; color: rgba(255,255,255,0.65); }
.cp-util-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.65); text-decoration: none; }
.cp-util-item:hover { color: #fff; }
.cp-util-right { margin-left: auto; color: var(--nc-blue-light); font-weight: 600; }
@media (max-width: 700px) { .cp-util-hide-sm, .cp-util-right { display: none; } }

.cp-header { background: var(--nc-navy); position: sticky; top: 0; z-index: 1000; }
.cp-header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.cp-logo { display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.cp-search { flex: 1; max-width: 520px; display: flex; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px 2px 10px 2px; padding: 0 6px 0 14px; font-family: var(--font-body); }
.cp-search-icon { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.cp-search-input { flex: 1; background: none; border: none; outline: none; padding: 11px 10px; color: #fff; font-size: 14px; }
.cp-search-input::placeholder { color: rgba(255,255,255,0.4); }
.cp-search-btn { background: var(--nc-blue); color: #fff; border: none; border-radius: 7px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cp-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.cp-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14.5px; font-weight: 600; font-family: var(--font-body); }
.cp-nav a:hover, .cp-nav a.active { color: #fff; }
.cp-cart-link { position: relative; display: flex; align-items: center; color: #fff; }
.cp-cart-count { position: absolute; top: -8px; right: -10px; background: var(--nc-blue); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 10px; }
.cp-nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.cp-nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 860px) {
    .cp-search { display: none; }
    .cp-nav { position: fixed; top: 0; right: -280px; height: 100vh; width: 260px; background: var(--nc-navy); flex-direction: column; align-items: flex-start; padding: 80px 24px; gap: 22px; transition: right 0.3s ease; }
    .cp-nav.active { right: 0; }
    .cp-nav-toggle { display: flex; }
}

/* Shared buttons — asymmetric "cut corner" shape is the site's signature detail */
.cp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 14px 3px 14px 3px; font-weight: 700; font-size: 14.5px; font-family: var(--font-body); text-decoration: none; cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.15s; }
.cp-btn-primary { background: var(--nc-blue); color: #fff; box-shadow: 0 4px 18px rgba(59,107,255,0.35); }
.cp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(59,107,255,0.45); }
.cp-btn-gold { background: var(--nc-gold); color: #16130A; box-shadow: 0 4px 18px rgba(240,180,41,0.3); }
.cp-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(240,180,41,0.4); }
.cp-btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.cp-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.cp-btn-light { background: #fff; color: var(--nc-navy); }
.cp-btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
