/* Product List Page Styles - Simple Design */

/* Breadcrumb Area */
.breadcrumb-area {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.breadcrumb-area::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.breadcrumb__content .title {
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.breadcrumb__content .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb__content .breadcrumb-item {
    color: #adb0bc;
    font-size: 16px;
}

.breadcrumb__content .breadcrumb-item a {
    color: #45f882;
    text-decoration: none;
}

.breadcrumb__content .breadcrumb-item.active {
    color: #adb0bc;
}

.breadcrumb__content .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #adb0bc;
    margin: 0 10px;
}

/* Shop Area */
.shop-area {
    background: #0a0a0a;
    position: relative;
}

/* Shop Top Bar */
.shop__top-wrap {
    background: rgba(25, 34, 43, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shop__showing-result p {
    color: #adb0bc;
    margin: 0;
    font-size: 14px;
}

.shop__ordering select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(25, 34, 43, 0.9);
    color: #adb0bc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop__ordering select:focus {
    outline: none;
    border-color: #45f882;
}

.shop__ordering select option {
    background: #19222b;
    color: #adb0bc;
    padding: 10px;
}

/* Sidebar Styles */
.shop-sidebar {
    background: rgba(25, 34, 43, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shop__widget {
    margin-bottom: 30px;
}

.shop__widget:last-child {
    margin-bottom: 0;
}

.shop__widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #45f882;
}

/* Search Widget */
.shop__search {
    position: relative;
    display: flex;
    align-items: center;
}

.shop__search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(25, 34, 43, 0.3);
    color: #adb0bc;
    transition: all 0.3s ease;
}

.shop__search input:focus {
    outline: none;
    border-color: #45f882;
    box-shadow: 0 0 0 3px rgba(69, 248, 130, 0.1);
}

.shop__search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #45f882;
    color: #000;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shop__search button:hover {
    background: #ffbe18;
}

/* Price Filter */
.price-inputs {
    margin-bottom: 15px;
}

.price-inputs input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    background: rgba(25, 34, 43, 0.3);
    color: #adb0bc;
    transition: all 0.3s ease;
}

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

/* Category Lists */
.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-categories li {
    margin-bottom: 8px;
}

.product-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #adb0bc;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(25, 34, 43, 0.3);
    margin-bottom: 5px;
}

.product-categories a:hover {
    background: rgba(69, 248, 130, 0.1);
    color: #45f882;
}

.product-categories a.active {
    background: linear-gradient(135deg, #45f882 0%, #35d872 100%);
    color: #000;
    font-weight: 600;
}

/* Product Box Styles - Simple Design */
.product__box-wrap {
    background: rgba(25, 34, 43, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.product__box-wrap:hover {
    border-color: rgba(69, 248, 130, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Product Thumb */
.product__box-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product__box-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Image Placeholder */
.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.no-image-placeholder-small {
    width: 100%;
    height: 80px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

/* Wishlist Button */
.wishlist-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-button:hover {
    background: transparent;
    color: #000;
}

.wishlist-button i {
    font-size: 18px;
    color: #ff4757;
}

.wishlist-button i.fas {
    color: #ff4757;
}

/* Product Content */
.product__box-content {
    padding: 20px;
}

.product__box-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product__box-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product__box-title a:hover {
    color: #45f882;
}

.product__box-price {
    font-size: 20px;
    font-weight: 700;
    color: #45f882;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #adb0bc;
    font-size: 14px;
    margin-right: 8px;
}

.sale-price {
    color: #ffbe18;
}

.product__box-category {
    margin-bottom: 10px;
}

.product__box-category a {
    color: #ffbe18;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product__box-category a:hover {
    color: #45f882;
}

.product__box-platform {
    margin-top: 10px;
}

.platform-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #ffbe18;
    color: #000;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Pagination */
.pagination__wrap {
    margin-top: 40px;
}

.pagination__wrap .list-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.pagination__wrap .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(25, 34, 43, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #adb0bc;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pagination__wrap .page-numbers:hover,
.pagination__wrap .page-numbers.current {
    background: linear-gradient(135deg, #45f882 0%, #35d872 100%);
    color: #000;
    border-color: #45f882;
    box-shadow: 
        0 8px 24px rgba(69, 248, 130, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #45f882 0%, #35d872 100%);
    color: #000;
    box-shadow: 
        0 4px 16px rgba(69, 248, 130, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffbe18 0%, #ffab00 100%);
    box-shadow: 
        0 6px 20px rgba(255, 190, 24, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline-secondary {
    background: rgba(25, 34, 43, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #adb0bc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #ffbe18 0%, #ffab00 100%);
    color: #000;
    border-color: #ffbe18;
}

/* Empty State */
.text-center.py-5 {
    background: rgba(25, 34, 43, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.text-center.py-5 h4 {
    color: #fff;
    margin-bottom: 15px;
}

.text-center.py-5 p {
    color: #adb0bc;
    margin-bottom: 20px;
}

/* Loading States */
.wishlist-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-button.loading i {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 991px) {
    .shop-sidebar {
        margin-bottom: 30px;
        position: static;
    }
    
    .shop__top-wrap {
        padding: 20px;
    }
    
    .shop__showing-result {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .product__box-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .shop-sidebar {
        padding: 20px;
    }
    
    .shop__widget-title {
        font-size: 16px;
    }
    
    .product__box-wrap {
        padding: 15px;
    }
    
    .product__box-title {
        font-size: 14px;
    }
    
    .pagination__wrap .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .breadcrumb__content .title {
        font-size: 36px;
    }
}

/* Gutter for product grid */
.gutter-25 {
    margin: 0 -12.5px;
}

.gutter-25 > [class*="col"] {
    padding: 0 12.5px;
}

/* Parent Categories Horizontal Scroll */
.parent-categories-scroll {
    margin-bottom: 40px;
    padding: 15px 0;
}

.categories-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--tg-theme-primary) transparent;
}

.categories-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.categories-scroll-container::-webkit-scrollbar-thumb {
    background: var(--tg-theme-primary);
    border-radius: 10px;
}

.categories-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--tg-theme-secondary);
}

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--tg-common-color-black-2) 0%, var(--tg-common-color-black-4) 100%);
    border: 1px solid var(--tg-border-2);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.category-chip:hover {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-3px);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--tg-common-color-black-2) 0%, var(--tg-common-color-black-4) 100%);
    border-color: var(--tg-theme-primary);
    border-width: 2px;
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
}

.category-chip-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 217, 255, 0.1);
    font-size: 24px;
    color: var(--tg-theme-primary);
    transition: all 0.3s ease;
}

.category-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-chip.active .category-chip-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--tg-common-color-white);
}

.category-chip-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tg-common-color-white);
    text-align: center;
    transition: color 0.3s ease;
}

.category-chip.active .category-chip-name {
    color: var(--tg-common-color-white);
    font-weight: 600;
}

/* Product Type Title */
.product-type-title {
    text-align: right;
    margin-bottom: 30px;
}

.product-type-title__text {
    color: var(--tg-heading-color);
    font-size: 2rem;
    font-weight: var(--tg-fw-bold);
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Shop Type Links */
.shop-type-links {
    margin-bottom: 40px;
    padding: 15px 0;
}

.shop-type-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    direction: rtl;
}

.shop-type-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--tg-common-color-black-2) 0%, var(--tg-common-color-black-4) 100%);
    border: 1px solid var(--tg-border-2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.shop-type-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--tg-theme-primary) 0%, 
        var(--tg-theme-secondary) 50%, 
        var(--tg-common-color-teal) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.shop-type-link:hover,
