/* ==========================================================
   NATURAL ASILIA — SHOP PAGE (css/shop.css)
   Pairs with css/style.css + css/header-footer.css.
   Uses the same brand tokens: purple #652b7b, gold #d6b24b.
   ========================================================== */

:root {
    --na-purple: #652b7b;
    --na-purple-dark: #4a1f5c;
    --na-purple-soft: rgba(101, 43, 123, 0.08);
    --na-gold: #d6b24b;
    --na-cream: #faf6ef;
    --na-text: #2b2b2b;
    --na-muted: #7a7a7a;
    --na-border: #ece5f0;
    --na-radius: 14px;
}

/* ---------------- SHOP BANNER ---------------- */
.shop-banner {
    background: linear-gradient(135deg, var(--na-purple) 0%, var(--na-purple-dark) 100%);
    color: #fff;
    padding: 48px 0 40px;
}
.shop-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255,255,255,.5);
    font-size: .85rem;
}
.shop-breadcrumb a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
}
.shop-breadcrumb a:hover { color: #fff; }
.shop-breadcrumb .active { color: var(--na-gold); }

.shop-banner h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.1rem;
    margin-bottom: 6px;
}
.shop-banner p {
    opacity: .9;
    margin: 0;
    font-size: .98rem;
}

/* ---------------- LAYOUT ---------------- */
.shop-main { padding: 40px 0 70px; background: #fff; }

/* ---------------- SIDEBAR FILTER PANEL ---------------- */
.shop-filter-panel {
    background: var(--na-cream);
    border: 1px solid var(--na-border);
    border-radius: var(--na-radius);
    padding: 22px 20px;
    position: sticky;
    top: 90px;
}
.filter-heading {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--na-purple);
    margin-bottom: 12px;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 4px; }

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--na-text);
    transition: background .15s ease;
}
.filter-check:hover { background: var(--na-purple-soft); }
.filter-check input {
    accent-color: var(--na-purple);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.filter-check span { flex-grow: 1; }
.filter-check em {
    font-style: normal;
    font-size: .75rem;
    color: var(--na-muted);
    background: #fff;
    border: 1px solid var(--na-border);
    border-radius: 20px;
    padding: 1px 8px;
}

.shop-filter-panel hr {
    border-color: var(--na-border);
    margin: 18px 0;
}

.btn-clear-filters {
    width: 100%;
    background: #fff;
    border: 1px solid var(--na-purple);
    color: var(--na-purple);
    font-size: .85rem;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 8px;
    margin-top: 18px;
    transition: all .2s ease;
}
.btn-clear-filters:hover { background: var(--na-purple); color: #fff; }

/* ---------------- HELP BOX ---------------- */
.shop-help-box {
    margin-top: 20px;
    background: var(--na-purple);
    color: #fff;
    border-radius: var(--na-radius);
    padding: 24px 20px;
    text-align: center;
}
.shop-help-box i { font-size: 1.6rem; color: var(--na-gold); }
.shop-help-box h4 { font-size: 1rem; font-weight: 700; margin: 10px 0 6px; }
.shop-help-box p { font-size: .85rem; opacity: .85; margin-bottom: 16px; }
.btn-help-whatsapp {
    background: var(--na-gold);
    color: var(--na-purple-dark);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: .85rem;
}
.btn-help-whatsapp:hover { background: #c7a13f; color: var(--na-purple-dark); }

/* ---------------- TOOLBAR ---------------- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--na-border);
}
.btn-mobile-filter {
    border: 1px solid var(--na-purple);
    color: var(--na-purple);
    background: #fff;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 8px;
    padding: 8px 14px;
}
.shop-result-count {
    color: var(--na-muted);
    font-size: .9rem;
    margin-right: auto;
}
.shop-sort .form-select {
    border-color: var(--na-border);
    font-size: .85rem;
    min-width: 190px;
    border-radius: 8px;
}
.shop-sort .form-select:focus {
    border-color: var(--na-purple);
    box-shadow: 0 0 0 .2rem var(--na-purple-soft);
}

/* ---------------- PRODUCT CARD ---------------- */
.product-item { transition: opacity .15s ease; }

.product-card {
    background: #fff;
    border: 1px solid var(--na-border);
    border-radius: var(--na-radius);
    padding: 14px 14px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(101,43,123,0.12);
    border-color: transparent;
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--na-cream);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--na-gold);
    color: var(--na-purple-dark);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--na-text);
    line-height: 1.35;
    margin-bottom: 2px;
}
.product-size {
    font-size: .78rem;
    color: var(--na-muted);
    margin-bottom: 6px;
}
.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--na-purple);
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.btn-add-cart,
.btn-buy-now {
    flex: 1;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 0;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: all .2s ease;
}
.btn-add-cart {
    background: #fff;
    border: 1px solid var(--na-purple);
    color: var(--na-purple);
}
.btn-add-cart:hover { background: var(--na-purple-soft); }
.btn-buy-now {
    background: var(--na-purple);
    color: #fff;
}
.btn-buy-now:hover { background: var(--na-purple-dark); color: #fff; }

.product-whatsapp-link {
    display: block;
    text-align: center;
    font-size: .74rem;
    color: #25D366;
    margin-top: 10px;
    text-decoration: none;
}
.product-whatsapp-link:hover { text-decoration: underline; }
.product-whatsapp-link i { margin-right: 3px; }

/* ---------------- NO RESULTS ---------------- */
.no-results {
    text-align: center;
    padding: 70px 20px;
    color: var(--na-muted);
}
.no-results i { font-size: 2.2rem; color: var(--na-gold); }
.no-results p { margin: 10px 0 18px; }
.no-results .btn-clear-filters { width: auto; padding: 9px 22px; margin-top: 0; }

/* ---------------- OFFCANVAS (MOBILE FILTERS) ---------------- */
.offcanvas-title { color: var(--na-purple); font-weight: 700; }

/* ---------------- QUICK ADD MODAL ---------------- */
.quick-add-content { border-radius: var(--na-radius); border: none; overflow: hidden; }
.quick-add-content .modal-header { border-bottom: 1px solid var(--na-border); }
.quick-add-content .modal-title { font-weight: 700; color: var(--na-purple); }
.quick-add-content .modal-footer { border-top: 1px solid var(--na-border); }

.quick-add-product {
    display: flex;
    gap: 14px;
    align-items: center;
}
.quick-add-product img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--na-cream);
    flex-shrink: 0;
}
.quick-add-product h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.quick-add-size { font-size: .8rem; color: var(--na-muted); margin-bottom: 4px; }
.quick-add-price { font-size: .95rem; font-weight: 700; color: var(--na-purple); margin: 0; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--na-border);
    border-radius: 8px;
    overflow: hidden;
}
.qty-btn {
    background: var(--na-cream);
    border: none;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--na-purple);
    cursor: pointer;
}
.qty-btn:hover { background: var(--na-purple-soft); }
#quickAddQty {
    width: 56px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--na-border);
    border-right: 1px solid var(--na-border);
    font-weight: 600;
}
#quickAddQty:focus { outline: none; }

.quick-add-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--na-cream);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .9rem;
}
.quick-add-total strong { color: var(--na-purple); font-size: 1.05rem; }

.quick-add-success-icon { font-size: 3rem; color: #2fae60; }

.btn-outline-cta {
    border: 1px solid var(--na-purple);
    color: var(--na-purple);
    background: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: .85rem;
}
.btn-outline-cta:hover { background: var(--na-purple-soft); color: var(--na-purple); }

.btn-cta {
    background: var(--na-purple);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: .85rem;
}
.btn-cta:hover { background: var(--na-purple-dark); color: #fff; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 991.98px) {
    .shop-filter-panel { position: static; }
}
@media (max-width: 575.98px) {
    .shop-banner h1 { font-size: 1.5rem; }
    .shop-banner { padding: 36px 0 30px; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-result-count { order: 2; text-align: center; }
    .shop-sort { order: 3; }
    .shop-sort .form-select { width: 100%; }
}
