/* OpSales Product Embedder Styles */

/* Buttons */
.opsales-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.opsales-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Button Styles */
.opsales-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
}

.opsales-btn-success {
    background: linear-gradient(135deg, #9f780c 0%, #c9a520 100%);
    color: #ffffff !important;
}

.opsales-btn-dark {
    background: #333;
    color: #ffffff !important;
}

.opsales-btn-primary:hover { opacity: 0.9; }
.opsales-btn-success:hover { opacity: 0.9; }
.opsales-btn-dark:hover { opacity: 0.9; }

/* Button Sizes */
.opsales-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.opsales-btn-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.opsales-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.opsales-btn-block {
    display: block;
    width: 100%;
}

/* Product Card */
.opsales-product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.opsales-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.opsales-product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opsales-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.opsales-product-card:hover .opsales-product-image img {
    transform: scale(1.05);
}

.opsales-product-image.opsales-no-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.opsales-product-content {
    padding: 20px;
}

.opsales-product-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.opsales-product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.opsales-product-price {
    margin: 15px 0;
}

.opsales-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.opsales-price-note {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.opsales-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.opsales-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.opsales-badge-success {
    background: #d4edda;
    color: #155724;
}

.opsales-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.opsales-badge-default {
    background: #f8f9fa;
    color: #6c757d;
}

/* Product Grid */
.opsales-product-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.opsales-grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.opsales-grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.opsales-grid-col-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 992px) {
    .opsales-grid-col-4,
    .opsales-grid-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .opsales-product-grid {
        grid-template-columns: 1fr !important;
    }
    
    .opsales-product-image {
        height: 220px;
    }
    
    .opsales-product-title {
        font-size: 18px;
    }
    
    .opsales-price-amount {
        font-size: 24px;
    }
}

/* Product Actions (Add to Cart + View Details) */
.opsales-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.opsales-product-actions .opsales-button {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
}

/* Shopping Cart Styles */
.opsales-cart-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.opsales-cart-header h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #333;
}

.opsales-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.opsales-cart-empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.opsales-cart-items {
    margin-bottom: 30px;
}

.opsales-cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 120px 40px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.opsales-cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.opsales-cart-item-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.opsales-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opsales-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 12px;
}

.opsales-cart-item-details h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.opsales-cart-item-price {
    color: #666;
    font-size: 14px;
}

.opsales-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.opsales-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.opsales-qty-btn:hover {
    background: #f8f8f8;
    border-color: #bbb;
}

.opsales-qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.opsales-cart-item-subtotal {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: right;
}

.opsales-cart-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #ff4444;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s ease;
}

.opsales-cart-remove:hover {
    background: #cc0000;
}

.opsales-cart-footer {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.opsales-cart-totals {
    margin-bottom: 20px;
}

.opsales-cart-subtotal,
.opsales-cart-tax,
.opsales-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.opsales-cart-subtotal {
    font-size: 16px;
    color: #666;
}

.opsales-cart-tax {
    font-size: 14px;
    color: #888;
}

#cart-tax-note {
    font-style: italic;
    color: #999;
}

.opsales-cart-total {
    font-size: 24px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.opsales-cart-total strong {
    color: #333;
}

.opsales-cart-total .total-amount {
    color: #10b981;
    font-weight: bold;
}

.opsales-cart-total .total-amount {
    color: #28a745;
    font-weight: 700;
}

/* Notifications */
.opsales-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: top 0.3s ease;
    min-width: 300px;
    font-size: 14px;
}

.opsales-notification-show {
    top: 20px;
}

.opsales-notification-success {
    border-left: 4px solid #28a745;
}

.opsales-notification-error {
    border-left: 4px solid #dc3545;
}

/* Spinner */
.opsales-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: opsales-spin 0.6s linear infinite;
}

@keyframes opsales-spin {
    to { transform: rotate(360deg); }
}

