/* =============================================================
   RABARANY — Front Office theme
   Primary   #55606B  rgb(85, 96, 107)
   Secondary #3B444B  rgb(59, 68, 75)
   Tertiary  #353839  rgb(53, 56, 57)
   ============================================================= */

:root {
    --brand-primary: #55606B;
    --brand-primary-rgb: 85, 96, 107;
    --brand-secondary: #3B444B;
    --brand-secondary-rgb: 59, 68, 75;
    --brand-tertiary: #353839;
    --brand-tertiary-rgb: 53, 56, 57;

    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: var(--brand-primary-rgb);
    --bs-secondary: var(--brand-secondary);
    --bs-secondary-rgb: var(--brand-secondary-rgb);
}

/* ---------- Legacy Vuexy palette (violet) -> brand palette ---------- */
.bg-primary,
.badge.bg-primary,
a.bg-primary:hover,
a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
    background-color: var(--brand-primary) !important;
}

.text-primary,
a.text-primary:hover,
a.text-primary:focus {
    color: var(--brand-primary) !important;
}

.border-primary {
    border-color: var(--brand-primary) !important;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-tertiary) !important;
}

.btn-primary:hover:not(.disabled):not(:disabled) {
    box-shadow: 0 8px 25px -8px var(--brand-tertiary);
}

.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-rgb), 0.5) !important;
}

.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: var(--brand-primary) !important;
}

.btn-outline-primary {
    border-color: var(--brand-primary) !important;
}

.btn-outline-primary:hover,
.btn-check:active + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:disabled {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

/* ---------- Loader ---------- */
html .pace .pace-progress {
    background: var(--brand-tertiary) !important;
}

.spinner-border,
#nav-shopping-list .cart-loader .spinner-border {
    color: var(--brand-primary);
}

/* ---------- Header / menu ---------- */
.header-navbar.navbar-brand-center {
    background-color: var(--brand-primary) !important;
}

.header-navbar.navbar-brand-center .header-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.header-navbar.navbar-horizontal {
    background-color: #fff !important;
}

@media (max-width: 1199.98px) {
    .header-navbar.navbar-horizontal {
        background: #fff !important;
    }
}

.header-navbar .navbar-container ul.navbar-nav li i.ficon,
.header-navbar .navbar-container ul.navbar-nav li svg.ficon {
    color: #fff;
}

.nav-link-header {
    color: #fff;
}

/* ---------- Main menu ---------- */
.header-navbar.navbar-horizontal .navbar-nav {
    align-items: center;
}

.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    background-color: var(--brand-secondary) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px -4px rgba(var(--brand-tertiary-rgb), 0.65);
}

.horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li:hover > a.nav-link {
    color: var(--brand-secondary);
    border-radius: 4px;
    background: #fff;
    font-weight: 600;
}

/* ---------- Cart ---------- */
.badge.cart-item-count,
.badge.cart-item-count:hover {
    color: var(--brand-primary);
    background-color: #fff !important;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.35);
}

#nav-shopping-list .cart-footer a {
    background: var(--brand-primary);
    color: #fff;
}

#nav-shopping-list .cart-footer a:hover {
    background: var(--brand-secondary);
}

/* ---------- Cart dropdown panel ---------- */
#nav-shopping-list {
    border: 1px solid #eceef1;
    border-radius: 14px;
    box-shadow: 0 16px 40px -12px rgba(35, 45, 55, 0.25);
    overflow-y: auto;
}

#nav-shopping-list.show {
    animation: cart-drop 0.18s ease-out;
}

@keyframes cart-drop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#nav-shopping-list .cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    background: #fafbfc;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-tertiary);
}

#nav-shopping-list .cart-header .cart-count {
    color: var(--brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

#nav-shopping-list .cart-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

#nav-shopping-list .cart-item:hover {
    background: #fafbfc;
}

#nav-shopping-list .cart-item img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 14px;
    border: 1px solid #f0f1f3;
}

#nav-shopping-list .cart-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-tertiary);
    margin-bottom: 4px;
}

#nav-shopping-list .cart-item-details {
    font-size: 0.8rem;
    color: #8a9199;
}

#nav-shopping-list .cart-footer {
    padding: 14px 16px;
    background: #fafbfc;
    border-top: 1px solid #f0f1f3;
}

#nav-shopping-list .cart-footer a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease;
}

#nav-shopping-list .cart-empty {
    padding: 34px 24px;
    text-align: center;
    color: #98a0a8;
    font-size: 0.88rem;
}

#nav-shopping-list .cart-empty svg {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    color: #c3c9cf;
}

#nav-shopping-list .cart-loader-text {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #98a0a8;
}

