.detail-section {
    padding: 110px 0 60px;
    background: #f5f6fa;
    min-height: calc(100vh - 76px);
    box-sizing: border-box;
}

.detail-section .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.detail-wrapper {
    width: 100%;

    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);

    gap: 50px;

    background: #ffffff;

    border-radius: 24px;

    padding: 32px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);

    align-items: start;
}

.detail-left {
    width: 100%;
}

.product-image-card {
    width: 100%;
}

.main-image {
    width: 100%;

    height: 560px;

    display: block;

    object-fit: contain;

    object-position: center;

    padding: 12px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 18px;

    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.01);
}

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

.detail-thumb {
    min-width: 0;
    height: 92px;
    padding: 4px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.detail-thumb:hover,
.detail-thumb.active {
    border-color: #8b1e2d;
    box-shadow: 0 0 0 2px rgba(139,30,45,.08);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-benefits {
    display: grid;

    grid-template-columns: 1fr;

    gap: 10px;

    margin-top: 16px;
}

.benefit-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    background: #fafafa;

    border: 1px solid #eeeeee;

    border-radius: 12px;
}

.benefit-item i {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #8b1e2d;

    color: #ffffff;

    border-radius: 9px;

    font-size: 15px;
}

.benefit-item div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.benefit-item strong {
    font-size: 12px;

    color: #222;
}

.benefit-item span {
    font-size: 10px;

    color: #777;

    line-height: 1.4;
}

.detail-right {
    width: 100%;

    min-width: 0;

    padding-top: 2px;
}

.product-header {
    padding-bottom: 18px;

    border-bottom: 1px solid #eeeeee;
}

.product-header h1 {
    margin: 0;

    font-size: 32px;

    line-height: 1.2;

    color: #202020;

    font-weight: 700;
}

.product-price {
    margin-top: 8px;

    font-size: 25px;

    line-height: 1.2;

    font-weight: 700;

    color: #8b1e2d;
}

.product-description {
    margin: 10px 0 0;

    max-width: 650px;

    color: #777;

    font-size: 13px;

    line-height: 1.6;
}

.product-options {
    padding-top: 20px;

    display: flex;

    flex-direction: column;

    gap: 16px;
}

.option-group {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.option-group label {
    font-size: 13px;

    font-weight: 600;

    color: #282828;
}

.option-group select,
.option-group input {
    width: 100%;

    height: 44px;

    padding: 0 13px;

    border: 1px solid #dddddd;

    border-radius: 10px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition: all 0.2s ease;
}

.option-group select:focus,
.option-group input:focus {
    border-color: #8b1e2d;

    box-shadow: 0 0 0 3px rgba(139, 30, 45, 0.07);
}

.product-options > .option-group:nth-child(1),
.product-options > .option-group:nth-child(2) {
    width: 100%;
}

.color-grid {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    padding-top: 4px;
}

.color-item {
    width: 36px;

    height: 36px;

    border-radius: 50%;

    border: 3px solid #ffffff;

    outline: 1px solid #d7d7d7;

    cursor: pointer;

    transition: all 0.2s ease;
}

.color-item:hover {
    transform: scale(1.08);
}

.color-item.active {
    outline: 2px solid #8b1e2d;

    transform: scale(1.08);
}

.size-chart {
    width: 100%;

    border: 1px solid #e3e3e3;

    border-radius: 12px;

    overflow: hidden;

    background: #ffffff;
}

.size-chart-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 14px;

    background: #fafafa;

    border-bottom: 1px solid #e5e5e5;
}

.size-chart-header strong {
    font-size: 13px;

    color: #222;
}

.size-chart-header span {
    font-size: 11px;

    color: #888;
}

.size-chart table {
    width: 100%;

    border-collapse: collapse;
}

.size-chart th,
.size-chart td {
    padding: 9px;

    text-align: center;

    font-size: 12px;

    border-bottom: 1px solid #eeeeee;
}

.size-chart th {
    font-weight: 600;

    color: #555;

    background: #ffffff;
}

.size-chart tr:last-child td {
    border-bottom: none;
}

.bottom-options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.quantity-control {
    display: flex;

    height: 44px;

    border: 1px solid #dddddd;

    border-radius: 10px;

    overflow: hidden;

    background: #ffffff;
}

.quantity-control button {
    width: 42px;

    border: none;

    background: #f7f7f7;

    color: #333;

    font-size: 19px;

    cursor: pointer;

    transition: 0.2s;
}

.quantity-control button:hover {
    background: #eeeeee;
}

.quantity-control input {
    flex: 1;

    width: 100%;

    height: 100%;

    padding: 0;

    border: none;

    border-radius: 0;

    text-align: center;

    font-size: 13px;
}

.btn-order {
    width: 100%;

    min-height: 50px;

    border: none;

    border-radius: 11px;

    background: #8b1e2d;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow: 0 6px 15px rgba(139, 30, 45, 0.18);
}

.btn-order:hover {
    background: #741724;

    transform: translateY(-1px);

    box-shadow: 0 8px 18px rgba(139, 30, 45, 0.23);
}

.btn-order:active {
    transform: translateY(0);
}

@media (max-width: 1000px) {

    .detail-section {
        padding: 35px 0 50px;
    }

    .detail-wrapper {
        grid-template-columns: 380px minmax(0, 1fr);

        gap: 30px;

        padding: 25px;
    }

    .main-image {
        height: 500px;
    }

    .product-header h1 {
        font-size: 28px;
    }

}

@media (max-width: 800px) {

    .detail-section {
        padding: 25px 0 40px;
    }

    .detail-wrapper {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 20px;

        border-radius: 18px;
    }

    .main-image {
        height: 450px;
    }

    .product-header h1 {
        font-size: 27px;
    }

    .product-price {
        font-size: 23px;
    }

}

@media (max-width: 500px) {

    .detail-section .container {
        padding: 0 12px;
    }

    .detail-wrapper {
        padding: 15px;

        gap: 22px;
    }

    .main-image {
        height: 360px;

        border-radius: 14px;
    }

    .product-header h1 {
        font-size: 24px;
    }

    .product-price {
        font-size: 21px;
    }

    .bottom-options {
        grid-template-columns: 1fr;
    }

    .color-item {
        width: 34px;

        height: 34px;
    }

    .product-benefits {
        display: none;
    }

}

/* Multi-variant product ordering */
.variant-order-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fff;
}

