/* ==========================================================================
   Parker Brand – Homepage Styles
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --hp-red: #E31E24;
    --hp-red-dark: #CC2D2D;
    --hp-navy: #2F4858;
    --hp-green: #5B8C2A;
    --hp-green-dark: #2D5A1E;
    --hp-green-hover: #4A7322;
    --hp-teal: #1B5E6B;
    --hp-gold: #F5A623;
    --hp-grey-bg: #F5F5F5;
    --hp-card-border: #E8E8E8;
    --hp-text: #333333;
    --hp-text-light: #666666;
    --hp-text-muted: #999999;
    --hp-blog-tag: #888888;
    --hp-radius: 8px;
    --hp-radius-sm: 4px;
    --hp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --hp-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --hp-max-width: var(--site-max-width, 1400px);
}

/* ---------- 0. Hide Legacy Homepage ---------- */
/* The old homepage template (about-us.phtml) renders inside .home-page-wrapper
   via the CMS page content in the database. Hide it so only the new layout XML
   blocks (hp-* sections) are visible. */
.home-page-wrapper,
.cms-index-index .std {
    display: none !important;
}

/* Make homepage main container full-width so hero banner spans edge-to-edge.
   Individual sections use .hp-section to constrain their own max-width. */
.cms-index-index .main-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.cms-index-index .main-container > .main {
    padding: 0;
}
.cms-index-index .col-main {
    padding: 0;
}

/* ---------- 2. Hero Banner / Slider ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--hp-navy);
}

.hero-slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.hero-slider__slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slider__overlay {
    position: relative;
    z-index: 2;
    max-width: var(--hp-max-width);
    margin: 0 auto;
    padding: 60px 40px;
    width: 100%;
}

.hero-slider__content {
    max-width: 500px;
    color: #fff;
}

.hero-slider__badge {
    display: inline-block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-slider__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero-slider__text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-slider__cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--hp-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--hp-radius-sm);
    transition: background 0.15s;
    text-transform: uppercase;
}

.hero-slider__cta:hover {
    background: var(--hp-red-dark);
}

.hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.15s;
    backdrop-filter: blur(4px);
    padding: 0;
}

.hero-slider__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slider__nav--prev { left: 16px; }
.hero-slider__nav--next { right: 16px; }

.hero-slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: content-box;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s;
}

.hero-slider__dot--active {
    background: #fff;
}

/* ---------- 3. Section Container ---------- */
.hp-section {
    max-width: var(--hp-max-width);
    margin: 0 auto;
    padding: 24px 0;
}

.hp-section--flush {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.hp-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.hp-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.hp-section__title--white {
    color: #fff;
}

.hp-section__title--center {
    text-align: center;
    width: 100%;
}

/* ---------- 4. Carousel Controls ---------- */
.hp-carousel-nav {
    display: flex;
    gap: 8px;
}

.hp-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hp-card-border);
    background: #fff;
    color: var(--hp-text-light);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.hp-carousel-btn:hover {
    background: var(--hp-grey-bg);
    border-color: #CCC;
}

.hp-carousel-btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- 5. Product Carousel ---------- */
.hp-product-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 16px;
    margin: -8px 0;
}

.hp-product-carousel::-webkit-scrollbar {
    display: none;
}

/* ---------- 6. Product Card ---------- */
.hp-product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--hp-card-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.hp-product-card:hover {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.35);
    border-color: transparent;
}

.hp-product-card__image-wrap {
    position: relative;
    padding: 12px;
    background: #fff;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hp-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--hp-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 1;
}

/* Red diagonal ribbon badge for Featured Products */
.hp-section--featured .hp-product-card__badge {
    top: 12px;
    left: -36px;
    background: #D52A34;
    padding: 4px 36px;
    border-radius: 0;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-align: center;
    transform: rotate(-45deg);
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hp-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.hp-product-card:hover .hp-product-card__image {
    transform: scale(1.08);
}

.hp-product-card__body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-product-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
    text-decoration: none;
}

.hp-product-card__name:hover {
    color: var(--hp-green);
}

/* Star Rating */
.hp-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.hp-stars {
    display: flex;
    gap: 1px;
    color: var(--hp-gold);
    font-size: 14px;
}

.hp-stars svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hp-stars__count {
    font-size: 11px;
    color: var(--hp-text-muted);
}

/* Pricing */
.hp-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    margin-top: auto;
}

.hp-product-card__current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-green-dark);
}

.hp-product-card__vat {
    font-size: 11px;
    color: var(--hp-text-muted);
    font-weight: 400;
}

.hp-product-card__old-price {
    font-size: 13px;
    color: var(--hp-text-muted);
    text-decoration: line-through;
}

