.shop-detail-modern-page {
    background: #ffffff;
    color: #050505;
    font-family: "Nunito Sans", Arial, sans-serif;
    overflow-x: hidden;
}

.shop-detail-modern-page .header,
.shop-detail-modern-page .header__top {
    background: #050505;
}

.shop-detail-modern-page .header__top__left p,
.shop-detail-modern-page .header__top__links a,
.shop-detail-modern-page .header__menu ul li a,
.shop-detail-modern-page .header__nav__option a,
.shop-detail-modern-page .canvas__open i {
    color: #ffffff;
}

.shop-detail-modern-page .header__menu ul li.active a:after,
.shop-detail-modern-page .header__menu ul li:hover a:after {
    background: #ffffff;
}

.shop-detail-modern-page .header__logo {
    padding: 16px 0;
}

.shop-detail-modern-page .header__menu {
    padding: 25px 0 24px;
}

.shop-detail-modern-page .header__nav__option {
    padding: 26px 0;
}

.detail-page {
    padding-top: 30px;
}

.detail-wrap {
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: #777777;
    font-size: 13px;
}

.detail-breadcrumb a {
    color: #050505;
    font-weight: 800;
}

.detail-breadcrumb strong {
    color: #777777;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 46px;
    align-items: start;
}

.detail-gallery,
.detail-panel,
.product__details__pic,
.product__details__pic .row,
.product__details__pic [class*="col-"] {
    min-width: 0;
}

.product__details__pic {
    margin: 0;
}

.shop-detail-modern-page .product__details__pic {
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    text-align: left;
}

.shop-detail-modern-page .product__details__pic .nav-tabs {
    width: 100%;
    border-bottom: 0;
}

.detail-thumbs {
    display: grid;
    gap: 10px;
    border: 0;
}

.detail-thumbs .nav-item {
    margin: 0;
}

.detail-thumbs .nav-link {
    display: block;
    padding: 0;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    overflow: hidden;
}

.detail-thumbs .nav-link.active {
    border-color: #050505;
}

.detail-thumbs .product__thumb__pic {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    background-size: cover;
    background-position: center;
}

.shop-detail-modern-page .product__details__pic .nav-tabs .nav-item .nav-link .product__thumb__pic {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
}

.detail-main-images {
    background: #f4f4f4;
}

.product__details__pic__item {
    margin: 0;
    background: #f4f4f4;
}

.product__details__pic__item img {
    width: 100%;
    max-height: 760px;
    object-fit: contain;
    display: block;
}

.detail-empty-image img {
    aspect-ratio: 3 / 4;
}

.detail-panel {
    position: sticky;
    top: 18px;
}

.detail-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #777777;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-panel h1 {
    margin: 0 0 14px;
    color: #050505;
    font-size: 34px;
    line-height: 1.14;
    font-weight: 900;
}

.detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.detail-price strong {
    color: #050505;
    font-size: 24px;
    font-weight: 900;
}

.detail-price del {
    color: #777777;
    font-size: 16px;
    font-weight: 700;
}

.detail-stock {
    margin-bottom: 28px;
    color: #555555;
    font-size: 13px;
    font-weight: 800;
}

.detail-option {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 22px 0;
}

.detail-option__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.detail-option__head span {
    color: #050505;
    font-size: 15px;
    font-weight: 900;
}

.detail-option__head small {
    color: #777777;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.size-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.size-grid {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 4px 42px 12px;
    white-space: nowrap;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #050505 #eeeeee;
    scrollbar-width: thin;
    cursor: grab;
    user-select: none;
}

.size-grid.is-dragging {
    cursor: grabbing;
}

.size-grid::-webkit-scrollbar {
    height: 5px;
}

.size-grid::-webkit-scrollbar-track {
    background: #eeeeee;
}

.size-grid::-webkit-scrollbar-thumb {
    background: #050505;
}

