/**
 * Single Product Page — Premium Odakon Design
 * 
 * All styles for content-single-product.php v5.0
 * Loaded ONLY on is_product() pages for zero bloat.
 * 
 * @package DJI_Market
 * @version 5.0.0
 */

/* ═══════════════════════════════════════════════
   1. BASE / CONTAINER
   ═══════════════════════════════════════════════ */
.odakon-product {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px 120px;
}
@media (min-width: 768px) {
    .odakon-product { padding: 40px 24px 48px; }
}
@media (min-width: 1024px) {
    .odakon-product { padding: 48px 32px 64px; }
}

/* Hide WC default elements we handle ourselves */
.odakon-product .woocommerce-product-gallery,
.odakon-product .product_meta,
.odakon-product .woocommerce-tabs {
    display: none !important;

}

/* Spinner animation for AJAX add-to-cart */
@keyframes opSpin {
    to { transform: rotate(360deg); }
}
.op-add-to-cart.loading {
    pointer-events: none;
    opacity: .85;
}


/* ═══════════════════════════════════════════════
   2. BREADCRUMB
   ═══════════════════════════════════════════════ */
.op-breadcrumb {
    margin-bottom: 24px;
}
.op-bc-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.op-bc-inner a {
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
}
.op-bc-inner a:hover { color: #2563eb; }
.op-bc-sep {
    color: #d1d5db;
    flex-shrink: 0;
}
/* Last item = current page */
.op-bc-inner > span:last-child,
.op-bc-inner > strong:last-child {
    color: #111827;
    font-weight: 600;
}
/* Hide emoji home icon from WC breadcrumb */
.op-bc-inner .breadcrumb_home_icon,
.op-bc-inner img.emoji {
    display: none;
}

/* ═══════════════════════════════════════════════
   3. MAIN LAYOUT (Gallery + Buy Box)
   ═══════════════════════════════════════════════ */
.op-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}
@media (min-width: 1024px) {
    .op-layout {
        flex-direction: row;
        gap: 64px;
        margin-bottom: 64px;
    }
}

/* ═══════════════════════════════════════════════
   4. GALLERY
   ═══════════════════════════════════════════════ */
.op-gallery {
    width: 100%;
}
@media (min-width: 1024px) {
    .op-gallery {
        width: 50%;
        position: sticky;
        top: 32px;
        align-self: flex-start;
    }
}

.op-gallery-main {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 12px;
}
.op-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s ease;
    cursor: crosshair;
}
.op-gallery-main:hover img {
    transform: scale(1.08);
}

/* Thumbnails — mobile: horizontal scroll, desktop: grid */
.op-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.op-thumbs::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .op-thumbs {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        overflow: visible;
    }
}

.op-thumb {
    flex-shrink: 0;
    width: 72px;
    aspect-ratio: 1;
    background: #fff;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, box-shadow .2s;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .op-thumb { width: auto; }
}
.op-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.op-thumb.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}
.op-thumb:hover:not(.active) {
    border-color: #d1d5db;
}

/* ═══════════════════════════════════════════════
   5. BUY BOX
   ═══════════════════════════════════════════════ */
.op-buybox {
    width: 100%;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1024px) {
    .op-buybox { width: 50%; }
}

