:root {
    --rmps-navy: #1a2744;
    --rmps-gold: #c8952e;
    --rmps-dark-navy: #111d33;
    --rmps-light-gray: #f5f5f5;
    --rmps-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* ===== Top Bar ===== */
.top-bar {
    background-color: var(--rmps-navy);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar a {
    color: #ccc;
    text-decoration: none;
}
.top-bar a:hover {
    color: #fff;
}

/* ===== Main Navigation ===== */
.main-nav {
    background-color: var(--rmps-white);
    border-bottom: 3px solid var(--rmps-gold);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--rmps-navy);
}
.navbar-logo {
    height: 46px;
    width: auto;
}
.main-nav .nav-link {
    color: var(--rmps-navy);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 8px 14px;
}
.main-nav .nav-link:hover {
    color: var(--rmps-gold);
}

.nav-icons {
    gap: 18px;
}
.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--rmps-navy);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.nav-icon-link i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.nav-icon-link:hover {
    color: var(--rmps-gold);
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: 6px;
    background-color: var(--rmps-gold);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== Hero Section ===== */
.hero-section {
    background: url('/resources/images/hero-background.webp') no-repeat right center / cover;
    background-color: var(--rmps-navy);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--rmps-navy) 30%, rgba(26,39,68,0.7) 45%, rgba(26,39,68,0.2) 60%, transparent 70%);
    z-index: 0;
}
@media (max-width: 1200px) {
    .hero-section::before {
        background: linear-gradient(to right, var(--rmps-navy) 35%, rgba(26,39,68,0.8) 55%, rgba(26,39,68,0.3) 75%, transparent 100%);
    }
}
@media (max-width: 991px) {
    .hero-section {
        background-position: center center;
        min-height: auto;
        padding: 50px 0;
    }
    .hero-section::before {
        background: linear-gradient(to right, var(--rmps-navy) 40%, rgba(26,39,68,0.85) 65%, rgba(26,39,68,0.5) 85%, rgba(26,39,68,0.4) 100%);
    }
}
@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    .hero-section::before {
        background: rgba(26,39,68,0.85);
    }
    .hero-title {
        font-size: 1.8rem;
    }
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-subtitle {
    color: var(--rmps-gold);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-description {
    font-size: 1rem;
    color: #ccc;
}
.hero-image-placeholder {
    background-color: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 80px 40px;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn-rmps-primary {
    background-color: var(--rmps-gold);
    color: #fff;
    border: 2px solid var(--rmps-gold);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 24px;
    letter-spacing: 0.5px;
}
.btn-rmps-primary:hover {
    background-color: #b5841f;
    border-color: #b5841f;
    color: #fff;
}
.btn-rmps-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 24px;
    letter-spacing: 0.5px;
}
.btn-rmps-outline:hover {
    background-color: #fff;
    color: var(--rmps-navy);
}

/* ===== Trust Bar ===== */
.trust-bar {
    background-color: var(--rmps-white);
    border-bottom: 1px solid #e9ecef;
    padding: 24px 0;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: left;
}
.trust-icon {
    font-size: 1.6rem;
    color: var(--rmps-navy);
}

/* ===== Featured Products ===== */
.featured-products {
    background-color: var(--rmps-light-gray);
}
.section-title {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--rmps-navy);
    letter-spacing: 1px;
}
.view-all-link {
    color: var(--rmps-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.view-all-link:hover {
    color: var(--rmps-gold);
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}
.product-carousel-wrap {
    position: relative;
}
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 0;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.product-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 240px;
    scroll-snap-align: start;
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rmps-navy);
    min-height: 40px;
}
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rmps-gold);
    margin-bottom: 12px;
}
.btn-add-to-cart {
    background-color: var(--rmps-gold);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 10px;
    margin-top: auto;
}
.btn-add-to-cart:hover {
    background-color: #b5841f;
    color: #fff;
}

/* Special Price Card */
.product-card-special {
    border: 2px solid var(--rmps-gold);
    position: relative;
}
.special-badge {
    display: flex;
    align-items: stretch;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.special-badge-label {
    background-color: var(--rmps-navy);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 8px 16px;
    flex: 1;
}
.special-badge-star {
    background-color: var(--rmps-gold);
    color: #fff;
    font-size: 1.1rem;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    padding-bottom: 16px;
}
.product-card-special .product-image {
    padding-top: 40px;
}
.product-price-original {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0;
}
.product-card-special .product-price {
    font-size: 1.4rem;
}
.product-savings {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 12px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #666;
}
.carousel-nav-btn:hover {
    border-color: var(--rmps-navy);
    color: var(--rmps-navy);
}
.carousel-prev {
    left: -18px;
}
.carousel-next {
    right: -18px;
}

/* ===== About the Author ===== */
.about-author {
    background-color: var(--rmps-white);
}
.author-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.author-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rmps-navy);
}
.author-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rmps-gold);
    font-style: italic;
}

