/* Shop Page Styles */

/* Page Header */
.page-header-shop {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/shop-header.webp') center/cover no-repeat;
    background-color: #2c3e50;
    background-attachment: fixed;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    color: #fff;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb-shop {
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
}

.breadcrumb-shop a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
}

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

.breadcrumb-shop span {
    color: #fff;
    opacity: 1;
}

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

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toolbar-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.toolbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Override WooCommerce ordering margin */
.woocommerce .woocommerce-ordering,
.woocommerce-ordering {
    margin: 0 !important;
}

.view-buttons {
    display: flex;
    gap: 0;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.view-btn:first-child {
    border-right: none;
}

.view-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.view-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.woocommerce-ordering select,
.form-select {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.woocommerce-ordering select:focus,
.form-select:focus {
    outline: none;
    border-color: #333;
}


/* Shop Sidebar */
.shop-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #333;
}

.widget-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #666;
}

/* Category & Brand Lists */
.category-list,
.brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.brand-list li {
    margin-bottom: 12px;
}

.category-item,
.brand-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.category-item:hover,
.brand-item:hover {
    color: #333;
}

.category-item input,
.brand-item input {
    margin-right: 10px;
    cursor: pointer;
}

/* Color Filter */
.color-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.color-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.color-item input {
    margin-right: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid #ddd;
}

/* Price Filter */
.price-filter {
    padding: 10px 0;
}

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

.price-inputs input {
    flex: 1;
}

.btn-filter {
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 15px;
}

.btn-filter:hover {
    background: #000;
}

.price-filter small {
    font-size: 12px;
}

/* Best Seller */
.best-seller-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.best-seller-item {
    display: flex;
    gap: 15px;
}

.best-seller-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    gap: 15px;
    width: 100%;
}

.best-seller-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.best-seller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.best-seller-info {
    flex: 1;
}

.best-seller-info .product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.best-seller-info .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.best-seller-info .product-price del {
    color: #999;
    margin-right: 5px;
}

/* Promo Widget */
.promo-widget {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.promo-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.promo-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.btn-promo {
    background: #fff;
    color: #333;
    padding: 12px 30px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-promo:hover {
    background: #333;
    color: #fff;
}

/* Products Grid */
.products-grid {
    margin: 0 -15px;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

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

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

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

.action-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.action-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    color: #999;
    text-decoration: none;
}

.product-title a:hover {
    color: #333;
}

.product-description {
    display: none; /* Hidden in grid view */
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.product-description p {
    margin: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.product-price del {
    font-size: 14px;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

.product-price ins {
    text-decoration: none;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #333;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-add-to-cart:hover {
    background: #333;
    color: #fff;
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Select Options Button (for variable products) */
.btn-select-options {
    background: #333;
    color: #fff;
    border-color: #333;
}

.btn-select-options:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}


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

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive */
@media (max-width: 991px) {
    .shop-sidebar {
        margin-top: 40px;
        margin-bottom: 30px;
        position: static;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .page-title {
        font-size: 42px;
    }

    .page-header-shop {
        padding: 100px 0 60px;
    }
}

@media (max-width: 576px) {
    .shop-toolbar {
        padding: 15px;
    }

    .toolbar-right {
        flex-direction: column;
        gap: 15px;
    }

    .toolbar-item {
        width: 100%;
        justify-content: space-between;
    }

    .toolbar-label {
        font-size: 13px;
        white-space: nowrap;
    }

    .woocommerce-ordering select,
    .form-select {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 6px 30px 6px 12px;
    }

    .toolbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .view-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .product-card-image {
        /*padding-top: 120%;*/
    }
    
    .page-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .page-header-shop {
        padding: 80px 0 50px;
        background-attachment: scroll;
    }
    
    .breadcrumb-shop {
        font-size: 13px;
    }
}

/* List View Styles */
.list-view .product-card.list-style {
    flex-direction: row;
}

.list-view .product-card.list-style .product-card-image {
    width: 300px;
    flex-shrink: 0;
}

.list-view .product-card.list-style .product-card-body {
    text-align: left;
    padding: 30px;
}

.list-view .product-card.list-style .product-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.list-view .product-card.list-style .product-description {
    display: block; /* Show in list view */
}

.list-view .product-card.list-style .product-price {
    font-size: 20px;
    margin-bottom: 20px;
}

.list-view .product-card.list-style .btn-add-to-cart {
    width: auto;
    padding: 12px 40px;
}

@media (max-width: 768px) {
    .list-view .product-card.list-style {
        flex-direction: column;
    }
    
    .list-view .product-card.list-style .product-card-image {
        width: 100%;
    }
    
    .list-view .product-card.list-style .product-card-body {
        text-align: center;
    }
}