/* ==========================================================================
   Boutique Localized Storefront 1:1 Stylesheet (Frank Ruhl Libre Edition)
   Zero-association localized assets & responsive desktop/H5 layout
   ========================================================================== */

:root {
    --bq-font: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
    --bq-width: 1200px;
    --bq-spacing: 52px;
    --bq-bg: #FFFFFF;
    --bq-bg-sec: #F6F6F6;
    --bq-title: #1D1F21;
    --bq-text: #545454;
    --bq-muted: #666666;
    --bq-price: #D21936;
    --bq-oldprice: #999999;
    --bq-badge-bg: #AE2238;
    --bq-btn-bg: #1D1F21;
    --bq-btn-fg: #FFFFFF;
    --bq-radius: 3px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body.bq-body {
    margin: 0;
    padding: 0;
    background: var(--bq-bg);
    color: var(--bq-text);
    font-family: var(--bq-font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.bq-body a {
    color: inherit;
    text-decoration: none;
}

body.bq-body img {
    max-width: 100%;
    display: block;
}

.bq-container {
    width: 100%;
    max-width: calc(var(--bq-width) + 60px);
    margin: 0 auto;
    padding: 0 30px;
}

/* ==================== Header (64px White Minimalist) ==================== */
.bq-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #FFFFFF;
    height: 64px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bq-header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bq-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.bq-logo-img {
    width: 158px;
    height: auto;
    max-height: 38px;
    object-fit: contain;
}

.bq-nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.bq-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bq-nav-list a {
    font-size: 14px;
    color: #1D1F21;
    letter-spacing: 0.5px;
    padding: 6px 0;
    position: relative;
    transition: opacity 0.2s ease;
}

.bq-nav-list a:hover {
    opacity: 0.68;
}

.bq-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    color: #1D1F21;
    cursor: pointer;
}

.bq-cart-badge {
    position: absolute;
    top: -4px;
    right: -7px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #1D1F21;
    color: #FFFFFF;
    font-size: 10.5px;
    line-height: 17px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
}

.bq-cart-badge.is-empty {
    display: none;
}

.bq-mob-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    color: #1D1F21;
    cursor: pointer;
}

/* Mobile Nav Drawer */
.bq-mob-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1100;
    display: none;
}
.bq-mob-backdrop.is-open { display: block; }

.bq-mob-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 84vw;
    background: #FFFFFF;
    z-index: 1101;
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    display: flex;
    flex-direction: column;
}
.bq-mob-drawer.is-open { transform: translateX(0); }

.bq-mob-drawer-head {
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bq-mob-drawer-links {
    list-style: none;
    margin: 0;
    padding: 12px 20px;
}
.bq-mob-drawer-links li {
    border-bottom: 1px solid #F2F2F2;
}
.bq-mob-drawer-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: #1D1F21;
}

/* ==================== Section Headings & Buttons ==================== */
.bq-section {
    margin-bottom: var(--bq-spacing);
}

.bq-sec-title {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    color: var(--bq-title);
    letter-spacing: 1px;
    margin: 0 0 30px;
    line-height: 1.25;
}

.bq-view-more-wrap {
    text-align: center;
    margin-top: 32px;
}

.bq-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    height: 42px;
    padding: 0 26px;
    background: #FFFFFF;
    color: #1D1F21;
    border: 1px solid #1D1F21;
    border-radius: var(--bq-radius);
    font-family: var(--bq-font);
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.bq-btn-outline:hover {
    background: #1D1F21;
    color: #FFFFFF;
}

.bq-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 44px;
    padding: 0 28px;
    background: #1D1F21;
    color: #FFFFFF;
    border: 1px solid #1D1F21;
    border-radius: var(--bq-radius);
    font-family: var(--bq-font);
    font-size: 14px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bq-btn-solid:hover {
    opacity: 0.88;
}

/* ==================== 1. Hero Banner & 5. Full-Bleed Promo Banner ==================== */
.bq-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #EAEAEA;
}

.bq-hero-banner img {
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: cover;
}

.bq-banner-mask {
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: 0.2;
    pointer-events: none;
}

.bq-promo-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #C6C6C6;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bq-promo-banner img {
    width: 100%;
    height: auto;
    min-height: 440px;
    max-height: 680px;
    object-fit: cover;
}

.bq-promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    color: #FFFFFF;
}

.bq-promo-overlay h2 {
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 14px;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.bq-promo-overlay p {
    max-width: 650px;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.95);
}

/* ==================== 2. Horizontal Product Scroll Marquee ==================== */
.bq-marquee-shell {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bq-bg-sec);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bq-marquee-shell:hover .bq-marquee-track {
    animation-play-state: paused;
}

