.product {
    --bark-900: #0b2142;
    --bark-800: #0f2d5a;
    --bark-700: #12376e;
    --bark-600: #164583;
    --bark-500: #1b5fb3;
    --bark-400: #2c82be;
    --bark-300: #6aa6d9;
    --bark-200: #a8ccef;
    --bark-100: #e7f1fb;
    --bg: #f7f9fc;
    --text: #0f172a;
    --muted: #6b7280;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(16, 24, 40, .08);
    --shadow-sm: 0 6px 18px rgba(16, 24, 40, .06);
}
#product .cart-section {
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;
}
.product {
    display: grid;
    grid-template-columns: 1fr .5fr;
    gap: 22px;
    align-items: start;
}
@media (max-width:980px) {
    .product {
        grid-template-columns: 1fr
    }
}
/* Gallery */

.gallery {
    position: relative;
    background: var(--card);
    border: 1px solid #e6eefc;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 14px
}
.gallery .media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e6eefc;
    background: #ecf3ff
}
.gallery .hero {
    margin: 0;
    display: block
}
article .gallery img {
    width: 100%;
}
.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid #dbe4ff;
    background: linear-gradient(180deg, #eaf2ff, #d7e8ff);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.2s ease;
}
.thumb.is-active {
    outline: 3px solid rgba(44, 130, 190, .3)
}
.thumb.is-active img {
    transform: scale(1.03);
}
.product .badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}
/* Buy box */

.buybox {
    background: var(--card);
    border: 1px solid #e6eefc;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 18px;
    position: relative
}
.buybox h1 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--bark-800)
}
.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}
.stars {
    color: #fbbf24;
    letter-spacing: 2px
}
.stars.sm {
    font-size: 12px;
    letter-spacing: 1px
}
.divider {
    width: 1px;
    height: 16px;
    background: #e2e8f0
}
.sku {
    font-variant: tabular-nums;
    color: #475569
}
.stock {
    margin-left: auto;
    font-weight: 700
}
.stock.ok {
    color: #059669
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 8px 0 12px;
    gap: 10px
}
.price .now {
    font-size: 24px;
    color: var(--bark-800);
    font-weight: 800
}
.price .was {
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px
}
.trust small {
    color: #334155
}
.meta {
    color: #6b7280;
    font-size: 12px
}
/* Options */

.options {
    display: flex;
    flex-direction: column;
    gap: 14px
}
.field label {
    display: block;
    font-weight: 700;
    color: var(--bark-700);
    margin-bottom: 6px
}
.swatches {
    display: flex;
    gap: 10px
}
.swatch input {
    display: none
}
.swatch span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--c, #ccc);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfe1fb;
    cursor: pointer
}
.swatch input:checked+span {
    box-shadow: 0 0 0 2px var(--bark-500)
}
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}
.chip {
    display: inline-flex;
    align-items: center
}
.chip input {
    display: none
}
.chip span {
    display: inline-block;
    border: 1px solid #dbe4ff;
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow-sm)
}
.chip.is-active span, .chip input:checked+span {
    background: #eef5ff;
    border-color: #cfe1fb
}
/* Responsif */

