
/* WP Catalog Pro - Modern Corporate Stylesheet */
:root {
    --wpcat-primary: #0f172a;
    --wpcat-primary-accent: #2563eb;
    --wpcat-primary-hover: #1d4ed8;
    --wpcat-bg-card: #ffffff;
    --wpcat-border: #e2e8f0;
    --wpcat-text-main: #1e293b;
    --wpcat-text-muted: #64748b;
    --wpcat-admin-green: #15803d;
    --wpcat-admin-bg: #f0fdf4;
    --wpcat-radius: 12px;
    --wpcat-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --wpcat-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wpcat-container {
    width: 100%;
    margin: 30px auto;
    font-family: inherit;
    color: var(--wpcat-text-main);
}

/* Toolbar & Filter Bar */
.wpcat-header-toolbar {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpcat-search-box {
    max-width: 480px;
    width: 100%;
}

.wpcat-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wpcat-search-icon {
    position: absolute;
    left: 14px;
    color: var(--wpcat-text-muted);
    pointer-events: none;
}

.wpcat-search-input-wrap input {
    width: 100%;
    padding: 12px 38px 12px 42px;
    border: 1.5px solid var(--wpcat-border);
    border-radius: 30px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.wpcat-search-input-wrap input:focus {
    border-color: var(--wpcat-primary-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wpcat-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--wpcat-text-muted);
    cursor: pointer;
    line-height: 1;
}

/* Filter Tabs */
.wpcat-filter-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 6px;
}

.wpcat-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wpcat-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--wpcat-text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpcat-tab-btn:hover {
    background: #e2e8f0;
    color: var(--wpcat-text-main);
}

.wpcat-tab-btn.active {
    background: var(--wpcat-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.wpcat-tab-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
}

.wpcat-tab-btn.active .wpcat-tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Products Grid */
.wpcat-products-grid {
    display: grid;
    gap: 24px;
    position: relative;
}

.wpcat-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpcat-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpcat-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 992px) {
    .wpcat-cols-4, .wpcat-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .wpcat-cols-4, .wpcat-cols-3, .wpcat-cols-2 { grid-template-columns: 1fr; }
}

/* Product Card */
.wpcat-card {
    background: var(--wpcat-bg-card);
    border: 1px solid var(--wpcat-border);
    border-radius: var(--wpcat-radius);
    overflow: hidden;
    box-shadow: var(--wpcat-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.wpcat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wpcat-shadow-hover);
    border-color: #cbd5e1;
}

.wpcat-card-media {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8fafc;
}

.wpcat-card-media-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.wpcat-card-media img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wpcat-card:hover .wpcat-card-media img {
    transform: scale(1.05);
}

.wpcat-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.wpcat-sku-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--wpcat-text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.wpcat-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wpcat-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.wpcat-card-title a {
    color: var(--wpcat-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wpcat-card-title a:hover {
    color: var(--wpcat-primary-accent);
}

.wpcat-card-desc {
    font-size: 13px;
    color: var(--wpcat-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.wpcat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* Admin Price Tag */
.wpcat-admin-price {
    background: var(--wpcat-admin-bg);
    border: 1px solid #bbf7d0;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.wpcat-admin-tag {
    font-size: 9.5px;
    color: var(--wpcat-admin-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpcat-price-amount {
    font-size: 14px;
    color: var(--wpcat-admin-green);
    font-weight: 700;
}

.wpcat-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: var(--wpcat-text-main);
    border: 1px solid var(--wpcat-border);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: auto;
}

.wpcat-btn-detail:hover {
    background: var(--wpcat-primary-accent);
    color: #fff;
    border-color: var(--wpcat-primary-accent);
}

/* Spinner Loader */
.wpcat-loader {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.wpcat-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--wpcat-primary-accent);
    border-radius: 50%;
    animation: wpcat-spin 0.8s linear infinite;
}

@keyframes wpcat-spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.wpcat-pagination-wrapper {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

.wpcat-pagination {
    display: flex;
    gap: 6px;
}

.wpcat-page-num {
    background: #fff;
    border: 1px solid var(--wpcat-border);
    color: var(--wpcat-text-main);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpcat-page-num:hover {
    border-color: var(--wpcat-primary-accent);
    color: var(--wpcat-primary-accent);
}

.wpcat-page-num.active {
    background: var(--wpcat-primary);
    border-color: var(--wpcat-primary);
    color: #fff;
}

/* ==========================================================================
   Single Product Details Page (Next-Gen Layout)
   ========================================================================== */
.wpcat-single-wrapper {
    margin: 20px 0 50px;
}

.wpcat-breadcrumb {
    font-size: 13px;
    color: var(--wpcat-text-muted);
    margin-bottom: 25px;
}

.wpcat-breadcrumb a {
    color: var(--wpcat-text-muted);
    text-decoration: none;
}

.wpcat-breadcrumb a:hover {
    color: var(--wpcat-primary-accent);
}

.wpcat-breadcrumb-separator {
    margin: 0 6px;
    color: #cbd5e1;
}

.wpcat-breadcrumb-current {
    color: var(--wpcat-text-main);
    font-weight: 500;
}

.wpcat-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 850px) {
    .wpcat-single-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.wpcat-main-image-frame {
    border: 1px solid var(--wpcat-border);
    border-radius: var(--wpcat-radius);
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 12px;
    box-shadow: var(--wpcat-shadow);
}

.wpcat-main-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.wpcat-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpcat-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.2s ease;
}

.wpcat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpcat-thumb:hover, .wpcat-thumb.active {
    opacity: 1;
    border-color: var(--wpcat-primary-accent);
}

.wpcat-single-category {
    display: inline-block;
    background: #f1f5f9;
    color: var(--wpcat-primary-accent);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.wpcat-single-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: var(--wpcat-primary);
}

.wpcat-single-sku {
    font-size: 13px;
    color: var(--wpcat-text-muted);
    margin-bottom: 20px;
}

.wpcat-single-sku code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--wpcat-text-main);
}

.wpcat-single-admin-price-card {
    background: var(--wpcat-admin-bg);
    border: 1.5px dashed var(--wpcat-admin-green);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.wpcat-admin-price-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wpcat-admin-green);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.wpcat-admin-price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--wpcat-admin-green);
}

.wpcat-single-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--wpcat-text-main);
    margin-bottom: 25px;
    border-left: 3px solid var(--wpcat-primary-accent);
    padding-left: 14px;
}

.wpcat-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}

.wpcat-btn-cta:hover {
    background: #20ba59;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.wpcat-single-description-block {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--wpcat-border);
}

.wpcat-single-description-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wpcat-description-content {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
}

/* Category Grid Shortcode */
.wpcat-categories-grid {
    display: grid;
    gap: 20px;
}

.wpcat-cat-card {
    background: #fff;
    border: 1px solid var(--wpcat-border);
    border-radius: var(--wpcat-radius);
    overflow: hidden;
    box-shadow: var(--wpcat-shadow);
    transition: all 0.3s ease;
}

.wpcat-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wpcat-shadow-hover);
}

.wpcat-cat-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--wpcat-text-main);
}

.wpcat-cat-image-wrap {
    height: 160px;
    overflow: hidden;
    background: #f8fafc;
}

.wpcat-cat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wpcat-cat-card:hover .wpcat-cat-image-wrap img {
    transform: scale(1.06);
}

.wpcat-cat-content {
    padding: 15px;
    text-align: center;
}

.wpcat-cat-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.wpcat-cat-count {
    font-size: 12px;
    color: var(--wpcat-text-muted);
}
