/* ================================================
   PINGGALAXY HOMEPAGE
   ================================================ */

/* Scoped reset - only affects .pg-home and its children */
.pg-home {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--pg-dark);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.pg-home *,
.pg-home *::before,
.pg-home *::after {
    box-sizing: border-box;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--pg-bg-page) 0%, #e8e8ed 100%);
    display: flex;
    align-items: center;
    padding: 80px 5% 60px 5%;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--pg-dark);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content .tagline {
    font-size: 1.4rem;
    color: var(--pg-grey);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-content .product-name {
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--pg-grey-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--pg-white);
    color: var(--pg-dark);
    text-decoration: none;
    border: 2px solid var(--pg-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--pg-dark);
    color: var(--pg-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    color: var(--pg-grey);
    text-decoration: none;
    border: 2px solid var(--pg-border-medium);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    border-color: var(--pg-dark);
    color: var(--pg-dark);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 500px;
    background: linear-gradient(135deg, var(--pg-border-medium) 0%, var(--pg-grey-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ================================================
   FEATURED PRODUCTS - Grid Section
   ================================================ */
.featured-products {
    width: 100%;
    padding: 100px 5% 40px;
    background: var(--pg-white);
}

.featured-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--pg-grey-light);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--pg-dark);
    letter-spacing: -0.02em;
}

/* Section separators — centered lines before/after titles */
.pg-home section h2 {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.pg-home section h2::before,
.pg-home section h2::after {
    content: '';
    flex: 0 0 60px;
    height: 1px;
    background: var(--pg-border);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--pg-white);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--pg-bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-grey-light);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

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

.product-info {
    padding: 24px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pg-dark);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 1rem;
    color: var(--pg-grey);
}

/* ================================================
   FEATURED PRODUCTS SECTION
   ================================================ */
.pg-featured-section {
    display: block;
    width: 100%;
    background: var(--pg-white);
    padding: 0 5% 80px;
}

.pg-featured-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pg-featured-container > h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pg-dark);
    margin: 0 0 40px;
    text-align: center;
}

.pg-featured-row {
    margin-bottom: 48px;
}

.pg-featured-row:last-of-type {
    margin-bottom: 40px;
}

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

.pg-featured-row-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pg-dark);
    margin: 0;
}

.pg-featured-row-header h3 a {
    color: inherit;
    text-decoration: none;
}

.pg-featured-row-header h3 a:hover {
    color: var(--pg-galaxy);
}

.pg-featured-nav {
    display: flex;
    gap: 10px;
}

.pg-featured-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--pg-dark);
    border-radius: 50%;
    background: transparent;
    color: var(--pg-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pg-featured-btn:hover {
    background: var(--pg-dark);
    color: var(--pg-white);
}

.pg-featured-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.pg-featured-track-wrapper {
    overflow: hidden;
    position: relative;
}

.pg-featured-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.pg-featured-card {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
    transition: transform 0.2s ease;
}

.pg-featured-card:hover {
    transform: translateY(-2px);
}

.pg-featured-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pg-featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pg-featured-card:hover .pg-featured-card-img img {
    transform: scale(1.05);
}

.pg-featured-card-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pg-featured-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--pg-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pg-featured-card-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-price);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-featured-card-price del {
    font-size: 12px;
    font-weight: 400;
    color: var(--pg-grey-light);
    text-decoration: line-through;
}

.pg-featured-card-price ins {
    text-decoration: none;
    color: var(--pg-price);
}

.pg-featured-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    font-size: 15px;
    font-weight: 500;
    color: var(--pg-galaxy);
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}

.pg-featured-section .pg-featured-container {
    display: flex;
    flex-direction: column;
}

.pg-featured-see-all:hover {
    color: var(--pg-galaxy-hover);
}

/* ================================================
   TRUST SECTION
   ================================================ */
.trust-section {
    display: block;
    width: 100%;
    background: var(--pg-bg-page);
    padding: 80px 5%;
}

.trust-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.trust-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 40px;
    color: var(--pg-dark);
}

.trust-subtitle {
    font-size: 1rem;
    color: var(--pg-grey);
    margin: 0 0 48px;
    line-height: 1.5;
}

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

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pg-galaxy-light-bg);
    border-radius: 50%;
    color: var(--pg-galaxy);
    transition: transform 0.2s ease, background 0.2s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.08);
    background: var(--pg-galaxy-light-hover);
}

.trust-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--pg-dark);
    line-height: 1.3;
}

.trust-desc {
    font-size: 13px;
    color: var(--pg-grey);
    line-height: 1.5;
    max-width: 200px;
}

/* ================================================
   REVIEWS SECTION
   ================================================ */
.pg-home-reviews {
    padding: 64px 5%;
    background: var(--pg-white);
}

.pg-home-reviews-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.pg-home-reviews-inner h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--pg-dark);
    margin: 0 0 10px;
}

.pg-home-reviews-inner p {
    font-size: 1rem;
    color: var(--pg-grey);
    margin: 0 0 20px;
    line-height: 1.5;
}

.pg-home-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--pg-galaxy);
    text-decoration: none;
    transition: opacity 0.2s;
}

.pg-home-reviews-link:hover {
    opacity: 0.75;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

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

    .pg-featured-card {
        flex: 0 0 calc((100% - 48px) / 4);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 5% 40px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.1rem;
    }

    .hero-image-placeholder {
        height: 350px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pg-featured-section {
        padding: 60px 5%;
    }

    .pg-featured-container > h2 {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .pg-featured-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }

    .pg-featured-row {
        margin-bottom: 36px;
    }

    .trust-container h2 {
        font-size: 1.5rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 540px) {
    .pg-featured-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .pg-featured-row-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
