/* ==========================================================================
   Bijouterie-Style Homepage for honeyjewelry — RTL Adapted
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --bj-dark: #1F211D;
    --bj-body-bg: #FAF8F3;
    --bj-gray-bg: #F5F0E8;
    --bj-text: #24241F;
    --bj-text-light: #77766F;
    --bj-accent: #C99A8E;
    --bj-accent-dark: #3F4938;
    --bj-sale-red: #c0392b;
    --bj-new-green: #3F4938;
    --bj-border: #DDD9D0;
    --bj-heading-font: "peyad-bold", "OptimaNovaLTProRegular", Georgia, serif;
    --bj-body-font: "peyad-regular", "OptimaNovaLTProRegular", Arial, sans-serif;
}

/* ---------- Top Bar (Bijouterie dark header) ---------- */
/* ---------- Header (unified single row) ---------- */
.bj-header {
    background: var(--bj-body-bg);
    padding: 0;
    position: relative;
    z-index: 100;
}

.bj-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Nav links (left in RTL) */
.bj-topbar-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.bj-topbar-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
}

.bj-topbar-links a:hover,
.bj-topbar-links a.active {
    color: var(--bj-text);
}

.bj-topbar-sep {
    display: block;
    width: 1px;
    height: 12px;
    background: #ccc;
}

/* Logo (centered) */
.bj-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.bj-logo img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

/* Icons (right in RTL) */
.bj-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

/* Search wrapper & dropdown */
.bj-search-wrapper {
    position: relative;
}

.bj-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    background: #fff;
    border: 1px solid var(--bj-border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 200;
    min-width: 300px;
}

.bj-search-wrapper .bj-search-toggle.active + .bj-search-panel {
    display: block;
}

.bj-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--bj-border);
    border-radius: 0;
    overflow: hidden;
}

.bj-search-form input[type="text"] {
    border: none;
    outline: none;
    padding: 6px 12px;
    font-size: 13px;
    font-family: var(--bj-body-font);
    height: 38px;
    width: 100%;
    max-width: 100%;
}

.bj-search-form button {
    background: transparent;
    border: none;
    border-left: 1px solid var(--bj-border);
    padding: 0 12px;
    height: 38px;
    cursor: pointer;
    color: var(--bj-text);
    display: flex;
    align-items: center;
}

.bj-search-form button:hover {
    color: var(--bj-accent);
}

.bj-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--bj-text);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--bj-body-font);
    padding: 6px 0;
    text-decoration: none;
}

.bj-cart-btn:hover {
    color: var(--bj-accent);
}

.bj-cart-btn .cart-count {
    background: var(--bj-accent);
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Category Navigation ---------- */
.bj-cat-nav {
    background: var(--bj-body-bg);
    border-top: 1px solid var(--bj-border);
    border-bottom: 1px solid var(--bj-border);
    position: sticky;
    top: 0;
    z-index: 90;
}

.bj-cat-nav .container {
    display: flex;
    justify-content: center;
}

.bj-cat-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.bj-cat-nav ul li a {
    display: block;
    padding: 14px 18px;
    font-family: var(--bj-heading-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bj-text);
    text-decoration: none;
    text-transform: capitalize;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.bj-cat-nav ul li a:hover,
.bj-cat-nav ul li a.active {
    color: var(--bj-accent);
    background: rgba(199, 160, 104, 0.05);
}

/* ---------- Hero Banner Grid (Template Exact) ---------- */
.bj-header-modules {
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--bj-dark);
    width: 100%;
}

/* Banner rows */
.bj-banner-row {
    margin: 0;
    float: left;
    width: 100%;
}

#bj-banner1,
#bj-banner2 {
    width: 50%;
}

/* Banner cells */
.bj-banner-row > div {
    position: relative;
    overflow: hidden;
    display: inline-block;
    max-width: 50%;
    float: left;
}

#bj-banner2 > div {
    max-width: 100%;
}

/* Banner links & images */
.bj-banner-row > div > a {
    overflow: hidden;
    display: block;
    position: relative;
    background: #fff;
}

.bj-banner-row img {
    width: 100%;
    height: auto;
    background: #fff;
    transition: all 0.5s ease;
}

/* Hover: slight opacity on image */
@media (min-width: 768px) {
    .bj-banner-row > div > a:hover img {
        opacity: 0.9;
    }
}

/* ---------- s-desc overlay ---------- */
.bj-s-desc {
    display: block;
    position: absolute;
    top: 34.9%;
    left: 3.72%;
    width: 45%;
    color: #fff;
    text-align: center;
    transition: all 0.5s ease;
}

#bj-banner1 .bj-s-desc {
    left: 5%;
    top: 59.7%;
    width: 90%;
}

#bj-banner2 .bj-s-desc {
    left: 3.7%;
    top: 19.5%;
    width: 45%;
}

