@charset "UTF-8";

/*
    ============================================================
    Shop-Flower Theme - Category Listing Page
    Professional Flower Gift Shopping Mall
    Design reference: flowergiftshop.co.kr (enhanced)
    Pink / White color scheme - Flat design
    ============================================================
    Sections:
      1. Category Hero Banner
      2. Sort Bar & Filters
      3. Product Grid (Order Button Overlay)
      4. Pagination Extensions
      5. No Results / Not Found
      6. Responsive - 1440px
      7. Responsive - 1024px (Tablet Landscape)
      8. Responsive - 768px (Tablet Portrait)
      9. Responsive - 480px (Small Mobile)
      10. Responsive - 359px (Fold / Flip)
      11. Responsive - FHD / QHD / UHD
    ============================================================
*/


/* ==========================================================
   1. Category Hero Banner
   ========================================================== */
.category-hero {
    position: relative;
    min-height: 200px;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(246, 43, 100, 0.85);
    display: flex;
    align-items: center;
}

.category-hero-content {
    text-align: center;
    color: var(--color-white);
    padding: 44px 0;
    width: 100%;
}

.category-hero-icon {
    font-size: 38px;
    margin-bottom: 14px;
    display: block;
    opacity: 0.9;
}

.category-hero-title {
    font-size: 34px;
    font-weight: var(--font-weight-extra);
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-family: var(--font-family-heading);
}

.category-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
}


/* ==========================================================
   2. Sort Bar & Filters
   ========================================================== */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 28px;
}

.sort-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-count {
    font-size: 14px;
    color: var(--color-gray-700);
    letter-spacing: -0.3px;
}

.product-count strong {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-price);
}

.sort-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-select {
    width: auto;
    min-width: 150px;
    height: 38px;
    padding: 0 36px 0 14px;
    font-size: 13px;
    border: 1px solid var(--color-gray-200);
    background-color: var(--color-white);
    color: var(--color-gray-700);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--transition-fast);
}

.sort-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.sort-select:hover {
    border-color: var(--color-gray-300);
}


/* ==========================================================
   3. Product Grid (Order Button Overlay)
   ========================================================== */
.product-card {
    position: relative;
}

.product-card-order {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--color-gray-200);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-card-order {
    opacity: 1;
    transform: translateY(0);
}

.product-order-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background var(--transition-fast);
    letter-spacing: -0.3px;
}

.product-order-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.product-order-btn i {
    font-size: 12px;
}


/* ==========================================================
   4. Pagination Extensions
   ========================================================== */
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    color: var(--color-gray-500);
    border: none;
    letter-spacing: 2px;
}


/* ==========================================================
   5. No Results / Not Found
   ========================================================== */
.no-results,
.category-not-found,
.product-not-found {
    text-align: center;
    padding: 100px 20px;
}

.no-results i,
.category-not-found i,
.product-not-found i {
    font-size: 68px;
    color: var(--color-gray-300);
    margin-bottom: 28px;
    display: block;
}