.variant-order-header h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
}

.variant-order-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.variant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.variant-row {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: end;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 11px;
    background: #fafafa;
}

.variant-field {
    min-width: 0;
}

.variant-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.variant-field select,
.variant-field input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
    font: inherit;
    color: #222;
}

.variant-field select:focus,
.variant-field input:focus {
    outline: none;
    border-color: #8b1e2d;
    box-shadow: 0 0 0 2px rgba(139, 30, 45, .08);
}

.variant-quantity .quantity-control {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    height: 42px;
}

.variant-quantity .quantity-control button {
    height: 42px;
    border: 1px solid #dcdcdc;
    background: #fff;
    cursor: pointer;
}

.variant-quantity .quantity-control button:first-child {
    border-radius: 8px 0 0 8px;
}

.variant-quantity .quantity-control button:last-child {
    border-radius: 0 8px 8px 0;
}

.variant-quantity .quantity-control input {
    height: 42px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    text-align: center;
    appearance: textfield;
}

.variant-quantity .quantity-control input::-webkit-outer-spin-button,
.variant-quantity .quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.variant-remove {
    width: 36px;
    min-width: 36px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #f8e6e9;
    color: #8b1e2d;
    cursor: pointer;
    transition: .2s ease;
}

.variant-remove:hover {
    background: #f3d4d9;
}

.variant-add-row {
    margin-top: 12px;
}

.variant-add-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    border: 1px dashed #b8b8b8;
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 0 13px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.variant-add-button:hover {
    border-color: #8b1e2d;
    color: #8b1e2d;
}

.variant-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
}

.variant-summary strong {
    font-size: 15px;
}

@media (max-width: 700px) {
    .variant-row {
        grid-template-columns: 1fr 1fr;
    }

    .variant-quantity {
        grid-column: 1 / 2;
    }

    .variant-remove {
        grid-column: 2;
        justify-self: end;
    }
}