#bj-banner2 > div:first-child .bj-s-desc {
    left: auto;
    right: 7.17%;
}

/* s-desc heading */
.bj-s-desc h1 {
    font-family: var(--bj-heading-font);
    font-size: 35px;
    line-height: 42px;
    margin-bottom: 13px;
    color: #fff;
    font-weight: 700;
}

#bj-banner1 .bj-s-desc div h1,
#bj-banner1 .bj-s-desc div p,
#bj-banner1 .bj-s-desc div span {
    color: #000;
}

/* s-desc paragraph */
.bj-s-desc p {
    font-size: 12px;
    line-height: 24px;
    margin-bottom: 22px;
    padding: 0 5%;
}

/* s-desc decorative line */
.bj-banner-line {
    position: relative;
    display: block;
    margin-left: 10.2%;
    width: 79.6%;
    height: 1px;
    background: rgba(255,255,255,0.5);
    margin-bottom: 25px;
}

#bj-banner1 .bj-banner-line {
    background: rgba(0,0,0,0.2);
}

/* s-desc CTA link */
.bj-s-desc > span:last-child:not(.bj-banner-line) {
    font-size: 17px;
    line-height: 20px;
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: normal;
}

.bj-banner-row > div > a:hover .bj-s-desc > span:last-child:not(.bj-banner-line) {
    text-decoration: none;
}

/* ---------- Section Headings ---------- */
.bj-section-heading {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.bj-section-heading h2 {
    font-family: var(--bj-heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--bj-text);
    margin: 0;
    position: relative;
    display: inline-block;
}

.bj-section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--bj-accent);
}

/* ---------- Product Grid (Bijouterie Style) ---------- */
.bj-product-section {
    padding: 30px 0 40px;
    background: var(--bj-body-bg);
}

.bj-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Product Card */
.bj-product-card {
    position: relative;
    text-align: center;
}

.bj-product-card .bj-card-inner {
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    padding: 0 10px 20px;
    position: relative;
}

.bj-product-card .bj-card-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    text-align: center;
}

.bj-product-card .bj-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.bj-product-card:hover .bj-card-image img {
    transform: scale(1.08);
}

/* Badge (Sale / New) */
.bj-badge {
    position: absolute;
    top: 10px;
    z-index: 5;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    font-family: var(--bj-body-font);
    line-height: 1.2;
}

.direction-rtl .bj-badge {
    right: 10px;
    left: auto;
}

.bj-badge-sale {
    background: var(--bj-sale-red);
}

.bj-badge-new {
    background: var(--bj-new-green);
}

/* Quick View Button (on hover) */
.bj-quick-view {
    position: absolute;
    top: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #ccc;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.direction-rtl .bj-quick-view {
    left: 10px;
    right: auto;
}

.bj-product-card:hover .bj-quick-view {
    opacity: 1;
    visibility: visible;
}

.bj-quick-view:hover {
    color: var(--bj-accent);
}

/* Product Info */
.bj-product-card .bj-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--bj-text-light);
    margin-bottom: 5px;
    font-family: var(--bj-body-font);
}

.bj-product-card .bj-card-price .bj-price-old {
    text-decoration: line-through;
    font-size: 16px;
    color: var(--bj-text);
    margin-inline-start: 8px;
    font-weight: 400;
}

.bj-product-card .bj-card-price .bj-price-new {
    color: var(--bj-sale-red);
}

.bj-product-card .bj-card-name {
    margin-bottom: 10px;
    min-height: 36px;
}

.bj-product-card .bj-card-name a {
    font-size: 13px;
    line-height: 1.6;
    color: var(--bj-text);
    text-decoration: none;
    font-family: var(--bj-body-font);
}

.bj-product-card .bj-card-name a:hover {
    color: var(--bj-accent);
    text-decoration: underline;
}

.bj-product-card .bj-card-cart {
    margin-top: 5px;
}

.bj-product-card .bj-card-cart a,
.bj-product-card .bj-card-cart button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-family: var(--bj-body-font);
    background: transparent;
    border: 1px solid var(--bj-border);
    color: var(--bj-text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0;
}

.bj-product-card .bj-card-cart a:hover,
.bj-product-card .bj-card-cart button:hover {
    background: var(--bj-accent);
    border-color: var(--bj-accent);
    color: #fff;
}

/* ---------- "More Products" / "View All" Link ---------- */
.bj-view-all {
    text-align: center;
    margin-top: 30px;
}

.bj-view-all a {
    display: inline-block;
    padding: 10px 30px;
    font-size: 14px;
    font-family: var(--bj-heading-font);
    font-weight: 600;
    color: var(--bj-accent);
    border: 2px solid var(--bj-accent);
    text-decoration: none;
    transition: all 0.3s;
}

.bj-view-all a:hover {
    background: var(--bj-accent);
    color: #fff;
}