.size-card {
    display: block !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.size-card input {
    display: none;
}

.size-box {
    width: 104px;
    min-height: 150px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.size-box img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

.size-text {
    color: #050505;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.size-text span {
    display: block;
    margin-top: 2px;
    color: #555555;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: none;
    white-space: normal;
}

.color-text {
    margin-top: 2px;
    color: #666666;
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

.size-card input:checked + .size-box {
    border-color: #050505;
    box-shadow: inset 0 0 0 1px #050505;
}

.nav-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #050505;
    cursor: pointer;
}

.nav-btn.left {
    left: 0;
}

.nav-btn.right {
    right: 0;
}

.nav-btn.hidden {
    display: none;
}

.detail-unavailable {
    border: 1px solid #e5e5e5;
    padding: 16px;
    color: #555555;
    font-weight: 800;
}

.detail-cart-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.detail-cart-row .quantity {
    margin: 0;
}

.detail-qty {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    width: 100%;
    height: 48px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

.detail-qty input {
    width: 100%;
    height: 46px;
    border: 0;
    color: #050505;
    font-weight: 900;
    text-align: center;
}

.detail-qty__btn {
    border: 0;
    background: #ffffff;
    color: #050505;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.detail-qty__btn:first-child {
    border-right: 1px solid #e5e5e5;
}

.detail-qty__btn:last-child {
    border-left: 1px solid #e5e5e5;
}

.detail-qty__btn:hover {
    background: #f2f2f2;
}

.detail-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    background: #050505;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-add-btn:hover {
    background: #333333;
    color: #ffffff;
}

.detail-add-btn.disabled {
    opacity: 0.42;
    pointer-events: none;
}

.detail-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.detail-service div {
    border: 1px solid #e5e5e5;
    padding: 14px;
}

.detail-service strong,
.detail-service span {
    display: block;
}

.detail-service strong {
    color: #050505;
    font-size: 13px;
    font-weight: 900;
}

.detail-service span {
    margin-top: 4px;
    color: #777777;
    font-size: 12px;
}

.detail-info {
    margin-top: 46px;
    border-top: 1px solid #e5e5e5;
    padding-top: 28px;
}

.detail-info h2 {
    margin: 0 0 18px;
    color: #050505;
    font-size: 24px;
    font-weight: 900;
}

.detail-info ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-info li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
}

.detail-info li span {
    color: #777777;
    font-size: 13px;
    font-weight: 800;
}

.detail-info li strong {
    color: #050505;
    font-size: 13px;
    font-weight: 900;
}

.detail-related {
    margin-top: 72px;
}

.detail-section-title {
    margin-bottom: 22px;
}

.detail-section-title span {
    display: block;
    margin-bottom: 6px;
    color: #777777;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-section-title h2 {
    margin: 0;
    color: #050505;
    font-size: 28px;
    font-weight: 900;
}

.detail-related-col {
    display: flex;
    margin-bottom: 28px;
}

.detail-related-card {
    width: 100%;
}

.detail-related-card__image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
}

.detail-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.detail-related-card__image span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background: #050505;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-related-card:hover .detail-related-card__image img {
    transform: scale(1.035);
}

.detail-related-card__name {
    display: block;
    min-height: 42px;
    margin-top: 12px;
    color: #050505;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.detail-related-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: baseline;
    margin-top: 6px;
}

.detail-related-card__price strong {
    color: #050505;
    font-size: 15px;
    font-weight: 900;
}

.detail-related-card__price del {
    color: #777777;
    font-size: 13px;
}

.shop-detail-modern-page .footer {
    margin-top: 70px;
    background: #050505;
}

@media (max-width: 991px) {
    .shop-detail-modern-page .header__menu,
    .shop-detail-modern-page .header__nav__option {
        display: none;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-panel {
        position: static;
    }
}

@media (max-width: 767px) {
    .detail-page {
        padding-top: 20px;
    }

    .detail-thumbs-col {
        order: 2;
    }

    .detail-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 10px;
    }

    .detail-panel h1 {
        font-size: 28px;
    }

    .detail-option__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .detail-option__head small {
        text-align: left;
    }

    .detail-cart-row,
    .detail-service {
        grid-template-columns: 1fr;
    }

    .detail-info ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .size-box {
        width: 92px;
    }

    .detail-info li {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
