/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
    background: var(--cream);
    padding: .8rem 0;
}

.breadcrumb-bar a {
    color: var(--steel-dark);
    font-size: .85rem;
    font-weight: 600;
}

.breadcrumb-bar a:hover {
    color: var(--black);
}

.breadcrumb-bar .sep {
    color: #bdb28c;
    margin: 0 .4rem;
}

.breadcrumb-bar .current {
    color: var(--black);
    font-size: .85rem;
    font-weight: 700;
}

/* ---------- Product section ---------- */
.product-section {
    padding: 3.2rem 0 4rem;
}

/* CSS-only gallery (no JS) */
.gallery {
    position: relative;
}

.gal-radio {
    display: none;
}

.gal-main {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #F7F3E9;
    border: 1px solid #eee2c8;
}

.gal-img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#g1:checked~.gal-main #img1,
#g2:checked~.gal-main #img2,
#g3:checked~.gal-main #img3,
#g4:checked~.gal-main #img4,
#g5:checked~.gal-main #img5 {
    display: block;
}

.gal-thumbs {
    display: flex;
    gap: .7rem;
    margin-top: .9rem;
}

.gal-thumbs label {
    display: block;
    width: 74px;
    height: 74px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #eee2c8;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s ease;
}

.gal-thumbs label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#g1:checked~.gal-thumbs label[for="g1"],
#g2:checked~.gal-thumbs label[for="g2"],
#g3:checked~.gal-thumbs label[for="g3"],
#g4:checked~.gal-thumbs label[for="g4"],
#g5:checked~.gal-thumbs label[for="g5"] {
    border-color: var(--black);
}

/* Product info */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #EAF3E9;
    color: #3A7A3D;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 20px;
}

.stock-badge i {
    font-size: .55rem;
}

.product-title {
    font-weight: 800;
    font-size: 1.7rem;
    margin: .6rem 0 .5rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 2;
}

.spec-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin: 1.2rem 0;
    padding: 1.1rem 0;
    border-top: 1px solid #eee2c8;
    border-bottom: 1px solid #eee2c8;
}

.spec-mini-list .item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
}

.spec-mini-list .item i {
    color: var(--steel-dark);
    font-size: 1rem;
}

.spec-mini-list .item b {
    font-weight: 700;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin: 1rem 0 1.4rem;
}

.price-box .old-price {
    text-decoration: line-through;
    color: #b3ab90;
    font-size: .95rem;
}

.price-box .price {
    font-weight: 800;
    font-size: 1.9rem;
}

.price-box .price small {
    font-weight: 500;
    font-size: .8rem;
    color: var(--text-muted);
}

.discount-tag {
    background: var(--black);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 6px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--black);
    border-radius: 9px;
    overflow: hidden;
    width: fit-content;
}

.qty-selector button {
    background: var(--white);
    border: none;
    width: 42px;
    height: 46px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.qty-selector button:hover {
    background: var(--cream);
}

.qty-selector input {
    width: 52px;
    height: 46px;
    text-align: center;
    border: none;
    border-right: 1px solid #e6dcc0;
    border-left: 1px solid #e6dcc0;
    font-weight: 700;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-actions {
    display: flex;
    gap: .7rem;
    margin-top: 1.3rem;
    flex-wrap: wrap;
}

.cart-actions .btn-dark-custom {
    padding: .75rem 1.6rem;
    font-size: .92rem;
    flex: 1 1 220px;
    text-align: center;
}

.btn-wish {
    width: 52px;
    height: 52px;
    border-radius: 9px;
    border: 1.5px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    flex-shrink: 0;
}

.btn-wish:hover {
    background: var(--black);
    color: var(--white);
}

.torob-mini {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.1rem;
    color: var(--steel-dark);
    font-size: .82rem;
    font-weight: 700;
    border-bottom: 1px dashed var(--steel-dark);
    padding-bottom: 2px;
}

.torob-mini:hover {
    color: var(--black);
    border-color: var(--black);
}

/* ---------- Admin content blocks ---------- */
.admin-blocks-section {
    background: var(--cream);
    padding: 4.5rem 0;
}

.admin-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    border: 1px dashed #cabb8e;
    color: var(--steel-dark);
    font-size: .78rem;
    font-weight: 600;
    padding: .45rem .8rem;
    border-radius: 8px;
    margin-bottom: 1.6rem;
}

.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd0a4;
}

.accordion-button {
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
    box-shadow: none !important;
    padding: 1.15rem .2rem;
}

.accordion-button:not(.collapsed) {
    color: var(--black);
    background: transparent;
}

.accordion-body {
    color: var(--text-muted);
    font-size: .92rem;
    padding: 0 .2rem 1.3rem;
    line-height: 1.9;
}

.block-source {
    font-size: .72rem;
    color: var(--steel);
    margin-top: .5rem;
    display: block;
}

/* ---------- Related products ---------- */
.related-section {
    padding: 4.5rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #eee2c8;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
}

.product-card .img-wrap {
    background: #F7F3E9;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--black);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 20px;
}

.product-card .body {
    padding: 1rem 1.1rem 1.2rem;
}

.product-card .cat {
    font-size: .72rem;
    color: var(--steel-dark);
    font-weight: 700;
}

.product-card h6 {
    font-weight: 700;
    margin: .3rem 0 .6rem;
    font-size: .98rem;
    min-height: 2.6em;
}

.product-card .price {
    font-weight: 800;
    font-size: 1rem;
}

.product-card .price small {
    font-weight: 500;
    font-size: .72rem;
    color: var(--text-muted);
}

.product-card .actions {
    display: flex;
    gap: .5rem;
    margin-top: .8rem;
}

.product-card .actions .btn {
    font-size: .78rem;
    padding: .4rem .6rem;
    border-radius: 7px;
    flex: 1;
    font-weight: 700;
}

.torob-link {
    color: var(--steel-dark);
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1.5px solid #ddd2ac;
}

.torob-link:hover {
    background: var(--cream-2);
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gal-radio {
    display: none;
}

.gal-main {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.gal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

#g1:checked~.gal-main #img1,
#g2:checked~.gal-main #img2,
#g3:checked~.gal-main #img3,
#g4:checked~.gal-main #img4,
#g5:checked~.gal-main #img5 {
    display: block;
}

.gal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gal-thumbs label {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gal-thumbs label:hover {
    border-color: #b8860b;
}

.gal-thumbs label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#g1:checked~.gal-thumbs label[for="g1"],
#g2:checked~.gal-thumbs label[for="g2"],
#g3:checked~.gal-thumbs label[for="g3"],
#g4:checked~.gal-thumbs label[for="g4"],
#g5:checked~.gal-thumbs label[for="g5"] {
    border-color: #b8860b;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
}

.gallery {
    position: relative;
}

.gal-main {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f6f0;
}

.gal-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.gal-thumbs-wrapper {
    overflow-x: auto;
    padding: 0.5rem 0;
}

.gal-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.gal-thumb-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border 0.2s ease, transform 0.2s ease;
    background: #f8f6f0;
}

.gal-thumb-item:hover {
    transform: scale(1.05);
}

.gal-thumb-item.active {
    border-color: #1b1b1a;
    box-shadow: 0 0 0 2px rgba(27, 27, 26, 0.1);
}

.gal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}