* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--gd-background);
    color: var(--gd-text);
    font: 15px/1.6 Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
summary {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gd-focus);
    outline-offset: 4px;
}

.container {
    max-width: 1320px;
    margin: auto;
    padding: 0 32px;
}

.announcement {
    padding: 8px 16px;
    text-align: center;
    background: var(--gd-secondary);
    color: var(--gd-on-secondary);
    font-size: 11px;
    letter-spacing: 1.6px;
}

.store-header {
    background: var(--gd-surface);
    border-bottom: 1px solid var(--gd-border);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 88px;
}

.wordmark {
    color: var(--gd-secondary);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.wordmark span {
    color: var(--gd-primary);
}

.wordmark i {
    margin-left: 6px;
    color: var(--gd-accent);
    font-size: 20px;
}

.header-row nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
    font-weight: 600;
}

.header-row nav a[aria-current],
.header-row nav a:hover {
    color: var(--gd-primary);
}

.header-note {
    margin-left: auto;
    color: var(--gd-muted);
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    color: var(--gd-muted);
    font-size: 12px;
}

.catalog-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--gd-border);
    border-radius: 24px;
    background: var(--gd-surface);
}

.hero-copy {
    padding: 42px 48px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gd-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-copy h1 {
    max-width: 600px;
    margin-bottom: 18px;
    color: var(--gd-secondary);
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.12;
    letter-spacing: -1.7px;
    overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 460px;
    color: var(--gd-muted);
    font-size: 14px;
}

.text-link {
    display: inline-block;
    padding: 8px 0;
    border-bottom: 1px solid var(--gd-primary);
    color: var(--gd-secondary);
    font-size: 13px;
    font-weight: 700;
}

.hero-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    background: var(--gd-secondary);
    color: var(--gd-on-secondary);
}

.hero-art::before,
.hero-art::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 330px;
    height: 330px;
    border: 1px solid
        color-mix(in srgb, var(--gd-accent) 24%, transparent);
    border-radius: 50%;
}

.hero-art::after {
    top: auto;
    right: auto;
    bottom: -235px;
    left: -80px;
    width: 440px;
    height: 440px;
}

.art-spark {
    position: absolute;
    top: 18%;
    left: 17%;
    color: var(--gd-accent);
    font-size: 32px;
}

.gift-box {
    position: relative;
    width: 108px;
    height: 95px;
    margin-top: 30px;
    background: var(--gd-primary);
    transform: rotate(-9deg);
    box-shadow: 16px 20px 0
        color-mix(in srgb, var(--gd-text) 16%, transparent);
}

.gift-box::after {
    content: "";
    position: absolute;
    left: 44px;
    width: 22px;
    height: 100%;
    background: var(--gd-accent);
}

.gift-lid {
    position: absolute;
    top: 0;
    left: -7px;
    z-index: 1;
    width: 122px;
    height: 24px;
    background: var(--gd-primary-hover);
}

.gift-lid::after {
    content: "";
    position: absolute;
    left: 51px;
    width: 22px;
    height: 24px;
    background: var(--gd-accent);
}

.gift-bow::before,
.gift-bow::after {
    content: "";
    position: absolute;
    top: -32px;
    left: 15px;
    width: 34px;
    height: 24px;
    border: 7px solid var(--gd-accent);
    border-radius: 28px 28px 0 28px;
    transform: rotate(10deg);
}

.gift-bow::after {
    left: 52px;
    transform: scaleX(-1) rotate(10deg);
}

.art-caption {
    position: relative;
    text-align: center;
    font: 21px/1.35 Georgia, serif;
}

.art-caption em {
    color: var(--gd-accent);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0 24px;
}

.catalog-toolbar h2 {
    margin: 0;
    color: var(--gd-secondary);
    font: 26px Georgia, serif;
}

.search-box {
    display: flex;
    align-items: center;
    width: min(460px, 48%);
    padding: 5px;
    border: 1px solid var(--gd-input-border);
    border-radius: 12px;
    background: var(--gd-surface);
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    background: transparent;
}

.search-box button {
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--gd-primary);
    color: var(--gd-on-primary);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.filter-panel {
    border-top: 1px solid var(--gd-border);
    border-bottom: 1px solid var(--gd-border);
}

.filter-panel summary {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    color: var(--gd-secondary);
    font-weight: bold;
    list-style: none;
}

.filter-panel summary::-webkit-details-marker {
    display: none;
}

.filter-panel[open] summary span {
    transform: rotate(45deg);
}

.filter-field {
    margin-bottom: 20px;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: bold;
}

.filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid var(--gd-input-border);
    border-radius: 8px;
    background: var(--gd-surface);
    color: var(--gd-text);
    font-size: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--gd-primary);
    color: var(--gd-on-primary);
    font-size: 13px;
    font-weight: 700;
}

