/* layer: preflights */
*,
::before,
::after {
    --w-rotate: 0;
    --w-rotate-x: 0;
    --w-rotate-y: 0;
    --w-rotate-z: 0;
    --w-scale-x: 1;
    --w-scale-y: 1;
    --w-scale-z: 1;
    --w-skew-x: 0;
    --w-skew-y: 0;
    --w-translate-x: 0;
    --w-translate-y: 0;
    --w-translate-z: 0;

}

/* layer: shortcuts */
.page-container {
    background-color: var(--w-s-color-background);
    max-width: 1010px;
    margin: 0rem;
    padding: 0rem;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Premium Products Header */
.premium-header {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.premium-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.premium-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(6, 190, 252, 0.1);
    border: 1px solid rgba(6, 190, 252, 0.2);
    color: black !important;
}

.view-all-link:hover {
    background: #06befc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 190, 252, 0.3);
    text-decoration: none;
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(2px);
}

/* Country Filter Section */
.country-filter-section {
    border-radius: 12px;
    padding: 1.5rem;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    color: #06befc;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #06befc;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 190, 252, 0.2);
    text-decoration: none !important;
}

.filter-btn.active {
    background: linear-gradient(135deg, #06befc 0%, #05a3d9 100%);
    border-color: #06befc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 190, 252, 0.4);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #05a3d9 0%, #0488c4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 190, 252, 0.5);
}

.filter-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.1);
}

.filter-btn.active i {
    transform: scale(1.1);
}

