/* ============================================
   SEVEBEMASLITTY - Modern Bijuteri Mağazası
   Özgün Tasarım - 2024
   ============================================ */

:root {
    --primary-color: #A45BB9;
    --secondary-color: #FFE3F4;
    --accent-color: #F7D62F;
    --bg-color: #FAFAFA;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --white: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow: 0 4px 20px rgba(164, 91, 185, 0.1);
    --shadow-hover: 0 8px 30px rgba(164, 91, 185, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

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

/* Улучшение для touch-устройств */
button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Предотвращение горизонтальной прокрутки */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img,
.logo svg {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 40px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(164, 91, 185, 0.7) 0%, rgba(255, 227, 244, 0.7) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

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

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* ============================================
   COLLECTIONS GRID
   ============================================ */

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

.collection-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.collection-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.collection-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(164, 91, 185, 0.1), rgba(255, 227, 244, 0.1));
}

.collection-content {
    padding: 2rem;
}

.collection-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
}

.product-image {
    width: 100%;
    height: 280px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-add-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-add-cart:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* ============================================
   WHY US SECTION
   ============================================ */

.why-us {
    background: var(--white);
    padding: 4rem 2rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    background: linear-gradient(135deg, var(--secondary-color), var(--white));
    padding: 4rem 2rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail {
    padding: 4rem 2rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-gallery {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.product-info-detail {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.product-info-detail h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-specs {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 150px 1fr auto auto;
    gap: 2rem;
    align-items: center;
}

.cart-item-image {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.remove-btn {
    background: #ff4444;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.remove-btn:hover {
    background: #cc0000;
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

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

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.checkout-form {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(164, 91, 185, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   CONTENT PAGES
   ============================================ */

.content-page {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-page p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.content-page li {
    margin-bottom: 0.5rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem 2rem;
    z-index: 10000;
    display: none;
    animation: slideUp 0.3s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    color: var(--text-dark);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-cookie-accept:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

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

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

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container {
        padding: 0 1.5rem;
    }

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

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

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

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

    .product-detail-container {
        gap: 2rem;
    }

    .main-image {
        height: 400px;
    }
}

/* Мобильные устройства и планшеты (до 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        font-size: 1.8rem;
        padding: 0.5rem;
        order: 2;
        z-index: 1001;
        position: relative;
    }

    .header-container {
        padding: 1rem;
        flex-wrap: wrap;
        position: relative;
    }

    header {
        position: relative;
        z-index: 1001;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 0;
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

    nav.active {
        display: block !important;
        max-height: 500px !important;
        opacity: 1 !important;
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: flex;
        padding: 1rem;
        border-bottom: none;
        min-height: 44px;
        align-items: center;
        color: var(--text-dark);
        transition: background-color 0.3s ease;
    }

    nav a:hover {
        background-color: var(--secondary-color);
    }

    .cart-icon {
        justify-content: flex-start;
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
        flex: 1;
    }

    .logo img,
    .logo svg {
        width: 35px;
        height: 35px;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 400px;
        background-size: cover;
        background-position: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-image {
        height: 350px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .cart-item-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .quantity-controls {
        justify-content: center;
        margin: 1rem 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-cookie {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        padding: 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .content-page {
        padding: 2rem 1.5rem;
    }

    .checkout-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Малые мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0;
    }

    .collections-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 350px;
        background-size: cover;
        background-position: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .logo img,
    .logo svg {
        width: 30px;
        height: 30px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .collection-card {
        margin-bottom: 1rem;
    }

    .collection-image {
        height: 200px;
    }

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

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .btn-add-cart {
        padding: 0.625rem;
        font-size: 0.9rem;
    }

    .main-image {
        height: 300px;
    }

    .detail-price {
        font-size: 1.75rem;
    }

    .cart-item {
        padding: 1rem;
    }

    .cart-item-image {
        max-width: 150px;
        height: 150px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .content-page {
        padding: 1.5rem 1rem;
    }

    .content-page p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .checkout-form {
        padding: 1rem;
    }

    .summary-row {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }

    .summary-row:last-child {
        font-size: 1.25rem;
    }

    /* Google Maps адаптация */
    iframe {
        height: 300px !important;
    }

    /* Карточки контактов */
    .content-page > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Улучшение для форм на мобильных */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        font-size: 16px !important; /* Предотвращает zoom на iOS */
    }

    /* Улучшение для таблиц */
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img,
    .logo svg {
        width: 25px;
        height: 25px;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1.5rem;
        min-height: 300px;
        background-size: cover;
        background-position: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .main-image {
        height: 250px;
    }

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

/* Улучшения для планшетов в портретной ориентации */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Улучшения для больших планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    nav {
        display: flex !important;
    }

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

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

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

/* Дополнительные улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .collection-card:hover {
        transform: none;
    }

    .product-card:active,
    .collection-card:active {
        transform: scale(0.98);
    }

    .btn:active,
    .btn-add-cart:active {
        transform: scale(0.95);
    }
}

/* Улучшения для высоких экранов (landscape на мобильных) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1.5rem;
        min-height: 280px;
        background-size: cover;
        background-position: center;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    section {
        padding: 2rem 1.5rem;
    }

    header {
        padding: 0.5rem 0;
    }
}

/* Десктоп (769px и выше) */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    nav {
        display: flex !important;
    }
}

/* Улучшения для очень больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

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

/* Улучшения для печати */
@media print {
    header,
    footer,
    .cookie-banner,
    .btn,
    nav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .product-card,
    .collection-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

