/* Mobile-first adaptations using Bootstrap's native breakpoints. */

@media (min-width: 576px) {
    .jacob-offcanvas {
        --bs-offcanvas-width: 30rem;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

	.jacob-order-bottles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jacob-order-meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
    :root {
        --jacob-section-space: 6rem;
    }

	.jacob-hero,
	.jacob-editorial-hero {
		min-height: calc(100svh - 2rem);
	}

	.jacob-page-hero::after,
	.jacob-hero::after {
		width: min(55vw, 28rem);
	}

	.site-header-home {
		top: 1rem;
		right: 1rem;
		left: 1rem;
	}

    .jacob-feature-image {
        min-height: 34rem;
    }

    .jacob-offcanvas .offcanvas-header,
    .jacob-offcanvas .offcanvas-body {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    :root {
        --jacob-section-space: 8rem;
    }

    .py-lg-7 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }

    .py-lg-8 {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }

    .py-lg-9 {
        padding-top: 10rem !important;
        padding-bottom: 10rem !important;
    }

    .pb-lg-8 { padding-bottom: 8rem !important; }

    .mb-lg-6 { margin-bottom: 5rem !important; }
    .mb-lg-7 { margin-bottom: 6.5rem !important; }

    .site-header-home .jacob-header-bar {
        min-height: 7rem;
    }

    .site-header-home .jacob-shop-link {
        margin-right: 0.75rem;
    }

    .site-header-inner .jacob-header-bar {
        min-height: 6.5rem;
    }

    .jacob-hero,
    .jacob-editorial-hero {
        min-height: calc(100svh - 3rem);
    }

	.jacob-page-hero::after,
	.jacob-hero::after {
		width: min(42vw, 31.25rem);
	}

	.jacob-wine-hero {
		min-height: min(52rem, calc(100svh - 3rem));
	}

    .jacob-hero-brand {
        transform: translateY(-2%);
    }

    .jacob-feature-image {
        min-height: 46rem;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

	.jacob-cart-item {
		grid-template-columns: 7rem minmax(0, 1fr);
		padding: 1.25rem;
	}

	.jacob-cart-item__image img {
		height: 9rem;
	}

	.jacob-checkout-card,
	.jacob-checkout-review,
	.jacob-cart-summary,
	.jacob-latest-order,
	.jacob-account-order-card,
	.jacob-order-details {
		padding: 2rem;
	}

	.jacob-account-auth .jacob-login-card {
		padding: 2.5rem;
	}

	.jacob-address-card {
		padding: 2rem;
	}

	.woocommerce-account .woocommerce {
		grid-template-columns: 15rem minmax(0, 1fr);
		align-items: start;
		gap: 3rem;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: block;
		border: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		border-bottom: 1px solid var(--jacob-border);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		border-bottom: 0;
	}

	.jacob-order-bottles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jacob-order-meta-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.jacob-order-meta-grid > div {
		border-right: 1px solid var(--jacob-border);
		border-bottom: 0;
	}

    .admin-bar .jacob-sticky-header {
        top: 32px;
    }
}

@media (min-width: 1200px) {
	.site-header-home {
		top: 1.5rem;
		right: 1.5rem;
		left: 1.5rem;
	}
    .jacob-hero-navigation {
        left: clamp(3rem, 5.5vw, 6.5rem);
    }

    .jacob-horizontal-menu {
        gap: 2.25rem;
    }

    .p-xl-7 {
        padding: 6rem !important;
    }
}

@media (min-width: 1400px) {
    .jacob-hero,
    .jacob-editorial-hero {
        min-height: calc(100svh - 4rem);
    }

    .jacob-hero-brand h1 {
        font-size: 4.75rem;
    }
}

@media (max-width: 991.98px) {
    .admin-bar .site-header-home {
        top: 32px;
    }

    .jacob-hero-brand h1 {
        font-size: clamp(2.5rem, 9vw, 4.5rem);
    }

	.jacob-product-hero {
		align-items: flex-start;
		padding-top: 7rem;
		padding-bottom: 20rem;
	}

	.jacob-product-hero-bottle {
		right: 50%;
		bottom: -2rem;
		width: 12rem;
		height: 22rem;
		transform: translateX(50%);
	}
}

@media (max-width: 782px) {
    .admin-bar .site-header-home {
        top: 46px;
    }
}

@media (max-width: 575.98px) {
    :root {
		--jacob-texture-size: 520px auto;
    }

    .jacob-header-bar {
        min-height: 4.5rem;
    }

	.jacob-header-brand > span {
		display: none;
	}

	.jacob-header-bar > .d-flex:last-child {
		gap: 0.15rem !important;
	}

	.jacob-cart-link,
	.jacob-account-link,
	.jacob-menu-toggle {
		width: 2.5rem;
		height: 2.5rem;
	}

    .jacob-hero,
    .jacob-editorial-hero {
        min-height: 100svh;
    }

    .jacob-wine-hero {
        min-height: 82svh;
    }

	.jacob-wine-bottle {
        right: 50%;
		bottom: -4rem;
        width: 13rem;
        height: 58vh;
        transform: translateX(50%);
    }

	.jacob-wine-content { padding-top: 7rem !important; }

	.jacob-product-single .jacob-wine-content { padding-top: var(--jacob-section-space) !important; }

	.jacob-wine-hero-title {
		top: 6rem;
		right: 1.5rem;
		bottom: auto;
		left: 1.5rem;
		max-width: none;
		text-align: center;
	}

    .jacob-hero-overlay {
        background: linear-gradient(180deg, rgba(20, 18, 16, 0.42) 0%, rgba(20, 18, 16, 0.12) 35%, rgba(20, 18, 16, 0.35) 100%);
    }

    .jacob-domain-section .fs-2 {
        font-size: calc(1.4rem + 0.6vw) !important;
    }

    .jacob-feature-copy .fs-3 {
        font-size: 1.35rem !important;
    }

    .paginup-atc-popup__dialog {
        padding: 1.5rem;
    }

    .paginup-atc-popup__actions {
        flex-direction: column;
    }

    .paginup-atc-popup__actions .button {
        width: 100%;
    }

	.jacob-map-modal .modal-dialog {
		width: 100%;
		height: 100svh;
		margin: 0;
	}

	.jacob-map-modal-close {
		top: 0.75rem;
		right: 0.75rem;
		width: 2.5rem;
		height: 2.5rem;
	}

	.jacob-map-legend {
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		max-width: none;
		gap: 0.45rem 0.75rem;
		padding: 0.65rem 0.75rem;
		font-size: 0.7rem;
	}

	.jacob-map-wine-card {
		right: 0.75rem;
		bottom: 0.75rem;
		width: calc(100% - 1.5rem);
		padding: 1.1rem;
	}

	.jacob-map-wine-card-layout {
		grid-template-columns: 4rem minmax(0, 1fr);
		gap: 0.9rem;
	}

	.jacob-map-wine-card-bottle {
		min-height: 8.5rem;
	}

	.jacob-map-wine-card-bottle img {
		max-height: 10.5rem;
	}

	.jacob-map-modal.has-wine-card .jacob-map-legend {
		opacity: 0;
		pointer-events: none;
	}

	.jacob-contact-details,
	.jacob-contact-form-card {
		padding: 1.5rem !important;
	}

	.jacob-cart-item {
		grid-template-columns: 4.25rem minmax(0, 1fr);
		padding: 0.85rem;
	}

	.jacob-cart-item__image img {
		height: 6rem;
	}

	.jacob-cart-item__footer {
		align-items: end !important;
	}

	.jacob-cart-summary,
	.jacob-checkout-card,
	.jacob-checkout-review {
		padding: 1rem;
	}

	.jacob-order-detail-item {
		grid-template-columns: 3.5rem minmax(0, 1fr);
	}

	.jacob-order-detail-item > strong {
		grid-column: 2;
	}
}