.shop-type-link.active {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-3px);
}

.shop-type-link:hover::before,
.shop-type-link.active::before {
    opacity: 1;
}

.shop-type-link.active {
    background: linear-gradient(135deg, var(--tg-common-color-black-2) 0%, var(--tg-common-color-black-4) 100%);
    border-width: 2px;
}

.shop-type-link-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 217, 255, 0.1);
    font-size: 22px;
    color: var(--tg-theme-primary);
    transition: all 0.3s ease;
}

.shop-type-link:hover .shop-type-link-icon,
.shop-type-link.active .shop-type-link-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1);
}

.shop-type-link-icon i {
    color: var(--tg-theme-primary);
}

.shop-type-link-text {
    font-size: 0.9rem;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
    text-align: center;
    transition: color 0.3s ease;
}

.shop-type-link:hover .shop-type-link-text,
.shop-type-link.active .shop-type-link-text {
    color: var(--tg-theme-primary);
}

/* Responsive for shop type links */
@media (max-width: 991.98px) {
    .shop-type-links-container {
        gap: 12px;
    }
    
    .shop-type-link {
        min-width: 140px;
        padding: 12px 20px;
    }
    
    .shop-type-link-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .shop-type-link-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .shop-type-links-container {
        gap: 10px;
    }
    
    .shop-type-link {
        min-width: calc(50% - 5px);
        padding: 12px 15px;
    }
    
    .shop-type-link-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .shop-type-link-text {
        font-size: 0.8rem;
    }
}

/* Small Product Cards */
.product-grid-small {
    direction: rtl;
}

.product-grid-small .product__box-wrap {
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-grid-small .product__box-thumb {
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-grid-small .product__box-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-grid-small .product__box-title {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-grid-small .product__box-title a {
    font-size: 14px;
}

.product-grid-small .product__box-price {
    font-size: 16px;
    margin-bottom: 6px;
}

.product-grid-small .product__box-category {
    font-size: 10px;
    margin-top: auto;
}

/* Ensure all product cards have equal height */
.product-grid-small > [class*="col"] {
    display: flex;
}

.product-grid-small > [class*="col"] > .product__box-wrap {
    width: 100%;
}

/* Desktop: 5 products per row */
@media (min-width: 1200px) {
    .product-grid-small .product-card-column {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Tablet: 3 products per row */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid-small .product-card-column {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Mobile: 2 products per row */
@media (max-width: 991px) {
    .product-grid-small .product-card-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive for category scroll */
@media (max-width: 768px) {
    .category-chip {
        min-width: 80px;
        padding: 12px 15px;
    }
    
    .category-chip-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .category-chip-name {
        font-size: 0.8rem;
    }
    
    .product-grid-small .product__box-wrap {
        margin-bottom: 15px;
    }
    
    .product-grid-small .product__box-content {
        padding: 12px;
    }
    
    .product-grid-small .product__box-title {
        font-size: 14px;
    }
    
    .product-grid-small .product__box-price {
        font-size: 16px;
    }
}