.button:hover,
.search-box button:hover {
    background: var(--gd-primary-hover);
}

.filter-body > .button {
    width: 100%;
}

.reset-link {
    display: block;
    padding: 12px;
    text-align: center;
    text-decoration: underline;
    font-size: 12px;
}

.filter-note {
    margin: 12px 0 0;
    padding: 20px 0;
    border-top: 1px solid var(--gd-border);
    color: var(--gd-muted);
    font-size: 12px;
}

.filter-note em {
    color: var(--gd-primary);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filters:not(:empty) {
    margin-bottom: 18px;
}

.chip {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 30px;
    background: var(--gd-primary-soft);
    color: var(--gd-secondary);
    font-size: 12px;
}

.chip span {
    margin-left: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
}

.product-card {
    min-width: 0;
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border: 1px solid var(--gd-border);
    border-radius: 16px;
    background: var(--gd-surface);
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--gd-primary);
    color: var(--gd-on-primary);
    font-size: 10px;
    letter-spacing: 0.3px;
}

.product-badge.neutral {
    background: var(--gd-secondary);
    color: var(--gd-on-secondary);
}

.image-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gd-border);
    border-radius: 50%;
    background: var(--gd-surface);
    color: var(--gd-secondary);
}

.card-info {
    padding: 14px 2px 0;
}

.brand-name {
    margin-bottom: 6px;
    color: var(--gd-muted);
    font-size: 9px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.card-info h3 {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--gd-secondary);
    font-size: 15px;
    font-weight: 700;
}

.price-row small {
    font-size: 11px;
    font-weight: 400;
}

.price-row del {
    color: var(--gd-muted);
    font-size: 11px;
    font-weight: 400;
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-top: 13px;
    padding: 12px 0;
    border-top: 1px solid var(--gd-border);
    color: var(--gd-primary);
    font-size: 12px;
    font-weight: 700;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: var(--gd-primary-soft);
    color: var(--gd-secondary);
    font: 24px Georgia, serif;
}

.image-placeholder > span:first-child {
    color: var(--gd-primary);
    font-size: 50px;
}

.image-placeholder small {
    margin-top: 12px;
    color: var(--gd-muted);
    font: 11px Arial, sans-serif;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--gd-border);
    font-size: 12px;
}

.pagination a {
    padding: 10px 12px;
    border: 1px solid var(--gd-border);
    border-radius: 8px;
    background: var(--gd-surface);
}

.pagination > span {
    color: var(--gd-muted);
}

.empty-state {
    padding: 60px 24px;
    border: 1px solid var(--gd-border);
    border-radius: 18px;
    background: var(--gd-surface);
    text-align: center;
}

.empty-state > span {
    color: var(--gd-primary);
    font-size: 54px;
}

.empty-state h2 {
    color: var(--gd-secondary);
    font: 30px Georgia, serif;
}

.empty-state p {
    color: var(--gd-muted);
}

.empty-state .text-link {
    display: table;
    margin: 12px auto;
}

.closing-note {
    margin: 64px 0 40px;
    padding: 40px 20px;
    border-top: 1px solid var(--gd-border);
    text-align: center;
}

.closing-note > span {
    color: var(--gd-primary);
    font-size: 24px;
}

.closing-note p {
    margin: 12px 0;
    color: var(--gd-secondary);
    font: 30px/1.3 Georgia, serif;
}

.closing-note em {
    color: var(--gd-primary);
}

.store-footer {
    padding: 28px 0;
    border-top: 1px solid var(--gd-border);
    background: var(--gd-surface);
}

.store-footer .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.store-footer p {
    margin: 0;
    color: var(--gd-muted);
    font-size: 12px;
}

.store-footer small {
    margin-left: auto;
    color: var(--gd-muted);
    font-size: 11px;
}

.error {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 10px;
    background: var(--gd-danger-bg);
    color: var(--gd-danger);
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    display: block;
    padding: 12px;
    background: var(--gd-surface);
}

@media (max-width: 1100px) {
    .header-note {
        display: none;
    }

    .hero-copy {
        padding: 32px;
    }

    .catalog-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

    .product-grid {
        gap: 24px 14px;
    }
}

