/* ============================================
   SMART WATCH PRODUCT LISTING STYLES
   ============================================ */

/* Section Container */
.smart-watch-section {
    min-height: 100vh;
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== SW HEADER ==================== */
.sw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e8eaed;
}

.sw-header__brand {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0066ff;
    letter-spacing: -0.02em;
}

.sw-header__home {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sw-header__home:hover {
    color: #0066ff;
}

/* ==================== SW CONTAINER (Two-Column Layout) ==================== */
.sw-container {
    display: flex;
    gap: 0;
    padding: 30px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ==================== SW SIDEBAR ==================== */
.sw-sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding-right: 30px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sw-sidebar__header {
    margin-bottom: 20px;
}

.sw-sidebar__title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ==================== FILTER GROUPS ==================== */
.sw-filter-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.sw-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sw-filter-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
}

.sw-filter-group__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.sw-filter-group__arrow {
    font-size: 0.75rem;
    color: #666;
    transition: transform 0.3s ease;
}

.sw-filter-group.collapsed .sw-filter-group__arrow {
    transform: rotate(180deg);
}

.sw-filter-group__content {
    padding-top: 12px;
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

.sw-filter-group.collapsed .sw-filter-group__content {
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
}

/* ==================== CHECKBOX STYLES ==================== */
.sw-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.sw-checkbox:last-child {
    margin-bottom: 0;
}

.sw-checkbox input[type="checkbox"] {
    display: none;
}

.sw-checkbox__mark {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sw-checkbox input[type="checkbox"]:checked+.sw-checkbox__mark {
    background-color: #0066ff;
    border-color: #0066ff;
}

.sw-checkbox input[type="checkbox"]:checked+.sw-checkbox__mark::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.sw-checkbox__label {
    color: #555;
}

.sw-checkbox__count {
    color: #999;
}

/* ==================== PRICE INPUTS ==================== */
.sw-price-note {
    font-size: 0.8rem;
    color: #0066ff;
    margin-bottom: 12px;
    margin-top: 0;
}

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

.sw-price-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 10px;
    flex: 1;
}

.sw-price-input__symbol {
    font-size: 0.85rem;
    color: #999;
    margin-right: 4px;
}

.sw-price-input input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #333;
    background: transparent;
}

.sw-price-input input::placeholder {
    color: #aaa;
}

/* Remove number input arrows */
.sw-price-input input::-webkit-outer-spin-button,
.sw-price-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sw-price-input input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ==================== COLOR SWATCHES ==================== */
.sw-color-swatches {
    display: flex;
    gap: 10px;
    margin: 5px 2px;
    overflow: scroll;
}

.sw-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sw-color-swatch--active::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Color Count */
.sw-color-count {
    color: #666;
    font-weight: 400;
}

/* ==================== PRODUCTS AREA ==================== */
.sw-products {
    flex: 1;
    min-width: 0;
    padding-left: 20px;
}

/* ==================== TOOLBAR ==================== */
.sw-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sw-toolbar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sw-toolbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sort Dropdown */
.sw-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-sort__label {
    font-size: 0.85rem;
    color: #666;
}

.sw-sort__dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.sw-sort__dropdown select {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    padding-right: 15px;
    padding-left: 5px;
    outline: none;
}

.sw-sort__dropdown i {
    position: absolute;
    right: 0;
    font-size: 0.7rem;
    color: var(--text-color);
    pointer-events: none;
}

/* Product Count */
.sw-product-count {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* View Toggle */
.sw-view-toggle {
    display: flex;
    gap: 4px;
}

.sw-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
}

.sw-view-toggle__btn:hover {
    border-color: #0066ff;
    color: #0066ff;
}

.sw-view-toggle__btn--active {
    background: #0066ff;
    border-color: #0066ff;
    color: #fff;
}

.sw-view-toggle__btn--active:hover {
    background: #0055dd;
    color: #fff;
}

/* ==================== PRODUCT GRID ==================== */
.sw-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.sw-product-grid.sw-product-grid--list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.sw-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sw-product-card__image-wrapper {
    position: relative;
    background: #f9fafb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    /* Fixed height for consistency */
    width: 100%;
    overflow: hidden;
}

.sw-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Action Buttons */
.sw-product-card__actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.sw-product-card:hover .sw-product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.sw-product-card__action-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sw-product-card__action-btn i {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.2s ease;
}

.sw-product-card__action-btn:hover {
    background: #0066ff;
    border-color: #0066ff;
}

.sw-product-card__action-btn:hover i {
    color: #fff;
}

.sw-product-card__image {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    transition: transform 0.3s ease;
    padding: 0px;
}

.sw-product-card:hover .sw-product-card__image {
    transform: scale(1.05);
}

.sw-product-card__body {
    padding: 12px 4px 4px 4px;
}

/* Color Dots */
.sw-product-card__colors {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.sw-product-card__color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sw-product-card__color-dot:hover {
    transform: scale(1.2);
}

.sw-product-card__brand {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sw-product-card__title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-product-card__title:hover {
    cursor: pointer;
}

.sw-product-card__title,
.sw-product-card__title a {
    color: var(--dark-secondary);
    text-decoration: none;
}

.sw-product-card__rating {
    margin-bottom: 8px;
}

.sw-product-card__rating .stars {
    display: flex;
    gap: 2px;
}

.sw-product-card__rating .stars i {
    font-size: 0.7rem;
    color: #fbbf24;
}

.sw-product-card__rating .stars i.bi-star {
    color: #d1d5db;
}

.sw-product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-product-card__price .current {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0066ff;
}

.sw-product-card__price .old {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* ==================== LIST VIEW STYLES ==================== */
.sw-product-grid--list .sw-product-card {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 16px;
}

.sw-product-grid--list .sw-product-card__image-wrapper {
    width: 160px;
    min-width: 160px;
    height: 150px;
    min-height: unset;
    padding: 10px;
    flex-shrink: 0;
}

.sw-product-grid--list .sw-product-card__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sw-product-grid--list .sw-product-card__title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 8px;
}

/* Description - Visible only in list view */
.sw-product-card__description {
    display: none;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-product-grid--list .sw-product-card__description {
    display: -webkit-box;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 1400px) {
    .sw-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Sidebar Overlay */
.sw-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sw-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Filter Button */
.sw-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

@media (max-width: 992px) {
    .sw-mobile-filter-btn {
        display: flex;
    }

    .sw-container {
        flex-direction: column;
        padding: 20px;
    }

    .sw-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        padding: 20px;
        margin: 0;
        max-height: 100vh;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        border-right: 1px solid #eee;
        padding-bottom: 80px;
    }

    .sw-sidebar.active {
        left: 0;
    }

    .sw-products {
        padding-left: 0;
    }

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

    .sw-filter-group {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .sw-header {
        padding: 14px 20px;
    }

    .sw-header__brand {
        font-size: 1.1rem;
    }

    .sw-container {
        padding: 10px;
    }

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

    .sw-product-card__image-wrapper {
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .sw-product-card {
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .sw-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .sw-toolbar__left {
        width: 100%;
        justify-content: space-between;
    }

    .sw-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    /* List View on Mobile */
    .sw-product-grid--list .sw-product-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px;
    }

    .sw-product-grid--list .sw-product-card__image-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
        border-radius: 6px;
    }

    .sw-product-grid--list .sw-product-card__title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .sw-header {
        padding: 12px 16px;
    }

    .sw-product-card__image-wrapper {
        height: 160px;
        min-height: unset;
        padding: 0;
    }

    .sw-product-card__body {
        padding: 8px;
    }

    .sw-product-card__title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .sw-product-card__price .current {
        font-size: 0.85rem;
    }

    .sw-view-toggle__btn {
        width: 32px;
        height: 32px;
    }
}

/* ==================== ACTIVE FILTERS ==================== */
.sw-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.sw-sidebar__clear {
    font-size: 0.85rem;
    color: #333;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.sw-sidebar__clear:hover {
    color: #0066ff;
}

.sw-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.sw-active-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 400;
}

.sw-active-filter__remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff5252;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.sw-active-filter__remove:hover {
    background-color: #ff1744;
}

.sw-active-filter__remove i {
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

/* ==================== PAGINATION ==================== */
.sw-pagination-wrapper nav {
    width: 100%;
}

.sw-pagination-wrapper nav>div.d-sm-flex,
.sw-pagination-wrapper nav>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px;
}

.sw-pagination-wrapper .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0;
}

.sw-pagination-wrapper p.small {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .sw-pagination-wrapper .page-item {
        margin: 0;
    }
}