
/* 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);
}

/* Modern Dropdown Toolbar Card */
.wpcat-toolbar-card {
    background: #ffffff;
    border: 1px solid var(--wpcat-border);
    border-radius: var(--wpcat-radius);
    padding: 18px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.wpcat-tool-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.wpcat-tool-search {
    flex: 1.6;
    min-width: 240px;
}

.wpcat-filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wpcat-text-muted);
}

.wpcat-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wpcat-search-icon {
    position: absolute;
    left: 12px;
    color: var(--wpcat-text-muted);
    pointer-events: none;
}

.wpcat-search-input-wrap input {
    width: 100%;
    padding: 10px 36px 10px 38px;
    border: 1.5px solid var(--wpcat-border);
    border-radius: 8px;
    font-size: 13.5px;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    height: 42px;
    box-sizing: border-box;
}

.wpcat-search-input-wrap input:focus {
    background: #fff;
    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;
}

/* Custom Select Dropdowns */
.wpcat-select-wrap {
    position: relative;
    width: 100%;
}

.wpcat-filter-select {
    width: 100%;
    height: 42px;
    padding: 8px 32px 8px 12px;
    border: 1.5px solid var(--wpcat-border);
    border-radius: 8px;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 16px;
    font-size: 13.5px;
    color: var(--wpcat-text-main);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wpcat-filter-select:focus {
    background-color: #fff;
    border-color: var(--wpcat-primary-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 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; }
    .wpcat-toolbar-card { flex-direction: column; align-items: stretch; }
    .wpcat-tool-item { width: 100%; min-width: 100%; }
}

/* 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 */
.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;
}


/* Slider & Navigation Arrows (Product Card) */
.wpcat-card-media {
    position: relative;
    user-select: none;
}

.wpcat-card-slide-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s ease;
    pointer-events: none;
}

.wpcat-card-slide-img.active {
    opacity: 1;
    pointer-events: auto;
}

.wpcat-card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 5;
}

.wpcat-card-media:hover .wpcat-card-nav {
    opacity: 1;
}

.wpcat-card-nav:hover {
    background: #ffffff;
    color: var(--wpcat-primary-accent);
    transform: translateY(-50%) scale(1.1);
}

.wpcat-card-nav-prev { left: 8px; }
.wpcat-card-nav-next { right: 8px; }

/* Card Dots */
.wpcat-card-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 4;
    background: rgba(0,0,0,0.35);
    padding: 3px 6px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wpcat-card-media:hover .wpcat-card-dots {
    opacity: 1;
}

.wpcat-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpcat-card-dot.active {
    background: #ffffff;
    width: 14px;
    border-radius: 4px;
}

/* Video Badge */
.wpcat-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Single Product Slider Nav & Video Viewer */
.wpcat-single-slider {
    position: relative;
    overflow: hidden;
}

.wpcat-single-viewer {
    position: relative;
    width: 100%;
    min-height: 380px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcat-single-viewer img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.wpcat-video-player-wrap {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: var(--wpcat-radius);
    overflow: hidden;
}

.wpcat-video-player-wrap iframe,
.wpcat-video-player-wrap video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

.wpcat-single-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 6;
}

.wpcat-single-nav:hover {
    background: #ffffff;
    color: var(--wpcat-primary-accent);
    transform: translateY(-50%) scale(1.1);
}

.wpcat-single-nav-prev { left: 14px; }
.wpcat-single-nav-next { right: 14px; }

/* Video Thumbnail */
.wpcat-thumb[data-type="video"] {
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wpcat-thumb-video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcat-thumb-video-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ef4444;
    margin-top: 2px;
}