/* ---------- Brand Strip ---------- */
.bj-brand-strip {
    background: var(--bj-gray-bg);
    padding: 50px 0;
    text-align: center;
}

.bj-brand-strip h3 {
    font-family: var(--bj-heading-font);
    font-size: 22px;
    color: var(--bj-text);
    margin-bottom: 15px;
}

.bj-brand-strip p {
    font-size: 14px;
    color: var(--bj-text-light);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- Footer (Bijouterie 5-column) ---------- */
.bj-footer {
    background: var(--bj-body-bg);
    padding-top: 44px;
    border-top: 1px solid var(--bj-border);
}

.bj-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.8fr;
    gap: 25px;
}

.bj-footer h3 {
    font-family: var(--bj-heading-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--bj-text);
    margin-bottom: 18px;
}

.bj-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bj-footer ul li {
    padding: 4px 0;
}

.bj-footer ul li a {
    font-size: 13px;
    line-height: 1.6;
    color: var(--bj-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.bj-footer ul li a:hover {
    color: var(--bj-text);
}

.bj-footer-contact {
    font-size: 13px;
    line-height: 1.8;
    color: var(--bj-text-light);
}

.bj-footer-contact .phone-number {
    font-size: 17px;
    font-weight: 700;
    color: var(--bj-text);
    display: block;
    margin-top: 5px;
}

.bj-footer-copyright {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid var(--bj-border);
    text-align: center;
    font-size: 12px;
    color: var(--bj-text-light);
}

.bj-footer-copyright a {
    color: var(--bj-text-light);
    text-decoration: none;
}

.bj-footer-copyright a:hover {
    color: var(--bj-text);
}

/* ---------- Newsletter (inside footer) ---------- */
.bj-newsletter {
    margin-top: 15px;
}

.bj-newsletter-form {
    display: flex;
    border: 1px solid var(--bj-accent);
    overflow: hidden;
    border-radius: 0;
}

.bj-newsletter-form input[type="email"],
.bj-newsletter-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--bj-body-font);
    outline: none;
    height: 38px;
}

.bj-newsletter-form button {
    background: var(--bj-accent);
    border: none;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bj-newsletter-form button:hover {
    background: var(--bj-accent-dark);
}

/* ---------- Social Icons (in footer) ---------- */
.bj-social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.bj-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bj-gray-bg);
    color: var(--bj-text-light);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.bj-social-links a:hover {
    background: var(--bj-accent);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bj-banner-overlay h2 {
        font-size: 28px;
    }

    .bj-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .bj-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bj-footer-grid > div:nth-child(4),
    .bj-footer-grid > div:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 991px) {
    .bj-cat-nav ul li a {
        padding: 12px 12px;
        font-size: 13px;
    }

    .bj-banner-overlay {
        width: 60%;
    }

    .bj-banner-overlay h2 {
        font-size: 24px;
    }

    .bj-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bj-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bj-search-form input[type="text"] {
        width: 150px;
    }
}

@media (max-width: 767px) {
    .bj-topbar-links {
        display: none;
    }

    .bj-header .container {
        justify-content: center;
    }

    .bj-logo {
        position: static;
        transform: none;
    }

    .bj-header-actions {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .bj-search-panel {
        position: fixed;
        top: 80px;
        right: 0;
        left: 0;
        min-width: 100%;
        transform: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .bj-cat-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bj-cat-nav .container {
        justify-content: flex-start;
    }

    .bj-cat-nav ul {
        flex-wrap: nowrap;
    }

    .bj-cat-nav ul li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .bj-banner-overlay {
        width: 80%;
        top: 30%;
    }

    .bj-banner-overlay h2 {
        font-size: 20px;
    }

    .bj-banner-overlay p {
        display: none;
    }

    .bj-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bj-product-card .bj-card-price {
        font-size: 18px;
    }

    .bj-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bj-section-heading h2 {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .bj-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bj-product-card .bj-card-inner {
        padding: 0 8px 15px;
    }

    .bj-product-card .bj-card-name {
        min-height: auto;
    }

    .bj-product-card .bj-card-name a {
        font-size: 12px;
    }

    .bj-product-card .bj-card-price {
        font-size: 16px;
    }

    .bj-product-card .bj-card-cart a {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ---------- Login/Register Modal (matching Bijouterie dropdown) ---------- */
.bj-account-dropdown {
    position: relative;
}

.bj-account-dropdown .bj-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ededed;
    min-width: 200px;
    padding: 10px 0;
    z-index: 200;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.direction-rtl .bj-account-dropdown .bj-dropdown-menu {
    left: auto;
    right: 0;
}

.bj-account-dropdown:hover .bj-dropdown-menu {
    display: block;
}

.bj-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--bj-text-light);
    text-decoration: none;
}

.bj-dropdown-menu a:hover {
    background: #dfdedc;
    color: var(--bj-text);
}
