/* ═══════════════════════════════════════════
   AL-NAHL ORGANIC — Shop Page Stylesheet
═══════════════════════════════════════════ */

/* ══════════════════════════════════════
   SHOP HERO
══════════════════════════════════════ */
.shop-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-bg1.jpg') center/cover no-repeat;
    overflow: hidden;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44,31,14,0.78) 0%, rgba(44,31,14,0.5) 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.shop-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 0.6rem;
}

.shop-hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* ══════════════════════════════════════
   SHOP LAYOUT (sidebar + main)
══════════════════════════════════════ */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.shop-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-block {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-block:last-child { border-bottom: none; }

.sidebar-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Category list */
.cat-list { display: flex; flex-direction: column; gap: 0.2rem; }

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55em 0.8em;
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text-light);
    transition: all var(--transition);
}
.cat-link:hover { background: var(--cream); color: var(--honey-dark); }
.cat-link.active { background: var(--honey); color: #fff; }

.cat-count {
    font-size: 0.72rem;
    opacity: 0.7;
    background: rgba(0,0,0,0.08);
    padding: 0.15em 0.5em;
    border-radius: 10px;
}
.cat-link.active .cat-count { background: rgba(255,255,255,0.25); }

/* Price slider */
.price-range { display: flex; flex-direction: column; gap: 0.7rem; }

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--honey) 0%, var(--honey) 100%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    background: var(--honey);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(200,134,42,0.4);
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Rating filter */
.rating-filter { display: flex; flex-direction: column; gap: 0.5rem; }

.rating-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light);
}
.rating-label input { accent-color: var(--honey); width: 14px; height: 14px; cursor: pointer; }

.stars { color: var(--honey); font-size: 0.85rem; letter-spacing: 1px; }
.rating-text { color: var(--text-light); font-size: 0.78rem; }

/* Sidebar CTA */
.sidebar-cta {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 1.2rem !important;
    border: 1px solid var(--border) !important;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}
.sidebar-cta strong { color: var(--honey-dark); }

/* ══════════════════════════════════════
   SHOP MAIN — TOOLBAR
══════════════════════════════════════ */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.results-count {
    font-size: 0.88rem;
    color: var(--text-light);
}
.results-count strong { color: var(--text); }
.results-count em { color: var(--honey-dark); font-style: normal; }

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Category pills — hidden on desktop, shown on mobile */
.cat-pills {
    display: none;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pill {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4em 1em;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    white-space: nowrap;
    transition: all var(--transition);
}
.pill:hover { border-color: var(--honey); color: var(--honey); }
.pill.active { background: var(--honey); color: #fff; border-color: var(--honey); }

/* Sort select */
.sort-select {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text);
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5em 2em 0.5em 0.8em;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237A6A52'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7em center;
    transition: border-color var(--transition);
}
.sort-select:hover { border-color: var(--honey); }

/* ══════════════════════════════════════
   SHOP PRODUCT GRID
══════════════════════════════════════ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

/* ── Shop Card ── */
.shop-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200,134,42,0.3);
}

/* Badge */
.shop-badge {
    position: absolute;
    top: 0.9rem; left: 0.9rem;
    z-index: 2;
    background: var(--honey);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3em 0.75em;
    border-radius: 2px;
}

/* Card image */
.shop-card-img {
    position: relative;
    overflow: hidden;
}
.shop-card-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.shop-card:hover .shop-card-img img { transform: scale(1.06); }

/* Hover action buttons */
.shop-card-actions {
    position: absolute;
    bottom: 0.8rem; right: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
}
.shop-card:hover .shop-card-actions {
    opacity: 1;
    transform: translateX(0);
}
.action-btn {
    width: 36px; height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bark);
    box-shadow: 0 2px 8px rgba(44,31,14,0.12);
    transition: all var(--transition);
}
.action-btn:hover { background: var(--honey); color: #fff; }

/* Card body */
.shop-card-body { padding: 1.2rem; }

.shop-card-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.stars-filled { font-size: 0.82rem; color: var(--honey); letter-spacing: 1px; }
.review-count { font-size: 0.72rem; color: var(--text-light); }

.shop-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.product-size {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-light);
    font-weight: 400;
}

.shop-card-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.shop-price {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--honey-dark);
    font-weight: 400;
}

/* ══════════════════════════════════════
   NO PRODUCTS STATE
══════════════════════════════════════ */
.no-products {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
}
.no-products p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* ══════════════════════════════════════
   CART TOAST NOTIFICATION
══════════════════════════════════════ */
.cart-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bark);
    color: #fff;
    padding: 0.9em 1.4em;
    border-radius: var(--radius);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 9999;
}
.cart-toast svg { color: #6fcf7a; flex-shrink: 0; }
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* ══════════════════════════════════════
   RESPONSIVE — SHOP
══════════════════════════════════════ */
@media (max-width: 1100px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 220px 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; display: none; } /* hidden on mobile, use pills */
    .cat-pills { display: flex; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-toolbar { flex-direction: column; align-items: flex-start; }
    .toolbar-right { width: 100%; flex-wrap: wrap; }
    .cat-pills { width: 100%; }
    .cart-toast { left: 1rem; right: 1rem; bottom: 1rem; }
}
