/* =====================================================================
   Pages — home, product, blog, contact
   ===================================================================== */

/* ── Hero slider ── */
.hero {
    position: relative;
    background: var(--ink-900);
    overflow: hidden;
    border-radius: 0;
}

.hero-slide {
    display: none;
    padding-block: var(--sp-24);
    min-height: 560px;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide.is-active {
    display: flex;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
            rgba(11, 18, 32, .88) 0%,
            rgba(11, 18, 32, .60) 55%,
            rgba(11, 18, 32, .30) 100%);
}

.hero-slide .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(232, 110, 15, .18);
    color: var(--brand-500);
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--sp-4);
}

.hero-content h1 {
    color: #fff;
    margin-bottom: var(--sp-4);
    line-height: var(--lh-tight);
}

.hero-content p {
    color: rgba(255, 255, 255, .82);
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-6);
    line-height: var(--lh-base);
}

.hero-actions {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    bottom: var(--sp-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--sp-2);
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    border: 0;
    cursor: pointer;
    transition: all var(--dur-fast);
}

.hero-dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: var(--brand-500);
}

@media (max-width: 720px) {
    .hero-slide {
        min-height: 440px;
        padding-block: var(--sp-16);
    }

    .hero-content h1 {
        font-size: var(--fs-3xl);
    }

    .hero-content p {
        font-size: var(--fs-base);
    }

    .hero-actions .btn {
        flex: 1;
    }
}

/* ── Product card ── */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--dur-base) var(--ease-out);
    height: 100%;
}

.product-card:hover {
    border-color: var(--brand-100);
    box-shadow: var(--shadow-3);
    transform: translateY(-3px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--paper-2);
    overflow: hidden;
    display: block;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-card-badge {
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-3);
    z-index: 1;
}

.product-card-body {
    padding: var(--sp-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.product-card-category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--brand-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-card-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    color: var(--ink-900);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
}

.product-card-title a:hover {
    color: var(--brand-600);
}

.product-card-desc {
    font-size: var(--fs-sm);
    color: var(--ink-400);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--ink-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
}

/* ── Product detail ── */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--sp-12);
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
}

@media (max-width: 900px) {
    .product-gallery {
        position: static;
    }
}

.product-gallery-main {
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: var(--sp-3);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-2);
}

.product-gallery-thumbs img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--dur-fast);
    background: var(--paper-2);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.is-active {
    border-color: var(--brand-500);
}

.product-info h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--sp-3);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--ink-400);
    margin-bottom: var(--sp-5);
}

.product-meta strong {
    color: var(--ink-700);
    font-weight: var(--fw-medium);
}

.product-price-block {
    padding: var(--sp-4);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--r-md);
    margin-block: var(--sp-5);
}

.product-price-block .price-label {
    font-size: var(--fs-xs);
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-2);
    display: block;
    font-weight: var(--fw-medium);
}

.product-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-block: var(--sp-5);
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }
}

.product-specs {
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-top: var(--sp-6);
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.product-specs th,
.product-specs td {
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    border-bottom: 1px solid var(--ink-50);
}

.product-specs tr:last-child th,
.product-specs tr:last-child td {
    border-bottom: 0;
}

.product-specs th {
    background: var(--paper-2);
    font-weight: var(--fw-medium);
    color: var(--ink-500);
    width: 40%;
}

/* ── Category card ── */
.category-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--ink-100);
    text-decoration: none;
    display: block;
    transition: all var(--dur-base) var(--ease-out);
}

.category-card:hover {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow);
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card-label {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--sp-8) var(--sp-4) var(--sp-4);
    background: linear-gradient(to top, rgba(11, 18, 32, .9), transparent);
    color: #fff;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

/* ── Blog card ── */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--dur-base) var(--ease-out);
}

.blog-card:hover {
    border-color: var(--brand-100);
    box-shadow: var(--shadow-3);
    transform: translateY(-2px);
}

.blog-card-cover {
    aspect-ratio: 16 / 9;
    background: var(--paper-2);
    overflow: hidden;
    display: block;
}

.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow);
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: var(--sp-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.blog-card-meta {
    font-size: var(--fs-xs);
    color: var(--brand-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--fw-medium);
}

.blog-card h3 {
    font-size: var(--fs-lg);
    line-height: var(--lh-snug);
    margin: 0;
}

.blog-card h3 a {
    color: var(--ink-900);
}

.blog-card h3 a:hover {
    color: var(--brand-600);
}

.blog-card p {
    font-size: var(--fs-sm);
    color: var(--ink-400);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Testimonial card ── */
.testimonial-card {
    padding: var(--sp-6);
    background: var(--paper);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    height: 100%;
}

.testimonial-stars {
    color: var(--brand-500);
    font-size: var(--fs-sm);
    letter-spacing: 2px;
}

.testimonial-quote {
    color: var(--ink-700);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    flex: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--ink-50);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-50);
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-semibold);
    flex-shrink: 0;
}

.testimonial-author-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--ink-900);
}

.testimonial-author-meta {
    font-size: var(--fs-xs);
    color: var(--ink-400);
}

/* ── Feature card ── */
.feature-card {
    padding: var(--sp-6);
    background: var(--paper);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    text-align: center;
    transition: all var(--dur-base);
}

.feature-card:hover {
    border-color: var(--brand-100);
    box-shadow: var(--shadow-2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--brand-50);
    color: var(--brand-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--sp-4);
}

.feature-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-2);
}

.feature-card p {
    font-size: var(--fs-sm);
    color: var(--ink-400);
    margin: 0;
}

/* ── CTA banner ── */
.cta-banner {
    padding: var(--sp-12);
    background: var(--ink-900);
    border-radius: var(--r-lg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.cta-banner h2 {
    color: #fff;
    margin: 0 0 var(--sp-2);
}

.cta-banner p {
    color: rgba(255, 255, 255, .7);
    margin: 0;
}

@media (max-width: 720px) {
    .cta-banner {
        padding: var(--sp-8);
        flex-direction: column;
        text-align: center;
    }
}

/* ── Contact form ── */
.contact-form-wrap {
    background: var(--paper);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: var(--sp-8);
}

@media (max-width: 640px) {
    .contact-form-wrap {
        padding: var(--sp-5);
    }
}

/* ── Filters bar ── */
.filter-bar {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-6);
}

.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 240px;
}

@media (max-width: 640px) {
    .filter-bar {
        flex-direction: column;
        gap: var(--sp-2);
    }

    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: none;
    }
}
