/* =============================== */
/*      SHOPIFY-PLUS CATEGORY HERO */
/* =============================== */

.cat-hero {
    width: 100%;
    /*background: #ffffff;*/
    background: #f8fafc;
    border-radius: 14px;
    padding: 40px 28px;
    border: 1px solid #e5e7eb;
}

.cat-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.cat-hero__title {
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.cat-hero__subtitle {
    font-size: 17px;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 20px;
}

.cat-hero__image-wrap {
    margin: 20px auto;
    max-width: 260px;
}

.cat-hero__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* USP ROW */
.cat-hero__usp-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cat-hero__usp {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
}

.cat-hero__usp-icon {
    font-size: 16px;
}

/* PROMO BAR */
.cat-hero__promo {
    margin-top: 24px;
    background: #004b9b;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
}

.cat-hero__promo-text {
    font-size: 14px;
    font-weight: 600;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 600px) {
    .cat-hero {
        padding: 28px 18px;
    }
    .cat-hero__title {
        font-size: 26px;
    }
    .cat-hero__subtitle {
        font-size: 15px;
    }
    .cat-hero__usp {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* PRODUCT CARD – SHOPIFY PLUS STYLE */
/* BASE CARD */
.pcard {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 14px;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
@media (max-width: 480px) {
    .pcard {
        padding: 10px;
        border-radius: 8px;
    }
}

/* DESKTOP HOVER ONLY */
@media (hover: hover) {
    .pcard:hover {
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
        transform: translateY(-2px);
        border-color: #cbd5f5;
    }
}

/* MOBILE TOUCH — NO HOVER JUMP */
@media (hover: none) {
    .pcard {
        transform: none !important;
        box-shadow: none !important;
    }
}


.pcard__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #f9fafb;
}

.pcard__image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* BADGES */
.pcard__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pcard__badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    color: #ffffff;
    background: #4b5563;
}
.pcard__badge--sale {
    background: #dc2626;
}
.pcard__badge--new {
    background: #16a34a;
}
.pcard__badge--bestseller {
    background: #f97316;
}

/* BODY */
.pcard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* TITLE */ 
.pcard__title { 
    font-size: 15px; 
    font-weight: 600; 
    line-height: 1.3; 
    margin: 0;
    } 
@media (max-width: 480px) { 
    .pcard__title { font-size: 14px; }
    }
.pcard__title a {
    color: #111827;
    text-decoration: none;
}
.pcard__title a:hover {
    color: #004b9b;
}

/* REVIEWS */
.pcard__reviews {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}
.pcard__stars {
    display: inline-flex;
    gap: 1px;
}
.pcard__star {
    font-size: 12px;
}
.pcard__star--filled {
    color: #f59e0b;
}
.pcard__star--empty {
    color: #e5e7eb;
}
.pcard__review-count {
    font-size: 12px;
}

/* PRICE */
.pcard__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pcard__price { 
    font-size: 16px; 
    font-weight: 600; 
} 
@media (max-width: 480px) { 
    .pcard__price { 
        font-size: 15px; 
    }
    }
.pcard__price--new {
    color: #dc2626;
}
.pcard__price--old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* VARIANTS */
.pcard__variants {
    margin-top: 4px;
}

.pcard__variants-label {
    font-size: 13px;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}

@media (max-width: 480px) {
    .pcard__variants-label {
        font-size: 12px;
        padding: 2px 6px;
    }
}


/* ACTIONS */
.pcard__actions {
    margin-top: 8px;
}
.btn.btn--primary.pcard__btn-add {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: #004b9b;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn.btn--primary.pcard__btn-add:hover {
    background: #003a78;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}
@media (max-width: 480px) { .pcard__btn-add { padding: 8px 10px; font-size: 13px; } }
/* CATEGORY PRODUCT GRID LAYOUT */
/* Center the whole grid */
/* Outer container centers the grid */
.ocp-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Enterprise-grade grid wrapper */
.ocp-grid__wrapper {
    max-width: 1300px; /* enterprise width */
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
@media (max-width: 1024px) {
    .ocp-grid__wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ocp-grid__wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ocp-grid__wrapper {
        grid-template-columns: 1fr;
    }
}

/* MINI VARIANT ROW */
.pcard__variants {
    margin-top: 4px;
    font-size: 13px;
    color: #4b5563;
}
.pcard__variants-label {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}

/* MICRO TRUST ROW */
.pcard__trust {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}
/* Base badge */
.pcard__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

/* Status colors */
.pcard__trust--instock {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.pcard__trust--low {
    background: #fefce8;
    border-color: #fef08a;
    color: #b45309;
}

.pcard__trust--few {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.pcard__trust--out {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.pcard__trust--preorder {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
/* =============================== */
/*   ENTERPRISE SORT / SHOW BAR    */
/* =============================== */

.category-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.category-toolbar label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
}

.category-toolbar select {
    appearance: none;
    background: #fff url("data:image/svg+xml;utf8,<svg fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M19 9l-7 7-7-7'/></svg>") no-repeat right 12px center;
    background-size: 14px;
    padding: 10px 40px 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 160px;
}

.category-toolbar select:hover {
    border-color: #9ca3af;
}

.category-toolbar select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sort-options,
.limit-options {
    display: flex;
    align-items: center;
    gap: 8px;
}