*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

:root {
    --top-bar-height: 38px;
}

.site-header {
    position: sticky;
    top: var(--top-bar-height);
    z-index: 1100;
    background: #fff;
    transition: top 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: height 0.25s ease;
}

.site-header.scrolled .header-inner {
    height: 64px;
}

.header-logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color, #222);
    position: relative;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-cta .btn-primary {
    padding: 10px 26px;
    font-size: 15px;
    border-radius: 999px;
}

.header-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-search-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.96);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 20px;
    position: relative;
}

.search-form input {
    width: 100%;
    font-size: 28px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 2px solid var(--primary-color);
    outline: none;
    font-family: inherit;
}

.search-form input::placeholder {
    color: #999;
}

.search-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--dark-color, #222);
}


.catalog-section {
    background: #fafafa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 26px 24px 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.product-btn {
    margin-top: auto;
    padding: 12px 26px;
    font-size: 15px;
    border-radius: 999px;
    background: var(--primary-color);
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-nav {
        gap: 22px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    z-index: 1200;
    background: var(--top-bar-bg, var(--primary-color));
    color:  var(--top-bar-fc, var(--primary-color));
    font-size: 16px;
    transition: transform 0.25s ease;
}

.top-bar-hidden {
    transform: translateY(-100%);
}

.top-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-messages {
    width: 100%;
    text-align: center;
}

.top-bar-message {
    display: none;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.top-bar-message:first-child {
    display: inline-block;
}

.header-search-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    padding-top: 35px; 

    transition:
        max-height 0.25s ease,
        opacity 0.2s ease;
}

.site-header.search-visible + .header-search-bar {
    max-height: 120px;
    opacity: 1;
}

.header-search-bar .container {
    padding-top: 12px;
    padding-bottom: 18px;
}

.header-search-bar input {
    width: 100%;
    height: 35px;
    padding: 0 18px;
    font-size: 17px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.2);
    outline: none;
    font-family: inherit;
}

.header-search-bar input:focus {
    border-color: var(--primary-color);
}
/* =========================
   Section Head (Styled)
========================= */

.section-head--styled {
    text-align: center;
    margin: 30px 0 32px;
}

.section-head--styled h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}

.section-head--styled h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    height: 6px;
    background: var(--primary-color);
    border-radius: 3px;
}
.section-head--styled .section-subtitle {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    line-height: 1.6;
}
.products-empty-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.products-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.products-empty-icon {
    font-size: 48px;
    opacity: 0.25;
    margin-bottom: 12px;
}
/* =========================
   Scroll Reveal
========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
