* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #111;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    height: 78px;
}

.header-logo {
    height: 100%;
    width: auto;
    max-height: 64px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.header-nav a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-nav a:hover,
.header-icons a:hover {
    opacity: 0.8;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #fff;
}

.icon-link svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.cart-icon-link svg {
    transform: scale(1.40) translateY(2px);
}

.page-heading {
    width: 100%;
    text-align: center;
    margin: 10 0 16px;
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero {
    background: #000;
    color: #fff;
}

.hero-logo-wrap {
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 10px;
}

.hero-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 16px 0 40px;
    text-align: center;
}

.hero-tagline {
    margin: 0;
    font-size: 84px;
    line-height: 1;
    font-weight: 700;
    font-family: 'Dancing Script', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-description {
    margin: 0;
    font-size: 24px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-section {
    background: #efefef;
    padding: 20px 0;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    align-items: center;
}

.guide-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.search-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-title {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.search-form select {
    width: 100%;
    height: 34px;
    border: 1px solid #cfcfcf;
    background: #fff;
    padding: 0 16px;
    font-size: 16px;
    color: #111;
    outline: none;
}

.search-form select:disabled {
    color: #888;
    background: #f8f8f8;
}

.section {
    padding: 56px 0;
}

.section-heading {
    margin: 0 0 24px;
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    aspect-ratio: 4 / 5.35;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    container-type: inline-size;
}

.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.product-image-wrap .brand-logo-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    width: 20%;
    height: 20%;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-image-placeholder {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #d10000;
    color: #fff;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 2cqw, 8px);
    padding: clamp(8px, 3cqw, 14px);
}

.product-brand {
    font-size: clamp(9px, 3cqw, 12px);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-name {
    font-size: clamp(14px, 5cqw, 18px);
    font-weight: 700;
    line-height: 1.2;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: clamp(6px, 2.5cqw, 10px);
    flex-wrap: wrap;
}

.sale-price {
    font-size: clamp(18px, 8cqw, 28px);
    font-weight: 800;
    line-height: 1;
}

.original-price {
    font-size: clamp(11px, 3.5cqw, 14px);
    color: #777;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: clamp(6px, 2.5cqw, 10px);
    margin-top: 0;
    padding-top: 0;
}

.product-actions a {
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(28px, 10cqw, 42px);
    padding: 0 clamp(8px, 3.5cqw, 16px);
    border: 1px solid #111;
    font-size: clamp(9px, 3.2cqw, 13px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: #111;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #111;
}

.empty-message {
    background: #fff;
    border: 1px solid #ddd;
    padding: 24px;
    color: #666;
}

.category-section {
    padding-top: 0;
}

.category-tile {
    position: relative;
    display: block;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #222;
    color: #fff;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--category-tile-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.6);
    transform: scale(1.02);
}

.category-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 280px;
    padding: 28px;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.signup-section {
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.signup-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.signup-heading {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.signup-description {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.signup-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 720px;
}

.signup-action {
    width: 100%;
    max-width: 720px;
}

.signup-message {
    margin: 0 0 10px;
    font-size: 15px;
}

.signup-message-error {
    color: #9f1f1f;
}

.signup-form input {
    height: 48px;
    border: 1px solid #ccc;
    padding: 0 14px;
    font-size: 16px;
    min-width: 0;
    flex: 1;
}

.site-footer {
    background: #000;
    color: #fff;
    padding: 28px 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.footer-copy {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

@media (max-width: 1300px) {
    .specials-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .hero-tagline {
        font-size: 60px;
    }

    .hero-description {
        font-size: 21px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-panel {
        align-items: stretch;
    }

    .specials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .signup-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        min-height: 70px;
    }

    .header-logo-link {
        height: 70px;
    }

    .header-logo {
        max-height: 54px;
    }

    .header-nav {
        gap: 18px;
    }

    .hero-logo-wrap {
        min-height: 24vh;
        padding: 22px 0 10px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 14px 0 36px;
    }

    .hero-tagline {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
    }

    .search-title {
        font-size: 34px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .specials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-label {
        font-size: 34px;
    }

    .signup-form {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .header-nav {
        display: none;
    }

    .header-logo-link {
        height: 64px;
    }

    .header-logo {
        max-height: 48px;
    }

    .header-icons {
        gap: 14px;
    }

    .hero-logo-wrap {
        min-height: auto;
        padding: 18px 0 8px;
    }

    .hero-logo {
        max-width: 320px;
    }

    .hero-content {
        padding: 10px 0 28px;
    }

    .hero-tagline {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
    }

    .search-section,
    .section {
        padding: 40px 0;
    }

    .section-heading,
    .signup-heading,
    .search-title {
        font-size: 28px;
    }

    .specials-grid {
        grid-template-columns: 1fr;
    }

    .product-name {
        min-height: auto;
    }

    .product-actions,
    .signup-form {
        flex-direction: column;
    }

    .category-label {
        min-height: 220px;
        font-size: 30px;
        padding: 20px;
    }

    .site-footer {
        padding: 24px 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    h1, h2 {
    text-align: center;
    }
}
