/*
===============================================================================
MUSIC CRAFT NEPAL — BRAND IMAGE + WHITE FOOTER PATCH v3.5.2
Loaded after store.css so these focused rules safely override older styles.
===============================================================================
*/

/* ---------------------------------------------------------------------------
   FEATURED BRANDS
   - Uses a consistent 16:9 image frame.
   - Uploaded photos fill the full frame without layout whitespace.
   - object-fit: cover intentionally crops excess edges.
--------------------------------------------------------------------------- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.brand-grid > a {
    display: flex;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e2e5e9;
    border-radius: 15px;
    background: #ffffff;
    text-align: left;
    box-shadow: 0 7px 24px rgba(16, 24, 40, 0.06);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.brand-grid > a:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 34%, #e2e5e9);
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.12);
}

.brand-grid > a > div {
    position: relative;
    display: grid;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    border-radius: 0;
    background:
        linear-gradient(135deg, #f6f7f9 0%, #eceff3 100%);
}

.brand-grid > a > div::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.08);
}

.brand-grid > a > div img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.brand-grid > a:hover > div img {
    transform: scale(1.06);
}

.brand-grid > a > div strong,
.brand-grid > a > div b {
    position: relative;
    z-index: 1;
    padding: 18px;
    color: #111318;
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
}

.brand-grid > a > span {
    display: block;
    margin: 15px 16px 0;
    color: #111318;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-grid > a > small {
    display: block;
    margin: 5px 16px 17px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.brand-grid > a:hover > span {
    color: var(--brand);
}

/* ---------------------------------------------------------------------------
   WHITE NEWSLETTER AREA
--------------------------------------------------------------------------- */
.newsletter.newsletter-premium {
    position: relative;
    overflow: hidden;
    padding: 38px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background:
        radial-gradient(circle at 90% 0%, rgba(196, 25, 37, 0.11), transparent 31%),
        linear-gradient(135deg, #ffffff 0%, #fff8f8 52%, #ffffff 100%);
    color: #111318;
}

.newsletter.newsletter-premium::before {
    border-color: rgba(196, 25, 37, 0.08);
}

.newsletter-premium .newsletter-icon {
    border: 0;
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 13px 30px rgba(196, 25, 37, 0.20);
}

.newsletter-premium .newsletter-copy small {
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.newsletter-premium .newsletter-copy h2 {
    color: #111318;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.newsletter-premium .newsletter-copy p {
    color: #5f6671;
    font-size: 14px;
}

.newsletter-premium form {
    border: 1px solid #d7dbe1;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    backdrop-filter: none;
}

.newsletter-premium input {
    color: #111318;
    font-size: 14px;
}

.newsletter-premium input::placeholder {
    color: #7b828d;
}

.newsletter-premium button {
    font-size: 13px;
    font-weight: 700;
}

/* ---------------------------------------------------------------------------
   PREMIUM WHITE FOOTER
--------------------------------------------------------------------------- */
.store-footer.store-footer-premium {
    position: relative;
    overflow: hidden;
    border-top: 0;
    background: #ffffff;
    color: #4b5563;
}

.store-footer-premium::before {
    border-color: rgba(196, 25, 37, 0.06);
}

.store-footer-premium .footer-main {
    color: #4b5563;
}

.footer-brand-lockup {
    color: #111318;
}

.footer-logo-frame {
    border: 1px solid #e2e5e9;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}

.footer-brand-lockup strong {
    color: #111318;
}

.footer-brand-lockup small {
    color: var(--brand);
}

.store-footer-premium .footer-brand > p {
    color: #59616d;
    font-size: 14px;
    line-height: 1.72;
}

.footer-expert-card {
    border: 1px solid #f0c8cb;
    background: #fff7f7;
    box-shadow: 0 8px 24px rgba(196, 25, 37, 0.06);
}

.footer-expert-card > span {
    background: #fdebed;
    color: var(--brand);
}

.footer-expert-card small {
    color: #747b86;
    font-size: 12px;
}

.footer-expert-card strong {
    color: #111318;
    font-size: 14px;
}

.footer-expert-actions a {
    border: 1px solid #d6dbe1;
    background: #ffffff;
    color: #20242b;
    font-size: 12px;
}

.footer-expert-actions a:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.footer-socials a {
    border: 1px solid #d8dde3;
    background: #ffffff;
    color: #20242b;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
}

.footer-socials a:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.footer-socials [aria-label="YouTube"] svg .play {
    fill: #ffffff;
}

.footer-socials [aria-label="YouTube"]:hover svg .play {
    fill: var(--brand);
}

.footer-column h3 {
    color: #111318;
    font-size: 17px;
    font-weight: 700;
}

.store-footer-premium .footer-column > a {
    color: #4f5864;
    font-size: 14px;
    line-height: 1.55;
}

.store-footer-premium .footer-column > a:hover {
    color: var(--brand);
}

.store-footer-premium .footer-column .footer-column-more {
    color: var(--brand);
    font-weight: 700;
}

.footer-contact-row {
    color: #4f5864;
    font-size: 13px;
}

.footer-contact-row > svg {
    stroke: var(--brand);
}

.footer-contact-row small {
    color: #767e89;
    font-size: 10px;
}

.footer-contact-row a {
    color: #20242b;
}

.footer-contact-row a:hover {
    color: var(--brand);
}

.store-footer-premium .footer-payment-row {
    border-top: 1px solid #e2e5e9;
}

.footer-kicker {
    color: #7b828c;
    font-size: 10px;
}

.footer-payment-copy strong {
    color: #111318;
    font-size: 14px;
}

.footer-payment-badges span {
    border: 1px solid #dce0e5;
    background: #ffffff;
    color: #20242b;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.07);
}

.footer-security-copy {
    color: #59616d;
    font-size: 12px;
}

.footer-security-copy svg {
    stroke: var(--brand);
}

.store-footer-premium .footer-bottom {
    border-top: 1px solid #e3e6ea;
    background: #f6f7f9;
}

.footer-bottom-inner {
    color: #626a75;
    font-size: 12px;
}

.footer-legal a,
.footer-credit a {
    color: #303640;
}

.footer-legal a:hover,
.footer-credit a:hover {
    color: var(--brand);
}

.footer-credit a {
    color: var(--brand);
    font-weight: 700;
}

/* Footer assurance remains white and receives slightly stronger text. */
.footer-assurance {
    background: #ffffff;
}

.assurance-item strong {
    font-size: 14px;
}

.assurance-item small {
    color: #646c77;
    font-size: 12px;
}

/* ---------------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------------- */
@media (max-width: 1020px) {
    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .brand-grid > a > span {
        margin: 12px 13px 0;
        font-size: 15px;
    }

    .brand-grid > a > small {
        margin: 4px 13px 14px;
        font-size: 12px;
    }

    .newsletter-premium .newsletter-copy p {
        font-size: 13px;
    }

    .store-footer-premium .footer-column > a {
        font-size: 13px;
    }

    .footer-bottom-inner {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .brand-grid > a {
        border-radius: 12px;
    }

    .brand-grid > a > span {
        font-size: 14px;
    }

    .footer-column h3 {
        font-size: 16px;
    }
}

/* ==========================================================================
   v3.5.3 — FOOTER LINK HOVER CONTRAST FIX
   ========================================================================== */

/*
 * Plain footer links stay transparent on hover and use a strong red color.
 * !important is intentional here because older storefront rules used more
 * specific hover selectors that could make the text match the background.
 */
.store-footer.store-footer-premium .footer-column > a,
.store-footer.store-footer-premium .footer-contact-row a,
.store-footer.store-footer-premium .footer-legal a,
.store-footer.store-footer-premium .footer-credit a,
.store-footer.store-footer-premium .footer-brand a {
    transition:
        color .18s ease,
        text-decoration-color .18s ease,
        transform .18s ease,
        background-color .18s ease;
}

.store-footer.store-footer-premium .footer-column > a:hover,
.store-footer.store-footer-premium .footer-column > a:focus-visible,
.store-footer.store-footer-premium .footer-contact-row a:hover,
.store-footer.store-footer-premium .footer-contact-row a:focus-visible,
.store-footer.store-footer-premium .footer-legal a:hover,
.store-footer.store-footer-premium .footer-legal a:focus-visible,
.store-footer.store-footer-premium .footer-credit a:hover,
.store-footer.store-footer-premium .footer-credit a:focus-visible,
.store-footer.store-footer-premium .footer-brand a:hover,
.store-footer.store-footer-premium .footer-brand a:focus-visible {
    color: #b5121b !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(181, 18, 27, .48);
}

/* Keep the highlighted "View all products" link clearly visible. */
.store-footer.store-footer-premium .footer-column .footer-column-more,
.store-footer.store-footer-premium .footer-column .footer-column-more:visited {
    color: #b5121b !important;
    background: transparent !important;
}

.store-footer.store-footer-premium .footer-column .footer-column-more:hover,
.store-footer.store-footer-premium .footer-column .footer-column-more:focus-visible {
    color: #7f0d13 !important;
    background: transparent !important;
    text-decoration-color: rgba(127, 13, 19, .55);
}

/*
 * Button-style footer links intentionally use white text on a red background
 * when hovered. These must not use the plain-link hover treatment above.
 */
.store-footer.store-footer-premium .footer-expert-actions a:hover,
.store-footer.store-footer-premium .footer-expert-actions a:focus-visible,
.store-footer.store-footer-premium .footer-socials a:hover,
.store-footer.store-footer-premium .footer-socials a:focus-visible {
    color: #ffffff !important;
    background: #b5121b !important;
    background-color: #b5121b !important;
    border-color: #b5121b !important;
    text-decoration: none !important;
}

/* Keep SVG icons visible when their circular buttons become red. */
.store-footer.store-footer-premium .footer-socials a:hover svg,
.store-footer.store-footer-premium .footer-socials a:focus-visible svg,
.store-footer.store-footer-premium .footer-expert-actions a:hover svg,
.store-footer.store-footer-premium .footer-expert-actions a:focus-visible svg {
    color: #ffffff !important;
    stroke: currentColor;
}

/* Accessible keyboard focus for every footer link. */
.store-footer.store-footer-premium a:focus-visible {
    outline: 3px solid rgba(181, 18, 27, .28);
    outline-offset: 3px;
    border-radius: 5px;
}

