/*
================================================================
||
||  Providential Clover: Store Page Styles (V2 - Complete)
||
================================================================
*/

/* --- 1. Hub-Driven Content Sections --- */

.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
#store-hero-container {
    margin-bottom: 4rem;
}
.store-hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 550px;
    background-size: cover;
    background-position: center 70%;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: #fff;
    overflow: hidden;
}
.store-hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    z-index: 2;
}
.store-hero-link-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
}
.store-hero-content {
    position: relative;
    z-index: 4;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
.store-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.store-hero-content .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}
.store-hero-section:hover .hero-cta {
    transform: translateX(10px);
}

/* Category Showcase Section */
.category-showcase-section {
    padding: 4rem 2rem;
    text-align: center;
}
.category-showcase-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.category-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}
.category-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.category-card:hover .category-card-bg {
    transform: scale(1.05);
}
.category-card-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 80%);
    display: flex;
    align-items: flex-end;
}
.category-card-overlay h3 {
    font-size: 1.5rem;
    margin: 0;
}


/* --- 2. Main Store Section (Filters & Grid) --- */

.store-main-section {
    padding: 4rem 0;
}

.store-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar and main content area */
    gap: 3rem;
}

/* --- 3. Filter Sidebar --- */
.store-sidebar h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.filter-group {
    margin-bottom: 2rem;
}
.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.filter-list label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

/* --- 4. Product Grid Area --- */
.store-grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--text-secondary-color);
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-grid-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--card-bg-color);
    transition: all 0.3s ease;
    position: relative;
}
.product-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.product-grid-card .image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #f5f5f5;
    overflow: hidden;
}
.product-grid-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-grid-card:hover .image-wrapper img {
    transform: scale(1.05);
}
.product-grid-card .details {
    padding: 1.25rem 0;
}
.product-grid-card .details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}
.product-grid-card .details .price {
    font-size: 1rem;
    color: var(--text-secondary-color);
}

.store-grid-footer {
    text-align: center;
    padding-top: 3rem;
}
.no-results-message {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    grid-column: 1 / -1; /* Make it span the full grid width */
}

/* --- 5. Wishlist Button on Cards --- */
.product-card-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease-in-out;
}
.product-grid-card:hover .product-card-wishlist-btn {
    opacity: 1;
    transform: scale(1);
}
.product-card-wishlist-btn .feather-heart {
    color: var(--text-color);
    transition: all 0.2s ease;
}
.product-card-wishlist-btn:hover .feather-heart {
    transform: scale(1.1);
}
.product-card-wishlist-btn.active {
    opacity: 1;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}
.product-card-wishlist-btn.active .feather-heart {
    fill: #fff;
    color: #fff;
}

/* --- 6. Responsive & Dark Mode --- */
@media (max-width: 980px) {
    .store-layout-grid {
        grid-template-columns: 1fr; /* Stack sidebar on top of grid */
    }
    .store-sidebar {
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 2rem;
    }
}

html[data-theme="dark"] .product-grid-card .image-wrapper {
     background-color: #2b2b2b;
}

html[data-theme="dark"] .product-grid-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
}
/*
================================================================
|| >> DARK MODE OVERRIDES (Store Page)
================================================================
*/
html[data-theme="dark"] .category-showcase-section h2,
html[data-theme="dark"] .store-sidebar h3,
html[data-theme="dark"] .filter-group h4 {
    color: var(--text-color);
}

html[data-theme="dark"] .store-grid-controls,
html[data-theme="dark"] .no-results-message {
    color: var(--text-secondary-color);
}

html[data-theme="dark"] .no-results-message {
    border-color: var(--border-color);
}
/*
================================================================
|| >> DUAL COLLECTION SHOWCASE BLOCK
================================================================
*/
.dual-collection-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.dual-collection-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    min-height: 500px;
}

.dual-card {
    border-radius: var(--border-radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.primary-card {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    align-items: flex-end;
}

.secondary-card {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    align-items: flex-end;
}

.dual-card-overlay {
    width: 100%;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 70%);
}

.dual-card-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.primary-card h3 {
    font-size: 2rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.2;
}

.secondary-card h4 {
    font-size: 1.2rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

.cta-card {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary-color);
    align-items: center;
    justify-content: center;
}

.cta-card-content {
    text-align: center;
}

.cta-card i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5px;
}

.cta-card p {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--text-color);
}

/* Dark Mode */
html[data-theme="dark"] .cta-card {
    background-color: var(--card-bg-color);
    border-color: var(--border-color);
    color: var(--text-secondary-color);
}
html[data-theme="dark"] .cta-card p {
    color: var(--text-color);
}
/* In store-styles.css, you can add this at the end of the file */

/*
================================================================
|| >> DUAL COLLECTION SHOWCASE BLOCK
================================================================
*/
.dual-collection-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.dual-collection-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    min-height: 500px;
}

.dual-card {
    border-radius: var(--border-radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.primary-card {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    align-items: flex-end;
}

.secondary-card {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    align-items: flex-end;
}

.dual-card-overlay {
    width: 100%;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 70%);
}

.dual-card-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.primary-card h3 {
    font-size: 2rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.2;
}

.secondary-card h4 {
    font-size: 1.2rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

.cta-card {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary-color);
    align-items: center;
    justify-content: center;
}

.cta-card-content {
    text-align: center;
}

.cta-card i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5px;
}

.cta-card p {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--text-color);
}

/* Dark Mode */
html[data-theme="dark"] .cta-card {
    background-color: var(--card-bg-color);
    border-color: var(--border-color);
    color: var(--text-secondary-color);
}
html[data-theme="dark"] .cta-card p {
    color: var(--text-color);
}
/* In store-styles.css, at the end */

/*
================================================================
|| >> NEW STORE BLOCKS (JULY 2025)
================================================================
*/

/* --- 7. Product Carousel Section --- */
.product-carousel-section {
    padding: 4rem 2rem;
}

.product-carousel-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem; /* For scrollbar */
    scroll-snap-type: x mandatory;
}

.product-carousel-wrapper .carousel-item {
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .product-carousel-wrapper {
        grid-auto-columns: 40%;
    }
}
@media (min-width: 1024px) {
    .product-carousel-wrapper {
        grid-auto-columns: 28%;
    }
}


/* --- 8. Image with Text Section --- */
.image-with-text-section {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
.image-with-text-section .iwt-image-col,
.image-with-text-section .iwt-text-col {
    flex: 1;
    width: 100%;
}
.image-with-text-section .iwt-image-col img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}
.image-with-text-section .iwt-text-col h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 1rem 0;
}
.image-with-text-section .iwt-text-col p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .image-with-text-section {
        flex-direction: row;
        gap: 4rem;
    }
    .image-with-text-section.layout-reversed {
        flex-direction: row-reverse;
    }
}

/* --- 9. Video Showcase Section --- */
.video-showcase-section {
    padding: 4rem 2rem;
}
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Default 16:9 aspect ratio */
    background-color: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}