/* ===== Testimonials ===== */
.testimonials-section {
    background-color: var(--rmps-light-gray);
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.testimonial-card {
    padding: 20px;
}
.testimonial-quote-icon {
    color: var(--rmps-gold);
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.testimonial-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
}
.testimonial-stars {
    color: var(--rmps-gold);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.testimonial-tagline {
    font-weight: 700;
    color: var(--rmps-navy);
    font-size: 1rem;
}

/* ===== Shipping Strip ===== */
.shipping-strip {
    background-color: var(--rmps-white);
    border-top: 1px solid #e9ecef;
}
.shipping-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.shipping-item i {
    color: var(--rmps-navy);
    margin-right: 10px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--rmps-dark-navy);
    color: #ccc;
    padding-top: 40px;
}
.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: #fff;
}
.footer-social a {
    color: #aaa;
    font-size: 1rem;
}
.footer-social a:hover {
    color: #fff;
}
.footer-divider {
    border-color: #333;
}
.btn-subscribe {
    background-color: var(--rmps-gold);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.btn-subscribe:hover {
    background-color: #b5841f;
    color: #fff;
}

/* ===== Page Hero ===== */
.page-hero {
    background: url('/resources/images/hero-background.webp') no-repeat right center / cover;
    background-color: var(--rmps-navy);
    color: #fff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--rmps-navy) 35%, rgba(26,39,68,0.7) 55%, rgba(26,39,68,0.2) 75%, transparent 100%);
    z-index: 0;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero-description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

/* ===== Catalog Page ===== */
.catalog-section {
    background-color: var(--rmps-light-gray);
}

/* Sidebar */
.catalog-sidebar-heading {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--rmps-navy);
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.catalog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.catalog-category-list li {
    margin-bottom: 6px;
}
.catalog-category-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 10px;
    border-left: 3px solid transparent;
    display: block;
    padding-top: 2px;
    padding-bottom: 2px;
}
.catalog-category-list a:hover {
    color: var(--rmps-gold);
}
.catalog-category-list a.active {
    color: var(--rmps-gold);
    font-weight: 600;
    border-left-color: var(--rmps-gold);
}

/* Filters */
.catalog-filter-group {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.catalog-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--rmps-navy);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.catalog-filter-header i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.catalog-filter-header[aria-expanded="false"] i {
    transform: rotate(180deg);
}
.catalog-filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.catalog-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    margin-bottom: 0;
}
.catalog-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rmps-navy);
    cursor: pointer;
}
.catalog-price-range .input-group-text {
    background-color: #fff;
    font-size: 0.8rem;
}
.catalog-price-range .form-control {
    font-size: 0.8rem;
}

/* Free Shipping Box */
.catalog-free-shipping {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 24px 16px;
    background-color: #fff;
    color: var(--rmps-navy);
}
.catalog-free-shipping i {
    color: var(--rmps-navy);
}

/* Toolbar */
.catalog-toolbar {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}
.catalog-result-count {
    font-size: 0.85rem;
    color: #777;
}
.catalog-sort-select {
    width: auto;
    font-size: 0.8rem;
    border-color: #ccc;
    min-width: 140px;
}
.catalog-view-toggle {
    display: flex;
    gap: 4px;
}
.catalog-view-btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #999;
    padding: 4px 8px;
    font-size: 0.85rem;
}
.catalog-view-btn.active {
    background-color: var(--rmps-navy);
    border-color: var(--rmps-navy);
    color: #fff;
}
.catalog-view-btn:hover {
    border-color: var(--rmps-navy);
    color: var(--rmps-navy);
}

/* Product Cards */
.catalog-product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.catalog-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.catalog-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.catalog-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.catalog-product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.catalog-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rmps-navy);
    min-height: 44px;
    margin-bottom: 8px;
    line-height: 1.3;
}
.catalog-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rmps-gold);
    margin-bottom: 12px;
}
.catalog-wishlist-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
}
.catalog-wishlist-link:hover {
    color: var(--rmps-gold);
}