/* Store Grid Alignment */
.opsales-products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.store-page .opsales-products-wrapper {
    padding-top: 40px;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .opsales-cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .opsales-cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .opsales-cart-item-quantity {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    .opsales-cart-item-subtotal {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .opsales-cart-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .opsales-cart-item {
        position: relative;
    }
}

/* ===============================================
   CHECKOUT FORM STYLES
   =============================================== */

.opsales-checkout-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.opsales-checkout-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.opsales-checkout-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.opsales-checkout-form {
    display: block;
}

.opsales-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.opsales-form-section h3 {
    margin: 0 0 20px 0;
    color: #444;
    font-size: 20px;
    font-weight: 600;
}

.opsales-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.opsales-form-group {
    margin-bottom: 20px;
}

.opsales-form-group:last-child {
    margin-bottom: 0;
}

.opsales-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.opsales-form-group input[type="text"],
.opsales-form-group input[type="email"],
.opsales-form-group input[type="tel"],
.opsales-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

.opsales-form-group input:focus,
.opsales-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.opsales-form-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.opsales-checkout-summary {
    margin: 30px 0;
    padding: 25px;
    background: #f5f8ff;
    border-radius: 8px;
    border: 2px solid #d0deff;
}

.opsales-checkout-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

#checkout-items-summary {
    margin-bottom: 20px;
}

.opsales-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 15px;
}

.opsales-summary-item:last-child {
    border-bottom: none;
}

.opsales-summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #d0deff;
}

.opsales-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
}

.opsales-summary-total {
    font-size: 20px;
    color: #333;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #667eea;
}

.opsales-form-actions {
    margin-top: 30px;
}

.opsales-form-actions .opsales-button {
    margin-bottom: 12px;
}

.opsales-error-message {
    padding: 15px 20px;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c00;
    margin-top: 20px;
    font-weight: 600;
}

.opsales-loading {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.opsales-spinner {
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.opsales-loading p {
    color: #555;
    font-size: 16px;
    font-weight: 600;
}

.opsales-btn-secondary {
    background: #6c757d;
    color: #ffffff !important;
}

.opsales-btn-secondary:hover {
    opacity: 0.9;
}

/* Responsive adjustments for checkout form */
@media (max-width: 768px) {
    .opsales-checkout-wrapper {
        padding: 15px;
        margin: 20px auto;
    }
    
    .opsales-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .opsales-form-section {
        padding: 20px 15px;
    }
    
    .opsales-checkout-summary {
        padding: 20px 15px;
    }
}


/* ===============================================
   STORE PAGE — Toolbar, Cart Link, Fallback
   =============================================== */

.opsales-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 8px auto;
    padding: 0 20px;
}

.opsales-store-heading {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #edecec;
}

/* Cart link pill */
.opsales-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #333;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
}

.opsales-cart-link:hover {
    background: #111;
    transform: translateY(-1px);
}

/* Badge — shown/hidden via JS updateCartCount() */
.opsales-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #fff;
}

/* API unavailable fallback */
.opsales-store-unavailable {
    max-width: 600px;
    margin: 60px auto;
    padding: 30px 40px;
    text-align: center;
    background: #fff8e1;
    border: 2px solid #ffe082;
    border-radius: 12px;
    color: #5d4037;
    font-size: 16px;
    line-height: 1.7;
}

.opsales-store-unavailable a {
    color: #667eea;
    font-weight: 600;
}

/* Responsive toolbar */
@media (max-width: 576px) {
    .opsales-store-toolbar {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .opsales-store-heading {
        font-size: 22px;
    }
}


/* =============================================================================
   PORTFOLIO SYSTEM — v3.1.0
   Covers: series grid, collection grid, product cards, single product,
   lightbox, request price modal, badges, customizer overrides
   ============================================================================= */


/* ── Portfolio Page ─────────────────────────────────────────────────────────── */

.portfolio-page,
.series-page,
.single-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.portfolio-page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.portfolio-page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #111;
}

