/* Tabs */
.wc-view-switcher {
    margin-bottom: 15px;
    text-align: center;
}
.switch-btn {
    background: #db2326;
    color: #fff;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}
.switch-btn.active {
    background: #AE0E10;
}

/* Grid */
.wc-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.wc-product-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 15px;
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
    gap: 15px;
    position: relative;
}
.wc-product-card img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}
.wc-product-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}
.wc-product-card .details {
    flex: 1;
}
.regular-price {
    color: #888;
    font-size: 14px;
}
.regular-price del {
    color: #888;
}
.sale-price {
    font-size: 16px;
    font-weight: bold;
    color: #e63946;
}
.discount-badge {
    background: #e63946;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}
.no-sale {
    color: #333;
    font-weight: bold;
}

/* List */
/* Make table scrollable on small screens */
.wc-product-list {
    overflow-x: auto;
}

.wc-product-list table {
    width: 100%;
    min-width: 600px; /* optional: set a minimum width to allow scrolling */
    border-collapse: collapse;
}

.wc-product-list th, 
.wc-product-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.wc-product-list del {
    color: #888;
}
.wc-product-list strong {
    color: #e63946;
}

/* Table header */
.wc-product-list thead th {
    background: #db2326;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* Qty buttons */
.qty-total-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin: 5px 0;
}
.qty-btn {
    background: #db2326;
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
}
.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 4px;
}

/* Total price */
.total-price {
    font-weight: bold;
    color: #333;
    margin-top: 4px;
    display: block;
}




/* Responsive */
@media(max-width:768px){
    .wc-product-card {width: 45%;}
    .wc-product-list {
        overflow-x: auto;
    }

    .wc-product-list table {
        min-width: 600px; /* ensures table is scrollable */
    }
    
     /* Scrollable table already handled */
    .wc-product-list table th:last-child,
    .wc-product-list table td:last-child {
        min-width: 150px; /* adjust as needed */
    }

    /* Increase input width for easier touch on mobile */
    .wc-product-list .qty-input {
        width: 60px; /* bigger input on mobile */
        font-size: 16px;
    }

    .qty-btn {
        padding: 6px 12px; /* bigger buttons for touch */
        font-size: 16px;
    }
}
@media(max-width:480px){
    .wc-product-card {width: 100%;}
    .switch-btn {display: block; width: 100%; margin: 5px 0;}
    
    .wc-product-list table th:last-child,
    .wc-product-list table td:last-child {
        min-width: 180px; /* even wider for small phones */
    }

    .wc-product-list .qty-input {
        width: 70px;
        font-size: 18px;
    }

    .qty-btn {
        padding: 6px 14px;
        font-size: 18px;
    }
}



.discount-badge {
    background: #db2326;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.qty-total-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}



.add-to-cart-btn{
	cursor:pointer;
	border:1px solid #db2326;
	color:#db2326;
	border-radius:7px;
	padding: 10px 20px !important;
	width: 130px;
}

.add-to-cart-btn:hover{
	background-color:#db2326;
	color: #fff;
}

