/*
 * Bommiiy Gift Collection — selected refinements only.
 * Existing colours, hero, products, footer and animations remain intact.
 * Load AFTER store.css and bommiiy-ui-polish.css in layouts/store.blade.php.
 */

/* Larger, cleaner navigation. Keep desktop links readable without overlap. */
.header .nav-links {
    gap: clamp(12px, 1.35vw, 22px);
}

.header .nav-links>a:not(.bgc-mobile-account) {
    font-family: 'Jost', 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .05px;
    white-space: nowrap;
    transition: color .24s ease;
}

.header .nav-text-link,
.header .bgc-account-login {
    font-family: 'Jost', 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.header .bgc-account-join {
    font-family: 'Jost', 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 20px;
    min-height: 47px;
}

.header .nav-actions {
    gap: 14px;
}

.header .bgc-nav-account {
    gap: 14px;
}

.header .nav-shell {
    gap: 19px;
}

.announcement {
    font-size: 12px;
}

.announcement a {
    font-weight: 700;
}

/* Home — readable small labels without resizing or rearranging main sections. */
.bgc-home .eyebrow {
    font-size: 13px;
}

.bgc-home .category-card small {
    font-size: 14px;
}

.bgc-home .category-card strong {
    font-size: 18px;
}

.bgc-home .bgc-product-card .product-meta {
    font-size: 13px;
}

.bgc-home .bgc-product-card .product-view {
    font-size: 15px;
}

.bgc-home .bgc-price-was {
    font-size: 14px;
}

.bgc-home .bgc-price-now {
    font-size: 20px;
}

.bgc-home .hero-details {
    font-size: 13px;
}

.bgc-home .hero-copy>p {
    font-size: 18px;
}

/* Home account links, immediately below the two original hero buttons. */
.bgc-home .bgc-hero-account-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-family: 'Jost', 'DM Sans', Arial, sans-serif;
}

.bgc-home .bgc-hero-account-intro {
    margin-right: 4px;
    color: #745360;
    font-size: 15px;
    font-weight: 650;
}

.bgc-home .bgc-hero-register,
.bgc-home .bgc-hero-login {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 17px;
    border-radius: 999px;
    font-family: 'Jost', 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bgc-home .bgc-hero-register {
    background: linear-gradient(115deg, #ad2857, #ce4276);
    color: #fff;
    box-shadow: 0 8px 20px rgba(173, 40, 87, .20);
}

.bgc-home .bgc-hero-login {
    background: rgba(255, 255, 255, .8);
    color: #9d2551;
    border: 1px solid #e7bdcd;
}

.bgc-home .bgc-hero-register:hover,
.bgc-home .bgc-hero-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 25px rgba(173, 40, 87, .16);
}

/* Premium, gentle shine on existing buttons. Original shape & primary colours stay. */
.bgc-home .btn-primary,
.bgc-home .btn-light,
.bgc-home .product-add,
.header .bgc-account-join,
.bgc-home .bgc-hero-register,
.bgc-home .bgc-how-register,
.bgc-home .bgc-how-login,
.bgc-premium-footer .bgc-footer-shop,
.bgc-premium-footer .bgc-footer-chat {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.bgc-home .btn-primary::before,
.bgc-home .btn-light::before,
.bgc-home .product-add::before,
.header .bgc-account-join::before,
.bgc-home .bgc-hero-register::before,
.bgc-home .bgc-how-register::before,
.bgc-home .bgc-how-login::before,
.bgc-premium-footer .bgc-footer-shop::before,
.bgc-premium-footer .bgc-footer-chat::before {
    content: '';
    position: absolute;
    top: -85%;
    left: -120%;
    width: 50%;
    height: 270%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: bgc-premium-sweep 6.6s ease-in-out infinite;
}

@keyframes bgc-premium-sweep {

    0%,
    47%,
    100% {
        left: -120%;
        opacity: 0;
    }

    53% {
        opacity: .8;
    }

    72% {
        left: 170%;
        opacity: .75;
    }

    79% {
        opacity: 0;
    }
}

.bgc-home .btn-primary:hover,
.bgc-home .btn-light:hover,
.bgc-home .product-add:hover,
.header .bgc-account-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(167, 39, 85, .27);
}

/* Screenshot section ONLY: How gifting works. */
.bgc-home .bgc-refined-steps {
    position: relative;
    isolation: isolate;
    background: radial-gradient(circle at 12% 15%, rgba(255, 220, 231, .45), transparent 33%),
        linear-gradient(180deg, #fffaf7, #fff8f9);
    overflow: hidden;
}

.bgc-home .bgc-refined-steps::before {
    content: '✿';
    position: absolute;
    left: 4%;
    top: 9%;
    font-size: 105px;
    color: rgba(183, 52, 97, .08);
    pointer-events: none;
}

.bgc-home .bgc-refined-steps::after {
    content: '♡';
    position: absolute;
    right: 4%;
    bottom: 1%;
    font-size: 125px;
    color: rgba(183, 52, 97, .07);
    pointer-events: none;
}

.bgc-home .bgc-refined-steps .container {
    position: relative;
    z-index: 1;
}

.bgc-home .bgc-refined-steps .section-top {
    margin-bottom: 40px;
}

.bgc-home .bgc-refined-steps .section-top h2 {
    letter-spacing: -1.3px;
}

.bgc-home .bgc-how-subtitle {
    margin: 10px auto 0;
    color: #856578;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
}

.bgc-home .bgc-how-grid {
    gap: 22px;
}

.bgc-home .bgc-how-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 42px 29px 36px;
    min-height: 315px;
    border: 1px solid #efd3df;
    border-radius: 25px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 228, 237, .72), transparent 55%), #fff;
    box-shadow: 0 12px 30px rgba(113, 38, 73, .075);
    transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease;
}

