/* Variables are defined in style.css :root */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow { max-width: 800px; }

/* ── Hero Slider ─────────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 280px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ── Intro Section ───────────────────────────────── */
.intro-section { padding: 80px 0; }

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.intro-left {
    border-right: 4px solid var(--areco-border);
    padding-right: 40px;
}

.intro-left h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--areco-dark);
}

.intro-right h3 { color: var(--areco-blue); margin-bottom: 20px; }
.intro-right p  { color: var(--text-gray); margin-bottom: 15px; }

/* ── Category Grid ───────────────────────────────── */
.category-grid { margin-bottom: 60px; }

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    text-decoration: none;
    background: #000;
    transition: transform 0.3s ease;
    display: block;
}

.cat-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cat-label {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card:hover { transform: translateY(-5px); }

/* ── Featured Products Section ───────────────────── */
.featured-products-section {
    padding: 60px 0;
}

.featured-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.featured-products-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--areco-dark);
    margin: 0;
}

.fp-view-all {
    color: var(--areco-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.fp-view-all:hover { text-decoration: underline; }

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fp-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.fp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.fp-card:hover .fp-card__img img { transform: scale(1.05); }

.fp-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.fp-card__sku {
    font-size: 11px;
    color: var(--text-gray);
}

.fp-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--areco-dark);
    line-height: 1.4;
    margin: 0;
    min-height: 40px;
}

.fp-card__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--areco-blue);
    margin-top: auto;
    padding-top: 8px;
    min-height: 1.4em;
}

.fp-card__btn {
    display: block;
    text-align: center;
    background: var(--areco-blue);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: opacity 0.2s ease;
}

.fp-card:hover .fp-card__btn { opacity: 0.85; }

.fp-carousel-wrap { position: relative; }

/* Nav arrows hidden on desktop/tablet — shown only via mobile media query below */
.fp-nav { display: none; }

/* ── Quote Section ───────────────────────────────── */
.quote-section {
    background-color: var(--areco-blue);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.quote-header h2 { font-size: 32px; margin: 10px 0; }

.custom-quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.custom-quote-form input,
.custom-quote-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.custom-quote-form input::placeholder,
.custom-quote-form textarea::placeholder {
    color: #fff;
    opacity: 1;
}

.custom-quote-form input:focus,
.custom-quote-form textarea:focus {
    outline: none;
    border-bottom-color: #fff !important;
}

.btn-submit {
    background: #fff;
    color: var(--areco-blue);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.quote-msg {
    font-size: 15px;
    min-height: 24px;
    padding: 4px 0;
}

.quote-msg.success { color: #d4f5d4; }
.quote-msg.error   { color: #ffe0e0; }

/* ── Trust Section ───────────────────────────────── */
.trust-section { padding: 60px 0; text-align: center; }

.trust-title { color: var(--areco-blue); margin-bottom: 40px; }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item { border-right: 1px solid #eee; padding: 0 10px; }
.trust-item:last-child { border-right: none; }
.trust-item img { margin-bottom: 12px; }
.trust-item h4 { color: var(--areco-blue); font-size: 16px; margin-bottom: 5px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 992px) {
    .intro-grid              { grid-template-columns: 1fr 1fr; gap: 30px; }
    .grid-4-cols             { grid-template-columns: 1fr 1fr; }
    .trust-grid              { grid-template-columns: 1fr 1fr; }
    .featured-products-grid  { grid-template-columns: 1fr 1fr; }

    .intro-left {
        border-right: none;
        border-bottom: 4px solid var(--areco-border);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .trust-item { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .trust-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .intro-section { padding: 50px 0; }
    .hero-slider { height: 45vh; }
    .quote-header h2 { font-size: 26px; }
}

@media (max-width: 600px) {
    .intro-grid  { grid-template-columns: 1fr; }
    .grid-4-cols { grid-template-columns: 1fr; }
    .trust-grid  { grid-template-columns: 1fr; }

    .intro-section { padding: 40px 0; }
    .intro-left h2 { font-size: 20px; }
    .hero-slider { height: 40vh; }

    .cat-card img { height: 180px; }

    .btn-submit { width: 100%; }

    .trust-item { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; }
    .trust-item:last-child { border-bottom: none; }

    /* Featured products — carousel mode */
    .featured-products-grid {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 12px;
        scrollbar-width: none;
    }

    .featured-products-grid::-webkit-scrollbar { display: none; }

    .fp-card {
        flex: 0 0 calc(50% - 6px);
        scroll-snap-align: start;
        min-width: 0;
    }

    .fp-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 30%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #ddd;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        color: var(--areco-dark);
        padding: 0;
        z-index: 2;
    }

    .fp-nav--prev { left: -2px; }
    .fp-nav--next { right: -2px; }
}

@media (max-width: 380px) {
    .hero-slider { height: 35vh; min-height: 200px; }
    .intro-left h2 { font-size: 18px; }
}
