/* Common Styles for OZON */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Top Bar */
.top-bar {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-bar-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.top-bar-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

.top-bar-link:hover {
    color: #005BFF;
}

.top-bar-link.location-link {
    color: #005BFF;
}

.top-bar-link svg {
    flex-shrink: 0;
}

.theme-toggle {
    color: #333;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    position: relative;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.header .header-top,
.header .header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
    text-decoration: none;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #005BFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-btn:hover {
    background-color: #0047CC;
}

.catalog-btn.active {
    background-color: #0047CC;
}

.catalog-btn svg {
    flex-shrink: 0;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 2px solid #005BFF;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #0047CC;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #005BFF;
    border: none;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.search-btn:hover {
    background: #0047CC;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.header-icon:hover {
    color: #005BFF;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF6B35;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.header-nav {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.header-nav::-webkit-scrollbar {
    height: 4px;
}

.header-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    white-space: nowrap;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #005BFF;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f5f5f5;
    padding: 12px 0;
    font-size: 13px;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #005BFF;
}

.breadcrumbs span {
    color: #999;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #005BFF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0047CC;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #000;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-add-cart {
    width: 100%;
    margin-top: 12px;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-column a:hover {
    color: #005BFF;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-size: 13px;
}

.social-link:hover {
    background-color: #005BFF;
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Common Section Styles */
.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    word-wrap: break-word;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    word-wrap: break-word;
}

/* Main */
.main {
    min-height: calc(100vh - 400px);
    padding: 24px 0;
    width: 100%;
    overflow-x: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .top-bar-nav {
        gap: 16px;
    }

    .top-bar-link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .top-bar {
        padding: 6px 0;
    }

    .top-bar-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .top-bar-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px solid #e5e5e5;
    }

    .top-bar-left {
        order: 1;
    }

    .top-bar-right {
        order: 2;
        margin-left: auto;
    }

    .top-bar-link {
        font-size: 11px;
    }

    .top-bar-link span:not(.location-link span) {
        display: none;
    }

    .header-top {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .logo {
        order: 1;
    }

    .catalog-btn {
        order: 2;
    }

    .header-actions {
        order: 3;
        gap: 12px;
        margin-left: auto;
    }

    .search-bar {
        order: 4;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    .header-icon {
        width: 36px;
        height: 36px;
    }

    .header-icon svg {
        width: 20px;
        height: 20px;
    }

    .header-nav {
        gap: 16px;
        padding: 10px 0;
    }

    .nav-link {
        font-size: 13px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .footer {
        padding: 32px 0 16px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .breadcrumbs {
        font-size: 12px;
        padding: 10px 0;
    }

    .main {
        padding: 20px 0;
        min-height: calc(100vh - 350px);
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }

    .header-top {
        padding: 10px 0;
        gap: 8px;
    }

    .logo svg {
        width: 75px;
        height: 27px;
    }

    .catalog-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .catalog-btn span {
        display: none;
    }

    .catalog-btn {
        width: 36px;
        padding: 8px;
        justify-content: center;
    }

    .header-actions {
        gap: 8px;
    }

    .header-icon {
        width: 32px;
        height: 32px;
    }

    .header-icon svg {
        width: 18px;
        height: 18px;
    }

    .badge {
        font-size: 10px;
        padding: 1px 5px;
        min-width: 16px;
    }

    .search-input {
        padding: 8px 40px 8px 12px;
        font-size: 13px;
    }

    .search-btn {
        width: 32px;
        height: 32px;
    }

    .search-btn svg {
        width: 16px;
        height: 16px;
    }

    .header-nav {
        gap: 12px;
        padding: 8px 0;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 0;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 8px;
    }

    .social-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .breadcrumbs {
        font-size: 11px;
        padding: 8px 0;
    }

    .main {
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-top {
        padding: 8px 0;
    }

    .logo svg {
        width: 65px;
        height: 23px;
    }

    .catalog-btn {
        width: 32px;
        padding: 7px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-icon {
        width: 28px;
        height: 28px;
    }

    .header-icon svg {
        width: 16px;
        height: 16px;
    }

    .search-input {
        padding: 7px 36px 7px 10px;
        font-size: 12px;
    }

    .search-btn {
        width: 28px;
        height: 28px;
        right: 3px;
    }

    .search-btn svg {
        width: 14px;
        height: 14px;
    }

    .header-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 11px;
    }

    .page-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 16px;
    }

    .btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
}

