/* ========================================================================
   Product Hero Slider – Frontend Styles
   ======================================================================== */

/* ── Google Font ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Reset / Base ─────────────────────────────────────── */
.phs-slider,
.phs-slider *,
.phs-slider *::before,
.phs-slider *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.phs-slider {
    --phs-accent: #2563eb;
    --phs-accent-light: #2563eb1a;
    --phs-accent-mid: #2563eb33;
    --phs-bg: #f5f6fa;
    --phs-bg-card: #ffffff;
    --phs-text: #1e293b;
    --phs-text-muted: #94a3b8;
    --phs-radius: 20px;
    --phs-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--phs-font);
    overflow: hidden;
    border-radius: var(--phs-radius);
    background: var(--phs-bg);
}

/* ── Track ────────────────────────────────────────────── */
.phs-slider__track {
    position: relative;
    width: 100%;
    min-height: 480px;
}

/* ── Slide ────────────────────────────────────────────── */
.phs-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px 56px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.65s;
    background: var(--phs-bg);
}

.phs-slide--active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* ── Decorative corners ───────────────────────────────── */
.phs-deco {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.phs-deco--tl {
    top: 16px;
    left: 16px;
    border-top: 2px solid var(--phs-accent-mid);
    border-left: 2px solid var(--phs-accent-mid);
    border-radius: 4px 0 0 0;
}

.phs-deco--br {
    bottom: 16px;
    right: 16px;
    border-bottom: 2px solid var(--phs-accent-mid);
    border-right: 2px solid var(--phs-accent-mid);
    border-radius: 0 0 4px 0;
}

/* ── Image area ───────────────────────────────────────── */
.phs-slide__image-area {
    position: relative;
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

/* ── Concentric circles ───────────────────────────────── */
.phs-circles {
    position: absolute;
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phs-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--phs-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phs-circle--1 {
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

.phs-circle--2 {
    width: 75%;
    height: 75%;
    opacity: 0.18;
}

.phs-circle--3 {
    width: 50%;
    height: 50%;
    opacity: 0.25;
    border-style: dashed;
}

/* Floating dot */
.phs-floating-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--phs-accent);
    border-radius: 50%;
    top: 5%;
    right: 15%;
    animation: phs-float 3s ease-in-out infinite;
    box-shadow: 0 0 12px var(--phs-accent-mid);
}

@keyframes phs-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Product image ────────────────────────────────────── */
.phs-slide__product-img {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 340px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    animation: phs-img-enter 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.phs-slide--active .phs-slide__product-img {
    animation: phs-img-enter 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes phs-img-enter {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ── Badges ───────────────────────────────────────────── */
.phs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 20px;
    white-space: nowrap;
}

.phs-badge--category {
    position: absolute;
    top: 10px;
    right: 0;
    z-index: 3;
    padding: 6px 16px;
    background: var(--phs-accent);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px var(--phs-accent-mid);
}

.phs-badge--delivery {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    padding: 8px 16px;
    background: var(--phs-bg-card);
    color: var(--phs-text);
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 12px;
}

.phs-badge--delivery .phs-icon {
    color: var(--phs-accent);
}

.phs-badge--status {
    padding: 8px 18px;
    background: var(--phs-accent-light);
    color: var(--phs-accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.phs-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--phs-accent);
    animation: phs-pulse 2s ease-in-out infinite;
}

@keyframes phs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Content area ─────────────────────────────────────── */
.phs-slide__content {
    flex: 1;
    padding-left: 32px;
    animation: phs-content-enter 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.15s both;
}

.phs-slide--active .phs-slide__content {
    animation: phs-content-enter 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.15s both;
}

@keyframes phs-content-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Title ────────────────────────────────────────────── */
.phs-slide__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--phs-text);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* ── Specs ────────────────────────────────────────────── */
.phs-slide__specs {
    font-size: 14px;
    color: var(--phs-text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* ── Price ────────────────────────────────────────────── */
.phs-slide__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 24px;
}

.phs-slide__price-value {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--phs-accent);
    letter-spacing: -0.01em;
}

.phs-slide__price-currency {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--phs-accent);
}

.phs-slide__price-suffix {
    font-size: 13px;
    font-weight: 500;
    color: var(--phs-text-muted);
    text-transform: uppercase;
}

/* ── Buttons ──────────────────────────────────────────── */
.phs-slide__buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.phs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--phs-font);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.phs-btn--primary {
    background: var(--phs-accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--phs-accent-mid);
}

.phs-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--phs-accent-mid);
    filter: brightness(1.08);
}

.phs-btn--secondary {
    background: transparent;
    color: var(--phs-text);
    border: 1.5px solid #d1d5db;
}

.phs-btn--secondary:hover {
    border-color: var(--phs-accent);
    color: var(--phs-accent);
    background: var(--phs-accent-light);
    transform: translateY(-2px);
}

.phs-btn__icon {
    flex-shrink: 0;
}

.phs-btn__arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.phs-btn--primary:hover .phs-btn__arrow {
    transform: translateX(3px);
}

/* ── Breadcrumb ───────────────────────────────────────── */
.phs-slide__breadcrumb {
    font-size: 12px;
    font-weight: 500;
    color: var(--phs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Dot navigation ───────────────────────────────────── */
.phs-slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 24px;
    position: relative;
    z-index: 10;
}

.phs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0;
}

.phs-dot--active {
    width: 28px;
    border-radius: 6px;
    background: var(--phs-accent);
    box-shadow: 0 2px 8px var(--phs-accent-mid);
}

.phs-dot:hover:not(.phs-dot--active) {
    background: var(--phs-accent-mid);
    transform: scale(1.2);
}

/* ── Grid pattern (subtle background) ─────────────────── */
.phs-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, var(--phs-accent) 0.6px, transparent 0.6px);
    background-size: 32px 32px;
    opacity: 0.03;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .phs-slide {
        flex-direction: column;
        padding: 32px 28px;
        text-align: center;
    }

    .phs-slide__image-area {
        flex: none;
        width: 100%;
        min-height: 260px;
        margin-bottom: 20px;
    }

    .phs-circles {
        width: 240px;
        height: 240px;
    }

    .phs-slide__product-img {
        max-height: 220px;
    }

    .phs-slide__content {
        padding-left: 0;
    }

    .phs-slide__buttons {
        justify-content: center;
    }

    .phs-badge--category {
        top: 0;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .phs-badge--delivery {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }

    .phs-slide__price {
        justify-content: center;
    }

    .phs-slide__breadcrumb {
        display: block;
        text-align: center;
    }

    .phs-slider__track {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .phs-slide {
        padding: 24px 16px;
    }

    .phs-slide__title {
        font-size: 24px;
    }

    .phs-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .phs-circles {
        width: 180px;
        height: 180px;
    }

    .phs-slide__product-img {
        max-height: 160px;
    }
}
