/* Premium footer redesign, dark maroon look (per explicit user request),
   on this site's own existing footer data/links/routes -- nothing removed,
   only regrouped. Layout: a 4-column row (Logo + Contact Us | More To See
   | Categories | Policy) followed by a bottom bar (Copyright left,
   Payment Methods right). Categories is the only dynamic column, sourced
   from the MainCategory table via AppServiceProvider's partials.footer
   view composer; every other column is the same static content that was
   already here, just reorganized into this grouping. */


/* ---------- 1. Palette override (dark maroon, per user request) ----------
   Same technique used for the login/register page: override the custom
   properties this color-schemefooter__logo class already feeds every footer component
   with (background, foreground, links, buttons), so nothing else needs to
   change. Higher specificity than the theme's own rule via the repeated
   class selector. */

.footer.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e {
    --color-background: 44, 12, 18;
    --gradient-background: #2c0c12;
    --color-foreground: 244, 236, 224;
    --color-background-contrast: 64, 20, 28;
    --color-shadow: 0, 0, 0;
    --color-button: 244, 236, 224;
    --color-button-text: 44, 12, 18;
    --color-secondary-button: 64, 20, 28;
    --color-secondary-button-text: 244, 236, 224;
    --color-link: 244, 236, 224;

    /* Same gold used site-wide (checkout, collection, about-us, account
       pages) so the footer's gold accents match rather than inventing a
       new shade. */
    --footer-gold: #b8860b;
    --footer-gold-light: #d9b25c;
    --footer-gold-dark: #8a6508;
}


/* ---------- 2. Overall footer shell ----------
   An original soft wave top/bottom edge (not a copy of Tanishq's specific
   petal-shaped cutout) gives the footer the same premium "custom shape"
   feel as the reference, drawn as inline SVG background art on ::before/
   ::after pseudo-elements so no real content or markup is touched. */

.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e {
    border-top: none;
    border-radius: 0;
    box-shadow: 0 -0.4rem 3rem rgba(0, 0, 0, 0.25);
    overflow: visible;
    position: relative;
    margin-top: 4rem;
    /* Subtle fabric-grain texture over the flat maroon, matching the
       reference's textured background -- a tiled noise SVG at very low
       opacity, no image asset needed. */
    background-color: #2c0c12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::before,
.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 4rem;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::before {
    bottom: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C150,55 300,6 450,30 C600,54 750,8 900,30 C1030,48 1120,44 1200,30 L1200,60 L0,60 Z' fill='rgb(44,12,18)'/%3E%3C/svg%3E");
}

.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::after {
    top: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C150,5 300,54 450,30 C600,6 750,52 900,30 C1030,12 1120,16 1200,30 L1200,0 L0,0 Z' fill='rgb(44,12,18)'/%3E%3C/svg%3E");
}

/* Shared column-heading look -- More To See, Categories, Policy and the
   Contact Us block under the logo all read as one consistent, premium
   hierarchy. */

.footer__heading {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: rgb(255 255 255);
    margin: 0 0 1.6rem;
}

/* Small decorative chevron after "Categories", matching the reference. */
.footer__heading--categories {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__heading--categories::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-top: 0.18rem solid var(--footer-gold-light);
    border-right: 0.18rem solid var(--footer-gold-light);
    transform: rotate(45deg);
    margin-bottom: 0.1rem;
}


/* ---------- 3. Social icons ----------
   Solid gold circles (matching the site's established gold accent used
   on checkout/collection/about-us/account pages), darkening slightly on
   hover/focus, echoing the reference's circular icon buttons. */

.footer__list-social.list-social {
    gap: 1.2rem;
}

.footer .list-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--footer-gold-light), var(--footer-gold));
    border: 0.1rem solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer .list-social__link .svg-wrapper {
    color: rgb(44, 12, 18);
    transition: color 0.25s ease;
}

.footer .list-social__link:hover,
.footer .list-social__link:focus-visible {
    transform: translateY(-0.3rem);
    background: linear-gradient(145deg, var(--footer-gold), var(--footer-gold-dark));
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.35);
}


