/* ─── Homepage ───────────────────────────────────────────── */
.hp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section header */
.hp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}
.hp-section-head h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 4px;
}
.hp-section-head p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}
.hp-section-head a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.hp-section-head a:hover { text-decoration: underline; }

/* ── Hero Slider ──────────────────────────────────────────── */
.hp-hero {
    position: relative;
    height: 540px;
    overflow: hidden;
    margin-bottom: 80px;
}
.hp-hero .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}
.hp-hero .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hp-slide-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
.hp-slide-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent, #f59e0b);
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hp-slide-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #fff;
    margin: 0 0 16px;
    max-width: 580px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hp-slide-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 480px;
}
.hp-slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider controls */
.hp-hero-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hp-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s;
}
.hp-dot.active {
    background: #fff;
    width: 24px;
}
.hp-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.hp-hero-arrow:hover { background: rgba(0,0,0,0.5); }
.hp-hero-arrow.prev { left: 24px; }
.hp-hero-arrow.next { right: 24px; }

/* ── Trust Bar ────────────────────────────────────────────── */
.hp-trust { margin-bottom: 80px; }
.hp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-border);
}
.hp-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    background: var(--color-surface);
}
.hp-trust-icon {
    font-size: 26px;
    flex-shrink: 0;
}
.hp-trust-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}
.hp-trust-sub {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ── Categories ───────────────────────────────────────────── */
.hp-categories { margin-bottom: 80px; }
.hp-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.hp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 24px;
    border-radius: 16px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    gap: 10px;
}
.hp-cat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--primary-glow);
}
.hp-cat-icon { font-size: 32px; line-height: 1; }
.hp-cat-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}
.hp-cat-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ── Product Cards ────────────────────────────────────────── */
.hp-products { margin-bottom: 80px; }
.hp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hp-product-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hp-product-card:hover {
    border-color: var(--color-card-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--color-card-shadow-hover);
}
.hp-product-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--color-surface-alt, var(--color-surface));
}
.hp-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hp-product-card:hover .hp-product-img-wrap img { transform: scale(1.04); }
.hp-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}
.hp-wishlist-btn:hover,
.hp-wishlist-btn.active {
    background: rgba(239,68,68,0.1);
    border-color: #ef4444;
    color: #ef4444;
}
.hp-wishlist-btn.active svg { fill: #ef4444; }
.hp-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    z-index: 2;
}
.hp-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.hp-product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hp-product-brand {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-primary);
}
.hp-product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}
.hp-product-rating svg { color: #facc15; }
.hp-product-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
    text-decoration: none;
    display: block;
}
.hp-product-name:hover { color: var(--color-primary); }
.hp-product-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    gap: 8px;
}
.hp-product-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}
.hp-cart-btn {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.hp-cart-btn:hover {
    background: var(--color-primary-hover, var(--color-primary));
    transform: translateY(-1px);
}
.hp-cart-btn:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ── Promo Banner ─────────────────────────────────────────── */
.hp-promo { margin-bottom: 80px; }
.hp-promo-inner {
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: stretch;
    min-height: 260px;
}
.hp-promo-body {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.hp-promo-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent, #f59e0b);
    margin-bottom: 2px;
}
.hp-promo-body h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0;
}
.hp-promo-body p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 440px;
    margin: 0;
}
.hp-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hp-product-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-promo-inner { grid-template-columns: 1fr; }
    .hp-promo-img { height: 220px; order: -1; }
}
@media (max-width: 640px) {
    .hp-hero { height: 420px; }
    .hp-slide-title { font-size: 32px; }
    .hp-slide-desc { font-size: 14px; }
    .hp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-trust-grid { grid-template-columns: 1fr; }
    .hp-promo-body { padding: 32px 24px; }
    .hp-promo-body h2 { font-size: 24px; }
    .hp-hero-arrow { display: none; }
}
