/* Shared customer storefront refinements. Loaded after each page's components. */
:root {
    --store-ink: #202823;
    --store-green: #174a3a;
    --store-ivory: #fbfaf6;
    --store-line: #d9dfd9;
    --store-gold: #ad8242;
}

body {
    color: var(--store-ink);
    background: var(--store-ivory);
}

button,
input,
select,
textarea {
    font: inherit;
}

body .btn-primary {
    border-radius: 2px;
    background: var(--store-green);
    box-shadow: 0 0 #0000;
}

body .btn-primary:hover {
    background: #10392d;
    box-shadow: 0 0 #0000;
    transform: translateY(-1px);
}

body .btn-secondary {
    border-radius: 2px;
    border: 1px solid #93a198;
    background: transparent;
    color: var(--store-green);
}

body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border-radius: 2px;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #ad8242;
    outline-offset: 3px;
}

.main-header {
    background: rgba(251, 250, 246, .97);
    border-color: var(--store-line);
}

.header-container {
    min-height: 76px;
}

.nav-link {
    letter-spacing: .01em;
}

.main-footer {
    background: #173c31;
    color: #f8f6ef;
}

.main-footer :is(a, p, h3, span) {
    color: inherit;
}

.footer-nav a:hover {
    color: #e4c88f;
}

.footer-bottom {
    border-color: rgba(255, 255, 255, .2);
}

.home-page .home-seo-intro {
    background: #f2f4ef;
}

.home-page .home-seo-intro-inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding-block: clamp(36px, 6vw, 76px);
}

.home-page .home-seo-intro h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--store-ink);
    font-family: var(--font-family-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.home-page .home-seo-intro-copy p {
    max-width: 62ch;
    margin: 0;
    color: var(--store-ink);
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.65;
}

.home-page .home-seo-intro-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.home-page .home-seo-intro .btn-primary {
    color: #fff;
}

.home-page .home-seo-category-link {
    color: var(--store-green);
    font-weight: 600;
    text-underline-offset: 4px;
}

.home-page .home-seo-category-link:hover {
    color: var(--store-green-deep);
}

/* Shop: let the cookware photograph carry the full-width opening. */
.shop-page .page-hero-banner {
    padding: 0;
}

.shop-page .page-hero-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.shop-page .page-hero-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 3;
    overflow: hidden;
    background: #ecebe4;
    border-radius: 0;
}

.shop-page .page-hero-img {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.shop-hero-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-page .shop-header {
    padding: 30px 0 20px !important;
    margin: 0 !important;
    border: 0;
    background: var(--store-ivory) !important;
    color: var(--store-ink) !important;
}

.shop-page .shop-header::after {
    display: none !important;
}

.shop-page .breadcrumb {
    margin-bottom: 20px;
    color: #58655e;
}

.shop-page .shop-header-content {
    align-items: end;
    position: relative;
    z-index: 1;
}

.shop-page .shop-title-section .page-title {
    margin: 0 0 6px;
    color: var(--store-ink) !important;
    -webkit-text-fill-color: var(--store-ink) !important;
    font: 500 clamp(27px, 3vw, 40px)/1.15 var(--font-family-heading);
    text-align: left !important;
}

.shop-page .shop-title-section .page-title::after {
    margin-top: 8px;
}

.shop-page .shop-title-section .page-description {
    margin: 0;
    color: #59645d !important;
    font-size: 15px;
    text-align: left !important;
}

.shop-page .breadcrumb a,
.shop-page .breadcrumb .separator {
    color: #59645d !important;
}

.shop-page .breadcrumb-current {
    color: var(--store-green) !important;
}

.shop-page .shop-controls {
    gap: 10px;
}

.shop-page .shop-controls {
    color: var(--store-ink);
}

.shop-page .shop-search {
    border: 1px solid #bfcac2;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 #0000;
}

.shop-page .shop-search-icon {
    color: #58655e;
}

.shop-page .shop-search-input,
.shop-page .sort-toggle,
.shop-page .mobile-filter-toggle {
    min-height: 48px;
    border: 1px solid #bfcac2;
    border-radius: 3px;

    color: var(--store-ink);
}

.shop-page .shop-search-input {
    width: min(310px, 28vw);
    border: 0;
    box-shadow: 0 0 #0000;
}

.shop-page .shop-content {
    padding: 12px 0 76px;
}

.shop-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(22px, 3vw, 44px);
}

