/* ============================
   Ready Solutions Page Styles
   ============================ */

/* Page background */
.rs-page {
    background: #f5f7fa;
    min-height: 100vh;
}

/* Breadcrumb - matching about page style */
.rs-page .page-breadcrumb {
    background: linear-gradient(135deg, #1B2A4A 0%, #0F1A30 100%);
    padding: 60px 0 !important;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rs-page .page-breadcrumb h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
}
.rs-page .page-breadcrumb ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.rs-page .page-breadcrumb ul li,
.rs-page .page-breadcrumb ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}
.rs-page .page-breadcrumb ul li a:hover {
    color: #F59120 !important;
}
.rs-page .page-breadcrumb ul li::after {
    content: "/" !important;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.4) !important;
}
.rs-page .page-breadcrumb ul li:last-child::after {
    content: "" !important;
}

/* ---- Category Navigation Bar ---- */
.rs-category-nav {
    display: flex;
    gap: 8px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
}
.rs-cat-item {
    flex: 1;
    text-align: center;
    text-decoration: none !important;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.65;
}
.rs-cat-item:hover {
    background: #f8fafc;
    opacity: 1;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}
.rs-cat-item.active {
    background: linear-gradient(135deg, #fff8f0 0%, #fff1e3 100%);
    border-color: #F59120;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(245, 145, 32, 0.12);
}
.rs-cat-item img {
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.rs-cat-item:hover img {
    transform: scale(1.08);
}
.rs-cat-item .rs-cat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1B2A4A;
    line-height: 1.3;
}

/* ---- Sidebar ---- */
.rs-sidebar-header {
    background: linear-gradient(135deg, #1B2A4A 0%, #0F1A30 100%);
    color: #ffffff;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 14px 14px 0 0;
}
.rs-sidebar-list {
    background: #ffffff;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    border-top: none;
}
.rs-sidebar-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}
.rs-sidebar-parent:hover {
    background-color: #f8fafc;
    color: #1B2A4A;
    border-left-color: #e2e8f0;
}
.rs-sidebar-parent.active {
    background-color: #f8fafc;
    color: #F59120;
    border-left-color: #F59120;
}
.rs-sidebar-parent i {
    font-size: 10px;
    opacity: 0.4;
    transition: transform 0.3s;
}
.rs-sidebar-parent.active i {
    opacity: 0.7;
    color: #F59120;
}

/* Subcategories */
.rs-sub-wrapper {
    border-bottom: 1px solid #f1f5f9;
    padding: 6px 0;
    background: #fcfcfd;
}
.rs-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 32px;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.rs-sub-item:hover {
    color: #1B2A4A;
    background: #f8fafc;
}
.rs-sub-item.active {
    color: #F59120;
    font-weight: 600;
    background: #fff8f0;
    border-left-color: #F59120;
}
.rs-sub-item .rs-sub-marker {
    font-size: 16px;
    line-height: 1;
}

/* ---- Product Grid ---- */
.rs-grid-title {
    font-size: 22px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
.rs-grid-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #F59120;
}

/* Product Card */
.rs-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #dde5ed;
}
.rs-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
}
.rs-card:hover .rs-card-image img {
    transform: scale(1.04);
}
.rs-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #E65F2B 0%, #FF7A45 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.3px;
}
.rs-card-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.rs-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rs-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 14px;
    min-height: 40px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s;
}
.rs-card-title:hover {
    color: #F59120;
}

/* Specs table */
.rs-card-specs {
    font-size: 13px;
    margin-bottom: 16px;
}
.rs-card-specs .rs-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}
.rs-card-specs .rs-spec-row:last-child {
    border-bottom: none;
}
.rs-card-specs .rs-spec-val {
    font-weight: 600;
    color: #1B2A4A;
}

/* Card footer */
.rs-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.rs-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}
.rs-price {
    font-size: 17px;
    font-weight: 700;
    color: #E65F2B;
}
.rs-order-btn {
    background: linear-gradient(135deg, #1B2A4A 0%, #263b69 100%);
    color: #fff !important;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rs-order-btn:hover {
    background: linear-gradient(135deg, #F59120 0%, #E65F2B 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 145, 32, 0.3);
}

/* ---- Detail View ---- */
.rs-detail {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}
.rs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    margin-bottom: 24px;
}
.rs-back-btn:hover {
    background: #e2e8f0;
    color: #1B2A4A;
}
.rs-detail-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    background: #f8fafc;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rs-detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.rs-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 20px;
}
.rs-detail-specs {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #edf2f7;
}
.rs-detail-specs .rs-detail-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}
.rs-detail-specs .rs-detail-spec-row:last-child {
    border-bottom: none;
}
.rs-detail-spec-label {
    color: #64748b;
}
.rs-detail-spec-val {
    font-weight: 700;
    color: #1B2A4A;
}
.rs-detail-spec-val.price {
    font-size: 22px;
    color: #E65F2B;
}
.rs-detail-order-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #1B2A4A 0%, #263b69 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rs-detail-order-btn:hover {
    background: linear-gradient(135deg, #F59120 0%, #E65F2B 100%);
    box-shadow: 0 6px 20px rgba(245, 145, 32, 0.3);
}

/* Gallery thumbnails */
.rs-gallery-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1B2A4A;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    z-index: 10;
}
.rs-gallery-nav-btn:hover {
    background: #F59120;
}

/* Tech specs section */
.rs-tech-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 16px;
    position: relative;
}
.rs-tech-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #F59120;
}
.rs-tech-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    white-space: pre-line;
}

/* ---- Empty State ---- */
.rs-empty {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
}
.rs-empty p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

/* ---- Order Modal ---- */
.rs-modal .modal-content {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}
.rs-modal .modal-header {
    background: linear-gradient(135deg, #1B2A4A 0%, #0F1A30 100%);
    padding: 18px 24px;
    border: none;
}
.rs-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
}
.rs-modal .modal-body {
    padding: 28px;
}
.rs-modal .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}
.rs-modal .form-control:focus {
    border-color: #F59120;
    box-shadow: 0 0 0 3px rgba(245, 145, 32, 0.1);
}
.rs-modal .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.rs-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
}
.rs-modal .rs-modal-submit {
    background: linear-gradient(135deg, #F59120 0%, #E65F2B 100%);
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    transition: all 0.25s ease;
}
.rs-modal .rs-modal-submit:hover {
    box-shadow: 0 4px 14px rgba(245, 145, 32, 0.35);
    transform: translateY(-1px);
}

/* ---- Owl Carousel Overrides ---- */
.rs-card .product-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
    margin-top: 0 !important;
}
.rs-card .product-carousel .owl-nav button,
.rs-detail .product-carousel .owl-nav button {
    pointer-events: auto;
    background: rgba(27, 42, 74, 0.6) !important;
    width: 32px;
    height: 32px;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.rs-card .product-carousel .owl-nav button:hover,
.rs-detail .product-carousel .owl-nav button:hover {
    background: rgba(245, 145, 32, 0.85) !important;
}
.rs-card .product-carousel .owl-nav button span,
.rs-detail .product-carousel .owl-nav button span {
    font-size: 20px;
    line-height: 1;
    margin-top: -2px;
}

/* Scrollbar */
.rs-scrollbar::-webkit-scrollbar { height: 5px; }
.rs-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.rs-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.rs-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .rs-category-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 14px;
    }
    .rs-cat-item {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 12px 10px;
    }
    .rs-cat-item img {
        height: 50px;
    }
    .rs-detail {
        padding: 20px;
    }
}
@media (max-width: 767px) {
    .rs-category-nav {
        display: none;
    }
    .rs-card-body {
        padding: 14px;
    }
}
