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

:root {
    --secondary-color: #ea80ca;
    --primary-color: #ab1253;
    --accent-color: #ab1253;
    --gold-color: #ffb4ed;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 220px; /* Compensar altura del header fijo */
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 8px 20px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Header - MODIFICADO PARA SCROLL */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 20px var(--shadow);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    transform: translateY(0);
}

/* Ocultar header al hacer scroll hacia abajo */
.main-header.hide {
    transform: translateY(-100%);
}

/* Sombra adicional cuando hay scroll */
.main-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-top {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.contact-info {
    display: flex;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    background: var(--bg-light);
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 36px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-search {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.search-container {
    position: relative;
    background: var(--bg-light);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1), inset 0 2px 4px rgba(0,0,0,0.05);
}

.main-search input {
    width: 100%;
    padding: 15px 60px 15px 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.account-menu {
    position: relative;
    cursor: pointer;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-btn:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.wishlist-btn, .cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-btn {
    background: var(--accent-color);
    color: white;
    border-radius: 25px;
}

.cart-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.wishlist-btn:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Navigation */
.main-navigation {
    background: var(--primary-color);
    color: white;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav {
    display: flex;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav > li {
    position: relative;
    flex-shrink: 0;
}

.main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background-image: url('../images/iasamara.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(171, 18, 83, 0.7) 0%,
        rgba(234, 128, 202, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-color);
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-cta:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb-nav::-webkit-scrollbar {
    display: none;
}

.breadcrumb-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-light);
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

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

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

.filter-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-header {
    background: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-content {
    padding: 20px;
}

.filter-content .filter-group {
    margin-bottom: 15px;
}

.filter-content label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.filter-content select,
.filter-content input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-content select:focus,
.filter-content input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    width: calc(50% - 5px);
}

.filter-actions {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    flex: 1;
}

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

/* Products Section */
.products-section {
    min-height: 500px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

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

.products-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: var(--bg-light);
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.product-wishlist:hover {
    background: var(--accent-color);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.stars {
    color: var(--gold-color);
    font-size: 14px;
}

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

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

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

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

.discount {
    background: var(--gold-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.add-to-cart:hover {
    background: #1a252f;
    transform: translateY(-1px);
}

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

.page-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 48px;
    text-align: center;
}

.page-btn:hover,
.page-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-skeleton 1.5s infinite linear;
}

@keyframes shimmer-skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
    .header-content,
    .nav-content,
    .breadcrumb-content,
    .main-content {
        padding: 0 15px;
    }

    .main-search {
        margin: 0 20px;
    }

    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 240px;
    }

    .header-top {
        display: none;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-sidebar {
        position: static;
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .products-section {
        order: 1;
    }

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

    .hero-section {
        padding: 40px 20px;
        background-attachment: scroll;
    }

    .main-nav {
        justify-content: flex-start;
        padding-bottom: 2px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 280px;
    }

    .header-main-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .logo {
        align-self: center;
        font-size: 28px;
    }

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

    .main-search {
        max-width: 100%;
        margin: 0;
        order: 2;
    }

    .header-actions {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .account-btn,
    .wishlist-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .cart-btn {
        padding: 12px 20px;
    }

    .hero-section {
        padding: 30px 15px;
        background-attachment: scroll;
    }

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

    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .products-controls {
        justify-content: space-between;
        gap: 15px;
    }

    .sort-select {
        min-width: 150px;
        flex: 1;
    }

    .view-toggle {
        flex-shrink: 0;
    }

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

    .filters-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 320px;
    }

    .main-content {
        padding: 15px 10px;
    }

    .header-content,
    .nav-content,
    .breadcrumb-content {
        padding: 0 10px;
    }

    .announcement-bar {
        padding: 6px 10px;
        font-size: 13px;
    }

    .logo {
        font-size: 24px;
    }

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

    .main-search input {
        padding: 12px 50px 12px 20px;
        font-size: 15px;
    }

    .search-btn {
        padding: 8px 15px;
    }

    .header-actions {
        gap: 10px;
    }

    .account-btn,
    .wishlist-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .cart-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }

    .main-nav > li > a {
        padding: 15px 16px;
        font-size: 14px;
    }

    .hero-section {
        padding: 25px 10px;
        background-attachment: scroll;
    }

    .hero-cta {
        padding: 12px 25px;
        font-size: 15px;
    }

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

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-brand {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .current-price {
        font-size: 16px;
    }

    .original-price {
        font-size: 13px;
    }

    .add-to-cart {
        padding: 10px;
        font-size: 13px;
    }

    .product-wishlist {
        width: 35px;
        height: 35px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }

    .product-badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .products-controls {
        flex-direction: column;
        gap: 12px;
    }

    .sort-select {
        width: 100%;
        min-width: auto;
    }

    .view-toggle {
        align-self: center;
    }

    .filter-content {
        padding: 15px;
    }

    .filter-actions {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .pagination {
        gap: 5px;
        margin-top: 30px;
    }

    .page-btn {
        padding: 10px 12px;
        min-width: 40px;
        font-size: 14px;
    }

    .breadcrumb-nav {
        font-size: 13px;
        gap: 6px;
    }

    .no-results {
        padding: 40px 10px;
    }

    .no-results-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .loading {
        padding: 60px 10px;
    }

    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
}

@media (max-width: 360px) {
    body {
        padding-top: 340px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-card {
        min-width: 0;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .current-price {
        font-size: 15px;
    }

    .add-to-cart {
        padding: 8px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    .main-search input {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }

    .search-btn {
        padding: 6px 12px;
        right: 3px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 24px;
        margin-right: 6px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .main-nav > li > a {
        padding: 12px 16px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

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

    .search-btn:hover {
        transform: translateY(-50%);
    }

    .cart-btn:hover {
        transform: none;
    }

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

    .hero-cta:hover {
        transform: none;
    }

    .hero-cta:active {
        transform: scale(0.95);
    }

    .main-nav > li > a {
        min-height: 48px;
    }

    .product-wishlist {
        min-width: 44px;
        min-height: 44px;
    }

    .add-to-cart {
        min-height: 44px;
    }

    .page-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

@media print {
    .announcement-bar,
    .main-header,
    .main-navigation,
    .hero-section,
    .filters-sidebar,
    .pagination {
        display: none !important;
    }

    .main-content {
        max-width: 100%;
        padding: 0;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .product-card {
        border: 2px solid #000;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .announcement-bar::before {
        animation: none;
    }

    .loading-spinner {
        animation: none;
        border: 4px solid var(--border-color);
        border-top-color: var(--secondary-color);
    }

    .skeleton {
        animation: none;
        background: #f0f0f0;
    }

    .hero-section {
        background-attachment: scroll !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066cc;
        --accent-color: #cc0000;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #666666;
    }

    .product-card {
        border-width: 2px;
    }

    .btn {
        border-width: 2px;
    }

    .hero-section::before {
        background: rgba(0, 0, 0, 0.7);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #34495e;
        --secondary-color: #3498db;
        --accent-color: #e74c3c;
        --text-dark: #ecf0f1;
        --text-light: #bdc3c7;
        --bg-light: #2c3e50;
        --bg-white: #34495e;
        --border-color: #4a5f7a;
        --shadow: rgba(0, 0, 0, 0.3);
    }

    body {
        background-color: #2c3e50;
        color: #ecf0f1;
    }

    .main-header {
        background: #34495e;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    }

    .search-container {
        background: #2c3e50;
    }

    .product-card {
        background: #34495e;
        border-color: #4a5f7a;
    }

    .filter-section {
        background: #34495e;
        border-color: #4a5f7a;
    }

    .product-wishlist {
        background: rgba(52, 73, 94, 0.9);
    }

    .hero-section {
        background-color: rgba(44, 62, 80, 0.6);
    }

    .hero-section::before {
        background: rgba(0, 0, 0, 0.6);
    }
}
