/*
Theme Name: Ginger Ross & Co.
Theme URI: https://blogcto.com/projects/ginger-ross
Author: Richard Seabrook (BlogCTO)
Author URI: https://blogcto.com
Description: A custom-built theme for Ginger Ross & Co.
Requires at least: 6.1
Tested up to: 6.2
Requires PHP: 5.6
Version: 1.0
Text Domain: ginger_ross
*/

/*----------------------------------------------------------------------------
	
	Fonts
	
----------------------------------------------------------------------------*/
@font-face {
    font-family: 'Sweet Sans';
    src: url('assets/fonts/sweet-sans-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Golden Brown';
    src: url('assets/fonts/golden-brown-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Baskerville';
    src: url('assets/fonts/baskerville-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Baskerville';
    font-weight: bold;
    src: url('assets/fonts/baskerville-bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Baskerville';
    font-style: italic;
    src: url('assets/fonts/baskerville-italic.woff2') format('woff2');
}
/* TODO: Add theme fonts here */
@font-face {
    font-family: 'gadabout-icons';
    src: url('assets/fonts/gadabout-icons.woff2?73546164') format('woff2');
}

/*----------------------------------------------------------------------------
	
	Variables
	
----------------------------------------------------------------------------*/
:root {

    --font-baskerville: 'Baskerville';
    --font-golden-brown: 'Golden Brown';
    --font-sweet-sans: 'Sweet Sans';
    /* TODO: Add theme font variables here */
    --font-icons: 'gadabout-icons';

    --theme-color-dark-blue: #006794;
    --theme-color-light-blue: #80B3D2;
    --theme-color-white: #FFFFFF;
    /* TODO: Add theme colors here */
}

/*----------------------------------------------------------------------------

	Base

	Minimal base styles (the theme has no CSS reset/normalize dependency).
	WordPress's global styles handle the body margin; extend this section as
	needed rather than pulling in a reset package.

----------------------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}
img,
svg,
video {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
h1, h2, h3, h4, h5, h6 {
    margin-block: 0 0.5rem;
}
p,
figure {
    margin-block: 0 1rem;
}

/*----------------------------------------------------------------------------

	General

	Note: the default background/text colors (cream / charcoal) are set in
	theme.json (styles.color) so they apply to BOTH the front end and the block
	editor. Don't duplicate them on `body` here. Page-template color flips live
	in blocks.css (loads in both contexts) — see that file.

----------------------------------------------------------------------------*/
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.active {
    overflow: hidden; /* scroll-lock while the mobile drawer is open */
}
.aligncenter {
    margin-left: auto;
    margin-right: auto;
}
/*
 * Centered content column for classic-PHP templates. Width follows
 * theme.json's layout.contentSize so PHP templates and block content share
 * the same measure.
 */
.site-container {
    max-width: var(--wp--style--global--content-size, 840px);
    margin-inline: auto;
    padding-inline: var(--wp--preset--spacing--50, 24px);
}
.entry-content {
    padding-block: 80px;
    padding-inline: var(--wp--preset--spacing--60, 36px);
}
.floating-header .entry-content {
    padding-block: 0;
}
.entry-content > .alignfull {
    margin-inline: calc(-1 * var(--wp--preset--spacing--60, 36px));
}

/*----------------------------------------------------------------------------

	Inquiry form (Contact Form 7)

	The .inquiry-form wrapper is added in the CF7 form markup. Keeping every
	field inside its own wrapper makes CF7's generated control spans predictable
	while reproducing Bootstrap's floating-label behavior without Bootstrap.

----------------------------------------------------------------------------*/
.inquiry-form {
    width: 100%;
    margin-top: 34px;
    color: inherit;
    font-family: var(--font-sweet-sans);
}
.inquiry-form__field {
    margin-bottom: 14px;
}
.inquiry-form__field:not(.inquiry-form__field--textarea) {
    position: relative;
}
.inquiry-form__label {
    display: block;
    margin: 0 0 15px;
    font-family: var(--font-sweet-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}
.inquiry-form__field:not(.inquiry-form__field--textarea) .inquiry-form__label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 15px 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 20px;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 0.1s ease-in-out;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.inquiry-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.inquiry-form__control {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-sweet-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    appearance: none;
}
.inquiry-form__field:not(.inquiry-form__field--textarea) .inquiry-form__control {
    height: 54px;
    padding: 24px 0 2px;
}
.inquiry-form__control::placeholder {
    color: transparent;
}
.inquiry-form__control:focus {
    outline: 0;
    box-shadow: none;
}
.inquiry-form__field:not(.inquiry-form__field--textarea):has(.inquiry-form__control:focus) > .inquiry-form__label,
.inquiry-form__field:not(.inquiry-form__field--textarea):has(.inquiry-form__control:not(:placeholder-shown)) > .inquiry-form__label {
    transform: translateY(-8px) scale(0.85);
}
.inquiry-form__field--textarea {
    margin-top: 31px;
    margin-bottom: 0;
}
.inquiry-form .inquiry-form__textarea {
    height: 106px;
    min-height: 106px;
    padding: 8px 10px;
    border: 1px solid currentColor;
    line-height: 30px;
    resize: vertical;
}
.inquiry-form__actions {
    display: flex;
    align-items: center;
    margin-top: 30px;
}
.inquiry-form .inquiry-form__submit {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 6px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-sweet-sans);
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    appearance: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.inquiry-form .inquiry-form__submit:hover {
    color: var(--theme-color-dark-blue);
    border-color: var(--theme-color-dark-blue);
}
.inquiry-form .inquiry-form__submit:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.inquiry-form .wpcf7-spinner {
    margin: 0 0 0 12px;
}
.inquiry-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: inherit;
    font-size: 12px;
    line-height: 1.4;
}
.inquiry-form ~ .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 12px 16px;
    border-color: currentColor;
    color: inherit;
    font-size: 12px;
    line-height: 1.4;
}



/*----------------------------------------------------------------------------
	
	Animations
	
----------------------------------------------------------------------------*/
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: var(--theme-color-light-blue);
}
.page-transition-overlay__inner {
    pointer-events: none;
}

/*----------------------------------------------------------------------------

	Loading screen (front page, direct loads only)

	A fixed 5-second introduction. The dark-blue Clover fades onto a light-blue
	cover; the cover fades away to reveal the slideshow; then the standard
	homepage chrome fades in. The temporary cover lives outside the Barba
	container, so in-site returns home do not replay the sequence. JavaScript
	coordinates interaction and slideshow autoplay, but the CSS timeline reaches
	a usable final state on its own.

----------------------------------------------------------------------------*/
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    background-color: var(--theme-color-light-blue);
    color: var(--theme-color-dark-blue);
    animation: loadingScreenFadeOut 1.5s ease 2.5s forwards;
}
.loading-screen__icon {
    width: min(50vw, 200px);
    opacity: 0;
    animation:
        loadingIconFadeIn 1.5s ease 0.5s forwards,
        loadingIconFadeOut 0.75s ease 2s forwards;
}
.loading-screen__icon svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Keep the existing final homepage chrome out of sight until the last stage.
   `both` applies the hidden first keyframe during the 4-second delay and
   preserves the visible final keyframe if JavaScript is unavailable. */
.loading-screen ~ #page .header,
.loading-screen ~ #page .slideshow__wordmark,
.loading-screen ~ #page::before {
    animation: loadingChromeFadeIn 1s ease 4s both;
}

