/* gamer skin: product page (v4)
   Full-width layout without the category sidebar, gallery on a dark panel, a buy box, spec rows instead of a bordered text block.
   Everything is scoped to body.single-product. Delete this file (or its entry in layouts/base.blade.php) to get the previous product page back. */

/* ---- page frame: no sidebar, the product gets the full width ------------------------------------------------ */
body.single-product .col-lg-9:has(> .product-detail) { flex: 0 0 100%; max-width: 100%; }
body.single-product .col-lg-9:has(> .product-detail) ~ .col-lg-3 { display: none; }
body.single-product .breadcrumb-wrap { margin-bottom: 8px; }
body.single-product main#main-section { overflow-x: clip; }

/* grid children may shrink below their content, otherwise one wide picture or button widens the whole page on a phone */
body.single-product .product-detail, body.single-product .product-detail .row, body.single-product .product-detail .row > [class*="col-"],
body.single-product .detail-gallery, body.single-product .bb-product-gallery-wrapper, body.single-product .bb-product-gallery,
body.single-product .detail-info, body.single-product .add-to-cart-form { min-width: 0; max-width: 100%; }

/* gallery (right in RTL) takes a bit more than half, the info column the rest */
body.single-product .product-detail > .row.mb-50 { margin-top: 24px !important; margin-bottom: 40px !important; align-items: flex-start; }
body.single-product .product-detail > .row.mb-50 > .col-md-6:first-child { flex: 0 0 56%; max-width: 56%; }
body.single-product .product-detail > .row.mb-50 > .col-md-6:last-child { flex: 0 0 44%; max-width: 44%; }

/* ---- gallery ------------------------------------------------------------------------------------------------ */
body.single-product .detail-gallery {
    background: var(--g-s1);
    border: 1px solid var(--g-line);
    border-radius: 3px;
    padding: 18px;
    position: relative;
}

body.single-product .bb-product-gallery-wrapper { overflow: hidden; }

/* the big picture must not make the page taller than the buy box needs: cap its height and centre it */
body.single-product .detail-gallery .bb-product-gallery-images a { text-align: center; }
body.single-product .detail-gallery .bb-product-gallery-images img { display: inline-block; width: auto !important; min-width: 0; max-width: 100%; max-height: 520px; height: auto; object-fit: contain; }

body.single-product .detail-gallery .zoom-icon {
    background: var(--g-s3);
    border: 1px solid var(--g-line);
    border-radius: 2px;
    color: #fff;
    box-shadow: none;
    width: 38px; height: 38px; line-height: 36px;
    top: 14px; inset-inline-start: 14px;
}

body.single-product .bb-product-gallery-thumbnails img {
    background: var(--g-s2);
    border: 1px solid var(--g-line);
    border-radius: 2px;
    padding: 4px;
    opacity: .7;
    transition: opacity .15s, border-color .15s;
}

body.single-product .bb-product-gallery-thumbnails .slick-current img,
body.single-product .bb-product-gallery-thumbnails img:hover { opacity: 1; border-color: var(--g-acc); }

/* share row under the gallery: one line, small */
body.single-product .single-social-share { display: flex; align-items: center; gap: 14px; margin: 16px 0 0 !important; padding: 0; flex-wrap: wrap; }
body.single-product .single-social-share > p { margin: 0 !important; font-size: 13px; color: var(--g-text); }
body.single-product .single-social-share > p i { color: var(--g-text); }
body.single-product .bb-social-sharing { gap: 6px; flex-wrap: wrap; }
body.single-product .bb-social-sharing .bb-social-sharing__item { width: 34px; height: 34px; line-height: 32px; }
body.single-product .mail-to-friend { display: none; }

/* ---- information column ------------------------------------------------------------------------------------- */
body.single-product .detail-info { padding: 0 !important; }

