/* ===================================================
   EQUIPMENT DETAIL PAGE  Specific Styles
   Inherits base from home.css
   =================================================== */

/* ---------- Breadcrumb ---------- */
.ed-breadcrumb {
    padding: 16px 0;
    background: var(--hp-card-bg);
    border-bottom: 1px solid var(--hp-border);
}

.ed-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--hp-text-muted);
}

.ed-breadcrumb a {
    color: var(--hp-accent);
    font-weight: 500;
    transition: opacity 0.2s;
}

.ed-breadcrumb a:hover {
    opacity: 0.8;
}

.ed-breadcrumb i.fa-chevron-right {
    font-size: 0.65rem;
    color: var(--hp-text-muted);
}

/* ---------- Equipment Hero ---------- */
.ed-hero {
    padding: 48px 0;
    background: var(--hp-bg);
}

.ed-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ed-hero-image {
    border-radius: 20px;
    overflow: hidden;
    background: var(--hp-green);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ed-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-hero-image .ed-no-image {
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}

.ed-hero-info {
    padding-top: 8px;
}

.ed-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--hp-green);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.ed-hero-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hp-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.ed-hero-info .ed-description {
    font-size: 1.05rem;
    color: var(--hp-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ed-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 32px;
}

.ed-price-block .ed-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--hp-accent);
}

.ed-price-block .ed-price-unit {
    font-size: 1rem;
    color: var(--hp-text-muted);
    font-weight: 500;
}

.ed-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.ed-availability.available {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.ed-availability.unavailable {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.ed-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ed-actions a,
.ed-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.ed-btn-primary {
    background: var(--hp-accent);
    color: #fff;
}

.ed-btn-primary:hover {
    background: var(--hp-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 144, 64, 0.25);
}

.ed-btn-secondary {
    background: var(--hp-card-bg);
    color: var(--hp-text);
    border: 1px solid var(--hp-border) !important;
}

.ed-btn-secondary:hover {
    background: var(--hp-primary);
    color: #fff;
    border-color: var(--hp-primary) !important;
}

/* ---------- Gallery Section ---------- */
.ed-gallery-section {
    padding: 64px 0;
    border-top: 1px solid var(--hp-border);
}

.ed-gallery-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.ed-gallery-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp-primary);
    margin-bottom: 8px;
}

.ed-gallery-header p {
    color: var(--hp-text-muted);
    font-size: 0.95rem;
}

.ed-gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ed-gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--hp-green);
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ed-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.ed-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-gallery-card .ed-gallery-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 2.5rem;
}

.ed-gallery-card .ed-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- Related Items ---------- */
.ed-related-section {
    padding: 64px 0;
    background: var(--hp-card-bg);
    border-top: 1px solid var(--hp-border);
}

.ed-related-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ed-related-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp-primary);
}

.ed-related-header a {
    color: var(--hp-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.ed-related-header a:hover {
    opacity: 0.8;
}

.ed-related-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Reuse rp-card styles for related items */

/* ---------- Contact CTA ---------- */
.ed-contact-section {
    padding: 64px 0;
    border-top: 1px solid var(--hp-border);
}

.ed-contact-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.ed-contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp-primary);
    margin-bottom: 8px;
}

.ed-contact-info p {
    color: var(--hp-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.ed-contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ed-contact-detail i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--hp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ed-contact-detail span {
    font-size: 0.95rem;
    color: var(--hp-text);
}

.ed-contact-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hp-primary);
    margin-bottom: 20px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
    .ed-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ed-hero-image {
        height: 300px;
    }

    .ed-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .ed-contact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .ed-hero {
        padding: 32px 0;
    }

    .ed-hero-image {
        height: 240px;
    }

    .ed-hero-info h1 {
        font-size: 1.6rem;
    }

    .ed-price-block .ed-price {
        font-size: 1.8rem;
    }

    .ed-actions {
        flex-direction: column;
    }

    .ed-actions a,
    .ed-actions button {
        width: 100%;
        justify-content: center;
    }

    .ed-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ed-gallery-card {
        height: 150px;
    }

    .ed-gallery-section,
    .ed-related-section,
    .ed-contact-section {
        padding: 40px 0;
    }

    .ed-related-grid {
        grid-template-columns: 1fr;
    }

    .ed-related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
