/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
    background: #e51b15;
    padding: 4px 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top-row {
    display: contents;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    order: 1;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 3;
}

.hamburger-menu {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: opacity 0.3s ease;
}

.hamburger-menu.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-menu.mobile-only {
        display: flex;
    }
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: lowercase;
}

.logo-svg {
    height: 30px;
    width: auto;
    max-width: 120px;
    min-width: 80px;
}

.search-bar {
    flex: 1;
    max-width: 800px;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 40px;
    order: 2;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: #e51b15;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 32px;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.icon-link:hover {
    opacity: 0.8;
}

.icon-link svg {
    width: 32px;
    height: 32px;
}

.login-link {
    gap: 12px;
}

.login-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.login-greeting {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.login-action {
    font-size: 11px;
    font-weight: 400;
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    z-index: 10;
}

.cart-count:empty {
    display: none;
}

.cart-count.hidden {
    display: none;
}

.cart-count-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    font-weight: 700;
}

.header-nav {
    background: #e51b15;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-item {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    padding: 12px 16px;
    white-space: nowrap;
    transition: background 0.3s ease;
    text-decoration: none;
    display: block;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}

.hamburger-menu-nav {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: opacity 0.3s ease;
}

.hamburger-menu-nav span {
    width: 16px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-menu-nav:hover {
    opacity: 0.8;
}

.nav-menu-text {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.nav-button {
    background: #fff;
    color: #333;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 8px;
    display: inline-flex; /* ensure pill height follows content */
    align-items: center;
    line-height: 1.1; /* reduce vertical height */
}

/* Ensure reduced padding overrides .nav-item defaults */
.nav-item.nav-button {
    padding: 6px 12px !important; /* slightly thicker pill */
}

.nav-button-blue {
    color: #007bff;
}

.nav-button-purple {
    background: #6f42c1;
    color: #fff;
}

.nav-button-orange {
    color: #fd7e14;
}

.nav-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== MOBILE FILTER MENU ===== */
.mobile-filter-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

/* ===== FILTER MODAL - Hidden on Desktop ===== */
.filter-modal {
    display: none !important;
}

.mobile-filter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-toggle-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: block;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-label {
    background: #e51b15;
}

.toggle-input:checked + .toggle-label .toggle-slider {
    transform: translateX(20px);
}

.filter-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.heart-icons {
    display: flex;
    gap: 4px;
}

.heart-icon {
    color: #e51b15;
    font-size: 16px;
    font-weight: bold;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 0; /* remove gap to allow dividers to touch buttons */
}

.filter-action-btn {
    display: flex;
    flex-direction: row; /* icon to the left of text */
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    transition: opacity 0.3s ease;
    position: relative;
}

/* Add vertical line before Ordenar */
.filter-action-btn:first-child::before {
    content: '';
    position: absolute;
    left: -8px;
    top: -6px;
    bottom: -6px;
    width: 1px;
    background: #e0e0e0;
}

/* Add vertical line between Ordenar and Filtrar - centered between buttons */
.filter-action-btn:first-child::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -6px;
    bottom: -6px;
    width: 1px;
    background: #e0e0e0;
}

.filter-action-btn:hover {
    opacity: 0.7;
}

.filter-action-btn svg {
    color: #333;
}

.filter-action-btn span {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Make Ordenar and Filtrar sit closer together on mobile */
.mobile-filter-content .filter-divider {
    display: none;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: #f5f5f5;
    padding: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.breadcrumbs::-webkit-scrollbar {
    height: 6px;
}

.breadcrumbs::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.breadcrumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.breadcrumbs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
    min-width: max-content;
    flex-shrink: 0;
}

.breadcrumb-nav a {
    color: #000;
    text-decoration: underline;
}

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

.breadcrumb-separator {
    color: #000;
    text-decoration: none;
}

.breadcrumb-current {
    color: #000;
    font-weight: 500;
    text-decoration: underline;
}

/* ===== PAGE TITLE SECTION ===== */
.page-title-section {
    background: #f5f5f5;
    padding: 8px 0 4px 0;
    text-align: center;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    background: #f5f5f5;
    padding: 4px 0 16px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.category-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 150px;
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.category-icon svg {
    width: 40px;
    height: 40px;
    color: #e51b15;
}

.category-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.category-card h3 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
    padding: 32px 0 40px;
    background: #f5f5f5;
}

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

/* ===== SIDEBAR ===== */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.clear-filters {
    background: transparent;
    border: none;
    color: #e51b15;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.3s ease;
}

.clear-filters:hover {
    opacity: 0.7;
}

.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-section-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-filter input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.search-filter input:focus {
    outline: none;
    border-color: #e51b15;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 4px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e51b15;
}

.checkbox-label:hover {
    color: #e51b15;
}

.scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.price-inputs input {
    flex: 1;
    min-width: 60px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    width: calc(50% - 15px);
}

.price-inputs input:focus {
    outline: none;
    border-color: #e51b15;
}

.price-inputs span {
    color: #666;
    font-size: 12px;
    flex-shrink: 0;
}

.price-ok-btn {
    background: #e51b15;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    min-width: 40px;
}

.price-ok-btn:hover {
    background: #c41510;
}

.clear-price-link {
    color: #e51b15;
    font-size: 12px;
    text-decoration: none;
    margin: 8px 0;
    display: block;
}

.clear-price-link:hover {
    text-decoration: underline;
}

.price-ranges {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-link {
    color: #e51b15;
    font-size: 12px;
    text-decoration: none;
    margin-left: auto;
}

.filter-link:hover {
    text-decoration: underline;
}

.category-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #e51b15;
}

.category-link span {
    color: #e51b15;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e51b15;
}

.checkbox-label:hover {
    color: #e51b15;
}

.apply-filters-btn {
    width: 100%;
    background: #e51b15;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.apply-filters-btn:hover {
    background: #c41510;
}

/* ===== PRODUCTS AREA ===== */
.products-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-controls {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.product-count {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-controls label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.sort-controls select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-controls select:focus {
    outline: none;
    border-color: #e51b15;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #e51b15;
    color: #e51b15;
}

.pagination-btn.active {
    background: #e51b15;
    color: #fff;
    border-color: #e51b15;
}

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

.pagination-dots {
    padding: 8px 12px;
    color: #999;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge-promo {
    left: 8px;
    background: #FFD700;
    color: #333;
}

.badge-energy {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
}

.badge-energy.energy-a-plus-plus-plus {
    background: #00A651;
    color: white;
}

.badge-energy.energy-a-plus-plus {
    background: #4CAF50;
    color: white;
}

.badge-energy.energy-a-plus {
    background: #8BC34A;
    color: white;
}

.badge-energy.energy-a {
    background: #CDDC39;
    color: #333;
}

.badge-energy.energy-b {
    background: #FFEB3B;
    color: #333;
}

.badge-energy.energy-c {
    background: #FFC107;
    color: #333;
}

.badge-energy.energy-d {
    background: #FF9800;
    color: white;
}

/* E-Lar Badge for Product Cards */
.product-image-link [data-badge-template="badge-flag"] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.product-image-link .flag-container {
    position: relative;
}

.product-image-link .flag {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.product-image-link .flag__image {
    height: 18px;
    width: auto;
}

/* E-Lar Badge for Product Page */
.main-image [data-badge-template="badge-flag"] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.main-image .flag-container {
    position: relative;
}

.main-image .flag {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.main-image .flag__image {
    height: 24px;
    width: auto;
}

/* Energy Certification Badge - Manual CSS */
.energy-flag {
    position: relative;
    display: inline-block;
    width: 37px;
    height: 22px;
    background: #FFD700;
    margin-right: 8px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.energy-flag::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 8px 11px 0;
    border-color: transparent #FFD700 transparent transparent;
}

.energy-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .energy-flag {
        width: 32px;
        height: 19px;
        margin-right: 6px;
    }
    
    .energy-flag::before {
        left: -7px;
        border-width: 9.5px 7px 9.5px 0;
    }
    
    .energy-letter {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .energy-flag {
        width: 28px;
        height: 17px;
        margin-right: 4px;
    }
    
    .energy-flag::before {
        left: -6px;
        border-width: 8.5px 6px 8.5px 0;
    }
    
    .energy-letter {
        font-size: 9px;
    }
}

.product-title a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-wrap: wrap;
    gap: 4px;
}

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

/* Responsive product title */
@media (max-width: 768px) {
    .product-title {
        font-size: 11px;
        line-height: 1.2;
        min-height: auto;
        height: auto;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
        overflow: visible;
        display: block;
    }
    
    .product-title a {
        flex-wrap: wrap;
        gap: 2px;
        justify-content: flex-start;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 10px;
        line-height: 1.1;
        min-height: auto;
        height: auto;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
        overflow: visible;
        display: block;
    }
    
    /* Mobile layout adjustments - move content to the right */
    .product-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 8px;
        gap: 8px;
    }
    
    .product-image-link {
        flex-shrink: 0;
        width: 55%;
        margin: -8px 0 -8px -8px;
        padding: 8px;
    }
    
    .product-info {
        flex: 1;
        padding-left: 8px;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        width: 45%;
    }
    
    .product-price {
        text-align: right;
        margin-left: 0;
        max-width: none;
        width: auto;
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .product-old-price {
        text-align: right;
        margin-left: 0;
        max-width: none;
        width: auto;
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .product-title {
        text-align: left;
        margin-left: 0;
        max-width: none;
        width: 100%;
        margin-bottom: 4px;
        min-height: auto;
        height: auto;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
        overflow: visible;
        display: block;
        font-size: 10px;
        line-height: 1.1;
    }
    
    .product-rating {
        text-align: right;
        margin-left: 0;
        max-width: none;
        width: 100%;
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .product-seller {
        text-align: right;
        margin-left: 0;
        max-width: none;
        width: 100%;
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .product-delivery {
        text-align: right;
        margin-left: 0;
        max-width: none;
        width: 100%;
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .product-buy-btn {
        margin-left: auto;
        width: auto;
        min-width: 80px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Voucher badge mobile adjustments */
    .voucher-badge {
        font-size: 7px !important;
        padding: 3px 6px !important;
        background: #709922 !important;
    }
    
    /* Price container mobile - stack vertically */
    .price-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Make price wrapper stack vertically on mobile */
    .price-voucher-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    /* Override product-info alignment for price container */
    .product-info .price-container {
        align-self: flex-start !important;
    }
}

/* Product Image */
.product-image-link {
    display: block;
    padding: 8px;
    background: #fff;
    margin: -8px -8px 0 -8px;
    position: relative;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .product-image {
        height: 180px;
        object-fit: contain;
    }
}

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

/* Product Info */
.product-info {
    padding: 8px 2px 2px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-old-price {
    font-size: 10px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #e51b15;
    margin-bottom: 6px;
    line-height: 1;
    text-align: left;
}

.product-price sup {
    font-size: 16px;
    vertical-align: super;
}

.product-title {
    font-size: 14px !important;
    font-weight: 400;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.2;
    min-height: auto;
    height: auto;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    overflow: visible;
    display: block;
}

.product-title a {
    color: #333;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #e51b15;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 11px;
}

.stars {
    color: #FFA500;
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1;
}

.reviews-count {
    font-size: 11px;
    color: #666;
}

/* Product Meta */
.product-seller {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
    text-align: left;
}

.product-seller strong {
    color: #333;
    font-weight: 700;
}

.product-delivery {
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
    text-align: left;
}

/* Product Buy Button */
.product-buy-btn {
    background: #e51b15;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
}

.product-buy-btn:hover {
    background: #c4170f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 27, 21, 0.3);
}

.product-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(229, 27, 21, 0.3);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 4px 4px;
}

.btn {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-compare {
    flex: 1;
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

.btn-compare:hover {
    background: #f5f5f5;
}

.btn-compare span {
    font-size: 16px;
}

.btn-favorite {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    font-size: 20px;
    padding: 8px 12px;
    line-height: 1;
}

.btn-favorite:hover {
    background: #f5f5f5;
}

.btn-favorite.active {
    color: #e51b15;
}

/* ===== LOADING STATE ===== */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e51b15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
}

/* Newsletter Section */
.footer-newsletter {
    background: #e51b15;
    padding: 40px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.newsletter-disclaimer {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 800px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.email-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.email-input {
    padding: 12px 50px 12px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    width: 100%;
    max-width: 600px;
    transition: box-shadow 0.3s ease;
}

.email-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.email-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.email-submit:hover {
    color: #666;
}

.newsletter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    max-width: 400px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #fff;
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-link {
    color: #fff;
    text-decoration: underline;
}

.privacy-link:hover {
    text-decoration: none;
}

.recaptcha-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.recaptcha-links {
    color: #fff;
    font-size: 11px;
    text-decoration: underline;
}

.recaptcha-links:hover {
    text-decoration: none;
}

/* Main Footer Section */
.footer-main {
    background: #2c2c2c;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

/* App Section */
.app-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-header {
    margin-bottom: 16px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.w-logo {
    width: 50px;
    height: 50px;
    background: #e51b15;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.app-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.app-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: rgba(255,255,255,0.2);
}

.download-btn img {
    width: 20px;
    height: 20px;
}

.app-info-btn {
    background: #e51b15;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.app-info-btn:hover {
    background: #c41510;
}

.social-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e51b15;
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h5 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.footer-icon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-icon {
    font-size: 20px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    background: #1a1a1a;
    padding: 24px 0;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

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

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #e51b15;
}

.footer-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.copyright-info p {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    margin: 0;
    text-align: right;
    line-height: 1.4;
}

.certification-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-width: 100%;
        justify-items: center;
    }
    
    .categories-section {
        position: relative;
        background: #f5f5f5;
        margin-bottom: 40px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        padding: 6px;
    }
    
    .category-icon img {
        width: 70px;
        height: 70px;
    }
    
    /* Footer Responsive */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .newsletter-text h3 {
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-bottom-info {
        align-items: center;
    }
    
    .copyright-info p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .products-area {
        order: 1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0 -20px;
    }
    
    .product-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        padding: 16px !important;
        align-items: flex-start !important;
        gap: 8px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .product-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .product-info {
        flex: 1;
        padding: 0;
    }
    
    /* Mobile Header Layout */
    .header-top-content {
        flex-direction: column;
        gap: 12px;
        padding: 8px 20px;
    }
    
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
        order: 1;
    }
    
    .search-bar {
        width: 100%;
        max-width: none;
        margin: 0 -10px;
        order: 2;
    }
    
    .search-bar input {
        padding: 16px 50px 16px 16px;
        font-size: 16px;
        border-radius: 30px;
    }
    
    .header-right {
        flex-shrink: 0;
        order: 1;
    }
    
    .header-icons {
        gap: 16px;
    }
    
    .login-content {
        gap: 8px;
    }
    
    .login-text {
        display: none;
    }
    
    .mobile-filter-menu {
        display: block;
    }
    
    .nav-content {
        overflow-x: auto;
        padding-left: 0;
    }
    
    .nav-menu-item {
        display: none;
    }
    
    .nav-item {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .nav-item:first-of-type {
        margin-left: 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-width: 100%;
        justify-items: center;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        padding: 6px;
    }
    
    .category-icon img {
        width: 70px;
        height: 70px;
    }
    
    .product-controls {
        flex-direction: column;
        align-items: flex-start;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        gap: 4px;
        margin-top: -50px;
    }
    
    .product-count {
        font-size: 12px;
        color: #333;
        font-weight: 500;
    }
    
    .product-count strong {
        font-weight: 700;
        font-size: 14px;
    }
    
    .learn-more-link {
        margin-top: 0;
    }
    
    .learn-more-text {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #333;
        text-decoration: none;
        font-size: 12px;
        font-weight: 400;
    }
    
    .learn-more-text:hover {
        text-decoration: underline;
    }
    
    .learn-more-text svg {
        flex-shrink: 0;
    }
    
    /* Mobile Filter Modal */
    .filter-modal {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .filter-modal.active {
        display: flex !important;
        align-items: flex-end;
    }
    
    .filter-modal-content {
        background: #fff;
        width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        padding: 20px;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .filter-modal.active .filter-modal-content {
        transform: translateY(0);
    }
    
    .filter-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .filter-modal-title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin: 0;
    }
    
    .filter-modal-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .filter-modal-footer {
        display: flex;
        gap: 12px;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid #e0e0e0;
    }
    
    .filter-modal-btn {
        flex: 1;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
    }
    
    .filter-modal-btn.primary {
        background: #e51b15;
        color: #fff;
    }
    
    .filter-modal-btn.secondary {
        background: #f5f5f5;
        color: #333;
    }
    
    .filter-modal-btn:hover {
        opacity: 0.9;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-inputs input {
        width: 100%;
        min-width: auto;
    }
    
    .price-inputs span {
        display: none;
    }
    
    .price-ok-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    /* Footer Mobile */
    .footer-newsletter {
        padding: 30px 0;
    }
    
    .newsletter-text h3 {
        font-size: 18px;
    }
    
    .email-input {
        width: 100%;
        max-width: 600px;
        border-radius: 25px;
    }
    
    .newsletter-checkboxes {
        align-items: flex-start;
    }
    
    .checkbox-item {
        max-width: 100%;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .app-downloads {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .download-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .certification-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .page-title-section {
        padding: 24px 0;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .icon-link svg {
        width: 28px;
        height: 28px;
    }
    
    .search-bar {
        margin: 0 -15px;
    }
    
    .search-bar input {
        padding: 18px 50px 18px 16px;
        font-size: 18px;
        border-radius: 35px;
    }
    
    .logo img {
        height: 35px;
        width: auto;
        max-width: 120px;
        min-width: 80px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .category-card h3 {
        font-size: 13px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-width: 100%;
        justify-items: center;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        padding: 4px;
    }
    
    .category-icon img {
        width: 50px;
        height: 50px;
    }
    
    /* Footer Mobile Small */
    .newsletter-text h3 {
        font-size: 16px;
    }
    
    .newsletter-disclaimer {
        font-size: 11px;
    }
    
    .email-input {
        font-size: 13px;
        padding: 10px 40px 10px 12px;
        border-radius: 25px;
    }
    
    .checkbox-item {
        font-size: 12px;
    }
    
    .app-logo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .w-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .app-text h4 {
        font-size: 16px;
    }
    
    .app-text p {
        font-size: 13px;
    }
    
    .download-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-column h5 {
        font-size: 15px;
    }
    
    .footer-column a {
        font-size: 13px;
    }
    
    .footer-bottom-links a {
        font-size: 12px;
    }
    
    .copyright-info p {
        font-size: 10px;
    }
    
    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* ===== PRODUCT PAGE ===== */
.product-page {
    background: #fff;
    padding: 20px 0 40px;
}

.store-link {
    margin-bottom: 20px;
}

.store-link-text {
    color: #e51b15;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.store-link-text:hover {
    text-decoration: underline;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Product Main */
.product-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.energy-class {
    display: flex;
    align-items: center;
    gap: 12px;
}

.energy-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.energy-a-plus-plus-plus {
    background: #00A651;
}

.energy-a-plus-plus {
    background: #4CAF50;
}

.energy-a-plus {
    background: #8BC34A;
}

.energy-a {
    background: #CDDC39;
    color: #333;
}

.energy-b {
    background: #FFEB3B;
    color: #333;
}

.energy-c {
    background: #FFC107;
    color: #333;
}

.energy-d {
    background: #FF9800;
}

.energy-text {
    color: #666;
    font-size: 14px;
}

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

.rating-score {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #FFA500;
}

.star.empty {
    color: #ddd;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-image-main {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}


.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #e51b15;
}

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

.thumbnail:hover {
    border-color: #e51b15;
}

.product-actions {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.action-btn svg {
    color: #333;
}

/* Technical Sections */
.technical-section,
.store-stock-section {
    margin-top: 20px;
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.section-toggle:hover {
    color: #e51b15;
}

.section-toggle svg:last-child {
    margin-left: auto;
}

/* Product Sidebar */
.product-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.discount-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.discount-badge {
    background: #ffd500;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discount-badge svg {
    color: #333;
}

.product-price {
    margin-bottom: 12px;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    color: #e51b15;
}

.seller-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.availability-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.availability-info p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

.availability-btn {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.availability-btn:hover {
    background: #555;
}

/* Installation and Warranty Options */
.installation-option,
.warranty-option {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.option-header {
    margin-bottom: 12px;
}

.option-badge {
    background: #ffd500;
    color: #333;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.option-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 8px;
}

.option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e51b15;
}

.option-checkbox span:first-of-type {
    font-size: 14px;
    color: #333;
}

.option-price {
    font-size: 14px;
    font-weight: 600;
    color: #e51b15;
}

.option-link {
    color: #e51b15;
    font-size: 12px;
    text-decoration: none;
}

.option-link:hover {
    text-decoration: underline;
}

/* Delivery Info */
.delivery-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.delivery-header {
    margin-bottom: 12px;
}

.seller-text {
    font-size: 12px;
    color: #e51b15;
    font-weight: 600;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.delivery-item svg {
    color: #e51b15;
    flex-shrink: 0;
    margin-top: 2px;
}

.delivery-text strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.delivery-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.delivery-text a {
    color: #e51b15;
    text-decoration: none;
}

.delivery-text a:hover {
    text-decoration: underline;
}

/* Recycling Info */
.recycling-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
}

.recycling-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.recycling-item svg {
    color: #e51b15;
    flex-shrink: 0;
    margin-top: 2px;
}

.recycling-text strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.recycling-text a {
    color: #e51b15;
    font-size: 12px;
    text-decoration: none;
}

.recycling-text a:hover {
    text-decoration: underline;
}

/* Product Page Responsive */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-image-main {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-sidebar {
        position: static;
        order: 2;
    }
    
    .product-main {
        order: 1;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-image-main {
        height: 300px;
    }
    
    .thumbnail-gallery {
        justify-content: center;
    }
    
    .product-actions {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 16px;
    }
    
    .price-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 18px;
    }
    
    .product-image-main {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .product-sidebar {
        padding: 16px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Notification System Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.notification-message {
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 250px;
    pointer-events: auto;
    animation: slideIn 0.3s ease-out;
}

.notification-message.success {
    background: #28a745;
}

.notification-message.error {
    background: #dc3545;
}

.notification-message .close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message .close-btn:hover {
    opacity: 1;
}

#close-all-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#close-all-notifications:hover {
    transform: scale(1.1);
    background: #c82333;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification-message {
        min-width: auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #close-all-notifications {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .notification-message {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .notification-message .close-btn {
        font-size: 12px;
        width: 18px;
        height: 18px;
    }
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: none;
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: #e51b15;
}

.mobile-bottom-nav .nav-item.active .nav-icon svg {
    stroke: #e51b15;
}

.mobile-bottom-nav .nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: inherit;
}

/* Highlighted item (Ofertas) */
.mobile-bottom-nav .nav-item.nav-highlight {
    background: #383838;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    margin: -20px auto 0;
    padding: 0;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.mobile-bottom-nav .nav-item.nav-highlight .nav-icon {
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.nav-highlight .nav-icon svg {
    stroke: #fff;
    width: 20px;
    height: 20px;
}

.mobile-bottom-nav .nav-item.nav-highlight .nav-label {
    color: #fff;
    font-weight: 700;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    min-width: 18px;
}

.cart-badge:empty {
    display: none;
}

/* Show mobile nav only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        padding: 20px 0 8px;
    }
    
    /* Add bottom padding to main content to prevent overlap */
    .main-content {
        padding-bottom: 100px;
    }
    
    .footer {
        margin-bottom: 80px;
    }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        padding: 10px 0 6px;
    }
    
    .mobile-bottom-nav .nav-item {
        padding: 6px 2px;
    }
    
    .mobile-bottom-nav .nav-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .mobile-bottom-nav .nav-label {
        font-size: 10px;
    }
    
    .mobile-bottom-nav .nav-item.nav-highlight {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
        margin: -15px auto 0;
        aspect-ratio: 1;
    }
    
    .mobile-bottom-nav .nav-item.nav-highlight .nav-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-bottom-nav .nav-item.nav-highlight .nav-label {
        font-size: 7px;
    }
    
    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        min-width: 16px;
    }
}