body.loading-intro-active {
    touch-action: none;
}

@keyframes loadingIconFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes loadingIconFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes loadingScreenFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes loadingChromeFadeIn {
    0%   { opacity: 0; visibility: hidden; }
    0.1% { opacity: 0; visibility: visible; }
    100% { opacity: 1; visibility: visible; }
}

@media screen and (min-width: 783px) {
    .loading-screen__icon {
        width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-screen {
        display: none;
        animation: none;
    }
    .loading-screen__icon,
    .loading-screen ~ #page .header,
    .loading-screen ~ #page .slideshow__wordmark,
    .loading-screen ~ #page::before {
        opacity: 1;
        visibility: visible;
        animation: none;
    }
}


/*----------------------------------------------------------------------------

	Portfolio Page (page-portfolio.php)

	The page title supplies the document's accessible primary heading while the
	visible composition is authored with the Project List block.

----------------------------------------------------------------------------*/
.portfolio__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*----------------------------------------------------------------------------

	Template Parts

----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------

	Post Grid (template-parts/components/post-grid.php + cards/post.php)

	Two columns on mobile, four from 782px (WP core breakpoint). Starter
	styles — adjust columns/gap per project.

----------------------------------------------------------------------------*/
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--preset--spacing--50, 24px);
}
@media screen and (min-width: 782px) {
    .post-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.post-card-inner {
    display: block;
    color: inherit;
    text-decoration: none;
}
.post-card__image {
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
}
.post-card__title {
    margin-block: 0 24px;
}
.results-message {
    text-align: center;
}
@media screen and (min-width: 600px) {
    .post-card__title {
        margin-block: 0 16px;
    }
}

/*----------------------------------------------------------------------------

	Image Banner (template-parts/sections/image-banner.php)

----------------------------------------------------------------------------*/
.section__image-banner-image {
    display: block;
    width: 100%;
    height: auto;
}
@media screen and (min-width: 600px) {
    .section__image-banner {
        padding-block: 48px;
    }
}

/*----------------------------------------------------------------------------

	Header

	Mobile uses a light-blue header with white chrome and a persistent toggle.
	Above WordPress's tablet range (783px+), the wordmark and primary menu sit in
	one dark-blue row on the page background.

----------------------------------------------------------------------------*/
.header {
    position: relative;
    z-index: 10;
    color: var(--theme-color-white);
    background-color: var(--theme-color-light-blue);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}
.header__wordmark {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    color: currentColor;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.header__wordmark svg {
    display: block;
    width: 100%;
    height: auto;
}
.header__nav {
    display: none;
    flex: 0 0 auto;
}
.header__menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-sweet-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}
.header__menu a {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.header__menu a::after {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    height: 2px;
    content: '';
    opacity: 0;
    background-color: var(--theme-color-light-blue);
    transition: opacity 0.3s ease;
}
.floating-header .header__menu a::after {
    background-color: var(--theme-color-white);
}
body.page-template-page-blue-background .header__menu a::after {
    background-color: var(--theme-color-dark-blue);
}
.header__menu .current-menu-item > a::after,
.header__menu .current_page_item > a::after,
.header__menu a[aria-current="page"]::after,
.header__menu a:focus-visible::after {
    opacity: 1;
}
@media (hover: hover) {
    .header__menu a:hover::after {
        opacity: 1;
    }
}
.header__toggler {
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    color: var(--theme-color-white);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}
.header__toggler span {
    display: block;
    width: 40px;
    height: 1px;
    flex: 0 0 1px;
    opacity: 1;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.header__toggler.active {
    color: var(--theme-color-dark-blue);
}
.header__toggler.active span:first-child {
    transform: translateY(11px) rotate(45deg);
}
.header__toggler.active span:nth-child(2) {
    opacity: 0;
}
.header__toggler.active span:last-child {
    transform: translateY(-11px) rotate(-45deg);
}

@media screen and (max-width: 782px) {
    body.active .header {
        z-index: 1001;
        pointer-events: none;
    }
    body.active .header__wordmark {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    body.active .header__toggler {
        pointer-events: auto;
    }
}

@media screen and (min-width: 783px) {
    .header {
        color: var(--theme-color-dark-blue);
        background-color: transparent;
    }
    .header__inner {
        padding: 48px 40px;
    }
    .header__nav {
        display: block;
    }
    .header__toggler {
        display: none;
    }
    .drawer {
        display: none !important;
    }
}

/*----------------------------------------------------------------------------

	Homepage slideshow + floating header

	The mobile/tablet and desktop galleries are separate responsive instances.
	Only multi-image galleries are enhanced by Slick; the first image remains a
	clean static fallback before JS initializes or when reduced motion is enabled.

----------------------------------------------------------------------------*/
.slideshow {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background-color: var(--theme-color-light-blue);
}
.slideshow--desktop {
    display: none;
}
.slideshow__slider,
.slideshow__slider .slick-list,
.slideshow__slider .slick-track {
    height: 100%;
}
.slideshow__slide {
    height: 100vh;
    /* svh (not dvh) so the height stays fixed as mobile browser chrome expands
       and collapses on scroll — dvh tracks the chrome and can make slides zoom. */
    height: 100svh;
}
.slideshow__slider--multiple:not(.slick-initialized) > .slideshow__slide:not(:first-child) {
    display: none;
}
.slideshow__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.slideshow__wordmark {
    position: absolute;
    right: 20px;
    bottom: 30px;
    left: 20px;
    z-index: 6;
    display: block;
    color: var(--theme-color-white);
}
.slideshow__wordmark svg {
    display: block;
    width: 100%;
    height: auto;
}

.floating-header #page {
    position: relative;
}
.floating-header #page::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    height: 850px;
    pointer-events: none;
    content: '';
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0) 850px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0) 500px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0) 500px);
}
.floating-header .header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    color: var(--theme-color-white);
    background-color: transparent;
}