/* ---------- Product cards ---------- */
.ecommerce-application .grid-view .ecommerce-card {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 14px -6px rgba(35, 45, 55, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ecommerce-application .grid-view .ecommerce-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -16px rgba(35, 45, 55, 0.24);
}

.ecommerce-application .grid-view .ecommerce-card .item-img {
    background: #f6f7f9;
    overflow: hidden;
    padding: 0.75rem;
}

.ecommerce-application .grid-view .ecommerce-card .item-img .img-item {
    width: 100%;
    height: 400px;
    /* height: 100%; */
    object-fit: contain;
}

.ecommerce-application .grid-view .ecommerce-card .card-body {
    padding: 1.1rem 1.25rem 1.3rem;
    background: #fff;
}

.ecommerce-application .grid-view .ecommerce-card .item-name a.text-body {
    color: var(--brand-tertiary);
    font-weight: 600;
    font-size: 0.98rem;
}

.ecommerce-application .grid-view .ecommerce-card .item-name a.text-body:hover {
    color: var(--brand-primary);
}

.ecommerce-application .list-view .ecommerce-card .item-options .item-wrapper .item-cost .item-price {
    color: var(--brand-primary);
}

.img-item {
    border: 1px solid #e5e7ea;
    border-radius: 0px !important;
    /* border-radius: 10px; */
    transition: transform 0.25s ease;
}

.ecommerce-card:hover .img-item {
    transform: scale(1.03);
}

.text-body {
    color: var(--brand-tertiary) !important;
}

.item-price {
    color: var(--brand-primary) !important;
    font-weight: 700;
}

/* ---------- Focus / forms ---------- */
.form-control:focus,
.form-select:focus,
.form-check-input:checked {
    border-color: var(--brand-secondary);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 3px 10px 0 rgba(var(--brand-primary-rgb), 0.15);
}

/* ---------- Pagination / active items ---------- */
.page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* ---------- Contact ---------- */
#contact > .row:first-of-type {
    margin-bottom: 1rem !important;
}

#contact .card-body {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

#contact .contact-icon-address,
#contact .contact-icon-phone,
#contact .contact-icon-whatsapp,
#contact .contact-icon-email {
    width: 42px;
    height: 42px;
    margin-bottom: 0.5rem !important;
}

#contact .contact-feather-address,
#contact .contact-feather-phone,
#contact .contact-feather-whatsapp,
#contact .contact-feather-email {
    width: 18px;
    height: 18px;
}

#contact .card-body h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem !important;
}

#contact .form-card .card-body h5 {
    font-size: 1.05rem;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #eef0f2;
}

#contact .card-body p.card-value {
    font-size: 0.8rem;
}

.contact-btn-submit {
    padding: 0.9rem 2.2rem !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em;
}

/* ---------- Contact form ---------- */
#contact .form-card .card-body {
    padding: 1.25rem 1.5rem !important;
}

#contact form .form-label {
    color: var(--brand-tertiary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

#contact form .form-control {
    border: 1px solid #dde1e5;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    background: #fbfbfc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#contact form .form-control:focus {
    background: #fff;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-rgb), 0.15);
}

#contact form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

#contact form .mb-1,
#contact form .mb-2,
#contact form .mb-3 {
    margin-bottom: 0.75rem !important;
}

/* =============================================================
   Minimal clean modern — storefront upgrades
   ============================================================= */

/* ---------- Typography ---------- */
body {
    font-family: 'Plus Jakarta Sans', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Hero (featured page) ---------- */
.fo-hero {
    background: linear-gradient(135deg, #f2f4f6 0%, #e9edf0 100%);
    border-radius: 18px;
    padding: 56px 48px;
    margin: 12px 0 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.fo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 24, 28, 0.4) 0%, rgba(22, 24, 28, 0.55) 55%, rgba(22, 24, 28, 0.72) 100%);
}

.fo-hero > * {
    position: relative;
    z-index: 1;
}

.fo-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.fo-hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.fo-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    max-width: 520px;
    margin-bottom: 28px;
}

.fo-hero-cta {
    background: var(--brand-primary);
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1.7rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.fo-hero-cta:hover {
    background: var(--brand-secondary);
    transform: translateY(-1px);
}

.fo-hero-cta svg {
    width: 16px;
    height: 16px;
}

.fo-hero-link {
    margin-left: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.fo-hero-link:hover {
    color: #fff;
}

.fo-hero-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 575.98px) {
    .fo-hero {
        padding: 40px 24px;
    }
    .fo-hero-link {
        margin-left: 0;
        margin-top: 14px;
    }
}

/* ---------- Quick add-to-cart on product cards ---------- */
.ecommerce-application .grid-view .ecommerce-card .item-img {
    position: relative;
}

.fo-quick-add {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(8px);
    background: var(--brand-tertiary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35);
}

.fo-quick-add svg {
    width: 14px;
    height: 14px;
}

.ecommerce-application .grid-view .ecommerce-card:hover .fo-quick-add {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fo-quick-add:hover {
    background: var(--brand-primary);
}

.fo-quick-add:disabled {
    opacity: 0.7 !important;
    cursor: wait;
}

@media (hover: none) {
    .fo-quick-add {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ---------- Footer ---------- */
.fo-footer {
    background: #f5f6f8;
    border-top: 1px solid #e9ebee;
    margin-top: 48px;
    color: var(--brand-tertiary);
}

.fo-footer-grid {
    padding: 56px 0 40px;
}

.fo-footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 14px;
}

.fo-footer-tag {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6b7480;
    max-width: 320px;
}

.fo-footer-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-tertiary);
    margin-bottom: 18px;
}

.fo-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fo-footer-links li {
    margin-bottom: 10px;
}

.fo-footer-links a {
    color: #6b7480;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.fo-footer-links a:hover {
    color: var(--brand-primary);
}

.fo-footer-newsletter {
    display: flex;
    gap: 8px;
    max-width: 320px;
}

.fo-footer-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dde1e5;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    background: #fff;
}

.fo-footer-btn {
    border: 0;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0 18px;
    transition: background 0.2s ease;
}

.fo-footer-btn:hover {
    background: var(--brand-secondary);
}

.fo-footer-bottom {
    border-top: 1px solid #e4e7ea;
    padding: 18px 0;
    font-size: 0.8rem;
    color: #8a9199;
}

.fo-footer-bottom a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .fo-footer-grid {
        padding: 40px 0 28px;
    }
    .fo-footer-brand,
    .fo-footer-grid > [class*='col-'] {
        margin-bottom: 28px;
    }
}