/* ---------- 4. Main grid (Brand+Contact | More To See | Categories | Policy) ----------
   Four columns: the brand column (logo, social, Contact Us) on the left,
   then More To See, the dynamic Categories list, and Policy links, with
   elegant vertical dividers on desktop -- the same spacious, orderly
   multi-column feel the previous 3-column row had. */

.footer__grid {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Social icons live in their own row below More To See / Categories /
   Policy (see the grid-row placement below on desktop); centered here so
   it also reads as a clean, deliberate row when stacked on mobile. */
.footer__social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@media screen and (min-width: 990px) {
    .footer__grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        column-gap: 4.5rem;
        align-items: stretch;
        text-align: left;
    }
    .footer__col {
        align-items: flex-start;
        padding: 0 0 0 4.5rem;
        border-left: 0.1rem solid rgba(244, 236, 224, 0.14);
    }
    .footer__col:first-child {
        padding-left: 0;
        border-left: none;
    }

    /* Row 1: More To See | Categories | Policy. Row 2: social icons,
       centered under that same 3-column span. Brand (logo + Contact Us)
       stays on the left, spanning both rows. */
    .footer__col--brand {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .footer__col--more {
        grid-column: 2;
        grid-row: 1;
    }
    .footer__col--categories {
        grid-column: 3;
        grid-row: 1;
    }
    .footer__col--policy {
        grid-column: 4;
        grid-row: 1;
    }
    .footer__social-row {
        grid-column: 2 / span 3;
        grid-row: 2;
        /* padding-top: 2.5rem; */
    }
}


/* ---------- 5. Country / language disclosures ----------
   Keep the exact same buttons/markup, just give them a pill treatment with
   a smooth hover/expanded state instead of the plain text-link default. */

.footer__localization {
    gap: 2rem;
    padding-top: 1.5rem;
}

.footer__localization .disclosure__button {
    border: 0.1rem solid rgba(244, 236, 224, 0.25);
    border-radius: 3rem;
    padding: 0.9rem 1.6rem;
    color: rgb(244, 236, 224);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.footer__localization .disclosure__button:hover,
.footer__localization .disclosure__button:focus-visible,
.footer__localization .disclosure__button[aria-expanded="true"] {
    border-color: rgb(244, 236, 224);
    background: rgba(244, 236, 224, 0.1);
}


/* ---------- 6. Payment methods (bottom bar, right side) ----------
   The payment logos already carry their own white badge backgrounds, so
   (matching the reference) they sit directly on the dark background with
   generous spacing rather than inside an extra card. */

.footer__payment {
    padding: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__payment-label {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    color: rgba(244, 236, 224, 0.6);
    white-space: nowrap;
}

.list-payment {
    gap: 1.2rem;
}

.list-payment__item {
    transition: transform 0.2s ease;
}

.list-payment__item:hover {
    transform: translateY(-0.2rem);
}


/* ---------- 7. Contact Us (under the logo, in the brand column) ----------
   Static info block, styled with a small icon badge in front of each item
   to match the reference's circular icon treatment. */

.footer__brand-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 4.5rem;
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
}

.footer__contact-item {
    display: block;
}

.footer__contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: rgba(244, 236, 224, 0.85);
    font-size: 1.4rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.footer__contact-link:hover,
a.footer__contact-link:focus-visible {
    color: rgb(244, 236, 224);
    transform: translateX(0.3rem);
}

.footer__contact-link--static {
    align-items: flex-start;
    cursor: default;
}

/* Address split into two bulleted lines (same address text, no data
   change) to match the reference's line-by-line bullet treatment. */
.footer__address {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer__address-line {
    position: relative;
    padding-left: 1.3rem;
}

.footer__address-line::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--footer-gold-light);
}

.footer__contact-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    padding: 0.8rem;
    box-sizing: border-box;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--footer-gold-light), var(--footer-gold));
    border: 0.1rem solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.25);
    color: rgb(44, 12, 18);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.footer__contact-link:hover .footer__contact-icon,
a.footer__contact-link:focus-visible .footer__contact-icon {
    background: linear-gradient(145deg, var(--footer-gold), var(--footer-gold-dark));
    transform: scale(1.06);
}


/* ---------- 8. "More To See" / "Categories" / "Policy" columns ----------
   Three plain link-list columns sharing one look: simple text links with
   a consistent hover shift, no icons. Categories comes from the
   MainCategory table (see AppServiceProvider's partials.footer composer);
   More To See and Policy are the same static links that always lived
   here, just regrouped into their own columns. */

