/*
Theme Name: Alukas Child
Theme URI: https://alukas.presslayouts.com/
Author: PressLayouts
Description: This is a child theme for Alukas
Version: 1.0
Author URI: https://www.presslayouts.com/
Template: alukas
Text Domain: pls-theme-child
*/

/* ============================= */
/* HIDE DEFAULT THEME UI         */
/* ============================= */
.pls-product-inner,
.pls-products-header-right {
    display: none !important;
}

/* ============================= */
/* LAYOUT WRAPPER                */
/* ============================= */
.shop-layout-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

/* ============================= */
/* LEFT SIDEBAR — FILTERS        */
/* ============================= */
.shop-sidebar {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.product-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.filter-bar-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #d6e3f3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    color: #333;
    cursor: pointer;
    height: 38px;
    appearance: auto;
}

.filter-select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.filter-reset-btn {
    width: 100%;
    height: 38px;
    padding: 0;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.filter-reset-btn:hover {
    background: #444;
}

/* ============================= */
/* RIGHT CONTENT — PRODUCT TABLE */
/* ============================= */
.shop-content {
    flex: 1;
    min-width: 0; /* prevent table overflow */
    overflow-x: auto;
}

/* ============================= */
/* TABLE BASE STYLE              */
/* ============================= */
.custom-product-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #999;
    background: #fff;
}

.custom-product-table thead th {
    border: 1px solid #999 !important;
    background: #d6e3f3;
    padding: 12px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.custom-product-table td {
    border: 1px solid #999 !important;
    padding: 12px 14px;
    font-size: 14px;
    vertical-align: middle;
}

/* PRODUCT COLUMN */
.custom-product-table td.col-product {
    text-align: left;
    min-width: 160px;
}

.custom-product-table td.col-product img {
    display: block;
    margin-bottom: 6px;
    border-radius: 4px;
}

.custom-product-table td.col-product strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #222;
}

/* KARAT COLUMNS */
.custom-product-table td.karat-col {
    text-align: center;
    min-width: 140px;
}

.karat-price-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.karat-price-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #111;
    width: 15px;
    height: 15px;
}

.price-display {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

.no-variant {
    color: #bbb;
    font-size: 18px;
    display: block;
    text-align: center;
}

/* COLOR COLUMN */
.custom-product-table td.col-color {
    text-align: center;
    min-width: 110px;
}

.custom-product-table .color-select {
    padding: 6px 8px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    background: #fff;
}

/* ADD TO CART COLUMN */
.custom-product-table td.col-cart {
    text-align: center;
    min-width: 130px;
}

.add-to-cart-btn {
    background: #000;
    color: #fff;
    padding: 9px 16px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: #333;
}

/* ROW HOVER */
.custom-product-table tbody tr:hover {
    background: #f7f7f7;
}

/* SCROLLBAR */
.custom-product-table::-webkit-scrollbar {
    height: 6px;
}
.custom-product-table::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
}

/* ============================= */
/* MOBILE RESPONSIVE             */
/* ============================= */
@media (max-width: 900px) {

    .shop-layout-wrapper {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        min-width: unset;
        position: static;
    }

    .product-filter-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .filter-bar-title {
        width: 100%;
    }

    .filter-group {
        min-width: 130px;
        flex: 1;
    }

    .filter-reset-btn {
        margin-top: 20px; /* align with selects */
    }

    .shop-content {
        width: 100%;
        overflow-x: auto;
    }

    .custom-product-table {
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .custom-product-table th,
    .custom-product-table td {
        min-width: 120px;
        font-size: 12px;
        padding: 8px 10px;
    }

    .custom-product-table td:first-child {
        min-width: 150px;
    }

    .add-to-cart-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .pls-product-inner,
    .pls-products-header-right {
        display: none !important;
    }
}