/* Sidebar Filter Styling */
.filter-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.filter-title {
    color: #17385a; /* Tumhara brand dark blue */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.filter-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e3000f; /* Tumhara brand red */
}

/* Category List */
.filter-list li {
    margin-bottom: 12px;
}

.filter-list li:last-child {
    margin-bottom: 0;
}

.filter-list a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-list a:hover, .filter-list a.active {
    color: #e3000f;
    font-weight: 600;
}

.filter-list a span {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #888;
}

.filter-list a:hover span, .filter-list a.active span {
    background: rgba(227, 0, 15, 0.1);
    color: #e3000f;
}

/* Custom Checkbox for Brands */
.custom-checkbox {
    margin-bottom: 12px;
}

.custom-checkbox .form-check-input:checked {
    background-color: #e3000f;
    border-color: #e3000f;
}

.custom-checkbox .form-check-label {
    color: #555;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Search Bar in Sidebar */
.premium-search .form-control {
    border-radius: 8px 0 0 8px;
    border: 1px solid #ddd;
    box-shadow: none;
}
.premium-search .form-control:focus {
    border-color: #17385a;
}
.premium-search .btn-search {
    background: #17385a;
    color: white;
    border-radius: 0 8px 8px 0;
    border: 1px solid #17385a;
}
.premium-search .btn-search:hover {
    background: #e3000f;
    border-color: #e3000f;
}

/* Custom Sort Dropdown */
.custom-sort-select {
    width: 200px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: none;
    font-size: 0.95rem;
    color: #17385a;
    font-weight: 600;
}

/* ==========================================
   Premium Pagination Styling
   ========================================== */
.pagination-premium .page-item {
    margin: 0 5px;
}

.pagination-premium .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #17385a;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.pagination-premium .page-item.active .page-link {
    background-color: #e3000f;
    border-color: #e3000f;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(227, 0, 15, 0.3);
}

.pagination-premium .page-link:hover:not(.dotted) {
    background-color: #17385a;
    border-color: #17385a;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination-premium .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #ccc;
    border-color: #eee;
}

.pagination-premium .page-link.dotted {
    border: none;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    color: #888;
}

.pagination-premium .bi {
    font-size: 1.2rem;
}

/* ==========================================
   Product Details Page Styling
   ========================================== */

/* Product Gallery */
.main-image-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-image-box .main-img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.main-image-box:hover .main-img {
    transform: scale(1.05);
}

.premium-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #17385a; /* Brand dark blue */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.thumbnail-box {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-box img {
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-box:hover {
    border-color: #a4b4c7;
}

.thumbnail-box.active {
    border-color: #e3000f; /* Active state gets brand red */
    background: #fff;
    box-shadow: 0 4px 10px rgba(227, 0, 15, 0.1);
}

/* Product Info */
.product-detail-title {
    color: #17385a;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
}

.sell-price {
    font-size: 2rem;
    font-weight: 700;
    color: #e3000f;
}

.mrp-price {
    font-size: 1.2rem;
}

.discount-tag {
    background: rgba(227, 0, 15, 0.1);
    color: #e3000f;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.feature-list li {
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

.feature-list i {
    color: #28a745; /* Success Green */
    margin-right: 8px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Quantity & Buttons */
.qty-selector {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 50px;
    width: 130px;
}

.btn-qty {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    font-size: 1.2rem;
    color: #17385a;
    transition: background 0.2s;
}

.btn-qty:hover {
    background: #e9ecef;
}

.qty-input {
    border: none;
    background: transparent;
    width: 50px;
    height: 100%;
    font-weight: 700;
    padding: 0;
    box-shadow: none !important;
}

/* Chrome, Safari, Edge, Opera hide arrows in number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Actions Buttons */
.action-buttons .btn {
    height: 50px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-cart-outline {
    border: 2px solid #17385a;
    color: #17385a;
    background: white;
}

.btn-cart-outline:hover {
    background: #17385a;
    color: white;
}

/* PayU Buy Now Button Highlight */
.btn-buy-now {
    background: #e3000f;
    color: white;
    border: 2px solid #e3000f;
    box-shadow: 0 4px 15px rgba(227, 0, 15, 0.2);
}

.btn-buy-now:hover {
    background: transparent;
    color: #e3000f;
    box-shadow: none;
}

/* Trust Badges */
.trust-badges-box {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
}

/* Custom Tabs */
.custom-product-tabs {
    border-bottom: 2px solid #eee;
}

.custom-product-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1.1rem;
    position: relative;
}

.custom-product-tabs .nav-link:hover {
    color: #17385a;
}

.custom-product-tabs .nav-link.active {
    color: #e3000f;
    background: transparent;
}

/* Animated bottom border for active tab */
.custom-product-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e3000f;
    border-radius: 2px 2px 0 0;
}

.custom-spec-table th {
    width: 30%;
    background: #f8f9fa;
    color: #17385a;
    font-weight: 600;
}

.custom-spec-table td {
    color: #555;
}