.footer__more-list,
.footer__categories-list,
.footer__policy-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
}

.footer__more-item,
.footer__categories-item,
.footer__policy-item {
    display: block;
}

.footer__more-link,
.footer__categories-link,
.footer__policy-link {
    display: inline-block;
    color: rgba(244, 236, 224, 0.85);
    font-size: 1.4rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Categories and Policy links carry the gold underline treatment from the
   reference; More To See stays plain cream text (as it already was). */
.footer__categories-link,
.footer__policy-link {
    color: var(--footer-gold-light);
    text-decoration: underline;
    text-decoration-color: rgba(217, 178, 92, 0.55);
    text-underline-offset: 0.3rem;
}

.footer__more-link:hover,
.footer__more-link:focus-visible {
    color: rgb(244, 236, 224);
    transform: translateX(0.3rem);
}

.footer__categories-link:hover,
.footer__categories-link:focus-visible,
.footer__policy-link:hover,
.footer__policy-link:focus-visible {
    color: rgb(244, 236, 224);
    text-decoration-color: rgb(244, 236, 224);
    transform: translateX(0.3rem);
}


/* ---------- 9. Bottom bar: copyright (left) + payment methods (right) ---------- */

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-top: 1rem;
    border-top: 0.1rem solid rgba(244, 236, 224, 0.14);
}

.footer__copyright.caption {
    font-size: 1.2rem;
    letter-spacing: 0.02rem;
    color: rgba(244, 236, 224, 0.7);
}


/* Small cream card behind the logo so it stays legible against the dark
   background regardless of what colors are baked into the logo image.
   A modest border-radius (not a full pill) keeps this a clean rectangular
   badge instead of stretching into an oval around the wide logo image.
   Sits at the top of the brand column (logo, social icons, Contact Us). */

.footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    /* padding: 0.6rem 1.4rem; */
    /* background: rgba(244, 236, 224, 0.95); */
    border-radius: 0.8rem;
    /* box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2); */
    transition: transform 0.25s ease, background-color 0.25s ease;
}


/* .footer__logo img {
    display: block;
    height: 2.8rem;
    width: auto;
    max-width: 14rem;
    transition: transform 0.25s ease;
} */

.footer__logo img {
    display: block;
    height: 25%;
    width: 50%;
    max-width: 30rem;
    transition: transform 0.25s ease;
}

.footer__logo:hover {
    /* background: rgb(244, 236, 224);. */
    transform: translateY(-0.2rem);
}

.footer__logo:hover img {
    transform: scale(1.05);
}


/* ---------- 9. Accessibility ----------
   Visible, high-contrast focus rings on every interactive footer element
   for keyboard navigation (none of these elements had a custom outline
   before, so this only adds visibility, it doesn't remove functionality). */

.footer a:focus-visible,
.footer button:focus-visible {
    outline: 0.2rem solid rgb(244, 236, 224);
    outline-offset: 0.2rem;
    border-radius: 0.4rem;
}


/* ---------- 10. Responsive ---------- */

@media screen and (max-width: 989px) {
    .footer__contact-link {
        justify-content: center;
    }
}

@media screen and (max-width: 749px) {
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::before,
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::after {
        height: 2.2rem;
    }
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e {
        margin-top: 2rem;
    }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer__logo {
        margin: 0 auto;
    }
    .footer__copyright.caption {
        text-align: center !important;
    }
}

/* ---------- 11. Responsive finishing layer ----------
   The footer markup is shared site-wide, so keep this layer scoped to the
   existing footer classes. It changes layout and spacing only; no links,
   labels, forms, or payment/social functionality are altered. */

.footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e {
    overflow-x: clip;
}

.footer__grid,
.footer__bottom {
    box-sizing: border-box;
    width: 100%;
}

.footer__brand-contact > br {
    display: none;
}

.footer__logo img {
    width: auto;
    height: auto;
    max-width: min(14rem, 70vw);
    max-height: 10rem;
}

.footer__contact-link,
.footer__more-link,
.footer__categories-link,
.footer__policy-link {
    overflow-wrap: anywhere;
}

