/* ========== Homepage Custom Styling ========== */

:root {
    --primary-color: #F5BF42;
    --secondary-color: #121212;
    --accent-color: #E11D48;
    --dark-bg: #1a1a1a;
    --light-text: #fff;
    --muted-text: #999;
}

/* ========== Hero Slider ========== */
.ps-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.ps-slider-item {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
}

.ps-slider-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.ps-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.05) 75%);
    pointer-events: none;
    z-index: 1;
}

.ps-slider-caption.slider-item-header {
    position: absolute;
    left: 6%;
    bottom: 12%;
    top: auto;
    transform: none;
    max-width: 480px;
    text-align: left;
    z-index: 2;
    color: #fff;
}

.ps-slider-caption .slider-item-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.ps-slider-caption .slider-item-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ps-slider-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.ps-slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ps-slider-btn-primary {
    background: var(--primary-color);
    color: #000;
}

.ps-slider-btn-primary:hover {
    background: #e5a800;
    transform: translateY(-2px);
}

.ps-slider-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.ps-slider-btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .ps-slider-item {
        min-height: 300px;
    }
    .ps-slider-caption .slider-item-title {
        font-size: 2rem;
    }
    .ps-slider-caption.slider-item-header {
        left: 5%;
        right: 5%;
        bottom: 8%;
        max-width: none;
    }
}

/* ========== Shop by Category ========== */
.ps-category-section {
    margin: 3rem 0;
}

.ps-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ps-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
}

.ps-section-viewall {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.ps-section-viewall:hover {
    color: #e5a800;
}

.ps-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.ps-category-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    cursor: pointer;
}

.ps-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.ps-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ps-category-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    word-break: break-word;
}

/* ========== Product Grid Sections ========== */
.ps-products-section {
    margin: 3rem 0;
}

.ps-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ps-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ps-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.ps-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.ps-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.ps-product-badge.sale {
    background: var(--accent-color);
    color: #fff;
}

.ps-product-info {
    padding: 1rem;
}

.ps-product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ps-product-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    min-height: 2.8rem;
}

.ps-product-rating {
    font-size: 0.8rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.ps-product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ps-product-price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.ps-product-price-original {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.ps-product-btn {
    width: 100%;
    padding: 8px 12px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ps-product-btn:hover {
    background: #000;
}

/* Flash Sale section styling lives in partials/header.blade.php + the
   flash-sale/showcase.blade.php template (white background, admin-driven
   colours). The old dark-gradient block that used to be here was removed
   because it overrode that white background on the published site. */

/* ========== Testimonials Section ========== */
.ps-testimonials {
    background: #f9f9f9;
    padding: 3rem 0;
    margin: 3rem 0;
}

.ps-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ps-testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ps-testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ps-testimonial-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.ps-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ps-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
}

.ps-testimonial-name {
    font-weight: 600;
    color: #000;
    font-size: 0.95rem;
}

/* ========== FAQ Section ========== */
.ps-faq-section {
    margin: 3rem 0;
}

.ps-faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ps-faq-question {
    padding: 1.25rem;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #000;
    transition: background 0.3s ease;
}

.ps-faq-question:hover {
    background: #f0f0f0;
}

.ps-faq-question.active {
    background: var(--primary-color);
    color: #000;
}

.ps-faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.ps-faq-question.active .ps-faq-icon {
    transform: rotate(180deg);
}

.ps-faq-answer {
    padding: 1.25rem;
    background: #fff;
    color: #666;
    line-height: 1.6;
    display: none;
}

.ps-faq-answer.active {
    display: block;
}

/* ========== Newsletter Section ========== */
.ps-newsletter {
    background: var(--secondary-color);
    color: #fff;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.ps-newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ps-newsletter-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* ========== Footer ========== */
.ps-footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.ps-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ps-footer-section h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ps-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-footer-section li {
    margin-bottom: 0.5rem;
}

.ps-footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ps-footer-section a:hover {
    color: var(--primary-color);
}

.ps-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .ps-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .ps-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .ps-section-title {
        font-size: 1.25rem;
    }

    .ps-slider-caption .slider-item-title {
        font-size: 1.5rem;
    }

    .ps-newsletter {
        padding: 2rem 1rem;
    }

    .ps-footer-content {
        grid-template-columns: 1fr;
    }
}