.bq-marquee-track {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    padding-right: 12px;
    animation: bqMarqueeScroll 30s linear infinite;
}

@keyframes bqMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.bq-marquee-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 440px;
    flex-shrink: 0;
    background: var(--bq-bg-sec);
}

.bq-marquee-img {
    width: 192px;
    height: 192px;
    flex-shrink: 0;
    background: #FFFFFF;
    overflow: hidden;
}

.bq-marquee-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bq-marquee-info {
    padding-right: 16px;
    min-width: 0;
}

.bq-marquee-title {
    font-size: 15px;
    color: var(--bq-title);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.bq-marquee-price {
    font-size: 15px;
    color: var(--bq-price);
}

/* ==================== 3. Circular Collection List (3x2) ==================== */
.bq-circle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bq-circle-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 370px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #E5E5E5;
}

.bq-circle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bq-circle-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    transition: background 0.25s ease;
}

.bq-circle-card:hover img {
    transform: scale(1.08);
}

.bq-circle-card h3 {
    position: absolute;
    z-index: 2;
    margin: 0;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
}

/* ==================== Product Grid & Cards ==================== */
.bq-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 28px;
}

.bq-card {
    display: flex;
    flex-direction: column;
}

.bq-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F6F6F6;
    overflow: hidden;
}

.bq-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.bq-card-media img.bq-hover-img {
    opacity: 0;
}

.bq-card-media.has-hover:hover img.bq-hover-img {
    opacity: 1;
}

.bq-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bq-badge-bg);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
}

.bq-card-body {
    padding-top: 12px;
    text-align: center;
}

.bq-card-title {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--bq-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 6px;
}

.bq-card-prices {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-size: 14.5px;
}

.bq-price-now {
    color: var(--bq-price);
}

.bq-price-old {
    color: var(--bq-oldprice);
    text-decoration: line-through;
    font-size: 13.5px;
}

/* ==================== 7. Custom Jewelry Split Block ==================== */
.bq-split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.bq-split-text {
    padding: 20px 24px 20px 0;
}

.bq-split-text h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--bq-title);
    margin: 0 0 18px;
}

.bq-split-text p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--bq-muted);
    margin: 0;
}

.bq-split-img {
    width: 100%;
    overflow: hidden;
}

.bq-split-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==================== 9. Photo Wall (4-col) ==================== */
.bq-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.bq-photo-item {
    aspect-ratio: 1 / 1;
    background: #F3F4F6;
    overflow: hidden;
}

.bq-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Collection Page ==================== */
.bq-coll-head {
    padding: 44px 0 26px;
    text-align: center;
}

.bq-coll-head h1 {
    font-size: 32px;
    font-weight: 400;
    color: var(--bq-title);
    margin: 0;
}

.bq-coll-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EFEFEF;
    color: var(--bq-muted);
    font-size: 14px;
}

.bq-sort-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 3px;
    font-family: var(--bq-font);
    font-size: 13.5px;
    color: #1D1F21;
    background: #FFFFFF;
}

.bq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 44px 0 20px;
}

.bq-pagination a, .bq-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E2E2E2;
    border-radius: 2px;
    font-size: 13.5px;
    color: #1D1F21;
}

.bq-pagination .is-active {
    background: #1D1F21;
    color: #FFFFFF;
    border-color: #1D1F21;
}

/* ==================== Product Detail Page (1:1 2-Col + Tabs) ==================== */
.bq-pdp-wrap {
    padding: 46px 0 60px;
}

.bq-pdp-top {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.bq-pdp-gallery {
    position: sticky;
    top: 84px;
}

.bq-pdp-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F7F7F7;
    overflow: hidden;
}

.bq-pdp-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bq-pdp-thumbs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.bq-thumb-nav {
    width: 28px;
    height: 70px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.bq-pdp-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.bq-pdp-thumbs::-webkit-scrollbar { display: none; }

.bq-thumb-btn {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid transparent;
    background: #F7F7F7;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

.bq-thumb-btn.is-active {
    border-color: #1D1F21;
}

.bq-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bq-pdp-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--bq-title);
    line-height: 1.35;
    margin: 0 0 18px;
}

.bq-pdp-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.bq-pdp-price-now {
    font-size: 22px;
    color: var(--bq-price);
}

.bq-pdp-price-old {
    font-size: 16px;
    color: var(--bq-oldprice);
    text-decoration: line-through;
}

.bq-opt-group {
    margin-bottom: 20px;
}

.bq-opt-label {
    font-size: 14px;
    color: var(--bq-title);
    margin-bottom: 10px;
}