@media screen and (max-width: 782px) {
    body.home.floating-header .header__inner {
        justify-content: flex-end;
    }
    body.home.floating-header .header__wordmark {
        display: none;
    }
}

@media screen and (min-width: 783px) {
    .slideshow--mobile {
        display: none;
    }
    .slideshow--desktop {
        display: block;
    }
}

/*----------------------------------------------------------------------------

	Drawer (mobile menu)

	Full-viewport overlay beneath the persistent header toggle. The client-managed
	`mobile` menu supplies every link, including the first home item.

----------------------------------------------------------------------------*/
.drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    color: var(--theme-color-white);
    background-color: var(--theme-color-light-blue);
}
.drawer__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 120px 45px 60px;
    text-align: left;
}
.drawer__nav {
    flex: 0 0 auto;
}
.drawer__menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-golden-brown);
    font-size: 30px;
    font-weight: 400;
    line-height: 70px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.drawer__menu a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    animation: drawerMenuItemFadeIn 0.5s ease backwards;
    animation-delay: calc(0.2s + (var(--menu-drawer-animation-index, 1) - 1) * 0.1s);
}
@keyframes drawerMenuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.drawer__monogram {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 48px;
    color: var(--theme-color-dark-blue);
}
.drawer__monogram svg {
    display: block;
    width: 115px;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .drawer__menu a {
        animation: none;
    }
    .header__wordmark,
    .header__menu a::after,
    .header__toggler,
    .header__toggler span {
        transition-duration: 0.01ms;
    }
}