.footer__heading {
    line-height: 1.3;
}

@media screen and (max-width: 749px) {
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e {
        margin-top: 1.2rem;
    }

    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::before,
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::after {
        height: 1.4rem;
    }

    .footer__grid {
        gap: 1.8rem;
        padding: 2.2rem 1.5rem 1.6rem;
        text-align: center;
    }

    .footer__col {
        min-width: 0;
    }

    .footer__brand-contact {
        margin-top: 0.8rem;
    }

    .footer__contact-list,
    .footer__more-list,
    .footer__categories-list,
    .footer__policy-list {
        gap: 0.75rem;
    }

    .footer__heading {
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    .footer__contact-link,
    .footer__more-link,
    .footer__categories-link,
    .footer__policy-link {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .footer__contact-link {
        gap: 0.8rem;
    }

    .footer__contact-icon {
        width: 3rem;
        height: 3rem;
        padding: 0.7rem;
    }

    .footer__list-social.list-social {
        gap: 0.8rem;
    }

    .footer .list-social__link {
        width: 3.6rem;
        height: 3.6rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        margin-top: 0;
        padding: 1.2rem 1.5rem 1.4rem;
    }

    .footer__payment {
        gap: 0.7rem;
        max-width: 100%;
    }

    .footer__payment-label {
        font-size: 1rem;
    }

    .list-payment {
        justify-content: center;
        gap: 0.6rem;
        max-width: 100%;
    }
}

/* Portrait tablets and iPads: keep the brand/contact block full width and
   place the three navigation groups in one compact row below it. */
@media screen and (min-width: 750px) and (max-width: 989px) {
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::before,
    .footer.color-scheme-bab227d5-051e-4892-bcdf-498f74ceea0e::after {
        height: 2.2rem;
    }

    .footer__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        column-gap: clamp(1.4rem, 3vw, 2.6rem);
        row-gap: 2.2rem;
        padding: 2.8rem clamp(2rem, 5vw, 3.2rem) 2.2rem;
        text-align: left;
    }

    .footer__col {
        align-items: flex-start;
        min-width: 0;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
        grid-row: 1;
        align-items: center;
        text-align: center;
    }

    .footer__col--more {
        grid-column: 1;
        grid-row: 2;
    }

    .footer__col--categories {
        grid-column: 2;
        grid-row: 2;
    }

    .footer__col--policy {
        grid-column: 3;
        grid-row: 2;
    }

    .footer__social-row {
        grid-column: 1 / -1;
        grid-row: 3;
        padding-top: 0;
    }

    .footer__heading {
        margin-bottom: 1rem;
    }

    .footer__contact-link,
    .footer__more-link,
    .footer__categories-link,
    .footer__policy-link {
        font-size: 1.3rem;
    }

    .footer__bottom {
        gap: 1.2rem;
        padding: 1.5rem clamp(2rem, 5vw, 3.2rem) 1.8rem;
        margin-top: 0;
    }
}

/* Landscape iPads and smaller desktop screens: retain four columns but
   remove the large divider padding that otherwise squeezes link text. */
@media screen and (min-width: 990px) and (max-width: 1199px) {
    .footer__grid {
        grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
        column-gap: 2rem;
        padding: 3rem 3.2rem 2.4rem;
    }

    .footer__col {
        padding-left: 2rem;
    }

    .footer__col:first-child {
        padding-left: 0;
    }

    .footer__heading {
        margin-bottom: 1.1rem;
    }

    .footer__more-list,
    .footer__categories-list,
    .footer__policy-list {
        gap: 0.8rem;
    }

    .footer__contact-link,
    .footer__more-link,
    .footer__categories-link,
    .footer__policy-link {
        font-size: 1.3rem;
    }

    .footer__bottom {
        gap: 1.5rem;
        padding: 1.6rem 3.2rem 2rem;
        margin-top: 0;
    }
}

@media screen and (min-width: 1200px) {
    .footer__grid {
        row-gap: 2.2rem;
        padding-top: 2.8rem;
        padding-bottom: 2.2rem;
    }

    .footer__bottom {
        gap: 1.5rem;
        padding-top: 1.8rem;
        padding-bottom: 2rem;
        margin-top: 0;
    }
}