.hp-product-card__atc {
    width: 100%;
    padding: 10px;
    background: var(--hp-green);
    color: #fff;
    border: none;
    border-radius: var(--hp-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.hp-product-card__atc:hover {
    background: var(--hp-green-hover);
    color: #fff;
}

/* ---------- 7. Featured Categories ---------- */
.hp-featured-cats {
    background: var(--hp-navy);
    padding: 48px 0;
}

.hp-featured-cats__inner {
    max-width: var(--hp-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hp-featured-cats__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

/* Large featured card */
.hp-featured-cats__hero {
    position: relative;
    border-radius: var(--hp-radius);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-row: span 3;
}

.hp-featured-cats__hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-featured-cats__hero-overlay {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.hp-featured-cats__hero-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
}

.hp-featured-cats__hero-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 12px;
}

.hp-featured-cats__hero-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--hp-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--hp-radius-sm);
    transition: background 0.15s;
}

.hp-featured-cats__hero-btn:hover {
    background: var(--hp-green-hover);
}

/* 3x3 small category cards */
.hp-featured-cats__small-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hp-cat-card {
    background: #fff;
    border-radius: var(--hp-radius);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.hp-cat-card:hover {
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-2px);
}

.hp-cat-card__image-wrap {
    background: #F5F5F5;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
}

.hp-cat-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hp-cat-card__name {
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-green);
    text-transform: capitalize;
}

/* ---------- 8. Why Choose Us ---------- */
.hp-why-choose {
    background: #fff;
}

.hp-why-choose__title {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hp-card-border);
    margin-bottom: 24px;
}

.hp-why-choose__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hp-trust-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: var(--hp-navy);
    border: none;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.hp-trust-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hp-trust-card__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-trust-card__icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.hp-trust-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: none;
    margin: 0 0 4px;
}

.hp-trust-card__text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* ---------- 9. Blog Section ---------- */
.hp-blog {
}

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

.hp-blog-card {
    background: #fff;
    border-radius: var(--hp-radius);
    overflow: hidden;
    border: 1px solid var(--hp-card-border);
    transition: box-shadow 0.2s;
}

.hp-blog-card:hover {
    box-shadow: var(--hp-shadow-hover);
}

.hp-blog-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.hp-blog-card__body {
    padding: 16px;
}

.hp-blog-card__tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--hp-blog-tag);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.hp-blog-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-blog-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-red);
    text-decoration: none;
}

.hp-blog-card__link:hover {
    text-decoration: underline;
}

/* ---------- 10. Customer Reviews ---------- */
.hp-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 12px;
    margin-bottom: 28px;
}

.hp-reviews__header .hp-section__title {
    margin: 0;
    padding: 0;
    border: none;
}

.hp-carousel-nav {
    display: flex;
    gap: 8px;
}

.hp-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #D1D5DB;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
    color: #374151;
}

.hp-carousel-btn:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
}

.hp-carousel-btn svg {
    width: 18px;
    height: 18px;
}

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

.hp-review-card {
    background: #F0F7E9;
    border: 2px solid #8BC34A;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.hp-review-card:nth-child(4n) {
    background: #F3EFF5;
    border-color: #9C7CB5;
}

.hp-review-card:hover {
    box-shadow: var(--hp-shadow);
}

.hp-review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.hp-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hp-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.hp-review-card__avatar svg {
    width: 20px;
    height: 20px;
}

.hp-review-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.hp-review-card__location {
    font-size: 13px;
    color: var(--hp-text-muted);
}

.hp-review-card__text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.hp-review-card__stars {
    display: flex;
    gap: 2px;
    color: #F5A623;
}

.hp-review-card__stars svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- 11. Newsletter & 12. Footer ---------- */
/* Moved to footer.css (loaded globally via <default> handle) */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hp-featured-cats__grid {
        grid-template-columns: 1fr;
    }

    .hp-featured-cats__hero {
        grid-row: auto;
        min-height: 280px;
    }

    .hp-featured-cats__small-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

}

@media (max-width: 768px) {
    .hero-slider__slide {
        min-height: 400px;
    }

    .hero-slider__badge {
        font-size: 28px;
    }

    .hero-slider__title {
        font-size: 18px;
    }

    .hero-slider__overlay {
        padding: 30px 20px;
    }

    .hero-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .hp-section {
        padding: 32px 16px;
    }

    .hp-section__title {
        font-size: 20px;
    }

    .hp-product-card {
        flex: 0 0 180px;
    }

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

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

}

@media (max-width: 480px) {
    .hp-why-choose__grid {
        grid-template-columns: 1fr;
    }

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

    .hp-blog__grid {
        grid-template-columns: 1fr;
    }

    .hp-reviews__grid {
        grid-template-columns: 1fr;
    }

    .hp-product-card {
        flex: 0 0 160px;
    }

    .hero-slider__slide {
        min-height: 320px;
    }

    .hero-slider__badge {
        font-size: 22px;
    }

}