/*----------------------------------------------------------------------------

	Footer

	Mobile/tablet (through 782px): clover, company/contact, then imprint.
	Desktop (783px+): footer menu left, clover centered, details right.

----------------------------------------------------------------------------*/
.footer {
    background-color: var(--theme-color-light-blue);
    color: var(--theme-color-white);
}
.footer__inner {
    display: grid;
    grid-template-areas:
        "monogram"
        "contact"
        "credits";
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    padding: 60px 40px 28px;
}
.footer__nav {
    display: none;
}
.footer__monogram {
    grid-area: monogram;
    display: block;
    width: 110px;
    color: var(--theme-color-dark-blue);
}
.footer__monogram svg {
    display: block;
    width: 100%;
    height: auto;
}
.footer__contact {
    grid-area: contact;
    min-width: 0;
    margin-top: 56px;
    text-align: center;
}
.footer__company {
    margin: 0;
    font-family: var(--font-sweet-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}
.footer__contact-information {
    margin-top: 20px;
    font-family: var(--font-sweet-sans);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    text-transform: none;
}
.footer__contact-line {
    display: block;
}
.footer__credits {
    display: flex;
    grid-area: credits;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin: 96px 0 0;
    font-family: var(--font-sweet-sans);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}
.footer__menu a,
.footer__contact-information a,
.footer__site-credits {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer__site-credits {
    white-space: nowrap;
}
.footer__credits > * {
    margin-inline: auto;
}
.footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media screen and (min-width: 783px) {
    .footer {
        color: var(--theme-color-dark-blue);
    }
    .footer__inner {
        grid-template-areas:
            "nav monogram contact"
            "nav monogram credits";
        grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
        gap: 32px 24px;
        padding: 60px;
    }
    .footer__nav {
        display: block;
        grid-area: nav;
        justify-self: start;
        min-width: 0;
    }
    .footer__menu {
        margin: -8px 0;
        padding: 0;
        list-style: none;
        font-family: var(--font-sweet-sans);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: 1.9px;
        text-transform: uppercase;
    }
    .footer__menu a {
        display: inline-block;
        padding: 8px 0;
    }
    .footer__monogram {
        justify-self: center;
        margin: 0;
    }
    .footer__contact {
        justify-self: end;
        margin-top: 0;
        text-align: right;
    }
    .footer__credits {
        justify-self: end;
        justify-content: flex-end;
        width: auto;
        margin-top: 0;
        text-align: right;
    }
    .footer__credits > * {
        margin-inline: 0;
    }
}

@media screen and (min-width: 783px) and (hover: hover) {
    .footer__menu a:hover,
    .footer__contact-information a:hover,
    .footer__site-credits:hover {
        color: var(--theme-color-white);
    }
}

/* Shopify Quick Shop modal. */
#product-modal.product-modal,
#product-modal .product-modal__content,
#product-modal .product-modal__media img,
#product-modal.product-modal button,
#product-modal shopify-variant-selector::part(select) {
    border-radius: 0;
}

#product-modal.product-modal,
#product-modal .product-modal__title,
#product-modal .product-modal__price-container,
#product-modal .product-modal__description-text,
#product-modal .product-modal__description-text a,
#product-modal.product-modal .product-modal__close,
#product-modal shopify-variant-selector::part(select) {
    color: var(--theme-color-dark-blue);
}