/* Badges */
.op-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.op-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.op-badge--stock {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.op-badge--outofstock {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.op-badge--shipping {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Title */
.op-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 0 0 12px;
}
@media (min-width: 768px) {
    .op-title { font-size: 32px; }
}

/* Rating */
.op-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.op-rating .star-rating {
    font-size: 16px;
}
.op-rating-link {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color .15s;
}
.op-rating-link:hover { color: #1e40af; }

/* Short Description */
.op-excerpt {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}
.op-excerpt p { margin: 0; }
.op-excerpt p + p { margin-top: 8px; }

/* Price Box */
.op-price-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    margin-bottom: 20px;
}
.op-price {
    font-size: 36px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
@media (min-width: 768px) {
    .op-price { font-size: 42px; }
}
/* WC price formatting */
.op-price .woocommerce-Price-amount { font-size: inherit; }
.op-price .woocommerce-Price-currencySymbol { 
    font-size: 0.55em; 
    font-weight: 700; 
    color: #6b7280; 
    vertical-align: 0.1em;
}
.op-price del {
    font-size: 0.5em;
    color: #9ca3af;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.op-price ins { text-decoration: none; }
.op-price-note {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #16a34a;
}

/* ═══════════════════════════════════════════════
   6. SERVICE UPSELL
   ═══════════════════════════════════════════════ */
.op-service {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background .2s, border-color .2s;
    user-select: none;
}
.op-service:hover {
    background: #dbeafe;
}
.op-service.selected {
    background: #dbeafe;
    border-color: #60a5fa;
}
.op-service-check {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.op-service.selected .op-service-check {
    background: #2563eb;
    border-color: #2563eb;
}
.op-service.selected .op-service-check::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.op-service-body { flex: 1; }
.op-service-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}
.op-service-title svg { color: #2563eb; }
.op-service-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}
.op-service-price {
    display: block;
    margin-top: 6px;
    color: #1d4ed8;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   7. CART ACTIONS
   ═══════════════════════════════════════════════ */
.op-cart-actions {
    margin-bottom: 24px;
}
/* Hide default WC cart form if variable product renders its own */
.op-cart-actions > .variations_form .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.op-cart-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
/* Hide on mobile — mobile sticky bar handles it */
@media (max-width: 767px) {
    .op-cart-actions { display: none; }
}

/* Quantity */
.op-qty-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 0 4px;
    width: 120px;
    justify-content: space-between;
}
.op-qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
}
.op-qty-btn:hover { color: #2563eb; }
.op-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.op-qty-input::-webkit-inner-spin-button,
.op-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.op-add-to-cart {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
    line-height: 1.2 !important;
}
.op-add-to-cart:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.op-add-to-cart:active {
    background: #1e40af !important;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   8. META INFO
   ═══════════════════════════════════════════════ */
.op-meta {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
}
.op-meta-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
}
.op-meta-row + .op-meta-row {
    border-top: 1px solid #f3f4f6;
}
.op-meta-label {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    min-width: 130px;
    flex-shrink: 0;
}
.op-meta-value {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}
.op-meta-value a {
    color: #2563eb;
    text-decoration: none;
}
.op-meta-value a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .op-meta-row {
        flex-direction: column;
        gap: 2px;
    }
    .op-meta-label { min-width: 0; }
}

/* ═══════════════════════════════════════════════
   9. TRUST BADGES
   ═══════════════════════════════════════════════ */
.op-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.op-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.op-trust-item svg {
    margin-bottom: 6px;
    flex-shrink: 0;
}
.op-trust-item:nth-child(1) svg { color: #16a34a; }
.op-trust-item:nth-child(2) svg { color: #2563eb; }
.op-trust-item:nth-child(3) svg { color: #ea580c; }
.op-trust-item:nth-child(4) svg { color: #7c3aed; }
.op-trust-item span {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
}
@media (max-width: 480px) {
    .op-trust-item span { font-size: 10px; }
}

/* ═══════════════════════════════════════════════
   10. TABS
   ═══════════════════════════════════════════════ */
.op-tabs-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 48px;
}

.op-tabs-bar {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
}
.op-tabs-bar::-webkit-scrollbar { display: none; }

.op-tab-btn {
    flex: 1;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .2s, border-color .2s;
}
.op-tab-btn:hover { color: #111; }
.op-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.op-tab-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.op-tab-btn.active .op-tab-count {
    background: #eff6ff;
    color: #2563eb;
}

/* Tab Panels */
.op-tab-panel {
    display: none;
    padding: 24px;
    animation: opFadeIn .3s ease;
}
.op-tab-panel.active { display: block; }
@media (min-width: 768px) {
    .op-tab-panel { padding: 40px; }
}

@keyframes opFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hide duplicate headings rendered by WC tab callbacks */
.op-tab-panel > h2:first-child,
#comments > h2:first-child {
    display: none;
}
.op-tab-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

/* Reviews panel */
.op-tab-panel .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.op-tab-panel .commentlist li {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    margin-bottom: 16px;
}
.op-tab-panel .commentlist li:last-child { margin-bottom: 0; }
.op-tab-panel .commentlist .comment_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.op-tab-panel .commentlist .comment_container > img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
}
.op-tab-panel .commentlist .comment-text {
    flex: 1;
}
.op-tab-panel .commentlist .comment-text .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.op-tab-panel .commentlist .comment-text .meta strong {
    font-size: 14px;
    color: #111;
}
.op-tab-panel .commentlist .comment-text .meta .woocommerce-review__dash {
    display: none;
}
.op-tab-panel .commentlist .comment-text .meta time {
    font-size: 12px;
    color: #6b7280;
}
.op-tab-panel .commentlist .comment-text .description p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}
.op-tab-panel .comment-form-rating {
    margin-bottom: 16px;
}
.op-tab-panel #respond {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.op-tab-panel #respond .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.op-tab-panel #respond .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #374151;
}
.op-tab-panel #respond .comment-form input[type="text"],
.op-tab-panel #respond .comment-form input[type="email"],
.op-tab-panel #respond .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color .15s;
}
.op-tab-panel #respond .comment-form input:focus,
.op-tab-panel #respond .comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.op-tab-panel #respond .comment-form .form-submit input {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}
.op-tab-panel #respond .comment-form .form-submit input:hover {
    background: #1d4ed8;
}

/* Reviews load more */
.op-tab-panel .reviews-load-more {
    text-align: center;
    margin-top: 16px;
}
.op-tab-panel .load-more-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.op-tab-panel .load-more-reviews:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Additional info table */
.op-tab-panel .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}
.op-tab-panel .shop_attributes th,
.op-tab-panel .shop_attributes td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.op-tab-panel .shop_attributes th {
    font-weight: 700;
    color: #111;
    width: 35%;
    text-align: left;
}
.op-tab-panel .shop_attributes td {
    color: #4b5563;
}
.op-tab-panel .shop_attributes tr:nth-child(even) {
    background: #f9fafb;
}