/* Large Desktop Responsive Design */
@media (min-width: 1200px) {
    .premium-header {
        padding: 2rem 0;
        margin-bottom: 2.5rem;
    }

    .premium-title {
        font-size: 2rem;
    }

    .country-filter-section {
        padding: 2rem;
    }

    .filter-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
    }

    .filter-buttons {
        gap: 1rem;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .premium-header {
        padding: 1.25rem 0;
        margin-bottom: 1.75rem;
    }

    .premium-title {
        font-size: 1.6rem;
    }

    .country-filter-section {
        padding: 1.25rem;
    }

    .filter-btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
        min-width: 110px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .premium-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .premium-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .premium-title {
        font-size: 1.5rem;
    }

    .view-all-link {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .country-filter-section {
        padding: 1rem;
        border-radius: 8px;
    }

    .filter-container {
        gap: 0.75rem;
    }

    .filter-label {
        font-size: 0.8rem;
        justify-content: center;
    }

    .filter-buttons {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 100px;
        flex: 1;
        max-width: 140px;
        color: #1a1a1a !important;
        text-decoration: none !important;
    }

    .filter-btn:hover {
        color: #1a1a1a !important;
        text-decoration: none !important;
    }

    .filter-btn span {
        font-size: 0.75rem;
    }

    .filter-btn i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .premium-header {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }

    .premium-title-section {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .premium-title {
        font-size: 1.25rem;
    }

    .view-all-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .country-filter-section {
        padding: 0.75rem;
        border-radius: 6px;
    }

    .filter-container {
        gap: 0.5rem;
    }

    .filter-label {
        font-size: 0.75rem;
        justify-content: center;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        color: #1a1a1a !important;
        text-decoration: none !important;
    }

    .filter-btn:hover {
        color: #1a1a1a !important;
        text-decoration: none !important;
    }

    .filter-btn span {
        font-size: 0.7rem;
    }

    .filter-btn i {
        font-size: 0.7rem;
    }
}

/* No products message styling */
.no-products-message {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

@media (min-width: 768px) {
    .md\:h3 {
        font-weight: 700;
        font-size: var(--w-font-size-l);
        line-height: var(--w-line-height-l);
    }
}

@media (min-width: 990px) {
    .lg\:t5 {
        font-weight: 700;
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }

    .lg\:text-caption {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }
}

@media (min-width: 1300px) {
    .page-container {
        margin-left: auto;
        margin-right: auto;
        padding-left: 31px;
        padding-right: 31px;
    }
}

/* layer: default */
.focus\:\[--w-outline-offset\:-2px\]:focus {
    --w-outline-offset: -2px;
}

.aspect-ratio {
    aspect-ratio: auto;
}

.no-underline {
    text-decoration: none;
}

.hover\:no-underline:hover {
    text-decoration: none;
}

.focus\:no-underline:focus {
    text-decoration: none;
}

.active\:no-underline:active {
    text-decoration: none;
}

.flex-wrap {
    flex-wrap: wrap;
}

.focus\:focusable:focus {
    outline: 2px solid var(--w-s-color-border-focus);
    outline-offset: var(--w-outline-offset, 1px);
}

.gap-y-6 {
    row-gap: 0.6rem;
}

.gap-x-\[32px\] {
    column-gap: 32px;
}

.auto-cols-\[22rem\] {
    grid-auto-columns: 22rem;
}

.auto-cols-\[minmax\(10\.4rem\,_2fr\)\] {
    grid-auto-columns: minmax(10.4rem, 2fr);
}

.grid-rows-\[repeat\(auto-fit\,minmax\(2\.8rem\,1fr\)\)\] {
    grid-template-rows: repeat(auto-fit, minmax(2.8rem, 1fr));
}

.grid-rows-2 {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.overflow-x-auto {
    overflow-x: auto;
}

.right-12 {
    right: 1.2rem;
}

.order-last {
    order: 9999;
}

.static {
    position: static;
}

.s-text-static {
    color: var(--w-s-color-text-static);
}

.hover\:s-text-subtle:hover {
    color: var(--w-s-color-text-subtle);
}

.s-icon-secondary {
    color: var(--w-s-color-icon-secondary);
}

.s-icon-subtle {
    color: var(--w-s-color-icon-subtle);
}

.hover\:s-icon-subtle-hover:hover {
    color: var(--w-s-color-icon-subtle-hover);
}

.h-\[28\],
.h-28 {
    height: 2.8rem;
}

.max-h-full {
    max-height: 100%;
}

.max-w-2\/5 {
    max-width: 40%;
}

.w-auto {
    width: 90px;
}

.min-h-\[24px\] {
    min-height: 24px;
}

.min-h-\[80vh\] {
    min-height: 80vh;
}

.w-\[calc\(100\%_-_1\.6rem\)\] {
    width: calc(100% - 1.6rem);
}

.my-12 {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.my-16 {
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}

.my-24 {
    margin-top: 2.4rem;
    margin-bottom: 2.4rem;
}

.my-48 {
    margin-top: 4.8rem;
    margin-bottom: 4.8rem;
}

.mb-24 {
    margin-bottom: 2.4rem;
}

.ml-6 {
    margin-left: 0.6rem;
}

.mt-8 {
    margin-top: 0.8rem;
}

.px-4 {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.pb-6 {
    padding-bottom: 0.6rem;
}

.pr-8 {
    padding-right: 0.8rem;
}

.pt-6 {
    padding-top: 0.6rem;
}

.visible {
    visibility: visible;
}

.hyphens-auto {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.object-cover {
    object-fit: cover;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis {
    text-overflow: ellipsis;
}

.text-12 {
    font-size: var(--w-font-size-xs);
    line-height: var(--w-line-height-xs);
}

.text-14 {
    font-size: var(--w-font-size-s);
    line-height: var(--w-line-height-s);
}

.leading-l {
    line-height: var(--w-line-height-l);
}

@media (max-width: 989.9px) {
    .lt-lg\:gap-y-2 {
        row-gap: 0.2rem;
    }

    .lt-lg\:max-h-\[72vh\] {
        max-height: 72vh;
    }
}

@media (min-width: 480px) {
    .sm\:p-24 {
        padding: 2.4rem;
    }

    .sm\:py-16 {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }

    .sm\:text-s {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }
}

@media (min-width: 768px) {
    .md\:static {
        position: static;
    }

    .md\:h-auto {
        height: auto;
    }

    .md\:w-auto {
        width: auto;
    }

    .md\:my-16 {
        margin-top: 1.6rem;
        margin-bottom: 1.6rem;
    }

    .md\:pointer-events-auto {
        pointer-events: auto;
    }

    .md\:text-14 {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }
}

@media (min-width: 990px) {
    .lg\:grid-rows-\[repeat\(35\,1\.8rem\)\] {
        grid-template-rows: repeat(35, 1.8rem);
    }

    .lg\:grid-rows-\[repeat\(42\,1\.8rem\)\] {
        grid-template-rows: repeat(42, 1.8rem);
    }

    .lg\:overflow-hidden {
        overflow: hidden;
    }

    .lg\:static {
        position: static;
    }

    .lg\:h-auto {
        height: auto;
    }

    .lg\:w-auto {
        width: auto;
    }

    .lg\:h-\[18\] {
        height: 1.8rem;
    }

    .lg\:max-w-\[21ch\] {
        max-width: 21ch;
    }

    .lg\:pointer-events-auto {
        pointer-events: auto;
    }

    .lg\:leading-\[24px\] {
        line-height: 24px;
    }
}

/* Additional FINN.no specific styles */
@media (width >=990px) {
    .lg\:overflow-hidden {
        overflow: hidden;
    }
}

/* Grid system styles */
.grid {
    display: grid;
}

.grid-flow-col {
    grid-auto-flow: column;
}

.grid-rows-2 {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.auto-cols-\[minmax\(10\.4rem\,_2fr\)\] {
    grid-auto-columns: minmax(10.4rem, 2fr);
}

/* Layout utilities */
.relative {
    position: relative;
}

.text-center {
    text-align: center;
}

.w-auto {
    width: 90px;
}

/* Market grid specific styles */
.market-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market-grid__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.5rem;
}

.market-grid__item .s-icon-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #06befc;
    flex-shrink: 0;
}

.market-grid__item .s-icon-secondary:hover {
    color: #06befc;
}

.market-grid__item .s-text-static {
    color: #8c8c8e;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
}

.market-grid__item .s-text-static:hover {
    color: #8c8c8e;
}

/* Overflow gradient styles */
.overflow-gradient {
    background: linear-gradient(90deg, rgba(214, 214, 214, 0) 0%, rgba(121, 121, 121, 0) 76%, rgba(255, 255, 255, 1) 100%);
}

@media (min-width: 768px) {
    .overflow-gradient {
        background: none;
    }
}

/* Product cards - FINN.no style */
.base-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.base-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.base-card a:hover {
    text-decoration: none;
    color: inherit;
}

/* Aspect square image container */
.aspect-square {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--w-s-color-background, #f8f9fa);
}

.aspect-square>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-square img {
    object-fit: cover;
    object-position: center;
}

/* Typography classes */
.s-text {
    color: var(--w-s-color-text, #333);
}

.s-text-subtle {
    color: var(--w-s-color-text-subtle, #666);
}

.text-body {
    font-size: var(--w-font-size-m, 1rem);
    line-height: var(--w-line-height-m, 1.5);
}

.text-s {
    font-size: var(--w-font-size-s, 0.875rem);
}

.font-normal {
    font-weight: 400;
}

.font-bold {
    font-weight: 700;
}

/* Spacing utilities */
.pt-4 {
    padding-top: 0.4rem;
}

.pt-8 {
    padding-top: 0.8rem;
}

.mb-0 {
    margin-bottom: 0;
}

/* Text utilities */
.break-words {
    overflow-wrap: break-word;
}

.text-ellipsis {
    text-overflow: ellipsis;
}

.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge styles */
.bg-warning-background {
    background-color: var(--w-color-badge-warning-background, #fff3cd);
}

.py-4 {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.px-8 {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.rounded-4 {
    border-radius: 4px;
}

.text-xs {
    font-size: 0.75rem;
}

.inline-flex {
    display: inline-flex;
}

/* Focus styles */
.focus:focusable:focus {
    outline: 2px solid var(--w-s-color-focus, #0066cc);
    outline-offset: 2px;
}

/* Active states */
.active\:s-bg-active:active {
    background-color: var(--w-s-color-background-active, #f0f0f0);
}

/* Additional utility classes */
.rounded-8 {
    border-radius: 8px;
}

.block {
    display: block;
}

.hover\:no-underline:hover {
    text-decoration: none;
}

.focus\:no-underline:focus {
    text-decoration: none;
}

.focus\:focusable:focus {
    outline: 2px solid var(--w-s-color-focus, #0066cc);
    outline-offset: 2px;
}

.focus\:rounded-8:focus {
    border-radius: 8px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.relative {
    position: relative;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-center {
    object-position: center;
}

.object-cover {
    object-fit: cover;
}

.m-auto {
    margin: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.s-bg {
    background-color: var(--w-s-color-background, #f8f9fa);
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-2xl {
    font-size: 1.5rem;
}

/* Section header styles */
.text-ml {
    font-size: var(--w-font-size-ml, 1.125rem);
    line-height: var(--w-line-height-ml, 1.4);
}

.mb-4 {
    margin-bottom: 0.4rem;
}

.my-16 {
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}

.items-start {
    align-items: flex-start;
}

.link {
    color: var(--w-s-color-text-link, #0066cc);
    text-decoration: none;
}

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

/* Force row layout for section headers */
.flex.flex-col.items-start {
    flex-direction: row !important;
    align-items: center !important;
}

.flex.flex-col.items-start h2 {
    margin-bottom: 0 !important;
    margin-right: 1rem;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }

    .md\:items-center {
        align-items: center;
    }

    .md\:px-8 {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

/* Icon styles */
.s-icon-secondary {
    color: var(--w-s-color-icon-secondary);
}

.hover\:s-icon-subtle-hover:hover {
    color: var(--w-s-color-icon-subtle-hover);
}

.h-\[28\] {
    height: 2.8rem;
}

/* Text styles */
.s-text-static {
    color: var(--w-s-color-text-static);
}

.hover\:s-text-subtle:hover {
    color: var(--w-s-color-text-subtle);
}

.text-12 {
    font-size: var(--w-font-size-xs);
    line-height: var(--w-line-height-xs);
}

.text-14 {
    font-size: var(--w-font-size-s);
    line-height: var(--w-line-height-s);
}

/* Spacing utilities */
.mt-8 {
    margin-top: 0.8rem;
}

.px-4 {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.py-8 {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

/* Text utilities */
.overflow-hidden {
    overflow: hidden;
}

.text-ellipsis {
    text-overflow: ellipsis;
}

.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hyphens-auto {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Link styles */
.no-underline {
    text-decoration: none;
}

.hover\:no-underline:hover {
    text-decoration: none;
}

.active\:no-underline:active {
    text-decoration: none;
}

.focus\:no-underline:focus {
    text-decoration: none;
}

/* Focus styles */
.focus\:focusable:focus {
    outline: 2px solid var(--w-s-color-border-focus);
    outline-offset: var(--w-outline-offset, 1px);
}

.focus\:\[--w-outline-offset\:-2px\]:focus {
    --w-outline-offset: -2px;
}

/* Order utilities */
.order-last {
    order: 9999;
}

/* Screen reader utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive text sizes */
@media (min-width: 480px) {
    .sm\:py-16 {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }

    .sm\:text-s {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }
}

@media (min-width: 768px) {
    .md\:text-14 {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }
}

/* Additional responsive breakpoints using modern syntax */
@media (width >=480px) {
    .sm\:text-s {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }

    .sm\:py-16 {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }
}

@media (width >=768px) {
    .md\:text-14 {
        font-size: var(--w-font-size-s);
        line-height: var(--w-line-height-s);
    }
}

/* Enhanced text utilities */
.text-xs {
    font-size: var(--w-font-size-xs);
    line-height: var(--w-line-height-xs);
}

/* Enhanced link styles */
a {
    cursor: pointer;
    color: var(--w-s-color-text-link);
    text-decoration: none;
}

/* Enhanced flex utilities */
.flex,
.open\:flex[open] {
    display: flex;
}

/* Enhanced two-lines utility */
.two-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhanced hyphens */
.hyphens-auto {
    hyphens: auto;
}

/* Enhanced sr-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* SVG Icon Styles */
svg {
    display: block;
}

svg path {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

svg g {
    stroke: currentColor;
}

svg circle {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

svg rect {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

svg line {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

svg polyline {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

svg polygon {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* Transform origin for non-SVG elements */
:not(svg) {
    transform-origin: 0px 0px;
}

/* Webkit link styles */
a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
}

/* Category Page Filters Layout - Simple & Professional */
.filters-section {
    background-color: #f8f9fa;
    padding: 1.5rem 16px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.filters-container {
    max-width: 1010px;
    margin: 0 auto;
    width: 100%;
}

.filters-form {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
    color: #374151;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-input::placeholder {
    color: #9ca3af;
}

/* Price Filter Special Layout */
.price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.price-input {
    flex: 1;
    min-width: 80px;
}

.price-separator {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.filter-btn.primary {
    background-color: #3b82f6;
    color: white;
}

.filter-btn.primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.filter-btn.secondary {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.filter-btn.secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .filters-row {
        gap: 0.75rem;
    }

    .filter-item {
        min-width: 160px;
    }

    .price-filter {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .filters-section {
        padding: 1rem 16px;
    }

    .filters-form {
        padding: 1rem;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-item {
        min-width: auto;
    }

    .price-filter {
        min-width: auto;
    }

    .filter-actions {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .filter-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
    }
}

/* ===== HOMEPAGE RESPONSIVE STYLES ===== */

/* Mobile-first responsive design for homepage */
@media (max-width: 767px) {

    /* Page container adjustments */
    .page-container {
        padding-left: 5.5px;
        padding-right: 5.5px;
    }

    /* Market grid responsive */
    .scrollable-container {
        padding: 0;
    }

    .scrollable-content {
        padding: 0 5px;
    }

    .grid-flow-col {
        gap: 5.5px;
    }

    .auto-cols-\[minmax\(10\.4rem\,_2fr\)\] {
        grid-auto-columns: minmax(5.5rem, 1fr);
    }

    /* Market grid items */
    .market-grid__item a {
        padding: 12px 8px;
        min-height: 70px;
    }

    .market-grid__item .s-icon-secondary {
        height: 24px;
        width: 24px;
    }

    .market-grid__item .s-text-static {
        font-size: 11px;
        line-height: 1.2;
        margin-top: 6px;
    }

    /* Recent products section */
    .recent-products {
        padding: 0 10px;
        margin: 0 15px;
    }

    .recent-products .page-container {
        padding: 0;
    }

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

    .base-card {
        border-radius: 6px;
    }

    .base-card .aspect-square {
        border-radius: 6px;
    }

    /* Product card text elements with left margin */
    .base-card h3.s-text {
        margin-left: 5px;
    }

    .base-card .font-bold.s-text {
        margin-left: 5px;
    }

    .base-card .text-s.s-text-subtle {
        margin-left: 5px;
    }

    .base-card h3 {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .base-card .font-bold {
        font-size: 14px;
    }

    .base-card .text-s {
        font-size: 11px;
    }

    /* Section headers */
    .flex.flex-col.items-start {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 16px;
    }

    .flex.flex-col.items-start h2 {
        margin-bottom: 8px !important;
        margin-right: 0 !important;
        font-size: 18px;
    }

    .flex.flex-col.items-start a {
        align-self: flex-start;
    }

    /* Newsletter section */
    .newsletter {
        padding: 24px 12px;
    }

    .newsletter-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .newsletter-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input-group input {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }

    .newsletter-input-group button {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Footer responsive */
    .footer {
        padding: 24px 12px 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section ul {
        gap: 8px;
    }

    .footer-section a {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-container {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .auto-cols-\[minmax\(10\.4rem\,_2fr\)\] {
        grid-auto-columns: minmax(9rem, 1fr);
    }

    .market-grid__item a {
        padding: 16px 12px;
    }

    .newsletter-input-group {
        flex-direction: row;
        max-width: 500px;
        margin: 0 auto;
    }

    .newsletter-input-group input {
        flex: 1;
    }

    .newsletter-input-group button {
        flex-shrink: 0;
        min-width: 120px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Desktop responsive */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop */
@media (min-width: 1300px) {
    .page-container {
        margin-left: auto;
        margin-right: auto;
        padding-left: 31px;
        padding-right: 31px;
    }
}

/* ===== PRODUCTS GRID RESPONSIVE ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ===== MARKET GRID RESPONSIVE ENHANCEMENTS ===== */
.scrollable-container {
    position: relative;
    width: 100%;
}

.scrollable-content {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

@media (max-width: 767px) {
    .scrollable-content {
        padding-bottom: 0px;
    }

    .grid-flow-col {
        padding-bottom: 8px;
    }
}

/* ===== OVERFLOW GRADIENT RESPONSIVE ===== */
.overflow-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 768px) {
    .overflow-gradient {
        display: none;
    }
}

/* ===== SECTION SPACING RESPONSIVE ===== */
.recent-products {
    padding: 0px 0;
}

@media (max-width: 767px) {
    .recent-products {
        padding: 5px 0;
    }
}

.newsletter {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

@media (max-width: 767px) {
    .newsletter {
        padding: 32px 0;
    }
}

.footer {
    padding: 48px 0 24px;
    background-color: #2c3e50;
    color: white;
}

@media (max-width: 767px) {
    .footer {
        padding: 32px 0 20px;
    }
}

/* ===== TYPOGRAPHY RESPONSIVE ===== */
@media (max-width: 767px) {
    .text-ml {
        font-size: 18px;
        line-height: 1.4;
    }

    .text-14 {
        font-size: 13px;
    }

    .text-12 {
        font-size: 11px;
    }
}

/* ===== BUTTON RESPONSIVE ===== */
@media (max-width: 767px) {
    .link {
        font-size: 14px;
        padding: 0px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .base-card {
        transition: none;
    }

    .base-card:hover {
        transform: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .base-card {
        border: 2px solid #000;
    }

    .market-grid__item a {
        border: 1px solid #000;
    }
}

/* ===== NEWSLETTER SECTION STYLES ===== */
.newsletter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 48px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: #06befc;
    box-shadow: 0 0 0 3px rgba(6, 190, 252, 0.1);
}

.newsletter-input-group input::placeholder {
    color: #9ca3af;
}

.newsletter-input-group button {
    padding: 14px 24px;
    background-color: #06befc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.newsletter-input-group button:hover {
    background-color: #05a8d8;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 24px;
}

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

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}