#product-modal .product-modal__details-link {
    display: none;
}

#product-modal .product-modal__buttons button {
    border-color: var(--theme-color-dark-blue);
}

#product-modal .product-modal__add-button {
    background-color: var(--theme-color-dark-blue);
    color: var(--theme-color-white);
}

#product-modal .product-modal__buy-button {
    color: var(--theme-color-dark-blue);
}

@media (hover: hover) {
    #product-modal .product-modal__add-button:hover {
        background-color: var(--theme-color-white);
        color: var(--theme-color-dark-blue);
    }
}

@media (min-width: 783px) {
    #product-modal.product-modal {
        position: fixed;
        inset: 0;
        margin: auto;
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
    }
}

/* Public cart parts override the plugin's outer-document styles. */
shopify-cart#cart::part(dialog),
shopify-cart#cart::part(secondary-button),
shopify-cart#cart::part(primary-button) {
    border-radius: 0;
    font-family: var(--font-sweet-sans), sans-serif;
}

shopify-cart#cart::part(dialog),
shopify-cart#cart::part(line-price),
shopify-cart#cart::part(line-options),
shopify-cart#cart::part(secondary-button) {
    color: var(--theme-color-dark-blue);
}

shopify-cart#cart::part(line-heading) {
    color: var(--theme-color-dark-blue);
    font-family: var(--font-golden-brown), serif;
    font-size: 22px;
    font-weight: 400;
}

shopify-cart#cart::part(secondary-button) {
    background-color: var(--theme-color-white);
    border-color: var(--theme-color-light-blue);
}

shopify-cart#cart::part(primary-button) {
    background-color: var(--theme-color-dark-blue);
    color: var(--theme-color-white);
    letter-spacing: 0.05em;
    opacity: 1;
}

@media (hover: hover) {
    shopify-cart#cart::part(primary-button):hover {
        background-color: var(--theme-color-light-blue);
        color: var(--theme-color-dark-blue);
        opacity: 1;
    }

    shopify-cart#cart::part(secondary-button):hover {
        background-color: var(--theme-color-light-blue);
        border-color: var(--theme-color-dark-blue);
    }
}

.floating-cart {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--theme-color-dark-blue);
    border-radius: 0;
    background: var(--theme-color-white);
    color: var(--theme-color-dark-blue);
    font-family: var(--font-sweet-sans), sans-serif;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgb(0 103 148 / 15%);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-cart[hidden] {
    display: none;
}

.floating-cart:focus-visible {
    outline: 2px solid var(--theme-color-dark-blue);
    outline-offset: 4px;
}

@media (hover: hover) {
    .floating-cart:hover {
        background: var(--theme-color-dark-blue);
        color: var(--theme-color-white);
    }
}
