/* Modaz Shop Page Styles - Based on Modaz Template */

/* Page Title Styles */
.page-title {
    background: url('../images/bg-page-title.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0 60px;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-title-heading {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title-heading h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumbs {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
}

.breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.breadcrumbs li {
    color: #fff;
    font-size: 14px;
}

.breadcrumbs li a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs li:after {
    content: '/';
    margin: 0 10px;
}

.breadcrumbs li:last-child:after {
    display: none;
}

/* Main Shop Section */
.main-shop {
    padding: 80px 0;
    background: #fff;
}

/* Sidebar Styles */
.sidebar-shop {
    margin-bottom: 50px;
}

.widget {
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 30px;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Widget */
.search-form {
    position: relative;
    display: flex;
}

.search-field {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.search-field:focus {
    border-color: #333;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: #333;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #555;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Sort Widget */
.widget-sort-by-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Category Widget */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #f5f5f5;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: block;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    color: #333;
    font-weight: 600;
}

/* Price Filter Widget */
.price-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.price-input:focus {
    border-color: #333;
}

.btn-filter-price {
    width: 100%;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-price:hover {
    background: #555;
}

/* Shop Control */
.shop-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.shop-control-left p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.flat-filter {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.flat-filter li {
    margin-left: 15px;
}

.flat-filter li:first-child {
    margin-left: 0;
}

.flat-filter a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.flat-filter li.active a,
.flat-filter a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Product Grid */
.product-content {
    margin-bottom: 50px;
}

.product {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.product-item {
    width: 25%;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.product-fourcolumn .product .product-item {
    width: 25%;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-thumb img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
}

.product-thumb .sale,
.product-thumb .new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-thumb .new {
    background: #27ae60;
}

.product-info {
    text-align: center;
    margin-bottom: 15px;
}

.product-title {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
}

.price {
    margin-bottom: 15px;
}

.price del {
    color: #999;
    margin-right: 10px;
}

.price ins {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.amount {
    color: inherit;
}

/* Color List */
.flat-color-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.flat-color-list li a {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.flat-color-list li a:hover {
    transform: scale(1.2);
}

.flat-color-list li a.red { background: #e74c3c; }
.flat-color-list li a.blue { background: #3498db; }
.flat-color-list li a.black { background: #333; }
.flat-color-list li a.white { background: #fff; }
.flat-color-list li a.green { background: #27ae60; }
.flat-color-list li a.yellow { background: #f1c40f; }

/* Add to Cart Button */
.add-to-cart {
    opacity: 0;
    transition: all 0.3s ease;
}

.product-item:hover .add-to-cart {
    opacity: 1;
}

.add-to-cart a {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.add-to-cart a:hover {
    background: #555;
}

/* Like Button */
.like {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-item:hover .like {
    opacity: 1;
}

.like:hover {
    background: #e74c3c;
    color: #fff;
}

/* Loading Spinner */
.loading-spinner .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Pagination */
.flat-pagination {
    text-align: center;
    margin-top: 50px;
}

.flat-pagination .pagination {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.flat-pagination .page-item {
    display: block;
}

.flat-pagination .page-link {
    display: block;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.flat-pagination .page-item.active .page-link,
.flat-pagination .page-link:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-item {
        width: 33.333%;
    }
    
    .shop-control {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .product-item {
        width: 50%;
    }
    
    .page-title-heading h1 {
        font-size: 36px;
    }
    
    .sidebar-shop {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .product-item {
        width: 100%;
    }
    
    .price-input-container {
        flex-direction: column;
    }
    
    .page-title {
        padding: 80px 0 40px;
    }
    
    .page-title-heading h1 {
        font-size: 28px;
    }
}

/* No Products Found */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.flat-button {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.flat-button:hover {
    background: #555;
    color: #fff;
}