.bgc-home .bgc-how-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19%;
    width: 62%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #dc83a6, #b52c5a, #dc83a6, transparent);
    border-radius: 0 0 10px 10px;
}

.bgc-home .bgc-how-card::after {
    content: '✦';
    position: absolute;
    right: 23px;
    top: 16px;
    color: #d27a9b;
    font-size: 17px;
    opacity: .66;
    pointer-events: none;
}

.bgc-home .bgc-how-card:hover {
    transform: translateY(-9px) !important;
    border-color: #dfacc0;
    box-shadow: 0 22px 46px rgba(113, 38, 73, .15);
}

.bgc-home .bgc-how-card .step-number {
    position: absolute;
    left: 24px;
    top: 16px;
    color: #c56688;
    font: 600 25px/1.4 'Playfair Display', Georgia, serif;
}

.bgc-home .bgc-how-card-kicker {
    display: inline-block;
    margin: 0 auto 19px;
    padding: 7px 15px;
    border: 1px solid #f2cfdd;
    border-radius: 999px;
    background: #fff7fa;
    color: #ad426d;
    font: 800 12px/1.1 'Jost', Arial, sans-serif;
    letter-spacing: 1px;
}

.bgc-home .bgc-how-card .step-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border: 1px solid #f4d4e0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 24%, #fffafc, #ffe5ed);
    box-shadow: 0 8px 26px rgba(182, 55, 99, .12), inset 0 3px 10px #fff9fc;
    color: #b52c5a;
    font-size: 40px;
    transition: transform .35s ease, box-shadow .35s ease;
}

.bgc-home .bgc-how-card:hover .step-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 13px 30px rgba(182, 55, 99, .2);
}

.bgc-home .bgc-how-card h3 {
    color: #3b2230;
    font: 600 clamp(23px, 2vw, 28px)/1.3 'Playfair Display', Georgia, serif;
    margin-bottom: 15px;
}

.bgc-home .bgc-how-card p {
    max-width: 355px;
    margin: 0 auto;
    font: 500 17px/1.76 'Jost', Arial, sans-serif;
    color: #805e70;
}