.filter-sidebar {
    border: 1px solid var(--store-line);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 #0000;
}

.filter-header {
    border-color: var(--store-line);
}

.filter-group {
    border-color: #e6e9e5;
}

.filter-group-title,
.filter-title {
    color: var(--store-ink);
}

.filter-checkbox {
    min-height: 34px;
}

.filter-checkbox input[type="checkbox"] {
    opacity: 1;
    position: static;
    width: 16px;
    height: 16px;
    accent-color: var(--store-green);
}

.filter-checkbox .checkbox-mark {
    display: none;
}

.checkbox-label {
    font-size: 14px;
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
}

.shop-page .product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 0;
    border-radius: 2px;
    background: transparent;
    box-shadow: 0 0 #0000;
    perspective: none;
    transform: none;
    transition: background-color 180ms ease;
}

.shop-page .product-card:hover {
    transform: none;
    box-shadow: 0 0 #0000;
    background: rgba(255, 255, 255, .58);
}

.shop-page .product-image {
    aspect-ratio: 4 / 4.2;
    background: #f0f0eb;
}

.shop-page .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    mix-blend-mode: multiply;
    transition: transform 240ms ease;
}

.shop-page .product-card:hover .product-image img {
    transform: scale(1.035);
}

.shop-page .product-placeholder {
    background: #efefea;
}

.shop-page .product-placeholder::after {
    content: 'ELITE COOKWARE';
    position: absolute;
    color: #66736c;
    font-size: 12px;
    letter-spacing: .12em;
}

.shop-page .product-placeholder::before {
    display: none;
}

.shop-page .product-badge {
    top: 10px;
    left: 10px;
    border-radius: 0;
    padding: 7px 9px;
    font-size: 11px;
    letter-spacing: .035em;
}

.shop-page .product-badge.discount {
    background: var(--store-green);
}

.shop-page .product-badge.low-stock {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: auto;
}

.shop-page .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px 2px 2px;
}