/* Star rating in reviews */
.op-tab-panel .star-rating,
.op-rating .star-rating {
    color: #f59e0b;
}

/* ═══════════════════════════════════════════════
   11. CATEGORY PRODUCTS BOTTOM SECTION
   ═══════════════════════════════════════════════ */
.op-category-section {
    margin-bottom: 32px;
}
.op-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.op-section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0;
}
.op-view-all {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color .15s;
}
.op-view-all:hover { color: #1e40af; }
@media (min-width: 768px) {
    .op-view-all { display: inline-flex; }
}

/* Scroll nav arrows (desktop) */
.op-scroll-nav {
    display: none;
    gap: 8px;
}
@media (min-width: 768px) {
    .op-scroll-nav { display: flex; }
}
.op-scroll-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all .15s;
}
.op-scroll-btn:hover {
    background: #f9fafb;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Horizontal scroll container */
.op-hscroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}
.op-hscroll::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .op-hscroll {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
    }
}

/* Product card */
.op-hcard {
    flex-shrink: 0;
    width: 200px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .3s, transform .3s;
}
@media (min-width: 1024px) {
    .op-hcard { width: auto; }
}
.op-hcard:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Badge */
.op-hcard-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.op-hcard-badge--sale {
    background: #dc2626;
}

/* Image */
.op-hcard-img {
    aspect-ratio: 1;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249,250,251,.5);
}
.op-hcard-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .4s;
}
.op-hcard:hover .op-hcard-img img {
    transform: scale(1.05);
}

/* Info */
.op-hcard-info {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.op-hcard-cat {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.op-hcard-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.op-hcard:hover .op-hcard-name {
    color: #2563eb;
}
.op-hcard-price {
    margin-top: auto;
    font-size: 16px;
    font-weight: 900;
    color: #111;
}
.op-hcard-price del {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
}
.op-hcard-price ins {
    text-decoration: none;
    color: #dc2626;
}

/* View all mobile link */
.op-view-all-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 14px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.op-view-all-mobile:hover {
    border-color: #2563eb;
    color: #2563eb;
}
@media (min-width: 768px) {
    .op-view-all-mobile { display: none; }
}

/* ═══════════════════════════════════════════════
   12. MOBILE STICKY ADD-TO-CART BAR
   ═══════════════════════════════════════════════ */
.op-mobile-bar {
    display: none;
}
@media (max-width: 767px) {
    .op-mobile-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        /* Safari safe area */
        padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0,0,0,.05);
    }
}
.op-mobile-bar-price {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.op-mb-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}
.op-mb-price {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
}
.op-mb-price .woocommerce-Price-currencySymbol {
    font-size: 0.6em;
    color: #6b7280;
}
.op-mb-price del { display: none; }
.op-mb-price ins { text-decoration: none; }

.op-mb-cart-btn {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}
.op-mb-cart-btn:active {
    background: #1e40af;
}

/* ═══════════════════════════════════════════════
   13. RELATED PRODUCTS (via op-related-section)
   ═══════════════════════════════════════════════ */
.op-related-section {
    margin-top: 16px;
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════
   14. VARIABLE PRODUCT SUPPORT
   ═══════════════════════════════════════════════ */
.op-cart-actions .variations_form {
    width: 100%;
}
.op-cart-actions .variations {
    margin-bottom: 16px;
}
.op-cart-actions .variations td,
.op-cart-actions .variations th {
    display: block;
    padding: 4px 0;
}
.op-cart-actions .variations th label {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}
.op-cart-actions .variations td select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.op-cart-actions .variations td select:focus {
    outline: none;
    border-color: #2563eb;
}
.op-cart-actions .woocommerce-variation-price {
    margin-bottom: 12px;
}
.op-cart-actions .woocommerce-variation-price .price {
    font-size: 28px;
    font-weight: 900;
    color: #111;
}
.op-cart-actions .single_variation_wrap .quantity {
    display: flex;
    align-items: center;
}
.op-cart-actions .single_variation_wrap .quantity input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}
.op-cart-actions .single_variation_wrap button.single_add_to_cart_button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
    transition: background .2s;
}
.op-cart-actions .single_variation_wrap button.single_add_to_cart_button:hover {
    background: #1d4ed8;
}

/* ═══════════════════════════════════════════════
   15. WOOCOMMERCE MESSAGE (after add to cart)
   ═══════════════════════════════════════════════ */
.odakon-product .woocommerce-message,
.odakon-product .woocommerce-info,
.odakon-product .woocommerce-error {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
}
