/* ============================================================
   category.css  –  Vizag Florist · Category / Shop page
   ============================================================ */


/* ── CSS Variables ───────────────────────────────────────── */

:root {
    --pink: #d4145a;
    --pink-dark: #9d174d;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --gold: #f59e0b;
    --orange: #f97316;
    --green: #22c55e;
    --purple: #7c3aed;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, .14);
    --transition: .2s ease;
}


/* ── Utility ─────────────────────────────────────────────── */

.section-sm {
    padding: 48px 0;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.mb-24 {
    margin-bottom: 24px;
}

.text-gold {
    color: var(--gold);
}

.text-orange {
    color: var(--orange);
}

.text-purple {
    color: var(--purple);
}


/* ── Hero ────────────────────────────────────────────────── */

.cat-hero {
    padding: 56px 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cat-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.cat-hero-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: .80;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cat-hero-crumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity var(--transition);
}

.cat-hero-crumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.cat-hero-crumb i {
    font-size: 10px;
    opacity: .7;
}

.cat-hero-crumb span {
    opacity: 1;
    font-weight: 600;
}

.cat-hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cat-hero-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.cat-hero-sub {
    font-size: 15px;
    opacity: .9;
    margin: 0 0 20px;
}

.cat-hero-sub strong {
    font-weight: 700;
}

.cat-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
}

.cat-hero-emoji {
    font-size: clamp(64px, 10vw, 100px);
    line-height: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .2));
    flex-shrink: 0;
    animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ── Filter Sidebar ──────────────────────────────────────── */

.filter-aside {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 80px;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-title a {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition);
}

.filter-title a:hover {
    color: var(--pink);
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.filter-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    user-select: none;
}

.filter-opt:hover {
    color: var(--pink);
}

.filter-opt input[type="radio"],
.filter-opt input[type="checkbox"] {
    accent-color: var(--pink);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}


/* ── Toolbar ─────────────────────────────────────────────── */

.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.cat-count {
    font-size: 14px;
    color: var(--gray-500);
}

.cat-count strong {
    color: var(--gray-900);
    font-weight: 700;
}

.form-control {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
    background: #fff;
    appearance: none;
    background-image: 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='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(212, 20, 90, .10);
}


/* ── Chips (subcategory pills) ───────────────────────────── */

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.chip:hover {
    background: var(--pink-50);
    color: var(--pink);
    border-color: var(--pink-100);
}


/* ── Bootstrap-style Grid ────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.row>* {
    padding: 0 8px;
    box-sizing: border-box;
    width: 100%;
}

.g-4 {
    gap: 0;
}


/* col-lg-3 / col-lg-9 — side by side on ≥ 992px */

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .d-none {
        display: none !important;
    }
    .d-lg-block {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .d-none.d-lg-block {
        display: none !important;
    }
}


/* ── Product Grid ────────────────────────────────────────── */

.row-cols-2>.col {
    width: 50%;
}

@media (min-width: 768px) {
    .row-cols-md-3>.col {
        width: 33.333%;
    }
}

@media (min-width: 1200px) {
    .row-cols-xl-4>.col {
        width: 25%;
    }
}

.g-3 {
    gap: 0;
}

.g-3>.col {
    padding: 8px;
    box-sizing: border-box;
}


/* AOS fade-in */

[data-aos] {
    opacity: 0;
    transform: translateY(18px);
    animation: aosIn .5s ease forwards;
}

[data-aos]:nth-child(2) {
    animation-delay: .06s;
}

[data-aos]:nth-child(3) {
    animation-delay: .12s;
}

[data-aos]:nth-child(4) {
    animation-delay: .18s;
}

[data-aos]:nth-child(5) {
    animation-delay: .24s;
}

[data-aos]:nth-child(6) {
    animation-delay: .30s;
}

[data-aos]:nth-child(n+7) {
    animation-delay: .36s;
}

@keyframes aosIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Pagination ──────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.pg-btn:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-50);
}

.pg-btn.active {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 20, 90, .35);
}


/* ── Empty State ─────────────────────────────────────────── */

.cat-empty {
    text-align: center;
    padding: 60px 20px;
}

.cat-empty i {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 16px;
    display: block;
}

.cat-empty h3 {
    font-family: var(--font-head);
    color: var(--gray-600);
    margin-bottom: 8px;
}

.cat-empty p {
    color: var(--gray-400);
    margin-bottom: 20px;
}


/* ── Reviews Band ────────────────────────────────────────── */

.reviews-band {
    background: linear-gradient(135deg, #fff5f8 0%, #fdf2f8 100%);
    border-top: 1px solid var(--pink-100);
    border-bottom: 1px solid var(--pink-100);
    padding: 56px 0;
}

.reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.reviews-title {
    font-family: var(--font-head);
    font-size: clamp(22px, 4vw, 32px);
    color: var(--gray-900);
    margin: 0;
}

.reviews-score {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--pink-100);
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
}

.reviews-score-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.reviews-score-num span {
    font-size: 16px;
    color: var(--gray-400);
    font-weight: 400;
}

.reviews-stars {
    color: var(--gold);
    font-size: 18px;
    display: flex;
    gap: 2px;
}

.reviews-count {
    font-size: 12px;
    color: var(--gray-400);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.review-mini {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.review-mini:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.review-mini-stars {
    display: flex;
    gap: 2px;
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 10px;
}

.review-mini-stars .far {
    color: var(--gray-200);
}

.review-mini-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 14px;
    font-style: italic;
}

.review-mini-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-mini-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.review-mini-loc {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ── SEO Block ───────────────────────────────────────────── */

.seo-block {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.seo-title {
    font-family: var(--font-head);
    font-size: clamp(20px, 3.5vw, 28px);
    color: var(--gray-900);
    margin: 0 0 16px;
}

.seo-block p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0 0 14px;
}

.seo-block p strong {
    color: var(--gray-900);
}

.seo-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.seo-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.seo-point i {
    font-size: 18px;
    color: var(--pink);
    margin-top: 2px;
    flex-shrink: 0;
}

.seo-point strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

.seo-point span {
    font-size: 13px;
    color: var(--gray-400);
}


/* ── Buttons ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 11px 22px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 20, 90, .35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 20, 90, .45);
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-50);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}


/* ── Mobile Filter Drawer ────────────────────────────────── */

.mob-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.mob-nav-overlay.show {
    display: block;
    animation: fadeIn .2s ease;
}

.mob-nav {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 90vw;
    height: 100dvh;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: right .3s cubic-bezier(.4, 0, .2, 1);
    border-radius: var(--radius) 0 0 var(--radius);
}

.mob-nav.open {
    right: 0;
}

.mob-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    border-radius: var(--radius) 0 0 0;
    flex-shrink: 0;
}

.mob-nav-close {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background var(--transition);
}

.mob-nav-close:hover {
    background: rgba(255, 255, 255, .35);
}

.mob-nav-body {
    overflow-y: auto;
    flex: 1;
}

.mob-nav-body::-webkit-scrollbar {
    width: 4px;
}

.mob-nav-body::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 991px) {
    .cat-hero {
        padding: 40px 0 32px;
    }
    .seo-block {
        padding: 24px;
    }
    .reviews-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .cat-hero-emoji {
        display: none;
    }
    .cat-hero-badges span {
        font-size: 12px;
        padding: 5px 11px;
    }
    .seo-points {
        grid-template-columns: 1fr 1fr;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}