.portfolio-page-subtitle {
    font-size: 1.125rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}


/* ── Series Grid ────────────────────────────────────────────────────────────── */

.portfolio-series-grid {
    display: grid;
    grid-template-columns: repeat(var(--portfolio-cols, 3), 1fr);
    gap: 2rem;
}

.portfolio-series-grid--list {
    grid-template-columns: 1fr;
}

.portfolio-series-grid--hero {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.portfolio-series-grid--hero .portfolio-series-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .portfolio-series-grid,
    .portfolio-collection-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .portfolio-series-grid,
    .portfolio-collection-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-series-grid--hero .portfolio-series-card {
        grid-template-columns: 1fr;
    }
}


/* ── Series Card ────────────────────────────────────────────────────────────── */

.portfolio-series-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.portfolio-series-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.portfolio-series-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.portfolio-series-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.portfolio-series-card:hover .portfolio-series-card__image img {
    transform: scale(1.05);
}

.portfolio-series-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.35;
}

.portfolio-series-card__content {
    padding: 1.5rem;
}

.portfolio-series-card__count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.portfolio-series-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.portfolio-series-card__title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-series-card__title a:hover {
    color: #667eea;
}

.portfolio-series-card__description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.portfolio-series-card__cta {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-series-card__cta:hover {
    color: #4f46e5;
}


/* ── Collection Grid (products within a series) ─────────────────────────────── */

.portfolio-collection-grid {
    display: grid;
    grid-template-columns: repeat(var(--portfolio-cols, 3), 1fr);
    gap: 1.75rem;
}


/* ── Portfolio Product Card ──────────────────────────────────────────────────── */

.portfolio-product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.portfolio-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* Frame overlay (customizer controls this via CSS vars) */
.portfolio-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
}

.portfolio-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* box-shadow value injected by customizer CSS */
    box-shadow: var(--ktv-portfolio-frame, inset 0 0 0 6px rgba(0,0,0,0.08));
    border-radius: inherit;
}

.portfolio-card-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.portfolio-product-card:hover .portfolio-card-image__img {
    transform: scale(1.05);
}

.portfolio-card-image__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

/* Video wrap */
.portfolio-card-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-card-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
}

.portfolio-card-play-overlay:hover {
    background: rgba(0,0,0,0.55);
}

/* Zoom button — shown on hover */
.portfolio-card-zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.portfolio-product-card:hover .portfolio-card-zoom-btn,
.portfolio-card-image:hover .portfolio-card-zoom-btn {
    opacity: 1;
    transform: scale(1.1);
}

/* Badges */
.portfolio-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.portfolio-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.portfolio-card-badge--sold    { background: #ef4444; }
.portfolio-card-badge--in-cart { background: #10b981; }
.portfolio-card-badge--request { background: #6b7280; }

/* Card content */
.portfolio-card-content {
    padding: 1.25rem;
}

.portfolio-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.portfolio-card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-card-title a:hover { color: #667eea; }

.portfolio-card-description {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.portfolio-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.portfolio-card-meta__item {
    font-size: 0.75rem;
    color: #9ca3af;
}

.portfolio-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
}

.portfolio-card-price--request {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 400;
}

/* Card action buttons */
.portfolio-card-actions {
    display: flex;
    gap: 0.5rem;
}

.portfolio-card-btn {
    flex: 1;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.4;
}

.portfolio-card-btn--details {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151 !important;
}

.portfolio-card-btn--details:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.portfolio-card-btn--sold {
    background: #f3f4f6;
    color: #9ca3af !important;
    cursor: not-allowed;
}

/* Sold / In-Cart card state */
.portfolio-product-card.is-sold .portfolio-card-image__img {
    opacity: 0.6;
}

.portfolio-product-card.is-in-cart {
    border-color: #10b981;
}

/* btn-request-price and btn-portfolio-cart colored via customizer CSS */
.btn-request-price,
.btn-portfolio-cart {
    border: none;
    cursor: pointer;
}

.btn-portfolio-cart--in-cart {
    background: #10b981 !important;
    color: #fff !important;
}


/* ── Series Hero ─────────────────────────────────────────────────────────────── */

.series-hero {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.series-hero__image {
    position: absolute;
    inset: 0;
}

.series-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.series-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}

.series-hero__content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: #fff;
}

.series-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.series-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.series-breadcrumb a:hover {
    text-decoration: underline;
}

.series-hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.series-hero__description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.6;
}

.series-hero__count {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.75rem;
}

.series-collection-section {
    margin-top: 2rem;
}


/* ── Single Product ──────────────────────────────────────────────────────────── */

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Gallery */
.single-product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    cursor: zoom-in;
}

.gallery-main__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-main:hover .gallery-main__img {
    transform: scale(1.03);
}

.gallery-main__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.25;
}