.shop-page .product-title {
    min-height: 2.8em;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.shop-page .product-title a {
    color: var(--store-ink);
    text-decoration: none;
}

.shop-page .product-title a:hover {
    color: var(--store-green);
}

.shop-page .product-price {
    min-height: 26px;
    gap: 9px;
    margin: 0;
}

.shop-page .current-price {
    color: var(--store-ink);
    font-size: 18px;
    font-weight: 700;
}

.shop-page .original-price {
    color: #727a75;
    font-size: 14px;
}

.shop-page .product-buttons {
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.shop-page .product-buttons .btn {
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 2px;
    font-size: 13px;
}

.shop-page .product-buttons .btn-primary {
    flex: 1;
    background: var(--store-green);
    box-shadow: 0 0 #0000;
}

.shop-page .product-buttons .btn-secondary {
    border: 1px solid #9aa79f;
    background: transparent;
    color: var(--store-green);
}

.shop-page .shop-error-state .btn-primary {
    color: #fff;
}

.shop-page .out-of-stock-overlay {
    background: rgba(251, 250, 246, .72);
}

.shop-page .out-of-stock-overlay span {
    border-radius: 0;
    box-shadow: none;
}

.shop-page .pagination-btn {
    border: 1px solid #bdc7c0;
    border-radius: 2px;
}

.shop-page .pagination-btn.active {
    border-color: var(--store-green);
    background: var(--store-green);
}

.shop-loading {
    display: contents;
}

.shop-loading span {
    display: block;
    aspect-ratio: .8;
    background: #eceee8;
    animation: shop-pulse 1.2s ease-in-out infinite alternate;
}

.shop-error-state {
    grid-column: 1 / -1;
    min-height: 280px;
}

.shop-page .shop-refresh-error {
    min-height: 0;
    padding: 18px;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: #f0f2ed;
}

.shop-page .shop-refresh-error .empty-state-title {
    margin-bottom: 0;
}

.shop-page .shop-refresh-error .empty-state-text {
    margin-bottom: 8px;
}

@keyframes shop-pulse {
    to {
        opacity: .55;
    }
}

/* Purchase page: keep product imagery and the buying decision in a calm split. */
.product-page .page-hero-banner {
    padding: 0;
}

.product-page .page-hero-container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.product-page .page-hero-wrapper {
    max-height: 300px;
    overflow: hidden;
}

.product-page .page-hero-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

body.has-product-error .mobile-sticky-bar {
    display: none !important;
}

.product-details {
    padding: clamp(28px, 4vw, 56px) 0;
}

.product-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(28px, 5vw, 72px);
}

.main-image-container {
    border: 0;
    border-radius: 2px;
    background: #f0f0eb;
}

.main-image {
    padding: 5%;
}

.thumbnail {
    border-radius: 2px;
    border-width: 1px;
}

.product-page .product-name {
    color: var(--store-ink);
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.12;
}

.product-page .sale-price {
    color: var(--store-green);
    font-size: clamp(27px, 3vw, 36px);
}

.product-page .discount-badge {
    border-radius: 2px;
    background: var(--store-green);
}

.product-page .stock-status {
    border-radius: 2px;
}

.product-page .quantity-btn,
.product-page .quantity-input {
    border-radius: 2px;
}

.product-page :is(.add-to-cart, .buy-now) {
    min-height: 50px;
    border-radius: 2px;
}

/* Shared forms, account panels and commerce summaries. */
:is(.cart-page, .checkout-page, .account-page, .profile-page, .orders-page, .addresses-page) :is(.card, .cart-summary, .order-summary, .form-container) {
    border-radius: 3px;
}

:is(.cart-page, .checkout-page, .account-page, .profile-page, .orders-page, .addresses-page) :is(input, select, textarea) {
    border-radius: 2px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 16px;
    }
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-page .filter-sidebar {
        display: none;
    }

    .shop-page .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 760px) {
    .home-page .home-seo-intro-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-page .home-seo-intro h1 {
        max-width: 15ch;
    }

    .home-page .home-seo-intro-actions {
        margin-top: 18px;
    }

    .shop-page .page-hero-wrapper {
        aspect-ratio: 8 / 3;
    }

    .shop-page .shop-header {
        padding-top: 22px;
    }

    .shop-header-content {
        align-items: stretch;
    }

    .shop-page .shop-controls {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .shop-page .shop-search {
        grid-column: 1 / -1;
        width: 100%;
    }

    .shop-page .shop-search-input {
        width: 100%;
    }

    .shop-page .shop-title-section {
        text-align: left;
    }

    .shop-page .sort-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .shop-page .mobile-filter-toggle {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .shop-page .product-title {
        min-height: 3em;
        font-size: 15px;
    }

    .shop-page .product-info {
        padding-top: 10px;
        gap: 7px;
    }

    .shop-page .product-buttons {
        flex-direction: column;
    }

    .shop-page .product-buttons .btn {
        width: 100%;
        min-height: 44px;
    }

    .product-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    .product-grid {
        gap: 18px 9px;
    }

    .shop-page .current-price {
        font-size: 16px;
    }

    .shop-page .product-title {
        font-size: 14px;
    }

    .shop-page .product-buttons .btn {
        padding-inline: 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-loading span {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Keep the shop sort menu above the catalog and let it escape the clipped header. */
.shop-page .shop-header {
    overflow: visible;
    z-index: 3;
}

@media (min-width: 992px) {
    .shop-page .sort-dropdown.open-above .sort-menu {
        top: auto;
        bottom: calc(100% + var(--spacing-sm));
    }
}

/* Reuse the shared control radius across storefront action buttons. */
body :is(
    .btn,
    .premium-btn,
    .cta-btn,
    .hero-cta-btn,
    .form-submit-btn,
    .pagination-btn,
    .checkout-btn,
    .continue-btn,
    .buy-now,
    .empty-state-btn,
    .view-order-btn,
    .retry-btn,
    .pay-now-btn,
    .action-btn,
    .category-explore-btn,
    .continue-shopping-btn,
    .reset-search-btn,
    .view-btn,
    .account-logout-btn,
    .sort-toggle,
    .mobile-filter-toggle
):not(.product-card .btn) {
    /* Product-card buttons are excluded: signature.css gives every grid the
       same pill shape, and this !important rule squared them on some pages. */
    border-radius: var(--ecw-radius-control, 12px) !important;
}

body .product-page .product-actions :is(.add-to-cart, .checkout-now, .buy-now) {
    border-radius: var(--ecw-radius-control, 12px) !important;
}

/* Product-card controls are shaped by signature.css (pill buttons, round
   heart) so the shop matches every other grid; this rule squared them off. */
.shop-page button:not(.shop-search-clear):not(.sig-wish):not(.add-to-cart):not(.buy-now) {
    border-radius: var(--ecw-radius-control, 12px) !important;
}

.shop-page .shop-search-clear {
    border-radius: 50% !important;
}