/* BAR.PRO dedicated product detail (2026-10-14).
   Self-contained so card, admin, checkout, shipping and discount styling stay intact. */
body.moc-shop-body { background: #f4f0e9; color: #382416; font-family: Arial, Helvetica, sans-serif; }
.barpro-detail-page { min-height: 70vh; background: #f4f0e9; }
.barpro-detail-page * { box-sizing: border-box; }
.barpro-detail-page a { text-decoration: none; }
.barpro-detail-page a:focus-visible,
.barpro-detail-page button:focus-visible,
.barpro-detail-page input:focus-visible { outline: 3px solid #cc843a; outline-offset: 3px; }
.barpro-detail-header {
    background: linear-gradient(110deg, #28180f 0%, #402410 75%, #472b17 100%);
    color: #fff6e6; box-shadow: 0 6px 20px rgba(41,25,12,.13);
}
.barpro-detail-header-inner {
    width: min(1320px, calc(100% - 64px)); margin: auto; padding: 19px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 34px;
}
.barpro-detail-brand { display: flex; flex-direction: column; flex: 0 0 auto; color: #fff7ed; line-height: 1; }
.barpro-detail-brand:hover { color: #f7d4a9; }
.barpro-detail-brand strong { font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.04em; font-weight: 700; }
.barpro-detail-brand small { font-size: 10px; letter-spacing: .23em; margin-top: 8px; font-weight: 700; }
.barpro-detail-search {
    display: flex; align-items: center; flex: 1; max-width: 720px; gap: 12px;
    border: 1px solid rgba(222,171,113,.26); border-radius: 11px; padding-left: 15px;
    background: #fdfbf8; color: #885b32; min-width: 0; overflow: hidden;
}
.barpro-detail-search > i { font-size: 19px; }
.barpro-detail-search input {
    min-width: 0; flex: 1; height: 47px; background: transparent; border: 0; outline: none;
    font-size: 15px; color: #402c1e;
}
.barpro-detail-search input::placeholder { color: #8b7b6b; }
.barpro-detail-search button { height: 47px; width: 56px; border: 0; color: white; background: #995a28; }
.barpro-detail-search button:hover { background: #7f431c; }
.barpro-detail-cart { color: #fff6e6; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.barpro-detail-cart:hover { color: #ffd69f; }
.barpro-detail-cart > i { font-size: 24px; }
.barpro-detail-cart > span { font-size: 14px; }
.barpro-detail-cart > b { display: inline-flex; justify-content: center; align-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: #c37b37; color: #fff; border-radius: 20px; font-size: 12px; }
.barpro-detail-container { max-width: 1320px; width: calc(100% - 64px); margin: 0 auto; padding: 24px 0 64px; }
.barpro-detail-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 22px; min-width: 0; color: #665441; }
.barpro-detail-breadcrumb a { color: #98602f; white-space: nowrap; }
.barpro-detail-breadcrumb a:hover { text-decoration: underline; }
.barpro-detail-breadcrumb i { font-size: 10px; color: #9f9284; }
.barpro-detail-breadcrumb span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.barpro-detail-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 13px 17px; margin-bottom: 18px; border-radius: 11px; font-size: 14px; }
.barpro-detail-alert-ok { background: #edf7ed; color: #285d30; border: 1px solid #bcdac2; }
.barpro-detail-alert-error { background: #ffefed; color: #932e22; border: 1px solid #f5c5bd; }
.barpro-detail-alert a { color: inherit; margin-left: auto; font-weight: 700; text-decoration: underline; }
.barpro-detail-product {
    display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(20px, 3vw, 46px);
    background: #fffdfa; padding: clamp(18px, 2.4vw, 34px); border: 1px solid #e8dccb;
    border-radius: 18px; box-shadow: 0 10px 32px rgba(59,37,17,.075);
}
.barpro-detail-gallery, .barpro-detail-info { min-width: 0; }
.barpro-detail-image-frame {
    position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px;
    overflow: hidden; background: #ece2d8; border: 1px solid #e5dacf;
}
.barpro-detail-main-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.barpro-detail-gallery-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 16px 3px 0; color: #80705f; font-size: 12px; }
.barpro-detail-gallery-foot i { margin-right: 5px; }
.barpro-detail-shop-tag { font-size: 10px; letter-spacing: .09em; color: #9b683a; font-weight: 700; }
.barpro-detail-eyebrow { display: inline-block; color: #a26931; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin: 5px 0 12px; }
.barpro-detail-info h1 { font-size: clamp(24px, 2.35vw, 35px); line-height: 1.27; font-weight: 750; color: #2f2118; margin: 0 0 16px; overflow-wrap: anywhere; }
.barpro-detail-trust { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 7px; color: #7a6856; font-size: 12px; margin-bottom: 23px; }
.barpro-detail-trust i { color: #aa722d; margin-right: 4px; }
.barpro-detail-price-box { background: #f8efe6; border: 1px solid #f0e2d4; border-radius: 12px; padding: 18px 20px 15px; margin-bottom: 24px; }
.barpro-detail-pricing-line { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.barpro-detail-sale-price { color: #b34d25; font-weight: 800; font-size: clamp(27px, 2.75vw, 39px); letter-spacing: -.015em; line-height: 1.25; }
.barpro-detail-old-price { color: #938476; font-size: 16px; }
.barpro-detail-discount { padding: 6px 9px; border-radius: 5px; color: #9b291a; font-weight: 800; background: #ffe5da; font-size: 13px; }
.barpro-detail-price-box > small { display: block; margin-top: 5px; color: #8b7059; font-size: 12px; }
.barpro-detail-meta { display: grid; gap: 14px; margin-bottom: 17px; }
.barpro-detail-meta > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.barpro-detail-meta span { color: #8b7867; }
.barpro-detail-meta strong { color: #3d2c1b; font-weight: 700; overflow-wrap: anywhere; }
.barpro-detail-meta small { font-size: 11px; font-weight: 400; color: #8b7867; }
.barpro-detail-meta .barpro-detail-stock { color: #357347; }
.barpro-detail-meta .barpro-detail-out { color: #b34734; }
.barpro-detail-wholesale { color: #775025; border: 1px solid #f0e1ce; background: #fdf9f2; padding: 11px 13px; border-radius: 9px; margin: 0 0 18px; font-size: 13px; line-height: 1.6; }
.barpro-detail-wholesale i { margin-right: 5px; color: #a96a2a; }
.barpro-detail-short-description { font-size: 14px; line-height: 1.7; color: #675441; margin-bottom: 20px; overflow-wrap: anywhere; }
.barpro-detail-buy-panel { border-top: 1px solid #ede2d4; padding-top: 20px; }
.barpro-detail-quantity-row { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.barpro-detail-quantity-row label { font-size: 14px; color: #6a5747; min-width: 80px; }
.barpro-detail-quantity-row > small { font-size: 12px; color: #8b7867; }
.barpro-detail-quantity-control { display: inline-flex; border: 1px solid #dbcab8; border-radius: 8px; overflow: hidden; height: 44px; background: white; }
.barpro-detail-quantity-control button { border: 0; background: white; color: #674429; width: 43px; font-size: 20px; }
.barpro-detail-quantity-control button:hover:not(:disabled) { background: #f7eddf; }
.barpro-detail-quantity-control button:disabled { opacity: .4; cursor: not-allowed; }
.barpro-detail-quantity-control input { width: 53px; text-align: center; border: 0; border-left: 1px solid #eee2d5; border-right: 1px solid #eee2d5; outline: none; appearance: textfield; -moz-appearance: textfield; color: #47311d; }
.barpro-detail-quantity-control input::-webkit-outer-spin-button,.barpro-detail-quantity-control input::-webkit-inner-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }
.barpro-detail-purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.barpro-detail-purchase-actions form { margin: 0; min-width: 0; }
.barpro-detail-purchase-actions button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 10px; font-size: 15px; font-weight: 750; border-radius: 9px; }
.barpro-detail-add-cart { color: #944d24; border: 1px solid #b87945; background: #fff5e9; }
.barpro-detail-add-cart:hover:not(:disabled) { background: #fbead8; }
.barpro-detail-buy-now { border: 1px solid #9b5525; color: white; background: linear-gradient(125deg,#b46b30,#87461d); }
.barpro-detail-buy-now:hover:not(:disabled) { filter: brightness(1.07); }
.barpro-detail-purchase-actions button:disabled { opacity: .45; cursor: not-allowed; }
.barpro-detail-purchase-note { color: #8b7764; font-size: 11px; margin: 14px 0 0; line-height: 1.5; }
.barpro-detail-purchase-note i { color: #8e612b; margin-right: 5px; }
.barpro-detail-description, .barpro-detail-related { background: #fffdfa; border: 1px solid #e8dccb; padding: 26px 30px; border-radius: 15px; margin-top: 22px; box-shadow: 0 5px 18px rgba(59,37,17,.04); }
.barpro-detail-description h2, .barpro-detail-related h2 { color: #3a2617; font-size: 23px; font-weight: 800; margin: 0 0 18px; }
.barpro-detail-description-content { font-size: 15px; line-height: 1.85; color: #5c4836; white-space: pre-line; overflow-wrap: anywhere; }
.barpro-detail-service-grid { display: flex; justify-content: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 19px; border-top: 1px solid #eee3d6; color: #87613d; font-size: 13px; }
.barpro-detail-service-grid i { color: #a16b37; margin-right: 7px; }
.barpro-detail-section-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.barpro-detail-section-head a { white-space: nowrap; color: #985c2b; font-size: 13px; }
.barpro-detail-section-head a:hover { text-decoration: underline; }
.barpro-detail-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.barpro-detail-related-item { min-width: 0; display: flex; flex-direction: column; padding: 10px; border-radius: 10px; border: 1px solid #eadfce; background: #fffaf5; transition: border-color .15s ease, transform .15s ease; }
.barpro-detail-related-item:hover { border-color: #ca9665; transform: translateY(-2px); }
.barpro-detail-related-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 7px; background: #ede2d9; }
.barpro-detail-related-item strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 12px 3px 8px; color: #342416; font-size: 14px; line-height: 1.5; }
.barpro-detail-related-item span { margin: auto 3px 3px; color: #aa4f26; font-size: 16px; font-weight: 800; }
@media (max-width: 980px) {
    .barpro-detail-container { width: calc(100% - 36px); }
    .barpro-detail-header-inner { width: calc(100% - 36px); gap: 18px; }
    .barpro-detail-product { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 22px; }
    .barpro-detail-meta > div { grid-template-columns: 110px 1fr; }
    .barpro-detail-sale-price { font-size: 30px; }
}
@media (max-width: 740px) {
    .barpro-detail-product { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .barpro-detail-gallery { max-width: 650px; margin: auto; width: 100%; }
    .barpro-detail-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .barpro-detail-header-inner { flex-wrap: wrap; gap: 12px; padding: 13px 0; }
    .barpro-detail-search { order: 3; flex: 1 0 100%; max-width: none; }
    .barpro-detail-cart { margin-left: auto; }
}
@media (max-width: 480px) {
    .barpro-detail-container { width: calc(100% - 24px); padding-top: 18px; padding-bottom: 36px; }
    .barpro-detail-header-inner { width: calc(100% - 24px); }
    .barpro-detail-brand strong { font-size: 26px; }
    .barpro-detail-search input { font-size: 14px; height: 42px; }
    .barpro-detail-search button { height: 42px; width: 48px; }
    .barpro-detail-cart > span { display: none; }
    .barpro-detail-breadcrumb { font-size: 12px; gap: 7px; }
    .barpro-detail-product { border-radius: 12px; padding: 12px; gap: 19px; }
    .barpro-detail-info { padding: 2px 3px 12px; }
    .barpro-detail-info h1 { font-size: 25px; }
    .barpro-detail-trust { gap: 10px; }
    .barpro-detail-price-box { padding: 13px 12px; margin-bottom: 18px; }
    .barpro-detail-sale-price { font-size: 28px; }
    .barpro-detail-meta > div { grid-template-columns: 100px 1fr; gap: 8px; font-size: 13px; }
    .barpro-detail-meta small { display: block; }
    .barpro-detail-quantity-row { gap: 10px; }
    .barpro-detail-quantity-row label { min-width: 68px; }
    .barpro-detail-purchase-actions { gap: 9px; }
    .barpro-detail-purchase-actions button { font-size: 13px; min-height: 50px; gap: 5px; }
    .barpro-detail-description, .barpro-detail-related { margin-top: 12px; border-radius: 12px; padding: 18px 16px; }
    .barpro-detail-description h2, .barpro-detail-related h2 { font-size: 20px; }
    .barpro-detail-related-grid { gap: 8px; }
    .barpro-detail-related-item { padding: 6px; }
    .barpro-detail-related-item strong { font-size: 12px; margin: 7px 2px; }
    .barpro-detail-related-item span { font-size: 13px; }
}
