/* ========== VARIABLES ========== */
:root {
    --primary: #ff3c00;
    --primary-dark: #e33400;
    --bg-light: #f8f8f8;
    --text-dark: #111;
    --transition: all 0.3s ease;
}

/* ========== FILTER BOX ========== */
.filter-box {
    border: 1px solid var(--primary);
    padding: 15px;
    background: #fff;
    animation: fadeSlide 0.6s ease forwards;
}

/* ========== CATEGORY LIST ========== */

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;

    height: 100%;
    min-height: 100vh;

    padding: 12px;
    background: #fafafa;
    border-radius: 14px;
}

.category-list li {
    position: relative;
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 10px;

    font-weight: 500;
    color: #222;

    transition: background 0.25s ease, color 0.25s ease;
}

/* hover */
.category-list li:hover {
    background: rgba(255, 60, 0, 0.06);
}

/* active */
.category-list li.active {
    background: #ff3c00;
    color: #fff;
    font-weight: 600;
}

/* ========== SUBCATEGORY ========== */
.subcategory {
    margin-left: 10px;
    padding: 10px 14px;
    font-size: 14px;

    border-radius: 8px;
    background: transparent;

    color: #444;
    transition: all 0.25s ease;
}

.subcategory:hover {
    background: rgba(255, 60, 0, 0.08);
}

.subcategory.active {
    background: rgba(255, 60, 0, 0.15);
    color: #ff3c00;
    font-weight: 600;
}

/* ========== PRODUCT CARD ========== */
/* PRODUCT CARD – CLEAN & MODERN */
.product-card {
    background: #fff;
    color: #111;
    text-align: center;
    padding: 22px;
    height: 100%;
    border-radius: 12px;
    border: none;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);

    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.product-card img {
    width: 70%;
    height: 15rem;
}

/* subtle accent line instead of border */
.product-card::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3c00, #ff7a4d);
    opacity: 0;
    transition: 0.35s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========== PRODUCT BUTTON ========== */
.product-btn {
    background: var(--primary);
    color: #fff;
    border-radius: 0;
    font-size: 13px;
    padding: 10px 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
}

.product-btn:hover::after {
    transform: translateX(0);
    transition: 0.4s ease;
}

.product-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    color: #000;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: #fff5f0;
}

.pagination .active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========== CATEGORY TOGGLE BUTTON ========== */

.btn-category-toggle {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
}

.btn-category-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ========== CATEGORY TITLE ========== */
.category-title {
    font-weight: 600;
    padding: 10px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ----------------Related Products Start    ---------------- */

/* Card */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    transition: 0.3s;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Image box */
.product-img {
    height: 250px;
    background: #efefef;
    border-bottom: 1px solid #ddd;
}

/* Image full cover */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.product-info {
    padding: 18px;
    background: #fff;
}

.product-info p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    min-height: 48px;
    margin-bottom: 12px;
}

/* Button */
.product-btn {
    display: inline-block;
    background: #e94b35;
    color: #fff;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.product-btn:hover {
    background: #d63d28;
    color: #fff;
}

#thumbnailContainer img.active{
    border: 1px solid red;
}