/* =========================================
   Products Grid Page Specific Styles
========================================= */

/* Sidebar Widgets */
.custom-checkbox:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.custom-checkbox:focus {
    box-shadow: 0 0 0 0.25rem rgba(117, 167, 67, 0.25);
}

.custom-check-list li {
    margin-bottom: 12px;
}

.custom-check-list label {
    cursor: pointer;
    transition: var(--transition);
}

.custom-check-list label:hover {
    color: var(--theme-primary) !important;
}

/* Custom Range Slider */
.custom-range::-webkit-slider-thumb {
    background: var(--theme-primary);
}
.custom-range::-moz-range-thumb {
    background: var(--theme-primary);
}

/* Top Bar Select Dropdown */
.custom-select:focus {
    box-shadow: none;
    border-color: var(--theme-primary);
}

/* =========================================
   Product Card Styles
========================================= */
.product-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    border-color: #eee;
    transform: translateY(-5px);
}

/* Product Image Wrapper */
.product-img-box {
    height: 260px;
    background-color: #f9f9f9;
}

.product-img-box img {
    height: 100%;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.08); /* Smooth Zoom in */
}

/* Product Badge (Organic, Sale) */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

/* Hover Action Buttons */
.product-actions {
    position: absolute;
    bottom: -50px; /* Hidden below */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.product-card:hover .product-actions {
    bottom: 20px; /* Slide up on hover */
    opacity: 1;
}

.action-btn {
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: var(--theme-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--theme-primary);
    color: #fff;
    transform: translateY(-3px);
}

.cart-btn {
    background-color: var(--theme-dark);
    color: #fff;
}

/* Product Info */
.product-title {
    transition: var(--transition);
    font-weight: 700;
}

.product-title:hover {
    color: var(--theme-primary) !important;
}

/* =========================================
   Product Details Specific Styles
========================================= */

/* Image Gallery Styles */
.main-image-box {
    height: 400px;
    border: 1px solid #eee;
}

.thumbnail-box {
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-box:hover {
    opacity: 0.8;
}

.thumbnail-box.active-thumb {
    border-color: var(--theme-primary);
}

/* Links inside details */
.theme-link {
    color: var(--theme-primary);
    transition: var(--transition);
}

.theme-link:hover {
    color: var(--theme-dark);
    text-decoration: underline !important;
}

/* Custom Quantity Selector */
.quantity-selector {
    border: 1px solid #eee;
    padding: 3px 10px;
    width: fit-content;
}

.qty-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--theme-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.qty-btn:hover {
    color: var(--theme-primary);
}

.qty-input {
    width: 40px;
    color: var(--theme-dark);
}

/* Remove default arrows from number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* =========================================
   Custom Clean Tabs
========================================= */
.custom-nav-tabs {
    border-bottom: 2px solid #eee;
}

.custom-nav-tabs .nav-link {
    border: none;
    color: #999;
    background: transparent;
    padding-bottom: 15px;
    position: relative;
    font-size: 1.1rem;
    transition: var(--transition);
}

.custom-nav-tabs .nav-link:hover {
    color: var(--theme-dark);
    border: none;
}

.custom-nav-tabs .nav-link.active {
    color: var(--theme-dark);
    background: transparent;
    border: none;
}

.custom-nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* overlaps the border-bottom of the ul */
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.custom-nav-tabs .nav-link.active::after {
    background-color: var(--theme-primary);
}

/* Table styling for Additional Info */
.custom-table th, .custom-table td {
    padding: 12px 20px;
    border-color: #eee;
}