@media (max-width: 768px) {
    #main .chip .opt-img {
        width: 28px;
        height: 28px;
    }
}
.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.qty {
    display: flex;
    align-items: center;
    border: 1px solid #dbe4ff;
    border-radius: 10px;
    overflow: hidden;
}
.qty input {
    width: 48px;
    height: 38px;
    text-align: center;
    border: 0;
    outline: 0
}
.q {
    width: 38px;
    height: 38px;
    border: 0;
    background: #f1f5ff;
    color: #0f264a;
    cursor: pointer;
    font-size: 18px
}
.q:active {
    transform: scale(.97)
}
.product .cta-row {
    display: grid;
    gap: 10px;
    padding: 20px 0;
    justify-content: right;
    grid-template-columns: 1fr auto;
}
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}
.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    border: 1px solid #e6eefc;
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow-sm)
}
@media (max-width:560px) {
    .benefits {
        grid-template-columns: 1fr
    }
}
.delivery {
    border: 1px dashed #cfe1fb;
    border-radius: 12px;
    padding: 10px
}
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px
}
@media (max-width:560px) {
    .delivery-grid {
        grid-template-columns: 1fr
    }
}
.payments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef3ff;
    margin-top: 6px;
    padding-top: 10px
}
.pay-logos {
    display: flex;
    gap: 10px
}
.pay {
    width: 40px;
    height: 24px;
    border-radius: 6px;
    display: inline-block;
    background: linear-gradient(180deg, #eef5ff, #d7e8ff);
    border: 1px solid #cfe1fb
}
.pay.bank {
    background: linear-gradient(180deg, #e7f1fb, #d4e7ff)
}
.pay.ewallet {
    background: linear-gradient(180deg, #fef3c7, #fde68a)
}
.pay.visa {
    background: linear-gradient(180deg, #dbeafe, #93c5fd)
}
.pay.mc {
    background: linear-gradient(180deg, #ffe4e6, #fecaca)
}
.pay.jcb {
    background: linear-gradient(180deg, #dcfce7, #bbf7d0)
}
/* Tabs */

#main .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #e6eefc;
    border-radius: 14px 14px 0 0;
    background: var(--card, #fff);
    padding: 8px;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, .04));
    margin-top: 18px;
}
#main .nav-tabs>li {
    margin: 0;
    list-style: none;
}
#main .nav-tabs>li>a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #dbe4ff;
    background: #fff;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all .2s ease;
}
#main .nav-tabs>li>a:hover {
    border-color: #cfe1fb;
    background: #f3f8ff;
    color: #0f264a;
}
#main .nav-tabs>li.active>a, #main .nav-tabs>li>a.active {
    background: #eef5ff;
    border-color: #cfe1fb;
    color: #0f264a;
    box-shadow: inset 0 -2px 0 #1b5fb3;
}
/* Tab content box */

#main .tab-content {
    background: var(--card, #fff);
    border: 1px solid #e6eefc;
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, .04));
    padding: 16px;
}
/* Panels */

#main .tab-pane {
    display: none;
}
#main .tab-pane.active {
    display: block;
    animation: fadeIn .3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Description content */

#main .tab-pane p, #main .tab-pane li {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}
#main .tab-pane ul {
    padding-left: 20px;
}
/* Attribute / Specs grid */

#main .table {
    margin-bottom: 0;
    border-color: #e6eefc;
}
#main .table th {
    background: #f8fbff;
    font-weight: 700;
    color: #0f264a;
}
#main .table td {
    background: linear-gradient(180deg, #ffffff, #f6faff);
    border-color: #eef3ff;
    color: #475569;
    vertical-align: middle;
}
/* Reviews */

#main #tab-review .review {
    border-bottom: 1px solid #eef3ff;
    padding: 10px 0;
}
#main #tab-review .review:last-child {
    border-bottom: 0;
}
#main #tab-review .r-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f264a;
    font-weight: 600;
}
#main #tab-review .stars {
    color: #fbbf24;
}
#main #tab-review p {
    margin: 6px 0 4px;
}
/* Form review */

#main #form-review {
    margin-top: 14px;
}
#main #form-review .form-group label {
    font-weight: 600;
    color: #1e293b;
}
#main #form-review input, #main #form-review textarea {
    border: 1px solid #dbe4ff;
    border-radius: 10px;
    padding: 8px 10px;
    width: 100%;
    font-size: 14px;
    color: #334155;
}
#main #form-review button {
    margin-top: 10px;
    background: var(--bark-600, #164583);
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    transition: .2s;
}
#main #form-review button:hover {
    background: var(--bark-700, #12376e);
}
/* Responsive */