.bq-opt-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bq-opt-pill {
    min-width: 44px;
    height: 38px;
    padding: 0 14px;
    background: #FFFFFF;
    border: 1px solid transparent;
    color: #333333;
    font-family: var(--bq-font);
    font-size: 13.5px;
    cursor: pointer;
    border-radius: 2px;
    transition: border-color 0.15s ease;
}

.bq-opt-pill:hover {
    border-color: #BBBBBB;
}

.bq-opt-pill.is-active {
    border: 1px solid #1D1F21;
    color: #1D1F21;
}

.bq-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #1D1F21;
    border-radius: 2px;
    height: 42px;
    width: 136px;
}

.bq-qty-box button {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #1D1F21;
    cursor: pointer;
}

.bq-qty-box input {
    width: 56px;
    height: 100%;
    border: none;
    text-align: center;
    font-family: var(--bq-font);
    font-size: 14px;
    color: #1D1F21;
    outline: none;
}

.bq-pdp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.bq-pdp-actions button {
    height: 46px;
    font-family: var(--bq-font);
    font-size: 13.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: var(--bq-radius);
    cursor: pointer;
}

/* PDP Tabs */
.bq-tabs-wrap {
    margin-top: 56px;
}

.bq-tabs-nav {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 24px;
}

.bq-tab-btn {
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--bq-font);
    font-size: 15px;
    color: #666666;
    cursor: pointer;
    margin-bottom: -1px;
}

.bq-tab-btn.is-active {
    color: #1D1F21;
    border-bottom-color: #1D1F21;
}

.bq-tab-panel {
    display: none;
    color: #444444;
    line-height: 1.75;
    font-size: 14.5px;
}

.bq-tab-panel.is-active {
    display: block;
}

.bq-tab-panel blockquote {
    margin: 0 0 16px;
    padding: 0;
    border: none;
}

.bq-tab-panel .benefit-item {
    margin: 6px 0;
}

.bq-tab-panel img {
    max-width: 640px;
    height: auto;
    margin: 12px 0;
}

.bq-share-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 42px 0;
    color: #1D1F21;
}

/* ==================== Cart & Policy Pages ==================== */
.bq-page-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.bq-page-box h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    color: var(--bq-title);
    margin: 0 0 32px;
}

.bq-page-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
}

/* Slide-Over Mini Cart */
.bq-minicart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1200;
    display: none;
}
.bq-minicart-backdrop.is-open { display: block; }

.bq-minicart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 390px;
    max-width: 92vw;
    background: #FFFFFF;
    z-index: 1201;
    transform: translateX(100%);
    transition: transform 0.26s ease;
    display: flex;
    flex-direction: column;
}
.bq-minicart.is-open { transform: translateX(0); }

.bq-minicart-head {
    height: 60px;
    padding: 0 22px;
    border-bottom: 1px solid #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    color: #1D1F21;
}

.bq-minicart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
}

.bq-minicart-foot {
    padding: 18px 22px 24px;
    border-top: 1px solid #EAEAEA;
    background: #FAFAFA;
}

/* ==================== Footer (#000000 4-Column) ==================== */
.bq-footer {
    background: #000000;
    color: #FFFFFF;
    margin-top: 64px;
}

.bq-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding: 54px 0 42px;
}

.bq-footer-col h4 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

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

.bq-footer-col li {
    margin-bottom: 10px;
}

.bq-footer-col a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    transition: color 0.15s ease;
}

.bq-footer-col a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.bq-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 20px 0 28px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== Responsive H5 Adaptation ==================== */
@media (max-width: 991px) {
    .bq-nav-list { display: none; }
    .bq-mob-menu-btn { display: inline-flex; }
    .bq-header-inner {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
    }
    .bq-logo-link { justify-self: center; }
    .bq-nav-right { justify-self: end; }
    .bq-pdp-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .bq-pdp-gallery { position: static; }
    .bq-split-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bq-split-text { padding: 0; }
}

@media (max-width: 767px) {
    :root { --bq-spacing: 38px; }
    .bq-container { padding: 0 16px; }
    .bq-sec-title { font-size: 24px; margin-bottom: 20px; }
    .bq-circle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .bq-circle-card h3 { font-size: 17px; }
    .bq-prod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }
    .bq-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .bq-marquee-card { width: 300px; }
    .bq-marquee-img { width: 128px; height: 128px; }
    .bq-promo-overlay h2 { font-size: 25px; }
    .bq-pdp-actions { grid-template-columns: 1fr; }
    .bq-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
        padding: 38px 0 28px;
    }
}
