:root {
    --shop-gold: #c8912e;
    --shop-gold-dark: #a87319;
    --shop-gold-soft: #f5c76a;
    --shop-cream: #fff7ea;
    --shop-hero: #f8efe5;
    --shop-ink: #171717;
    --shop-muted: #707070;
    --shop-border: #ece8e1;
    --shop-white: #ffffff;
    --shop-shadow: 0 8px 24px rgba(46, 36, 21, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #fafafa;
    color: var(--shop-ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 32px), 1370px);
    max-width: 1370px;
    margin-inline: auto;
}

.topbar {
    background: #fbf7f0;
    border-bottom: 1px solid #f1e9dc;
    color: #675f55;
    font-size: 12px;
    font-weight: 500;
}

.topbar-inner,
.topbar-group {
    display: flex;
    align-items: center;
}

.topbar-inner {
    min-height: 34px;
    justify-content: space-between;
}

.topbar-group {
    gap: 24px;
}

.topbar-group i {
    margin-right: 6px;
    color: var(--shop-gold);
}

.topbar-links a {
    color: #675f55;
    text-decoration: none;
}

.topbar-links a:hover {
    color: var(--shop-gold-dark);
}

.main-header {
    background: var(--shop-white);
    border-bottom: 1px solid #f3f0eb;
}

.main-header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: 225px minmax(320px, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.shopcart-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--shop-ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    white-space: nowrap;
}

.shopcart-logo > span:last-child > span {
    color: var(--shop-gold);
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: var(--shop-gold);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 14px rgba(200, 145, 46, 0.22);
}

.search-bar {
    width: 100%;
    min-width: 0;
    height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e5dfd5;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    border-color: #d6b477;
    box-shadow: 0 0 0 4px rgba(200, 145, 46, 0.1);
}

.search-icon {
    padding-left: 16px;
    color: #96918a;
}

.search-bar input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px;
    color: var(--shop-ink);
    font-size: 13px;
}

.search-bar input::placeholder {
    color: #9d9891;
}