@media (max-width: 768px) {
    #main .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 6px;
    }
    #main .nav-tabs>li>a {
        white-space: nowrap;
        font-size: 14px;
    }
    #main .tab-content {
        padding: 12px;
    }
}
/* Related */

.product .related {
    margin: 20px 0
}
.product .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}
@media (max-width:980px) {
    .product .cards {
        grid-template-columns: repeat(2, 1fr)
    }
}
@media (max-width:560px) {
    .product .cards {
        grid-template-columns: 1fr
    }
}
.product .card {
    background: #fff;
    border: 1px solid #e6eefc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .16s
}
.product .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow)
}
.product .card .thumb {
    height: 120px;
    background: linear-gradient(180deg, #eaf2ff, #d7e8ff)
}
.product .card .body {
    padding: 10px
}
.product .card h4 {
    margin: 0 0 4px;
    color: #0f264a
}
.product .card .meta {
    color: #6b7280
}
/* Sticky bar for mobile */

.product .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e6eefc;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    box-shadow: 0 -6px 18px rgba(16, 24, 40, .06);
    z-index: 60
}
.sticky-bar .price .now {
    font-weight: 800;
    color: var(--bark-800)
}
.sticky-bar .price .was {
    text-decoration: line-through;
    color: #94a3b8;
    margin-left: 6px
}
@media (max-width:980px) {
    .sticky-bar {
        display: flex
    }
}
/* Utility */

.product .wrap {
    width: min(1200px, 96vw);
    margin: 0 auto
}
.product .btn.ghost {
    background: #fff;
    color: var(--bark-700);
    border: 1px solid #dbe4ff
}
.product .btn.ghost:hover {
    background: #eef5ff
}
.product .icon-btn {
    border: 1px solid #dbe4ff;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    transition: .18s
}
.product .icon-btn:hover {
    transform: translateY(-1px);
    background: #eef5ff
}
.product .muted {
    color: var(--muted)
}
.product .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 10px
}
.product .controls {
    display: flex;
    gap: 8px
}
.product .pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px
}
.product .pill.success {
    background: linear-gradient(90deg, #22c55e, #86efac);
    color: #064e3b
}
.product .pill.info {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    color: #0b2e58
}
.product .pill.promo {
    background: linear-gradient(90deg, #f97316, #fbbf24);
    color: #4a2000
}
.product .thumbnails {
    overflow: auto;
    clear: both;
    list-style: none;
    padding: 0;
    margin: 0;
}
.product .thumbnails>li {
    margin-left: 20px;
}
.product .thumbnails {
    margin-left: -20px;
}
.product .thumbnails>img {
    width: 100%;
}
.product .image-additional a {
    margin-bottom: 20px;
    padding: 5px;
    display: block;
    border: 1px solid #ddd;
}
.product .image-additional {
    max-width: 78px;
}
.product .thumbnails .image-additional {
    float: left;
    margin-left: 20px;
}
#button-cart {
    max-width: 200px;
    font-size: 16px;
}
#tab-description {
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}
/* Efek fade bawah */

#tab-description.collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}
#tab-description .expand-btn {
    z-index: 999999;
    display: block;
    background: var(--barik-600, #1b5fb3);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    margin: 20px auto 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    box-shadow: 0 3px 8px rgba(11, 33, 66, 0.1);
    position: absolute;
    bottom: 0;
}
#tab-description .expand-btn:hover {
    background: var(--barik-700, #12376e);
    transform: translateY(-1px);
}
#tab-description .expand-btn:active {
    transform: translateY(0);
}
#tab-description .expand-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-bottom: 12px;
}
#product .cta-row button {
    min-height: 42px;
    min-width: 42px;
}
#product .qty-row .qty * {
    min-height: 45px;
}
.stats-row {
    display: flex;
    align-items: start;
    gap: 2px;
    flex-wrap: wrap;
    flex-direction: column;
}