body.single-product .detail-info .title-detail {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

body.single-product .product-detail-rating { margin: 0 0 4px; }
body.single-product .product-detail-rating .product-rate-cover { text-align: start !important; font-size: 13px; }
body.single-product .product-detail-rating .text-muted { color: #8b8b98 !important; }

/* price: hairlines above and below, large white figure */
body.single-product .product-price-cover {
    border-top: 1px solid var(--g-line);
    border-bottom: 1px solid var(--g-line);
    padding: 18px 0;
    margin: 16px 0 18px;
}

body.single-product .product-price-cover .product-price { float: none !important; display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
body.single-product .detail-info .product-price .current-price { font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -.5px; }
body.single-product .detail-info .old-price { font-size: 18px; }
body.single-product .detail-info .save-price { background: var(--g-acc); color: #fff !important; padding: 3px 9px; font-size: 13px; font-weight: 800; border-radius: 2px; }
body.single-product .detail-info .save-price * { color: #fff !important; }

body.single-product .detail-info .short-desc {
    color: #b9b9c4;
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 22px !important;
}

/* ---- buy box ------------------------------------------------------------------------------------------------ */
body.single-product .add-to-cart-form {
    background: var(--g-s1);
    border: 1px solid var(--g-line);
    border-radius: 3px;
    padding: 20px 22px 22px;
    margin: 0 0 22px;
}

/* stock line */
body.single-product .add-to-cart-form > div[style*="margin-bottom: 20px"] { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px !important; }
body.single-product .add-to-cart-form label { color: var(--g-text); margin: 0; font-weight: 500; }
body.single-product .add-to-cart-form .number-items-available { font-weight: 700; }
body.single-product .add-to-cart-form .text-success { color: #3ccf82 !important; display: inline-flex; align-items: center; gap: 7px; }
body.single-product .add-to-cart-form .text-success::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf82; display: inline-block; }
body.single-product .add-to-cart-form .text-danger { color: #ff6b5e !important; }

/* buttons: a 4-column grid.  row 1 = quantity | add to cart (3 columns).  row 2 = buy now (2 columns) | wish list | compare */
body.single-product .detail-extralink { display: grid; grid-template-columns: 104px minmax(0, 1fr) 54px 54px; gap: 10px; margin: 0 !important; }
body.single-product .detail-extralink > *, body.single-product .product-extra-link2 > * { min-width: 0; }
body.single-product .product-extra-link2 { display: contents; }

body.single-product .detail-qty {
    grid-column: 1; grid-row: 1;
    width: 100%; max-width: none;
    height: 54px;
    margin: 0 !important;
    padding: 0 30px 0 10px !important;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    font-size: 17px;
}

body.single-product .detail-qty input.qty-val { width: 46px; text-align: center; padding: 0; font-size: 17px; font-weight: 800; height: 100%; }
body.single-product .detail-qty input.qty-val::-webkit-outer-spin-button, body.single-product .detail-qty input.qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.single-product .detail-qty input.qty-val { -moz-appearance: textfield; }

body.single-product .product-extra-link2 .button {
    height: 54px;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 800;
    border-radius: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 12px;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

body.single-product .product-extra-link2 .button-add-to-cart { grid-column: 2 / 5; grid-row: 1; background: var(--g-acc); border: 0; color: #fff; clip-path: var(--g-cut); font-size: 16px; }
body.single-product .product-extra-link2 .button-add-to-cart:hover { background: var(--g-acc-d); }
body.single-product .product-extra-link2 .button-add-to-cart i, body.single-product .product-extra-link2 .button-add-to-cart svg { color: #fff; font-size: 18px; }

body.single-product .product-extra-link2 .button-buy-now { grid-column: 1 / 3; grid-row: 2; background: transparent; border: 1px solid #55555f; color: #fff; }
body.single-product .product-extra-link2 .button-buy-now:hover { border-color: #fff; background: #fff; color: #0b0b0e; }

/* wish list and compare: two square icon buttons */
body.single-product .product-extra-link2 .action-btn {
    grid-row: 2;
    width: 100%; height: 54px;
    margin: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--g-s2) !important;
    border: 1px solid #3a3a45 !important;
    border-radius: 2px !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

body.single-product .product-extra-link2 .js-add-to-wishlist-button { grid-column: 3; }
body.single-product .product-extra-link2 .action-btn:not(.js-add-to-wishlist-button) { grid-column: 4; }
body.single-product .product-extra-link2 .action-btn:hover { border-color: var(--g-acc) !important; color: var(--g-acc) !important; }
body.single-product .product-extra-link2 .action-btn svg, body.single-product .product-extra-link2 .action-btn i { color: inherit; stroke: currentColor; }

/* sku + categories as two ruled rows */
body.single-product .detail-info > .font-xs { font-size: 14px; }
body.single-product .detail-info > .font-xs ul { float: none !important; margin: 0 !important; padding: 0; list-style: none; }
body.single-product .detail-info > .font-xs li { display: flex; gap: 10px; padding: 11px 0; margin: 0 !important; border-bottom: 1px solid var(--g-line); color: #fff; }
body.single-product .detail-info > .font-xs li:first-child { border-top: 1px solid var(--g-line); }
body.single-product .detail-info > .font-xs li > span:first-child { color: var(--g-text); min-width: 78px; }
body.single-product .detail-info > .font-xs li a { color: #fff; }
body.single-product .detail-info > .font-xs li a:hover { color: var(--g-acc); }

/* ---- description / specs ------------------------------------------------------------------------------------ */
body.single-product .product-info { background: transparent; border: 0; border-radius: 0; padding: 0; margin-top: 8px; }

body.single-product .tab-style3 .nav-tabs { border-bottom: 1px solid var(--g-line); gap: 6px; margin: 0 0 26px; padding: 0; }
body.single-product .tab-style3 .nav-tabs li.nav-item a, body.single-product .tab-style3 .nav-tabs .nav-link {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    color: var(--g-text) !important;
    font-size: 17px;
    font-weight: 800;
    padding: 12px 22px !important;
    margin-bottom: -1px;
    text-transform: none;
}

body.single-product .tab-style3 .nav-tabs li.nav-item a.active, body.single-product .tab-style3 .nav-tabs li.nav-item a:hover {
    color: #fff !important;
    border-bottom-color: var(--g-acc) !important;
    background: transparent !important;
}

body.single-product .tab-style3 .tab-content, body.single-product .tab-style3 .shop_info_tab, body.single-product .shop_info_tab, body.single-product .entry-main-content {
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    padding: 0;
}

/* a bullet list in the description is almost always a spec list: render it as ruled rows (the theme gives it list-style: disc and a 25px left padding, hence the long selector) */
body.single-product .ck-content { color: #cfcfd8; font-size: 15px; line-height: 1.8; }
body.single-product .product-detail .shop_info_tab.entry-main-content #Description ul,
body.single-product .ck-content ul { list-style: none !important; padding: 0 !important; margin: 0 0 18px !important; border: 1px solid var(--g-line); border-radius: 3px; overflow: hidden; }
body.single-product .product-detail .shop_info_tab.entry-main-content #Description ul li,
body.single-product .ck-content ul li { list-style: none !important; padding: 12px 18px; margin: 0; border-bottom: 1px solid var(--g-line); background: var(--g-s1); }
body.single-product .ck-content ul li:nth-child(even) { background: #0e0e12; }
body.single-product .ck-content ul li:last-child { border-bottom: 0; }
body.single-product .ck-content h2, body.single-product .ck-content h3, body.single-product .ck-content h4 { color: #fff; margin: 24px 0 12px; }
body.single-product .product-detail .shop_info_tab.entry-main-content #Description table { background: transparent; border: 1px solid var(--g-line); }
body.single-product .ck-content td, body.single-product .ck-content th { padding: 11px 16px; border: 1px solid var(--g-line); }

/* ---- tablets and phones ------------------------------------------------------------------------------------- */
@media (max-width: 991px) {
    body.single-product .product-detail > .row.mb-50 > .col-md-6:first-child,
    body.single-product .product-detail > .row.mb-50 > .col-md-6:last-child { flex: 0 0 100%; max-width: 100%; }
    body.single-product .product-detail > .row.mb-50 > .col-md-6:first-child { margin-bottom: 26px; }
    body.single-product .detail-gallery .bb-product-gallery-images img { max-height: 440px; }
}

@media (max-width: 575px) {
    body.single-product .detail-info .title-detail { font-size: 23px; }
    body.single-product .detail-info .product-price .current-price { font-size: 34px; }
    body.single-product .detail-gallery { padding: 10px; }
    body.single-product .detail-gallery .bb-product-gallery-images img { max-height: 340px; }
    body.single-product .add-to-cart-form { padding: 16px; }
    body.single-product .detail-extralink { grid-template-columns: 92px minmax(0, 1fr) 50px 50px; }
    body.single-product .tab-style3 .nav-tabs li.nav-item a { padding: 10px 14px !important; font-size: 15px; }
}