.gallery-main__zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.85);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #374151;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-main:hover .gallery-main__zoom-hint {
    opacity: 1;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #f3f4f6;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.gallery-thumb__video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 1.1rem;
}

/* Product Info */
.product-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    color: #fff;
}

.product-status-badge--sold    { background: #ef4444; }
.product-status-badge--in-cart { background: #10b981; }

.single-product-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #111;
    line-height: 1.2;
}

.single-product-series {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.single-product-series a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.single-product-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.single-product-meta dt {
    font-weight: 700;
    color: #374151;
}

.single-product-meta dd {
    color: #6b7280;
    margin: 0;
}

.single-product-description {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.single-product-long-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.single-product-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1.5rem;
}

.single-product-price--request {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 400;
}

.single-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-action-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
}

.product-action-btn--secondary {
    background: transparent;
    border: 2px solid #d1d5db;
    color: #374151 !important;
}

.product-action-btn--secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.product-action-btn--sold {
    background: #f3f4f6;
    color: #9ca3af !important;
    cursor: not-allowed;
}


/* ── Portfolio Empty State ───────────────────────────────────────────────────── */

.portfolio-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

.portfolio-empty-state a {
    color: #667eea;
    font-weight: 600;
}


/* ── Lightbox ────────────────────────────────────────────────────────────────── */

.ktv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ktv-lightbox.is-open {
    pointer-events: all;
    opacity: 1;
}

body.lightbox-open {
    overflow: hidden;
}

.ktv-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
}

.ktv-lightbox__dialog {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ktv-lightbox__content {
    text-align: center;
}

.ktv-lightbox__img {
    max-width: 80vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.ktv-lightbox__caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.ktv-lightbox__close,
.ktv-lightbox__prev,
.ktv-lightbox__next {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.ktv-lightbox__close:hover,
.ktv-lightbox__prev:hover,
.ktv-lightbox__next:hover {
    background: rgba(255,255,255,0.3);
}

.ktv-lightbox__close {
    position: absolute;
    top: -52px;
    right: 0;
}


/* ── Modal (Request Price) ───────────────────────────────────────────────────── */

.ktv-modal {
    position: fixed;
    inset: 0;
    z-index: 88888;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ktv-modal.is-open {
    pointer-events: all;
    opacity: 1;
}

body.modal-open {
    overflow: hidden;
}

.ktv-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
}

.ktv-modal__dialog {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: min(520px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.ktv-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.ktv-modal__close:hover { color: #111; }

.ktv-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: #111;
}

.ktv-modal__subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ── Request Form ────────────────────────────────────────────────────────────── */

.ktv-request-form {
    display: block;
}

.ktv-form-group {
    margin-bottom: 1.25rem;
}

.ktv-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.375rem;
}

.ktv-form-group input,
.ktv-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #111;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.ktv-form-group input:focus,
.ktv-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.ktv-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.ktv-form-feedback {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ktv-form-feedback.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ktv-form-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}