.search-bar button {
    height: 38px;
    margin-right: 4px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--shop-gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--shop-ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.header-action i {
    color: var(--shop-gold);
    font-size: 19px;
}

.header-action span {
    display: grid;
    gap: 3px;
}

.header-action small {
    color: var(--shop-muted);
    font-size: 10px;
    font-weight: 500;
}

.header-register-link {
    color: var(--shop-ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.header-register-link:hover,
.header-action:hover {
    color: var(--shop-gold-dark);
}

.header-icon-action,
.mobile-nav-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid #e9e4dc;
    border-radius: 10px;
    background: #fff;
    color: var(--shop-ink);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-icon-action:hover {
    border-color: #d6b477;
    color: var(--shop-gold-dark);
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 50px;
    background: var(--shop-gold);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
}

.navigation-row {
    background: #fff;
    border-bottom: 1px solid var(--shop-border);
}

.navigation-inner {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.all-categories-link,
.nav-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #48433c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.all-categories-link {
    gap: 8px;
    padding-right: 28px;
    border-right: 1px solid var(--shop-border);
    color: var(--shop-ink);
    font-weight: 700;
}

.all-categories-link i {
    color: var(--shop-gold);
}

.nav-menu {
    display: flex;
    align-items: stretch;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a::after,
.all-categories-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--shop-gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.all-categories-link:hover,
.all-categories-link.active {
    color: var(--shop-gold-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.all-categories-link:hover::after,
.all-categories-link.active::after {
    transform: scaleX(1);
}

.storefront-main {
    min-height: 50vh;
}

.storefront-alerts {
    padding-top: 18px;
}

.homepage-container {
    padding-top: 24px;
    padding-bottom: 54px;
}

.hero-section {
    min-height: 372px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #f0e3d3;
    border-radius: 16px;
    background: var(--shop-hero);
    box-shadow: 0 12px 34px rgba(100, 71, 30, 0.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 46px 22px 30px 50px;
}

.hero-badge,
.section-kicker {
    color: var(--shop-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 11px;
    border: 1px solid #ead0a1;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.62);
}

.hero-title {
    margin: 0;
    color: var(--shop-ink);
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -2.8px;
    line-height: 1.04;
}

.hero-subtitle {
    max-width: 535px;
    margin: 17px 0 23px;
    color: #6e675f;
    font-size: 14px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.hero-primary-button,
.hero-secondary-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid var(--shop-gold);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary-button {
    background: var(--shop-gold);
    color: #fff;
    box-shadow: 0 8px 18px rgba(200, 145, 46, 0.2);
}

.hero-secondary-button {
    background: rgba(255, 255, 255, 0.45);
    color: var(--shop-gold-dark);
}

.hero-primary-button:hover,
.hero-secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(105, 75, 29, 0.13);
}

.hero-primary-button:hover {
    background: var(--shop-gold-dark);
    color: #fff;
}

.hero-secondary-button:hover {
    background: #fff;
    color: var(--shop-gold-dark);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 30px;
    color: #716a61;
    font-size: 10px;
    font-weight: 600;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-features i {
    color: var(--shop-gold);
}

.hero-dots {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

.hero-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8cbbc;
}

.hero-dots span.active {
    width: 18px;
    border-radius: 10px;
    background: var(--shop-gold);
}

.hero-image {
    align-self: stretch;
    min-width: 0;
    background: var(--shop-hero);
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 372px;
    display: block;
    object-fit: cover;
    object-position: 67% center;
    mix-blend-mode: multiply;
}

.storefront-section {
    padding-top: 48px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 5px 0 0;
    color: var(--shop-ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--shop-gold-dark);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 13px;
}

.category-card {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 12px 8px;
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.025);
    color: var(--shop-ink);
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #dfc99f;
    box-shadow: var(--shop-shadow);
    color: var(--shop-gold-dark);
}

.category-image-wrap {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fbf8f2;
}

.category-card img {
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.category-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #e1cda8;
    box-shadow: 0 12px 28px rgba(58, 43, 20, 0.09);
}

.product-image-wrap {
    height: 188px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 12px 0;
    overflow: hidden;
    border-radius: 9px;
    background: #fbfaf8;
}

.product-image-wrap img {
    max-width: calc(100% - 22px);
    max-height: 166px;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.025);
}

.wishlist-form {
    margin: 0;
}

.wishlist-button {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #7b746a;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wishlist-button:hover {
    transform: scale(1.05);
    border-color: #e0bf85;
    color: var(--shop-gold-dark);
}

.product-card-body {
    padding: 13px 14px 14px;
}

.product-title {
    min-height: 34px;
    display: -webkit-box;
    overflow: hidden;
    color: #28241f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-title:hover {
    color: var(--shop-gold-dark);
}

.rating {
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    color: var(--shop-gold);
    font-size: 10px;
}

.rating strong {
    color: #6a6258;
    font-size: 10px;
}

.rating span {
    color: #a39d95;
}

.product-card-footer {
    min-height: 40px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.product-price {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

.product-price strong {
    color: var(--shop-ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.product-price span {
    color: #aaa49c;
    font-size: 9px;
    text-decoration: line-through;
}

.cart-icon-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid #d6b477;
    border-radius: 8px;
    background: #fff;
    color: var(--shop-gold);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cart-icon-button:hover {
    transform: translateY(-1px);
    background: var(--shop-gold);
    color: #fff;
}

.benefits-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 54px;
    overflow: hidden;
    border: 1px solid #eadfcf;
    border-radius: 14px;
    background: var(--shop-cream);
}

.benefit-item {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 18px;
    border-right: 1px solid #eadfcf;
}

.benefit-item:last-child {
    border-right: 0;
}

.benefit-item > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--shop-gold);
    box-shadow: 0 4px 12px rgba(76, 54, 20, 0.06);
}

.benefit-item div {
    display: grid;
    gap: 4px;
}

.benefit-item strong {
    color: #29241d;
    font-size: 12px;
}

.benefit-item small {
    color: #8a8175;
    font-size: 10px;
}

.empty-storefront-state {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px dashed #dfd6c8;
    border-radius: 12px;
    background: #fff;
    color: var(--shop-muted);
    text-align: center;
    font-size: 13px;
}

.storefront-footer {
    margin-top: 30px;
    border-top: 1px solid var(--shop-border);
    background: #fff;
    color: #5f5951;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 52px;
    padding-top: 48px;
    padding-bottom: 42px;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

.footer-grid h6 {
    margin: 0 0 7px;
    color: var(--shop-ink);
    font-size: 12px;
    font-weight: 800;
}

.footer-grid a:not(.shopcart-logo) {
    color: #797168;
    font-size: 11px;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--shop-gold-dark);
}

.footer-grid p {
    max-width: 315px;
    margin: 14px 0 0;
    color: #8b847c;
    font-size: 11px;
    line-height: 1.7;
}

.footer-grid > div:last-child p {
    margin-top: 0;
}

.footer-seller-link {
    color: var(--shop-gold-dark) !important;
    font-weight: 700;
}

.footer-bottom {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--shop-border);
    color: #9a938a;
    font-size: 10px;
}

.btn-primary,
.bg-primary {
    border-color: var(--shop-gold) !important;
    background-color: var(--shop-gold) !important;
}

.btn-outline-primary {
    border-color: var(--shop-gold) !important;
    color: var(--shop-gold-dark) !important;
}

.btn-outline-primary:hover {
    background: var(--shop-gold) !important;
    color: #fff !important;
}

.text-primary,
.text-success {
    color: var(--shop-gold-dark) !important;
}

.page-link {
    color: var(--shop-gold-dark);
}

.active > .page-link,
.page-link.active {
    border-color: var(--shop-gold);
    background: var(--shop-gold);
}

@media (max-width: 1199px) {
    .main-header-inner {
        grid-template-columns: 190px minmax(280px, 1fr) auto;
        gap: 20px;
    }

    .nav-menu {
        gap: 22px;
    }

    .hero-section {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    }

    .hero-content {
        padding-left: 38px;
    }

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

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

@media (max-width: 991px) {
    .topbar-group:first-child span:last-child,
    .topbar-links a:last-child,
    .header-register-link {
        display: none;
    }

    .main-header-inner {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .search-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .mobile-nav-toggle {
        display: inline-grid;
    }

    .navigation-inner {
        min-height: auto;
        display: block;
    }

    .all-categories-link {
        width: 100%;
        min-height: 46px;
        padding-right: 0;
        border-right: 0;
    }

    .nav-menu {
        display: none;
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 0 0 12px;
        overflow: visible;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        min-height: 38px;
    }

    .hero-section {
        grid-template-columns: 1fr 0.75fr;
    }

    .hero-features {
        display: none;
    }

    .benefits-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-item:nth-child(2) {
        border-right: 0;
    }

    .benefit-item:nth-child(-n+2) {
        border-bottom: 1px solid #eadfcf;
    }

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

@media (max-width: 767px) {
    .container {
        width: min(calc(100% - 22px), 1370px);
    }

    .topbar-group {
        gap: 12px;
    }

    .topbar-links {
        display: none;
    }

    .shopcart-logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .header-action {
        display: none;
    }

    .hero-section {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 34px 24px 28px;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .hero-image {
        display: none;
    }

    .storefront-section {
        padding-top: 38px;
    }

    .section-heading {
        align-items: center;
    }

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

    .product-image-wrap {
        height: 158px;
    }

    .product-image-wrap img {
        max-height: 140px;
    }

    .benefits-strip {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid #eadfcf;
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }
}

@media (max-width: 420px) {
    .topbar {
        font-size: 10px;
    }

    .topbar-links {
        display: none;
    }

    .header-actions {
        gap: 7px;
    }

    .header-icon-action,
    .mobile-nav-toggle {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .search-bar button {
        padding: 0 13px;
    }

    .hero-title {
        font-size: 35px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .category-card {
        min-height: 108px;
    }

    .product-card-body {
        padding: 11px;
    }

    .product-image-wrap {
        height: 140px;
        margin: 9px 9px 0;
    }

    .product-image-wrap img {
        max-height: 122px;
    }
}