/* Gentle account call-to-action under the three cards; no other section changed. */
.bgc-home .bgc-how-account {
    margin: 28px auto 0;
    max-width: 920px;
    padding: 19px 26px;
    border: 1px solid #f0d3df;
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 32px rgba(120, 47, 81, .065);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.bgc-home .bgc-how-account-copy {
    display: grid;
    gap: 2px;
}

.bgc-home .bgc-how-account-copy strong {
    color: #472a3a;
    font: 600 23px/1.3 'Playfair Display', Georgia, serif;
}

.bgc-home .bgc-how-account-copy span {
    color: #815d71;
    font-size: 15px;
}

.bgc-home .bgc-how-account-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bgc-home .bgc-how-register,
.bgc-home .bgc-how-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 19px;
    font: 750 15px/1.2 'Jost', Arial, sans-serif;
    transition: transform .25s ease, box-shadow .25s ease;
}

.bgc-home .bgc-how-register {
    background: linear-gradient(115deg, #ad2857, #ce4276);
    color: #fff;
    box-shadow: 0 9px 20px rgba(173, 40, 87, .2);
}

.bgc-home .bgc-how-login {
    background: #fff7f9;
    color: #a72c59;
    border: 1px solid #edd1dc;
}

.bgc-home .bgc-how-register:hover,
.bgc-home .bgc-how-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 24px rgba(173, 40, 87, .16);
}

/* Responsive menu: prevent the larger fonts and account pills from crowding. */
@media (max-width: 1280px) {
    .header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffaf9;
        padding: 21px 24px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .header .nav-links.open {
        display: flex;
    }

    .header .mobile-toggle {
        display: block;
    }

    .header .nav-text-link {
        display: none;
    }

    .header .bgc-nav-account {
        display: none;
    }

    .header .nav-links>a:not(.bgc-mobile-account) {
        min-height: 46px;
        padding: 11px 12px;
        font-size: 16px;
        border-bottom: 1px solid #f4e1e6;
    }

    .header .nav-links .bgc-mobile-account {
        display: flex;
        align-items: center;
        min-height: 49px;
        padding: 11px 13px;
        font-size: 16px;
        border-radius: 11px;
    }

    .header .nav-links .bgc-mobile-join {
        background: #b52c5a;
        color: #fff;
    }
}

@media (max-width: 700px) {
    .bgc-home .hero-copy>p {
        font-size: 16px;
    }

    .bgc-home .bgc-hero-account-panel {
        justify-content: center;
        gap: 9px;
    }

    .bgc-home .bgc-hero-account-intro {
        flex-basis: 100%;
        text-align: center;
        font-size: 14px;
    }

    .bgc-home .bgc-hero-register,
    .bgc-home .bgc-hero-login {
        min-height: 45px;
        font-size: 14px;
    }

    .bgc-home .bgc-how-card {
        min-height: 0;
        padding: 39px 23px 31px;
    }

    .bgc-home .bgc-how-card p {
        font-size: 16px;
    }

    .bgc-home .bgc-how-subtitle {
        font-size: 16px;
    }

    .bgc-home .bgc-how-account {
        padding: 20px;
    }

    .bgc-home .bgc-how-account-copy strong {
        font-size: 22px;
    }

    .bgc-home .bgc-how-account-buttons {
        width: 100%;
    }

    .bgc-home .bgc-how-register,
    .bgc-home .bgc-how-login {
        flex: 1 1 130px;
        font-size: 14px;
    }

    .bgc-home .category-card small {
        font-size: 13px;
    }

    .bgc-home .bgc-product-card .product-meta {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .bgc-home .bgc-how-card h3 {
        font-size: 23px;
    }

    .bgc-home .bgc-how-account-buttons {
        flex-direction: column;
    }

    .bgc-home .bgc-how-register,
    .bgc-home .bgc-how-login {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bgc-home .bgc-refined-steps *,
    .bgc-home .bgc-hero-register,
    .bgc-home .bgc-hero-login,
    .bgc-home .bgc-how-register,
    .bgc-home .bgc-how-login {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .bgc-home .btn-primary::before,
    .bgc-home .btn-light::before,
    .bgc-home .product-add::before,
    .header .bgc-account-join::before,
    .bgc-home .bgc-hero-register::before,
    .bgc-home .bgc-how-register::before,
    .bgc-home .bgc-how-login::before,
    .bgc-premium-footer .bgc-footer-shop::before,
    .bgc-premium-footer .bgc-footer-chat::before {
        animation: none !important;
    }
}