/* ==========================================================================
   Shop Page - Fhemistry
   ========================================================================== */

/* Hero Section */
.shop-hero {
    background: #ffdbdc;
    margin: 0 15px;
    text-align: center;
    padding: 50px 0;
}
.shop-hero h1 {
    font-family: "Beautiful Bloom", serif;
    font-weight: 400;
    font-size: 100px;
    color: #53242C;
    margin: 0;
    line-height: 1.1;
}
.shop-hero p {
    font-family: "Spartan", sans-serif;
    font-size: 14px;
    color: #53242C;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}
@media screen and (max-width: 576px) {
    .shop-hero h1 {
        font-size: 56px;
    }
    .shop-hero p {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

/* Category Filters */
.shop-filters {
    padding: 30px 15px;
    text-align: center;
}
.shop-filters-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.shop-filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #53242C;
    color: #53242C;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}
.shop-filter-btn:hover,
.shop-filter-btn.active {
    background: #53242C;
    color: #fff;
    text-decoration: none;
}
@media screen and (max-width: 576px) {
    .shop-filters {
        padding: 20px 10px;
    }
    .shop-filters-inner {
        gap: 6px;
    }
    .shop-filter-btn {
        padding: 6px 14px;
        font-size: 10px;
    }
}

/* Result Count & Ordering */
.shop-toolbar {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.woocommerce-result-count {
    font-family: "Spartan", sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
}
@media screen and (max-width: 576px) {
    .shop-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
.woocommerce-ordering select {
    font-family: "Spartan", sans-serif;
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #53242C;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2353242C'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
    padding-right: 32px;
}

/* Remove WooCommerce Default Sidebar */
.woocommerce-page .widget-area,
.woocommerce-page #secondary,
.woocommerce-page aside {
    display: none !important;
}

/* Full Width Shop Content */
body.post-type-archive-product .site-content,
body.post-type-archive-product .content-area,
body.tax-product_cat .site-content,
body.tax-product_cat .content-area {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* Products Grid */
.fc-shop-products {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 40px;
}
.fc-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media screen and (max-width: 992px) {
    .fc-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
@media screen and (max-width: 768px) {
    .fc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media screen and (max-width: 576px) {
    .fc-products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Product Card */
.fc-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.fc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(83, 36, 44, 0.12);
}

/* Product Image */
.fc-product-card .fc-product-image {
    position: relative;
    overflow: hidden;
    background: #f9f3f4;
    aspect-ratio: 1;
}
.fc-product-card .fc-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.fc-product-card .fc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fc-product-card:hover .fc-product-image img {
    transform: scale(1.05);
}

/* Sale Badge */
.fc-product-card .fc-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #53242C;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* Quick Add Button */
.fc-product-card .fc-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(83, 36, 44, 0.92);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    z-index: 2;
}
.fc-product-card .fc-quick-add:hover {
    background: #53242C;
}
.fc-product-card:hover .fc-quick-add {
    transform: translateY(0);
}
@media screen and (max-width: 768px) {
    .fc-product-card .fc-product-image {
        aspect-ratio: auto;
    }
    .fc-product-card .fc-product-image img {
        aspect-ratio: 1;
        width: 100%;
        object-fit: cover;
    }
    .fc-product-card .fc-quick-add {
        transform: none;
        position: relative;
        background: #53242C;
        padding: 14px;
        font-size: 12px;
    }
}

/* Product Info */
.fc-product-info {
    padding: 16px;
    text-align: center;
}
.fc-product-info .fc-product-category {
    font-family: "Spartan", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b88a90;
    margin-bottom: 6px;
}
.fc-product-info h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #53242C;
    margin: 0 0 8px;
    line-height: 1.4;
}
.fc-product-info h3 a {
    color: #53242C;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fc-product-info h3 a:hover {
    color: #b88a90;
}
.fc-product-info .fc-product-price {
    font-family: "Spartan", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #53242C;
}
.fc-product-info .fc-product-price del {
    color: #bbb;
    font-weight: 400;
    font-size: 12px;
    margin-right: 6px;
}
.fc-product-info .fc-product-price ins {
    text-decoration: none;
    color: #53242C;
}

/* Pagination */
.shop-pagination {
    text-align: center;
    padding: 20px 0 60px;
}
.shop-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-pagination .page-numbers li {
    display: inline-block;
}
.shop-pagination .page-numbers li a,
.shop-pagination .page-numbers li span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #53242C;
    color: #53242C;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.shop-pagination .page-numbers li a:hover,
.shop-pagination .page-numbers li span.current {
    background: #53242C;
    color: #fff;
}
.shop-pagination .page-numbers li span.dots {
    border: none;
}

/* Hide default WooCommerce elements on custom shop */
.fc-shop-page .woocommerce-breadcrumb {
    display: none;
}

/* Newsletter Section - same as archive pages */
.shop-newsletter {
    padding-top: 40px;
}

/* Override any default WooCommerce grid on shop page */
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products {
    display: none !important;
}

/* Loading state for AJAX filters */
.fc-products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Brand Description Section */
.shop-brand-description {
    max-width: 860px;
    margin: 60px auto 0;
    padding: 50px 30px;
    border-top: 1px solid #f0d6d8;
}
.shop-brand-inner {
    text-align: left;
}
.shop-brand-description h2 {
    font-family: "Beautiful Bloom", serif;
    font-weight: 400;
    font-size: 48px;
    color: #53242C;
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.2;
}
.shop-brand-description p {
    font-family: "Spartan", sans-serif;
    font-size: 15px;
    line-height: 1.85;
    color: #444;
    margin-bottom: 20px;
}
.shop-brand-description p:last-child {
    margin-bottom: 0;
}
.shop-brand-description a {
    color: #53242C;
    text-decoration: underline;
    font-weight: 600;
}
.shop-brand-description a:hover {
    color: #7a3a44;
}
@media screen and (max-width: 768px) {
    .shop-brand-description {
        margin-top: 40px;
        padding: 35px 20px;
    }
    .shop-brand-description h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    .shop-brand-description p {
        font-size: 14px;
        line-height: 1.75;
    }
}
@media screen and (max-width: 480px) {
    .shop-brand-description h2 {
        font-size: 28px;
    }
    .shop-brand-description p {
        font-size: 13px;
    }
}