@media (max-width: 899px) {
    .container {
        padding: 0 20px;
    }

    .catalog-layout {
        display: block;
    }

    .filter-panel {
        margin-bottom: 24px;
        padding: 0 18px;
        border: 1px solid var(--gd-border);
        border-radius: 12px;
        background: var(--gd-surface);
    }

    .filter-body {
        padding-bottom: 16px;
    }

    .filter-note {
        display: none;
    }

    .catalog-hero {
        min-height: 280px;
    }

    .hero-copy {
        padding: 28px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .announcement {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .header-row {
        justify-content: space-between;
        gap: 18px;
        min-height: 72px;
    }

    .wordmark {
        font-size: 25px;
    }

    .header-row nav {
        gap: 14px;
        font-size: 11px;
    }

    .header-row nav a[href="#filters"] {
        display: none;
    }

    .breadcrumb {
        padding: 17px 0;
        font-size: 11px;
    }

    .catalog-hero {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .hero-copy {
        padding: 27px 24px;
    }

    .hero-copy h1 {
        font-size: 39px;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: 13px;
    }

    .hero-art {
        flex-direction: row;
        gap: 32px;
        min-height: 150px;
    }

    .gift-box {
        margin-top: 8px;
        transform: scale(0.7) rotate(-9deg);
    }

    .art-caption {
        font-size: 19px;
        text-align: left;
    }

    .art-spark {
        top: 14%;
        left: 8%;
        font-size: 20px;
    }

    .catalog-toolbar {
        display: block;
        padding: 30px 0 20px;
    }

    .catalog-toolbar h2 {
        font-size: 24px;
    }

    .search-box {
        width: 100%;
        margin-top: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .product-image {
        border-radius: 12px;
    }

    .product-image img {
        padding: 6px;
    }

    .product-badge {
        top: 7px;
        left: 7px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .card-info h3 {
        font-size: 13px;
    }

    .price-row {
        font-size: 14px;
    }

    .brand-name {
        font-size: 8px;
    }

    .closing-note {
        margin-top: 36px;
    }

    .store-footer .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .store-footer p {
        order: 3;
        width: 100%;
    }

    .pagination {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .product-image img {
        transition: none;
    }
}

.cart-page {
    padding-bottom: 60px;
}

.cart-page > h1 {
    color: var(--gd-secondary);
    font: 42px/1.15 Georgia, serif;
    margin-bottom: 28px;
}

.cart-notice {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--gd-success-bg);
    color: var(--gd-success);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--gd-border);
    border-radius: 16px;
    background: var(--gd-surface);
}

.cart-photo {
    display: grid;
    place-items: center;
    width: 120px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gd-primary-soft);
}

.cart-photo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.cart-photo > span {
    font-size: 42px;
    color: var(--gd-primary);
}

.cart-item-body {
    min-width: 0;
}

.cart-item-body h2 {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.cart-item-body p {
    margin-bottom: 9px;
    font-size: 13px;
}

.cart-option {
    color: var(--gd-muted);
}

.cart-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
}

.cart-quantity label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--gd-muted);
}

.cart-quantity > div {
    display: flex;
    gap: 8px;
}

.cart-quantity input {
    width: 68px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--gd-input-border);
    border-radius: 8px;
    background: var(--gd-surface);
    color: var(--gd-text);
}

.cart-quantity button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--gd-border);
    border-radius: 8px;
    background: var(--gd-background);
    color: var(--gd-secondary);
    font-size: 12px;
}

.cart-remove {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--gd-primary);
    text-decoration: underline;
    font-size: 12px;
}

.cart-line-total {
    color: var(--gd-secondary);
    font-weight: 700;
    white-space: nowrap;
}

.cart-summary {
    padding: 26px;
    border: 1px solid var(--gd-border);
    border-radius: 18px;
    background: var(--gd-surface);
}

.cart-summary h2 {
    color: var(--gd-secondary);
    font: 28px Georgia, serif;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gd-border);
    font-size: 13px;
}

.cart-summary-row > :last-child {
    text-align: right;
}

.cart-summary-note {
    margin: 18px 0 0;
    color: var(--gd-muted);
    font-size: 12px;
}

.cart-item-error {
    color: var(--gd-danger);
    font-size: 13px;
}

.product-buy-box {
    max-width: 420px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--gd-border);
    border-radius: 14px;
    background: var(--gd-background);
}

.product-buy-box label {
    display: block;
    margin-bottom: 8px;
}

.product-buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-buy-actions input {
    width: 80px;
    min-height: 46px;
    padding: 10px;
    border: 1px solid var(--gd-input-border);
    border-radius: 8px;
    background: var(--gd-surface);
    color: var(--gd-text);
}

.product-buy-actions button {
    min-height: 46px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: var(--gd-primary);
    color: var(--gd-on-primary);
    font-weight: 700;
}

.product-buy-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 1000px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cart-page > h1 {
        font-size: 34px;
    }

    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .cart-photo {
        width: 80px;
        height: 96px;
    }

    .cart-line-total {
        grid-column: 2;
    }

    .cart-item-body h2 {
        font-size: 14px;
    }

    .cart-summary {
        padding: 20px;
    }
}