.no-results h2,
.category-not-found h1,
.product-not-found h1 {
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.no-results p,
.category-not-found p,
.product-not-found p {
    font-size: 15px;
    color: var(--color-gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
}

.no-results .btn,
.category-not-found .btn,
.product-not-found .btn {
    margin-top: 4px;
}


/* ==========================================================
   6. Responsive - 1440px
   ========================================================== */
@media (max-width: 1440px) {
    .category-hero-title {
        font-size: 30px;
    }
}


/* ==========================================================
   7. Responsive - 1024px (Tablet Landscape)
   ========================================================== */
@media (max-width: 1024px) {
    .category-hero {
        min-height: 170px;
    }

    .category-hero-content {
        padding: 36px 0;
    }

    .category-hero-title {
        font-size: 28px;
    }

    .category-hero-icon {
        font-size: 32px;
    }

    .sort-bar {
        margin-bottom: 22px;
    }
}


/* ==========================================================
   8. Responsive - 768px (Tablet Portrait)
   ========================================================== */
@media (max-width: 768px) {
    .category-hero {
        min-height: 140px;
    }

    .category-hero-content {
        padding: 28px 0;
    }

    .category-hero-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .category-hero-title {
        font-size: 24px;
    }

    .category-hero-desc {
        font-size: 13px;
        padding: 0 16px;
    }

    /* Sort bar stacks vertically */
    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 0;
        margin-bottom: 18px;
    }

    .sort-bar-right {
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }

    /* Show order button always on mobile (no hover) */
    .product-card-order {
        position: relative;
        opacity: 1;
        transform: none;
        border-top: 1px solid var(--color-gray-200);
    }

    /* No results */
    .no-results,
    .category-not-found,
    .product-not-found {
        padding: 60px 16px;
    }

    .no-results i,
    .category-not-found i,
    .product-not-found i {
        font-size: 52px;
        margin-bottom: 22px;
    }

    .no-results h2,
    .category-not-found h1,
    .product-not-found h1 {
        font-size: 21px;
    }

    .no-results p,
    .category-not-found p,
    .product-not-found p {
        font-size: 14px;
        margin-bottom: 22px;
    }

    /* Pagination */
    .pagination-ellipsis {
        min-width: 30px;
        height: 32px;
        font-size: 13px;
    }
}


/* ==========================================================
   9. Responsive - 480px (Small Mobile)
   ========================================================== */
@media (max-width: 480px) {
    .category-hero {
        min-height: 120px;
    }

    .category-hero-content {
        padding: 22px 0;
    }

    .category-hero-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .category-hero-title {
        font-size: 20px;
    }

    .category-hero-desc {
        font-size: 12px;
    }

    .product-count {
        font-size: 13px;
    }

    .sort-select {
        font-size: 12px;
        min-width: auto;
        height: 36px;
    }

    .product-order-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .no-results,
    .category-not-found,
    .product-not-found {
        padding: 48px 12px;
    }

    .no-results i,
    .category-not-found i,
    .product-not-found i {
        font-size: 44px;
    }

    .no-results h2,
    .category-not-found h1,
    .product-not-found h1 {
        font-size: 18px;
    }
}


/* ==========================================================
   10. Responsive - 359px (Fold / Flip)
   ========================================================== */
@media (max-width: 359px) {
    .category-hero {
        min-height: 100px;
    }

    .category-hero-content {
        padding: 18px 0;
    }

    .category-hero-title {
        font-size: 18px;
    }

    .category-hero-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .category-hero-desc {
        display: none;
    }

    .sort-bar {
        padding: 10px 0;
        margin-bottom: 14px;
    }
}


/* ==========================================================
   11. Responsive - FHD / QHD / UHD
   ========================================================== */

/* FHD (1920px ~ 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .category-hero {
        min-height: 240px;
    }

    .category-hero-content {
        padding: 52px 0;
    }

    .category-hero-title {
        font-size: 38px;
    }

    .category-hero-desc {
        font-size: 16px;
    }

    .category-hero-icon {
        font-size: 42px;
    }
}

/* QHD (2560px ~ 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
    .category-hero {
        min-height: 280px;
    }

    .category-hero-content {
        padding: 60px 0;
    }

    .category-hero-title {
        font-size: 44px;
    }

    .category-hero-desc {
        font-size: 18px;
    }

    .category-hero-icon {
        font-size: 48px;
    }

    .sort-bar {
        padding: 22px 0;
        margin-bottom: 36px;
    }

    .product-count {
        font-size: 16px;
    }

    .sort-select {
        font-size: 15px;
        height: 42px;
        min-width: 180px;
    }
}

/* UHD (3840px+) */
@media (min-width: 3840px) {
    .category-hero {
        min-height: 340px;
    }

    .category-hero-content {
        padding: 72px 0;
    }

    .category-hero-title {
        font-size: 52px;
    }

    .category-hero-desc {
        font-size: 20px;
        max-width: 800px;
    }

    .category-hero-icon {
        font-size: 56px;
    }

    .sort-bar {
        padding: 26px 0;
        margin-bottom: 40px;
    }
}
