/* Custom Styles for KGT Catalog Theme */

/* KGT Apple-style base */
:root{
  --kgt-bg: #ffffff;
  --kgt-muted: #6b6b6b;
  --kgt-accent: #111111;
  --kgt-gap: 28px;
  --kgt-radius: 14px;
  --kgt-container-width: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body { background: var(--kgt-bg); color: var(--kgt-accent); margin:0; font-size:16px; line-height:1.5; }
.container { max-width: var(--kgt-container-width); margin: 0 auto; padding: 40px 20px; }

/* single product */
.kgt-product-grid { display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: start; margin-top: 20px; }
.kgt-media-column { background: transparent; padding: 8px; }
.kgt-main-image { width:100%; height:auto; border-radius: 10px; box-shadow: 0 8px 24px rgba(10,10,10,0.06); }
.kgt-gallery-thumbs { display:flex; gap:8px; margin-top:12px; }
.kgt-thumb { width:72px; height:72px; object-fit:cover; border-radius:8px; cursor:pointer; opacity:0.95; transition:transform .18s ease, box-shadow .18s ease; }
.kgt-thumb:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(10,10,10,0.08); }

/* info column */
.kgt-product-title { font-size:28px; font-weight:600; margin:0 0 6px 0; }
.kgt-product-subtitle { color:var(--kgt-muted); margin:0 0 18px 0; font-size:14px; }
.kgt-section-title { font-size:16px; font-weight:600; margin-bottom:10px; }
.kgt-specs-table { width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 6px 20px rgba(10,10,10,0.03); }
.kgt-specs-table th, .kgt-specs-table td { padding:10px 14px; text-align:left; font-size:14px; border-bottom:1px solid #f2f2f2; }
.kgt-specs-table th { width:40%; color:var(--kgt-muted); font-weight:500; }

/* actions */
.kgt-actions { margin:20px 0; display:flex; gap:12px; }
.kgt-compare-btn, .kgt-contact-btn { padding:10px 18px; border-radius:10px; font-weight:600; border: none; text-decoration:none; cursor:pointer; }
.kgt-compare-btn { background:#f5f5f7; color:var(--kgt-accent); }
.kgt-contact-btn { background:#111; color:#fff; }

/* responsive */
@media (max-width: 980px){
  .kgt-product-grid { grid-template-columns: 1fr; }
  .container { padding: 24px; }
  .kgt-gallery-thumbs { overflow:auto; }
}


/* Header Styles */
.site-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle__line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-form__wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.search-form__input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: white;
    transition: var(--transition);
}

.search-form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-form__submit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-form__submit:hover {
    color: var(--primary-color);
}

.search-overlay__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section - Apple Style (высота уменьшена вдвое под баннер/промо-видео) */
.hero-section {
    background: var(--background-primary);
    color: var(--text-primary);
    text-align: center;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    background-image: url('/img/maddy-baker-b_gAP97t7Is-unsplash.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}
.hero-section > .container,
.hero-section > .hero-section__container {
    position: relative;
    z-index: 2;
}
.hero-section__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.hero-section__media--video .hero-section__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-section__media--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.hero-section--compact {
    min-height: 40vh;
    padding: 56px 0 44px;
}
.hero-section__container {
    width: 100%;
    max-width: var(--kgt-container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-actions .btn--primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.hero-actions .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

.hero-actions .btn--secondary { background: #fff; color: var(--text-primary); border: 2px solid var(--border-color); }
.hero-actions .btn--secondary:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* ----- Apple-style product blocks (фото на чёрном фоне + характеристики как connectivity) ----- */
.apple-products-section {
    background: #000;
    color: #f5f5f7;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.apple-products-section .section-header--center {
    text-align: center;
    margin-bottom: 3rem;
}
.apple-products-section__title {
    color: #f5f5f7;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.apple-products-section .section-description {
    color: rgba(245, 245, 247, 0.8);
    font-size: 1.25rem;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}
.apple-products-section__empty {
    color: rgba(245, 245, 247, 0.8);
    text-align: center;
    padding: 2rem;
}
.container--narrow {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.section-footer--center {
    text-align: center;
    padding-top: 2rem;
}
.section-footer--center .btn--apple {
    background: transparent;
    color: #2997ff;
    border: 2px solid #2997ff;
}
.section-footer--center .btn--apple:hover {
    background: #2997ff;
    color: #000;
}

/* Один блок = один товар (full-width, тёмная тема) */
.apple-product-block {
    padding: 0 0 5rem;
    position: relative;
}
.apple-product-block.no-pad-top { padding-top: 0; }
.apple-product-block.preserve-pad-bottom { padding-bottom: 5rem; }
.apple-product-block__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.apple-product-block__media {
    position: relative;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apple-product-block__media-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
}
.apple-product-block__image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}
.apple-product-block__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apple-product-block:hover .apple-product-block__image {
    transform: scale(1.02);
}
.apple-product-block__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.apple-product-block__placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d1d1f;
    border-radius: 12px;
}
.apple-product-block__placeholder-text {
    color: rgba(245, 245, 247, 0.5);
    font-size: 1rem;
}

/* Контент под фото: название + блок характеристик (connectivity-style) */
.apple-product-block__content {
    text-align: center;
    padding: 0 1rem;
}
.apple-product-block__title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.apple-product-block__title a {
    color: #f5f5f7;
    text-decoration: none;
    transition: color 0.2s ease;
}
.apple-product-block__title a:hover {
    color: #2997ff;
}

/* Блок характеристик в стиле Apple (section-connectivity) */
.apple-product-block__specs.section-connectivity-style {
    margin-bottom: 1.5rem;
}
.apple-specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem 2rem;
    justify-content: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.apple-specs-list__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, transform 0.25s ease;
}
.apple-specs-list__item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.apple-specs-list__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(245, 245, 247, 0.7);
}
.apple-specs-list__value {
    font-size: 1rem;
    font-weight: 500;
    color: #f5f5f7;
}
.btn--apple {
    background: #2997ff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 500;
    transition: background 0.25s ease, transform 0.2s ease;
}
.btn--apple:hover {
    background: #0077ed;
    color: #fff;
    transform: scale(1.02);
}

/* Staggered fade-in анимация для блоков товаров */
.apple-product-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apple-product-block.anim-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card__image {
    position: relative;
    overflow: hidden;
}

.product-card__image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.product-card__attributes {
    margin-top: 1rem;
}

.product-attribute {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.attribute-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.attribute-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.category-card__media {
    position: relative;
    overflow: hidden;
}

.category-card__video {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-card__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card__video video {
    transform: scale(1.05);
}

.category-card__video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card__video-overlay {
    opacity: 1;
}

.category-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--background-secondary);
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card__overlay {
    opacity: 1;
}

.category-card__count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Single Product Page */
.single-product-page {
    padding-top: 2rem;
}

/* Product Breadcrumbs */
.product-breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Product Details Layout */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Product Gallery */
.product-gallery {
    margin-bottom: 2rem;
}

.product-gallery__slider {
    position: relative;
    margin-bottom: 1rem;
}

.product-gallery__slide {
    display: none;
}

.product-gallery__slide.active {
    display: block;
}

.product-gallery__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.product-gallery__thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.product-gallery__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Video */
.product-video {
    margin: 2rem 0;
}

.product-video__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-video__player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Product Header */
.product-header {
    margin-bottom: 2rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.product-meta {
    margin-bottom: 1.5rem;
}

.product-category {
    margin-bottom: 1rem;
}

.meta-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--secondary-color);
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.product-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.product-actions .btn svg {
    width: 16px;
    height: 16px;
}

.product-share {
    margin-left: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Product Short Description */
.product-short-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Attributes Table */
.attributes-table {
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.attribute-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.attribute-row:last-child {
    border-bottom: none;
}

.attribute-row .attribute-label {
    font-weight: 600;
    color: var(--text-primary);
}

.attribute-row .attribute-value {
    color: var(--text-secondary);
    text-align: right;
}

/* Product Filters */
.product-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.price-separator {
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.filter-checkbox:hover {
    background: var(--background-secondary);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox .count {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Dimensions Filter */
.dimensions-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dimension-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dimension-input label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dimension-input input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dimension-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.dimension-input input[type="number"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Pagination */
.kgt-pagination,
.blog-pagination,
.products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.kgt-pagination ul,
.blog-pagination ul,
.products-pagination ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.kgt-pagination li,
.blog-pagination li,
.products-pagination li {
    margin: 0;
}

.kgt-pagination a,
.kgt-pagination span,
.blog-pagination a,
.blog-pagination span,
.products-pagination a,
.products-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.kgt-pagination a,
.blog-pagination a,
.products-pagination a {
    color: var(--text-primary);
    background: var(--background-secondary);
}

.kgt-pagination a:hover,
.blog-pagination a:hover,
.products-pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.kgt-pagination .current,
.blog-pagination .current,
.products-pagination .current {
    background: var(--primary-color);
    color: white;
}

/* Blog Styles */
.blog-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-card__excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Single Post */
.single-post__header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.single-post__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.single-post__featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post__content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post__content p {
    margin-bottom: 1.5rem;
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post__content li {
    margin-bottom: 0.5rem;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.post-nav-link:hover {
    background: var(--primary-color);
    color: white;
}

.post-navigation__next .post-nav-link {
    flex-direction: row-reverse;
    text-align: right;
}

.post-nav-arrow {
    font-size: 1.5rem;
    font-weight: 700;
}

.post-nav-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.post-nav-title {
    font-weight: 600;
    line-height: 1.3;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Footer */
.site-footer {
    background: var(--background-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-widgets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-bottom__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design */
/* Скрытый заголовок для доступности (если тема не задаёт .screen-reader-text) */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .hero-section--compact,
    .hero-section {
        min-height: 35vh;
        padding: 40px 0 32px;
    }
    .hero-title { font-size: 2.25rem; }
    .apple-products-section__title { font-size: 1.75rem; }
    .apple-product-block__title { font-size: 1.5rem; }
    .apple-product-block__media { min-height: 220px; }
    .apple-product-block__image-wrap { padding: 1.25rem; }
    .apple-specs-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1rem;
    }
    .apple-specs-list__item { padding: 0.5rem; }
    .apple-specs-list__value { font-size: 0.9rem; }

    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-medium);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .archive-content {
        flex-direction: column;
    }
    
    .archive-sidebar {
        order: 2;
    }
    
    .archive-main {
        order: 1;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom__content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Single Product Mobile */
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-share {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .single-post__title {
        font-size: 2rem;
    }
    
    .single-post__meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Apple-style category landing */
.kgt-category-hero {
  position: relative;
  min-height: 80vh;
  color: #fff;
  overflow: hidden;
}
.kgt-category-video,
.kgt-category-bg {
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  object-fit:cover;
}
.kgt-category-hero-content {
  position:relative;
  z-index:2;
  padding-top:40vh;
}
.kgt-category-hero h1 {
  font-size:56px;
  font-weight:600;
}
.kgt-category-description {
  max-width:520px;
  font-size:18px;
  opacity:.9;
}
.kgt-products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
}
.kgt-product-card img {
  border-radius:16px;
  transition:transform .4s ease;
}
.kgt-product-card:hover img {
  transform:scale(1.03);
}

/* Apple-style single product */
.kgt-single-hero {
  background:#000;
  color:#fff;
  min-height:100vh;
  display:flex;
  align-items:center;
}
.kgt-single-hero-media img {
  max-width:100%;
}
.kgt-single-hero h1 {
  font-size:64px;
  font-weight:600;
}
.kgt-single-subtitle {
  font-size:20px;
  opacity:.8;
}
.kgt-single-story {
  padding:120px 20px;
  font-size:20px;
}
.kgt-single-compatibility ul {
  list-style:none;
  padding:0;
  font-size:18px;
}
.kgt-single-specs table {
  width:100%;
  border-collapse:collapse;
}
.kgt-single-specs th, .kgt-single-specs td {
  padding:12px;
  border-bottom:1px solid #eee;
}

/* Apple Pro Product Page */
.kgt-hero {
  position:relative;
  height:100vh;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.kgt-hero video, .kgt-hero img {
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
}
.kgt-hero-content {
  position:relative;
  z-index:2;
  text-align:center;
}
.kgt-hero h1 { font-size:64px; }
.kgt-sticky-nav {
  position:sticky;
  top:0;
  background:#fff;
  display:flex;
  justify-content:center;
  gap:40px;
  padding:16px;
  z-index:10;
}
.kgt-sticky-nav a {
  text-decoration:none;
  font-weight:500;
}
.kgt-features {
  padding:120px 20px;
  max-width:1200px;
  margin:auto;
  font-size:20px;
}
.kgt-compatibility, .kgt-specs {
  padding:120px 20px;
  max-width:1000px;
  margin:auto;
}
.kgt-specs table {
  width:100%;
  border-collapse:collapse;
}
.kgt-specs th, .kgt-specs td {
  padding:14px;
  border-bottom:1px solid #eee;
}
