/* Online Product Catalog Frontend - redesign */
.opc-catalog,
.opc-single {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--opc-text);
    background: var(--opc-bg);
}

/* Layout */
.opc-shell{display:grid;grid-template-columns:300px 1fr;gap:22px;align-items:start}
.opc-layout-top .opc-shell{grid-template-columns:1fr}
.opc-layout-none .opc-shell{grid-template-columns:1fr}
.opc-layout-none .opc-filters{display:none}
.opc-filters{position:sticky;top:18px}
.opc-layout-top .opc-filters{position:static}
.opc-filters-inner{
    border:1px solid rgba(15,23,42,.10);
    background:#fff;
    border-radius:22px;
    padding:16px;
    box-shadow:0 12px 36px rgba(15,23,42,.06);
}
.opc-layout-top .opc-filters-inner{display:flex;flex-wrap:wrap;gap:12px;align-items:end;box-shadow:none;border:none;background:transparent;padding:0}
.opc-control{min-width:180px;flex:1 1 180px;margin-bottom:12px}
.opc-layout-top .opc-control{margin-bottom:0}
.opc-control.opc-actions{flex:0 0 auto;min-width:auto}
.opc-label span{display:block;font-size:12px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:var(--opc-muted);margin:0 0 7px}
.opc-help{display:block;margin-top:6px;color:var(--opc-muted);font-size:11px}
.opc-select,.opc-search input{
    width:100%;
    border:1px solid #d8dee8;
    border-radius:14px;
    padding:11px 13px;
    background:#fff;
    outline:none;
    min-height:44px;
}
.opc-search input:focus,.opc-select:focus{border-color:var(--opc-primary);box-shadow:0 0 0 4px rgba(196,0,1,.10)}
.opc-select[multiple]{min-height:126px;padding:8px}
.opc-btn{
    border:1px solid #d8dee8;
    background:#fff;
    color:var(--opc-text);
    border-radius:14px;
    padding:11px 15px;
    cursor:pointer;
    font-weight:800;
}
.opc-btn:hover{border-color:var(--opc-primary);color:var(--opc-primary)}
.opc-btn:disabled{opacity:.55;cursor:not-allowed}
.opc-clear{background:#f8fafc}
.opc-exports .opc-btn{width:100%}

/* Catalog grid */
.opc-results{position:relative}
.opc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media(max-width:1240px){.opc-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:980px){.opc-shell{grid-template-columns:1fr}.opc-filters{position:static}.opc-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.opc-control{min-width:calc(50% - 10px)}}
@media(max-width:560px){.opc-grid{grid-template-columns:1fr}.opc-control{min-width:100%}}

.opc-card{
    border:1px solid rgba(15,23,42,.10);
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.opc-card:hover{
    transform:none;
    border-color:rgba(15,23,42,.18);
    box-shadow:0 12px 34px rgba(15,23,42,.10);
}
.opc-card-main{display:block;width:100%;background:transparent;border:0;padding:0;text-align:left;cursor:pointer;color:inherit}
.opc-thumbwrap{
    height:210px;
    background:linear-gradient(180deg,#fff,#f6f8fb);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    border-bottom:1px solid rgba(15,23,42,.07);
}
.opc-thumbwrap img{width:100%;height:100%;object-fit:contain;display:block}
.opc-noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--opc-muted);font-weight:900}
.opc-cardbody{padding:16px 16px 14px}
.opc-card-brand{
    display:inline-flex;
    max-width:100%;
    color:var(--opc-primary);
    background:rgba(196,0,1,.07);
    border:1px solid rgba(196,0,1,.13);
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
    margin-bottom:10px;
}
.opc-mutedline{color:var(--opc-muted);background:#f1f5f9;border-color:#e2e8f0}
.opc-title{
    font-size:18px;
    line-height:1.24;
    min-height:45px;
    font-weight:950;
    color:#0f172a;
    margin:0 0 10px;
    word-break:break-word;
}
.opc-price{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:var(--opc-primary);
    color:#fff;
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    margin:0 0 10px;
}
.opc-card-meta{display:grid;gap:5px;margin-top:8px;font-size:12px;color:#334155}
.opc-card-meta span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opc-card-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.opc-card-tags span{font-size:11px;font-weight:800;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px}
.opc-card-footer{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px 16px;
    border-top:1px solid rgba(15,23,42,.06);
}
.opc-details-btn,.opc-page-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    border-radius:12px;
    padding:9px 12px;
    text-decoration:none;
    font-weight:900;
    font-size:13px;
}
.opc-details-btn{background:var(--opc-primary);color:#fff;border:1px solid var(--opc-primary);cursor:pointer}
.opc-page-link{background:#fff;color:var(--opc-primary);border:1px solid rgba(196,0,1,.24)}
.opc-details-btn:hover{filter:brightness(.94)}
.opc-page-link:hover{background:rgba(196,0,1,.06)}
.opc-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:18px;background:#fff;color:var(--opc-muted);text-align:center;grid-column:1 / -1;font-weight:800}

/* Pager */
.opc-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin:24px 0}
.opc-pageinfo{color:var(--opc-muted);font-size:13px;font-weight:800}
.opc-ico{display:inline-block;font-size:24px;font-weight:950;line-height:1}
.opc-pager .opc-btn{
    width:46px;height:46px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:15px;
    background:var(--opc-primary);color:#fff;border:1px solid var(--opc-primary);transition:all .15s ease
}
.opc-pager .opc-btn:hover{background:#a30000;border-color:#a30000;transform:translateY(-2px)}
.opc-pager .opc-btn:disabled{background:#e5e7eb;border-color:#e5e7eb;color:#9ca3af;cursor:not-allowed;transform:none}

/* Modal */
.opc-modal{position:fixed;inset:0;display:none;z-index:99999}
.opc-modal.is-open{display:block}
.opc-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62)}
.opc-modal-card{position:relative;max-width:1080px;margin:34px auto;background:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.30);overflow:hidden}
@media(max-width:1120px){.opc-modal-card{margin:20px}}
.opc-modal-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:26px;line-height:38px;z-index:3}
.opc-modal-content{padding:20px}
.opc-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:900px){.opc-modal-grid{grid-template-columns:1fr}}
.opc-slider{background:#f8fafc;border-radius:20px;padding:14px;position:relative}
.opc-slides{position:relative;border-radius:18px;overflow:hidden;background:#fff;border:1px solid #eef2f7}
.opc-slide{display:none}
.opc-slide.is-active{display:block}
.opc-slide img{width:100%;height:380px;object-fit:contain;display:block;padding:12px}
.opc-slider-nav{display:flex;justify-content:space-between;margin-top:10px}
.opc-modal-title{font-size:26px;line-height:1.18;font-weight:950;margin:0 44px 12px 0;color:#0f172a}
.opc-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.opc-chip{display:inline-flex;align-items:center;gap:6px;background:rgba(255,192,0,.22);border:1px solid rgba(255,192,0,.45);color:#1f2937;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:900}
.opc-meta{border:1px solid #e5e7eb;border-radius:18px;padding:10px 14px;background:#fff;margin:12px 0}
.opc-row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px dashed #e5e7eb}
.opc-row:last-child{border-bottom:none}
.opc-row.is-highlight .opc-rowval{color:var(--opc-primary);font-weight:950}
.opc-rowlabel{color:var(--opc-muted);font-size:13px;font-weight:800}
.opc-rowval{font-weight:900;font-size:14px;text-align:right}
.opc-desc{margin-top:14px;line-height:1.65}
.opc-desc p{margin:0 0 10px}
.opc-desc a{color:var(--opc-primary)}
.opc-viewlink{color:var(--opc-primary);font-weight:900}

/* Breadcrumb */
.opc-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--opc-muted);font-size:13px;margin:12px 0 16px}
.opc-breadcrumb a{color:var(--opc-muted);text-decoration:none;font-weight:800}
.opc-breadcrumb a:hover{color:var(--opc-primary)}
.opc-crumb-sep{opacity:.55}
.opc-crumb-current{color:var(--opc-text);font-weight:900}

/* Single product redesign */
.opc-single{padding:22px 0}
.opc-single-wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.opc-product-page{
    background:#fff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:28px;
    box-shadow:0 18px 54px rgba(15,23,42,.10);
    overflow:hidden;
}
.opc-product-hero{
    display:grid;
    grid-template-columns:minmax(320px,.92fr) minmax(360px,1.08fr);
    gap:0;
}
@media(max-width:920px){.opc-product-hero{grid-template-columns:1fr}}
.opc-product-media{background:linear-gradient(180deg,#fff,#f8fafc);padding:26px;border-right:1px solid rgba(15,23,42,.07)}
@media(max-width:920px){.opc-product-media{border-right:0;border-bottom:1px solid rgba(15,23,42,.07)}}
.opc-product-imagebox{
    background:#fff;
    border:1px solid #eef2f7;
    border-radius:24px;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:420px;
}
.opc-single-mainimg{width:100%;height:420px;object-fit:contain;border-radius:18px;display:block}
.opc-single-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.opc-single-thumb img{width:88px;height:88px;object-fit:contain;border-radius:15px;border:1px solid #e5e7eb;background:#fff;padding:6px}
.opc-product-summary{padding:30px}
.opc-product-eyebrow{
    display:inline-flex;
    color:var(--opc-primary);
    background:rgba(196,0,1,.08);
    border:1px solid rgba(196,0,1,.16);
    padding:6px 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
    letter-spacing:.04em;
    text-transform:uppercase;
    margin-bottom:12px;
}
.opc-single-title{margin:0 0 12px;font-size:34px;line-height:1.14;font-weight:950;color:#0f172a;letter-spacing:-.02em}
@media(max-width:560px){.opc-single-title{font-size:26px}.opc-product-summary{padding:22px}.opc-product-media{padding:18px}.opc-product-imagebox{min-height:300px}.opc-single-mainimg{height:300px}}
.opc-single-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.opc-product-table{margin-top:14px}
.opc-meta-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0}
@media(max-width:620px){.opc-meta-cards{grid-template-columns:1fr}}
.opc-meta-card{display:flex;gap:12px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:18px;padding:14px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.opc-meta-card.is-highlight{border-color:rgba(196,0,1,.25);background:rgba(196,0,1,.04)}
.opc-meta-icon{width:34px;height:34px;border-radius:12px;background:#f1f5f9;color:var(--opc-primary);display:flex;align-items:center;justify-content:center;font-weight:950;flex:0 0 auto}
.opc-meta-card-label{font-size:12px;color:var(--opc-muted);font-weight:850;margin-bottom:4px}
.opc-meta-card-value{font-size:16px;font-weight:950;line-height:1.25;color:#0f172a}
.opc-product-description{border-top:1px solid rgba(15,23,42,.08);padding:28px 30px 32px;background:#fff}
.opc-product-description h2{font-size:20px;margin:0 0 12px;font-weight:950;color:#0f172a}
.opc-single-desc{line-height:1.7;color:#334155}
.opc-single-desc p{margin:0 0 12px}
.opc-noimg.big{height:320px;border:1px dashed #cbd5e1;border-radius:18px;background:#fff}

/* Admin/theme compatibility */
.opc-catalog button,.opc-catalog a,.opc-modal button{font-family:inherit}

/* v1.3.1 adjustments */
.opc-card:hover .opc-title{color:#0f172a;text-decoration:none}
.opc-card:hover .opc-card-brand{color:var(--opc-primary)}
.opc-card:hover .opc-card-meta,
.opc-card:hover .opc-card-tags{opacity:1}
.opc-card-main:focus{outline:3px solid rgba(196,0,1,.14);outline-offset:-3px}
.opc-details-btn{background:var(--opc-primary)!important;color:#fff!important}
.opc-page-link{color:var(--opc-primary)!important;background:#fff!important}
.opc-product-top{padding:30px 30px 18px;border-bottom:1px solid rgba(15,23,42,.08);background:#fff}
.opc-product-page-logistics .opc-product-hero{grid-template-columns:minmax(320px,.9fr) minmax(390px,1.1fr)}
.opc-product-page-logistics .opc-product-summary{padding:28px 30px}
.opc-logistics-title{font-size:18px;margin:0 0 14px;font-weight:950;color:#0f172a}
.opc-product-page-logistics .opc-single-title{margin-bottom:0}
.opc-product-page-logistics .opc-product-eyebrow{margin-bottom:10px}
.opc-product-page-logistics .opc-product-description{display:none}


/* v1.3.2 readability/header fixes */

/* Catalog card hover: keep all text/background readable and stable */
.opc-card,
.opc-card:hover,
.opc-card:focus-within{
    background:#ffffff !important;
    color:#0f172a !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
    border-color:rgba(15,23,42,.14) !important;
    box-shadow:0 10px 30px rgba(15,23,42,.08) !important;
}
.opc-card:hover * ,
.opc-card:focus-within *{
    opacity:1 !important;
    filter:none !important;
    text-shadow:none !important;
}
.opc-card:hover .opc-cardbody,
.opc-card:hover .opc-card-main,
.opc-card:hover .opc-thumbwrap,
.opc-card:focus-within .opc-cardbody,
.opc-card:focus-within .opc-card-main,
.opc-card:focus-within .opc-thumbwrap{
    background:inherit !important;
}
.opc-card:hover .opc-title,
.opc-card:focus-within .opc-title{
    color:#0f172a !important;
    background:transparent !important;
    text-decoration:none !important;
}
.opc-card:hover .opc-card-meta,
.opc-card:hover .opc-card-meta span,
.opc-card:hover .opc-card-tags,
.opc-card:hover .opc-card-tags span,
.opc-card:hover .opc-excerpt,
.opc-card:focus-within .opc-card-meta,
.opc-card:focus-within .opc-card-meta span,
.opc-card:focus-within .opc-card-tags,
.opc-card:focus-within .opc-card-tags span,
.opc-card:focus-within .opc-excerpt{
    color:#334155 !important;
    background:transparent !important;
}
.opc-card:hover .opc-card-brand,
.opc-card:focus-within .opc-card-brand{
    color:var(--opc-primary) !important;
    background:rgba(196,0,1,.07) !important;
    border-color:rgba(196,0,1,.13) !important;
}
.opc-card:hover .opc-price,
.opc-card:focus-within .opc-price{
    color:#fff !important;
    background:var(--opc-primary) !important;
}
.opc-card:hover .opc-details-btn,
.opc-card:focus-within .opc-details-btn{
    background:var(--opc-primary) !important;
    color:#fff !important;
    border-color:var(--opc-primary) !important;
}
.opc-card:hover .opc-page-link,
.opc-card:focus-within .opc-page-link{
    background:#fff !important;
    color:var(--opc-primary) !important;
    border-color:rgba(196,0,1,.24) !important;
}

/* Fixed header overlap protection on product page */
.opc-single{
    padding-top:110px !important;
    scroll-margin-top:110px;
}
.opc-breadcrumb{
    margin-top:0 !important;
}
@media(max-width:782px){
    .opc-single{
        padding-top:84px !important;
        scroll-margin-top:84px;
    }
}

/* Extra fallback if theme applies link/button hover globally */
.opc-card button:hover,
.opc-card a:hover{
    filter:none !important;
    opacity:1 !important;
}


/* v1.4.2 premium catalog grid */
.opc-results{
    width:100%;
}
.opc-grid{
    display:grid !important;
    grid-template-columns:repeat(auto-fill,minmax(245px,1fr)) !important;
    gap:22px !important;
    align-items:stretch;
}
.opc-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:100%;
    border:1px solid rgba(17,24,39,.09) !important;
    border-radius:20px !important;
    background:#fff !important;
    overflow:hidden !important;
    box-shadow:0 8px 26px rgba(15,23,42,.07) !important;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
.opc-card:before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:20px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.opc-card:hover,
.opc-card:focus-within{
    transform:translateY(-2px) !important;
    border-color:rgba(196,0,1,.20) !important;
    box-shadow:0 16px 40px rgba(15,23,42,.12) !important;
    background:#fff !important;
}
.opc-card-main{
    display:flex !important;
    flex-direction:column;
    flex:1 1 auto;
    width:100%;
    min-height:0;
    background:#fff !important;
    color:#0f172a !important;
}
.opc-thumbwrap{
    position:relative;
    height:190px !important;
    padding:20px 20px 16px !important;
    border-bottom:1px solid rgba(15,23,42,.06) !important;
    background:
        radial-gradient(circle at 50% 28%, rgba(196,0,1,.055), transparent 36%),
        linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
}
.opc-thumbwrap img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    display:block;
    transition:transform .18s ease !important;
}
.opc-card:hover .opc-thumbwrap img,
.opc-card:focus-within .opc-thumbwrap img{
    transform:scale(1.025);
}
.opc-card-brand-wrap{
    position:absolute;
    left:14px;
    top:14px;
    max-width:calc(100% - 28px);
}
.opc-card-brand{
    max-width:100% !important;
    display:inline-flex !important;
    align-items:center;
    min-height:26px;
    padding:5px 10px !important;
    border-radius:999px !important;
    color:#7f1d1d !important;
    background:rgba(254,242,242,.94) !important;
    border:1px solid rgba(248,113,113,.22) !important;
    font-size:11px !important;
    line-height:1;
    font-weight:900 !important;
    letter-spacing:.045em !important;
    text-transform:uppercase !important;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    margin:0 !important;
    backdrop-filter:blur(8px);
}
.opc-cardbody{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    padding:16px 16px 14px !important;
    background:#fff !important;
}
.opc-title{
    display:-webkit-box !important;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:68px !important;
    margin:0 0 12px !important;
    color:#111827 !important;
    font-size:17px !important;
    line-height:1.32 !important;
    font-weight:850 !important;
    letter-spacing:-.01em;
    word-break:normal !important;
}
.opc-card:hover .opc-title,
.opc-card:focus-within .opc-title{
    color:#111827 !important;
}
.opc-price{
    align-self:flex-start;
    margin:0 0 12px !important;
    padding:7px 11px !important;
    border-radius:12px !important;
    background:#111827 !important;
    color:#fff !important;
    font-size:13px !important;
    font-weight:900 !important;
}
.opc-card-specs{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin-top:auto;
    padding-top:4px;
}
.opc-spec{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    min-height:34px;
    padding:8px 10px;
    border:1px solid #edf0f4;
    border-radius:12px;
    background:#f8fafc;
}
.opc-spec span{
    min-width:0;
    color:#64748b !important;
    font-size:11px;
    line-height:1.1;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.025em;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.opc-spec strong{
    color:#0f172a !important;
    font-size:12px;
    line-height:1.15;
    font-weight:900;
    text-align:right;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.opc-card-footer{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:10px !important;
    padding:0 16px 16px !important;
    border-top:0 !important;
    background:#fff !important;
}
.opc-details-btn,
.opc-page-link{
    width:100%;
    min-height:42px !important;
    border-radius:13px !important;
    padding:10px 12px !important;
    font-size:13px !important;
    line-height:1.15;
    font-weight:900 !important;
    text-decoration:none !important;
    box-shadow:none !important;
}
.opc-details-btn{
    background:var(--opc-primary) !important;
    border:1px solid var(--opc-primary) !important;
    color:#fff !important;
}
.opc-page-link{
    background:#f8fafc !important;
    border:1px solid #e2e8f0 !important;
    color:#334155 !important;
}
.opc-details-btn:hover,
.opc-details-btn:focus{
    background:#991b1b !important;
    border-color:#991b1b !important;
    color:#fff !important;
}
.opc-page-link:hover,
.opc-page-link:focus{
    background:#eef2f7 !important;
    border-color:#cbd5e1 !important;
    color:#111827 !important;
}
.opc-noimg{
    border:1px dashed #cbd5e1;
    border-radius:16px;
    background:#fff;
    color:#94a3b8 !important;
    font-size:12px;
    letter-spacing:.08em;
}
@media(max-width:1240px){
    .opc-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr)) !important;}
}
@media(max-width:980px){
    .opc-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr)) !important;}
}
@media(max-width:560px){
    .opc-grid{grid-template-columns:1fr !important;gap:16px !important;}
    .opc-thumbwrap{height:210px !important;}
    .opc-card-footer{grid-template-columns:1fr !important;}
}
