/* Shop Page Specific Styles */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--light-gray);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Shop Section */
.shop-section {
    padding: 30px 0 60px;
}

.shop-wrapper {
    display: flex;
    gap: 30px;
}

/* Sidebar */
.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-checkbox:hover {
    color: var(--primary-color);
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.filter-checkbox span {
    flex: 1;
}

.filter-checkbox .count {
    color: #999;
    font-size: 13px;
    flex: 0;
}

/* Price Range */
.price-range-slider {
    margin: 20px 0;
    position: relative;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: -7px;
    margin: 0;
    padding: 0;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FF8C00;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #fff;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.price-range-slider input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #FF8C00;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.price-range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.price-range-slider input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.1);
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border: none;
    outline: none;
}

.price-range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border: none;
    outline: none;
}

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

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #666;
}

.price-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.btn-apply-filter {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-apply-filter:hover {
    background: var(--secondary-color);
}

/* Search Filter */
.search-filter {
    margin-bottom: 15px;
}

.search-filter input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.show-more-btn {
    width: 100%;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.show-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Rating Filter */
.rating-filter .rating-stars {
    color: var(--primary-color);
    font-size: 14px;
}

/* Clear Filters Button */
.btn-clear-filters {
    width: 100%;
    background: #E74C3C;
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-clear-filters:hover {
    background: #C0392B;
}

/* Shop Content */
.shop-content {
    flex: 1;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.toolbar-left {
    flex: 1;
}

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

.results-count strong {
    color: var(--text-color);
}

.toolbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-mode {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.sort-dropdown select,
.per-page-dropdown select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
    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;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-gray);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.remove-filter {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.3s;
}

.remove-filter:hover {
    color: #E74C3C;
}

/* Products Grid View */
.products-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.products-grid-view .product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.products-grid-view .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.products-grid-view .product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--light-gray);
}

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

.products-grid-view .product-card:hover .product-image img {
    transform: scale(1.1);
}

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

.badge.sale {
    background: #E74C3C;
}

.badge.new {
    background: #27AE60;
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.products-grid-view .product-card:hover .product-actions {
    opacity: 1;
}

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

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.quick-add-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.products-grid-view .product-card:hover .quick-add-btn {
    transform: translateY(0);
}

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vendor-name i {
    color: var(--primary-color);
}

.rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--primary-color);
}

.rating span {
    color: #666;
    margin-left: 5px;
    font-size: 12px;
}

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

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

.old-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #FFEBEE;
    color: #E74C3C;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination - Modern Professional Design */
.pagination-wrapper {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.pagination-info {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.pagination-info strong {
    color: #1e293b;
    font-weight: 600;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 6px;
}

.pagination-link:hover {
    color: #6366f1;
    background: #f1f5f9;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.pagination-item.active .pagination-link {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination-item.active .pagination-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.pagination-item.disabled .pagination-link {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-link.prev-next {
    padding: 0 16px;
    font-weight: 600;
    gap: 8px;
}

.pagination-link.prev-next svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.pagination-link.prev-next:hover svg {
    transform: translateX(-2px);
}

.pagination-item:last-child .pagination-link.prev-next:hover svg {
    transform: translateX(2px);
}

.pagination-link.dots {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
    color: #cbd5e1;
    font-weight: 700;
    letter-spacing: 2px;
}

.pagination-link.dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* List View Styles */
.products-grid-view.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-grid-view.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 100%;
}

.products-grid-view.list-view .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid-view.list-view .product-info {
    flex: 1;
    padding: 20px;
}

.products-grid-view.list-view .product-actions {
    flex-direction: column;
    right: 20px;
    top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-wrapper {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .btn-clear-filters {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-right {
        flex-direction: column;
    }

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

    .pagination-wrapper {
        flex-direction: column;
    }

    .pagination-container {
        flex-direction: column;
        text-align: center;
    }

    .pagination-info {
        order: 2;
        margin-top: 16px;
    }

    .pagination-list {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-link.prev-next {
        padding: 0 12px;
        font-size: 13px;
    }

    .products-grid-view.list-view .product-card {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .products-grid-view {
        grid-template-columns: 1fr;
    }

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

