/**
 * Alsinea Shop Redesign – Custom Styles v2
 * Colors match header: warm peach/cream (#fff0e1)
 */

/* ============================================
   Shop Header Banner
   ============================================ */
.alsinea-shop-header {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c0 30%, #f0e0cc 70%, #faf0e5 100%);
    padding: 70px 20px;
    text-align: center;
    margin: -30px -20px 0 -20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e0d0c0;
}

.alsinea-shop-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.alsinea-shop-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.alsinea-shop-header.has-bg-image {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alsinea-shop-header-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.alsinea-shop-header__tag {
    display: inline-block;
    background: rgba(139, 115, 85, 0.15);
    color: #6b5a4a;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.alsinea-shop-header__title {
    color: #4a3a2a;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Prata', Georgia, serif;
}

.alsinea-shop-header__subtitle {
    color: #7a6a5a;
    font-size: 17px;
    margin: 0;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.alsinea-breadcrumbs {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.alsinea-breadcrumbs #breadcrumbs {
    font-size: 13px;
    color: #998877;
}

.alsinea-breadcrumbs #breadcrumbs a {
    color: #8b7355;
    text-decoration: none;
}

.alsinea-breadcrumbs #breadcrumbs a:hover {
    color: #5a4a3a;
    text-decoration: underline;
}

/* ============================================
   Category Filter Chips
   ============================================ */
.alsinea-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 25px 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.alsinea-category-chip {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    color: #6b5a4a;
    background: #faf5ef;
    border: 1.5px solid #e0d0c0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.alsinea-category-chip:hover {
    background: #f0e5d8;
    color: #4a3a2a;
    border-color: #c8b8a5;
}

.alsinea-category-chip.active {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

/* ============================================
   Shop Toolbar (Count + Sort)
   ============================================ */
.alsinea-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e8ddcf;
}

.alsinea-shop-toolbar__count {
    font-size: 14px;
    color: #998877;
}

.alsinea-shop-toolbar__sort select,
.alsinea-shop-toolbar__sort .orderby {
    padding: 8px 35px 8px 14px;
    border: 1.5px solid #e0d0c0;
    border-radius: 8px;
    font-size: 14px;
    color: #6b5a4a;
    background: #faf5ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b7355' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.alsinea-shop-toolbar__sort select:hover,
.alsinea-shop-toolbar__sort select:focus {
    border-color: #c8b8a5;
    outline: none;
}

/* ============================================
   Product Grid
   ============================================ */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 28px !important;
    padding: 30px 20px 50px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    list-style: none !important;
}

ul.products::before,
ul.products::after {
    display: none !important;
}

ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0e8dd;
}

ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Product Image */
ul.products li.product img.attachment-woocommerce_thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
    transition: transform 0.5s ease;
}

ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Image wrapper for zoom effect */
ul.products li.product > a.woocommerce-loop-product__link:first-child {
    display: block;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

/* Product Info */
ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #3a3a3a;
    margin: 16px 18px 4px;
    line-height: 1.4;
    padding: 0;
}

ul.products li.product .woocommerce-loop-product__title:hover {
    color: #8b7355;
}

/* Category label */
ul.products li.product .product-category-label {
    font-size: 11px;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 18px 2px;
}

/* Price */
ul.products li.product .price {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #3a3a3a;
    margin: 8px 18px 10px;
}

ul.products li.product .price del {
    font-size: 14px;
    color: #bbb;
    font-weight: 400;
    margin-right: 6px;
}

ul.products li.product .price ins {
    text-decoration: none;
    color: #c0392b;
}

/* Add to cart button */
ul.products li.product .button {
    display: block !important;
    margin: 10px 18px 18px !important;
    padding: 11px 20px !important;
    background: #8b7355 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px;
}

ul.products li.product .button:hover {
    background: #7a6245 !important;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
    transform: translateY(-1px);
}

ul.products li.product .button.added {
    background: #a0886a !important;
}

ul.products li.product .added_to_cart {
    display: block;
    text-align: center;
    margin: 0 18px 14px;
    font-size: 13px;
    color: #8b7355;
    text-decoration: none;
    font-weight: 500;
}

/* Sale badge */
ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c0392b;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* ============================================
   Pagination
   ============================================ */
.woocommerce-pagination {
    padding: 20px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-pagination ul li {
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #6b5a4a;
    background: #faf5ef;
    border: 1px solid #e0d0c0;
    transition: all 0.2s;
}

.woocommerce-pagination ul li a:hover {
    background: #f0e5d8;
    color: #4a3a2a;
    border-color: #c8b8a5;
}

.woocommerce-pagination ul li span.current {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
}

/* ============================================
   No products found
   ============================================ */
.woocommerce-no-products-found {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-no-products-found .woocommerce-info {
    background: #faf5ef;
    border: 1px solid #e0d0c0;
    border-radius: 10px;
    padding: 30px;
    font-size: 16px;
    color: #7a6a5a;
}

/* ============================================
   Category page description
   ============================================ */
.term-description {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    font-size: 15px;
    color: #7a6a5a;
    line-height: 1.7;
}

/* ============================================
   Sidebar cleanup (hide on shop)
   ============================================ */
.post-type-archive-product #secondary,
.tax-product_cat #secondary {
    display: none;
}

.post-type-archive-product #primary,
.tax-product_cat #primary {
    width: 100% !important;
    max-width: 1240px;
    margin: 0 auto;
    float: none;
}

/* ============================================
   WooCommerce notices
   ============================================ */
.woocommerce-message,
.woocommerce-info {
    max-width: 1200px;
    margin: 15px auto !important;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 14px;
}

.woocommerce-message {
    background: #f5f0e8;
    border-color: #d8ccb8;
    color: #5a4a3a;
}

.woocommerce-message .button {
    background: #8b7355 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .alsinea-shop-header {
        padding: 50px 20px;
        margin: -20px -15px 0 -15px;
    }

    .alsinea-shop-header__title {
        font-size: 30px;
    }

    .alsinea-shop-header__subtitle {
        font-size: 15px;
    }

    .alsinea-category-chips {
        gap: 6px;
        padding: 20px 15px 10px;
    }

    .alsinea-category-chip {
        padding: 6px 16px;
        font-size: 13px;
    }

    .alsinea-shop-toolbar {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 15px !important;
        padding: 20px 15px 40px !important;
    }

    ul.products li.product img {
        height: 200px;
    }

    ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        margin: 12px 12px 4px;
        padding: 0;
    }

    ul.products li.product .price {
        font-size: 16px;
        margin: 6px 12px 8px;
    }

    ul.products li.product .button {
        margin: 8px 12px 12px !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    ul.products li.product img {
        height: 160px;
    }
}
