/* Smartphones Inventory Page Styles */

body.smartphones-page {
    background-image: url('../images/1st/walpaper.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
}

.page-main-wrapper {
    padding: 0 50px;
}

.dark-container {
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    padding: 0 0 40px 0;
    min-height: 100vh;
    max-width: 1200px !important;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.smartphones-container {
    margin: 40px 15px;
    max-width: 100%;
    box-sizing: border-box;
}

.back-link-wrapper {
    margin-bottom: 20px;
}

/* Breadcrumb Bar */
.breadcrumb-bar {
    background: #0079fc;
    padding: 10px 20px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.breadcrumb {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

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

/* Content Box */
.content-box {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-top: none;
}

.filter-and-content-wrapper {
    display: flex;
    gap: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

.back-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007AFF !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    width: 180px;
    white-space: nowrap;
}

.back-button:hover {
    background: #0051D5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.back-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Filter Sidebar */
.filter-sidebar {
    flex: 0 0 280px;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-actions-top {
    display: grid;
    grid-template-columns: 40px 1fr 1fr;
    gap: 10px;
    align-items: center;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    padding-bottom: 15px;
    margin-bottom: 20px;
    z-index: 2;
}

.filter-actions-top .mobile-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
}

.filter-actions-top .mobile-filter-close svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    stroke: #ffffff;
}

.filter-actions-top .mobile-filter-close svg path {
    fill: #ffffff;
    stroke: #ffffff;
}

.filter-actions-top .filter-reset-btn,
.filter-actions-top .filter-apply-btn {
    width: 100%;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

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

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.filter-option {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007AFF;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.price-inputs input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-apply-btn {
    width: 100%;
    padding: 12px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.filter-apply-btn:hover {
    background: #0051D5;
}

.filter-reset-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

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

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Content Header with Title and Sort */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.header-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    max-width: 500px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-dropdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    min-width: 160px;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #0079fc;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn.active {
    background: #0079fc;
    color: #ffffff;
}

.view-btn:hover:not(.active) {
    background: #e2e8f0;
}

/* Brand Carousel */
.brand-carousel {
    --brand-card-width: 150px;
    --brand-card-height: 56px;
    --brand-gap: 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.brand-carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.brand-carousel-track {
    display: flex;
    align-items: center;
    gap: var(--brand-gap);
    will-change: transform;
    touch-action: pan-y;
}

.brand-carousel-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    z-index: 3;
}

.brand-carousel-arrow:hover {
    border-color: #0079fc;
    color: #0079fc;
}

.brand-carousel-arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.brand-carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.brand-tab {
    flex: 0 0 var(--brand-card-width);
    min-width: var(--brand-card-width);
    min-height: var(--brand-card-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.brand-tab:hover {
    border-color: #0079fc;
    color: #0079fc;
}

.brand-tab.active {
    background: #0079fc;
    border-color: #0079fc;
    color: #ffffff;
}

.brand-tab.is-current {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
}

.brand-tab.is-neighbor {
    transform: scale(1);
    opacity: 1;
}

.brand-tab.is-hidden-preview {
    transform: scale(1);
    opacity: 1;
}

.brand-tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-tab-icon img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.brand-tab-icon svg {
    width: 20px;
    height: 20px;
}

.brand-tab.active .brand-tab-icon img {
    filter: brightness(0) invert(1);
}

.brand-carousel.is-single .brand-carousel-arrow {
    display: none;
}

.page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.device-count {
    text-align: center;
    color: #6e6e73;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Product Grid (Laptop style) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.product-image {
    position: relative;
    padding: 20px 24px 16px;
    background: #f2f8fb;
    height: 236px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.product-image img {
    max-width: 100%;
    max-height: 182px;
    object-fit: contain;
}

.product-rating {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #f59e0b;
}

.product-rating svg {
    width: 14px;
    height: 14px;
    fill: #f59e0b;
}

.product-info {
    padding: 18px 18px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.brand-name-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.brand-name-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-specs {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-specs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.spec-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.spec-pill.processor {
    background: #e0e7ff;
    color: #1d4ed8;
}

.spec-pill.ram {
    background: #dcfce7;
    color: #15803d;
}

.spec-pill.storage {
    background: #e0e7ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Carrier chip — green (Unlocked) */
.spec-pill.carrier {
    background: #e7f7ed;
    color: #1f9d4c;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Condition chip — purple (Like New) */
.spec-pill.condition {
    background: #ede9fe;
    color: #6d28d9;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-color {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

.color-dot.active {
    border-color: #0079fc;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-info.is-special {
    padding: 4px 0;
}

.price-old {
    font-size: 14px;
    color: #64748b;
    text-decoration: line-through;
    font-weight: 600;
}

.price-current {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.price-current.is-special {
    color: #dc2626;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 10px;
}

.price-current.is-special::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #ef4444;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    animation: smartphoneSpecialPriceBorderHold 9s linear infinite;
}

.price-current.is-special::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #ef4444;
    border-radius: 10px;
    clip-path: inset(0 100% 100% 0);
    animation: smartphoneSpecialPriceBorderTrace 9s linear infinite;
    pointer-events: none;
}

@keyframes smartphoneSpecialPriceBorderTrace {
    0% { clip-path: inset(0 100% 100% 0); opacity: 1; }
    11% { clip-path: inset(0 0 100% 0); opacity: 1; }
    22% { clip-path: inset(0 0 0 100%); opacity: 1; }
    33% { clip-path: inset(100% 0 0 0); opacity: 1; }
    44.44% { clip-path: inset(0 0 0 0); opacity: 1; }
    44.45%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

@keyframes smartphoneSpecialPriceBorderHold {
    0%, 44.44% { opacity: 0; }
    44.45%, 100% { opacity: 1; }
}

.klarna-financing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    margin-top: auto;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.klarna-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.btn-buy {
    width: 100%;
    padding: 12px 14px;
    background: #f59e0b;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.btn-buy:hover {
    background: #d97706;
}

.btn-add {
    width: 100%;
    padding: 12px 14px;
    background: #0066ff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.btn-add:hover {
    background: #0056d6;
}

.product-btn-img {
    max-height: 24px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.products-grid.list-view .product-image {
    height: 100%;
    min-height: 200px;
}

/* No Results (Laptop style) */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
}

.no-results h3 {
    font-size: 20px;
    color: #334155;
    margin-bottom: 8px;
}

.no-results p {
    color: #64748b;
}

.pagination-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: #0066ff;
    color: #0066ff;
}

.page-link.active {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
}

.page-link.ellipsis {
    pointer-events: none;
    opacity: 0.6;
}

/* Device Grid */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 100%;
}

.device-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.device-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.device-image {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.hot-deal-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
}

.discount-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.special-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #dc2626;
    color: #ffffff;
    z-index: 2;
}

.device-info {
    padding: 20px;
}

.device-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.device-specs {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
}

.device-price {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.device-price.is-special {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #ef4444;
}

.special-current-price {
    font-size: 22px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1.1;
}

.special-original-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
}

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

.original-price {
    font-size: 18px;
    color: #86868b;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.no-devices {
    text-align: center;
    padding: 60px 20px;
    color: #6e6e73;
}

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

.no-devices h3 {
    font-size: 24px;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.no-devices p {
    font-size: 16px;
}

/* Mobile Filter Button */
.mobile-filter-toggle {
    display: none;
}

.mobile-sticky-bar {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .filter-and-content-wrapper {
        flex-direction: column;
    }
    
    .filter-sidebar {
        position: static;
        flex: 1;
    }
}

@media (max-width: 768px) {
    /* Hide desktop back button on mobile */
    .back-link-wrapper {
        display: none !important;
    }

    /* Content header - stack on mobile */
    .content-header {
        flex-direction: column;
        gap: 12px;
        padding: 0 3px;
        margin-bottom: 16px;
    }

    .header-text h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .header-text p {
        font-size: 12px;
        line-height: 1.4;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .sort-dropdown {
        flex: 1;
        min-width: auto;
        font-size: 12px;
        padding: 8px 10px;
    }

    .view-toggle {
        display: none;
    }

    .brand-carousel {
        --brand-card-height: 54px;
        --brand-gap: 8px;
        gap: 0;
        margin-bottom: 12px;
        padding: 0 3px;
    }

    .brand-carousel-arrow {
        display: none;
    }

    .brand-carousel-viewport {
        width: 100%;
        overflow: hidden;
    }

    .brand-carousel-track {
        gap: var(--brand-gap);
    }

    .brand-tab {
        width: var(--brand-card-width);
        min-width: var(--brand-card-width);
        max-width: var(--brand-card-width);
        font-size: 12px;
        padding: 9px 8px;
        border-radius: 16px;
        justify-content: center;
    }

    .brand-tab.is-neighbor,
    .brand-tab.is-hidden-preview {
        transform: scale(1);
        opacity: 1;
    }

    .brand-tab-icon {
        width: 18px;
        height: 18px;
    }

    .brand-tab-icon img {
        max-width: 18px;
        max-height: 18px;
    }

    .brand-tab-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Hide removed top mobile filter button */
    .mobile-filter-toggle {
        display: none !important;
    }
    
    /* Hide desktop sidebar, show as slide-in on mobile */
    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        height: 100dvh;
        z-index: 10000;
        transition: right 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 52px 20px 20px;
        background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    }
    
    .filter-sidebar.active {
        right: 0;
    }
    
    /* Overlay */
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .filter-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Close button styling handled in top action row */
    
    .page-main-wrapper {
        padding: 0;
    }
    
    .dark-container {
        max-width: 100%;
    }
    
    .smartphones-container {
        margin: 40px 10px;
    }

    .content-box {
        padding: 10px;
        padding-bottom: 110px;
        overflow: visible;
    }

    .breadcrumb-bar {
        padding: 7px 15px 14px 15px;
        margin: 0 5px;
    }

    .content-box {
        margin: -9px 5px 0 5px;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .device-count {
        font-size: 12px;
        margin-bottom: 12px;
    }

    /* Products grid - 2 columns like laptops */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 3px;
        box-sizing: border-box;
    }

    .product-card {
        border-radius: 10px;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .product-image {
        height: 110px;
        padding: 10px;
    }

    .product-image img {
        max-height: 90px;
        max-width: 100%;
    }

    .product-rating {
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        font-size: 9px;
    }

    .product-rating svg {
        width: 10px;
        height: 10px;
    }

    .product-info {
        padding: 8px;
    }

    .product-brand {
        margin-bottom: 3px;
    }

    .brand-name-badge {
        font-size: 9px;
    }

    .brand-name-badge img {
        width: 10px;
        height: 10px;
    }

    .product-title {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-specs {
        display: none;
    }

    .product-specs-pills {
        display: flex;
        gap: 4px;
        margin-bottom: 8px;
    }

    .spec-pill {
        font-size: 8px;
        padding: 2px 6px;
    }

    .product-color {
        display: none;
    }

    .product-price-row {
        margin-bottom: 6px;
    }

    .price-old {
        font-size: 9px;
    }

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

    .klarna-financing-row {
        font-size: 9px;
        gap: 5px;
        margin-bottom: 8px;
    }

    .klarna-logo {
        height: 12px;
    }

    .product-actions {
        flex-direction: row;
        gap: 5px;
    }

    .btn-buy {
        flex: 1;
        padding: 7px 5px;
        border-radius: 6px;
        font-size: 10px;
    }

    .btn-add {
        flex: 1;
        padding: 7px 5px;
        border-radius: 6px;
        font-size: 10px;
    }

    .btn-buy svg,
    .btn-add svg {
        width: 10px;
        height: 10px;
    }
    
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 3px;
    }

    .device-card {
        border-radius: 10px;
    }
    
    .device-image-wrapper {
        min-height: 110px;
        height: 110px;
        padding: 10px;
    }

    .device-image {
        max-height: 90px;
    }

    .device-info {
        padding: 8px;
    }

    .device-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .device-specs {
        display: none;
    }

    .device-price {
        font-size: 14px;
    }

    /* Mobile Sticky Bottom Bar */
    .mobile-sticky-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 14px 16px;
        background: #111827;
        z-index: 1000;
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.25);
    }

    .mobile-back-btn {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        border: none;
        background: #1f2937;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-back-btn svg {
        width: 20px;
        height: 20px;
    }

    .mobile-sticky-actions {
        display: flex;
        border-radius: 14px;
        overflow: hidden;
        width: 100%;
    }

    .mobile-action-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        font-weight: 600;
        font-size: 14px;
        color: #111827;
        text-decoration: none;
        border: none;
        cursor: pointer;
    }

    .mobile-action-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .mobile-action-filter {
        background: #ffffff;
    }

    /* Hide close button on desktop */
}

@media (min-width: 769px) {
    .mobile-filter-close {
        display: none;
    }

    .filter-actions-top .mobile-filter-close {
        display: none;
    }

    .filter-actions-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .filter-sidebar {
        width: 90%;
        max-width: 320px;
    }

    .brand-tab {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 52px;
    }

    .brand-tab-icon {
        width: 16px;
        height: 16px;
    }

    .products-grid {
        gap: 6px;
    }

    .product-image {
        height: 95px;
        padding: 8px;
    }

    .product-image img {
        max-height: 80px;
    }

    .product-info {
        padding: 6px;
    }

    .product-title {
        font-size: 11px;
    }

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

    .klarna-financing-row {
        font-size: 8px;
        gap: 4px;
        margin-bottom: 6px;
    }

    .klarna-logo {
        height: 11px;
    }

    .btn-buy, .btn-add {
        padding: 6px 4px;
        font-size: 9px;
    }

    .btn-buy svg,
    .btn-add svg {
        width: 10px;
        height: 10px;
    }

    .devices-grid {
        gap: 6px;
    }

    .device-image-wrapper {
        height: 95px;
        min-height: 95px;
        padding: 8px;
    }

    .device-image {
        max-height: 80px;
    }

    .device-info {
        padding: 6px;
    }

    .device-name {
        font-size: 11px;
    }

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