.dk-modern-single-product {
    background: #f5f5f7;
}

.dk-product-page {
    font-family: inherit;
    color: #23254e;
    background: #f5f5f7;
    padding-bottom: 40px;
}

.dk-container {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.dk-breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: #81858b;
}

.dk-breadcrumb a {
    color: #62666d;
    text-decoration: none;
}

.dk-product-hero {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
}

.dk-product-gallery-card,
.dk-product-info-card,
.dk-buy-box-inner,
.dk-tabs-card {
    background: #fff;
    border: 1px solid #e0e0e2;
    border-radius: 18px;
}

.dk-product-gallery-card {
    position: relative;
    padding: 18px;
}

.dk-product-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dk-badge-sale {
    background: #ef4056;
    color: #fff;
}

.dk-badge-featured {
    background: #fef3c7;
    color: #92400e;
}

.dk-badge-out {
    background: #f1f2f4;
    color: #62666d;
}

.dk-main-gallery {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dk-main-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.dk-main-product-image:hover {
    transform: scale(1.03);
}

.dk-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 14px;
    scrollbar-width: thin;
}

.dk-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border: 1px solid #e0e0e2;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dk-thumb.is-active {
    border-color: #19bfd3;
    box-shadow: 0 0 0 3px rgba(25, 191, 211, 0.15);
}

.dk-product-info-card {
    padding: 20px;
    min-height: 100%;
}

.dk-product-category {
    font-size: 13px;
    margin-bottom: 10px;
    color: #19bfd3;
}

.dk-product-category a {
    color: #19bfd3;
    text-decoration: none;
}

.dk-product-title {
    font-size: 20px;
    line-height: 1.8;
    margin: 0 0 14px;
    font-weight: 800;
    color: #23254e;
}

.dk-product-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f1;
    color: #62666d;
    font-size: 13px;
}

.dk-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dk-star {
    color: #f9a825;
    font-size: 15px;
}

.dk-rating small {
    color: #81858b;
}

.dk-sku span {
    color: #23254e;
    font-weight: 700;
}

.dk-key-attributes {
    margin-top: 20px;
}

.dk-section-title-sm {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.dk-key-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.dk-key-attributes li {
    background: #f7f7f8;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.8;
}

.dk-key-attributes li span {
    color: #81858b;
    margin-left: 4px;
}

.dk-key-attributes li strong {
    color: #23254e;
    font-weight: 700;
}

.dk-short-description {
    margin-top: 18px;
    color: #424750;
    font-size: 14px;
    line-height: 2;
}

.dk-buy-box {
    position: sticky;
    top: 20px;
}

.dk-buy-box-inner {
    padding: 16px;
}

.dk-box-label {
    color: #81858b;
    font-size: 13px;
    margin-bottom: 10px;
}

.dk-seller-box {
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f1;
}

.dk-seller-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #23254e;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.dk-seller-icon {
    font-size: 18px;
}

.dk-seller-rating {
    margin-top: 8px;
    font-size: 12px;
    color: #62666d;
}

.dk-service-row {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
    color: #424750;
}

.dk-service-icon {
    width: 22px;
    text-align: center;
}

.dk-stock-status {
    padding: 14px 0 6px;
    font-size: 13px;
    font-weight: 700;
}

.dk-stock-status .in-stock {
    color: #00a049;
}

.dk-stock-status .out-of-stock {
    color: #ef4056;
}

.dk-price-box {
    margin-top: 14px;
    text-align: left;
}

.dk-price-box .price {
    display: block;
    color: #23254e;
    font-size: 22px;
    font-weight: 900;
}

.dk-price-box del {
    color: #a1a3a8;
    font-size: 14px;
    margin-left: 6px;
}

.dk-price-box ins {
    text-decoration: none;
}

.dk-add-to-cart-box {
    margin-top: 16px;
}

.dk-add-to-cart-box form.cart {
    margin: 0;
}

.dk-add-to-cart-box .quantity {
    margin-bottom: 12px;
}

.dk-add-to-cart-box .qty {
    width: 90px;
    height: 42px;
    border: 1px solid #e0e0e2;
    border-radius: 10px;
    text-align: center;
}

.dk-add-to-cart-box .single_add_to_cart_button {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: #ef4056;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.dk-add-to-cart-box .single_add_to_cart_button:hover {
    background: #d92f45;
}

.dk-add-to-cart-box .single_add_to_cart_button:active {
    transform: scale(0.98);
}

.dk-add-to-cart-box .single_add_to_cart_button.disabled,
.dk-add-to-cart-box .single_add_to_cart_button:disabled {
    background: #c0c2c5;
    cursor: not-allowed;
}

.dk-add-to-cart-box .variations {
    width: 100%;
    margin-bottom: 12px;
}

.dk-add-to-cart-box .variations th,
.dk-add-to-cart-box .variations td {
    display: block;
    width: 100%;
    text-align: right;
    padding: 0 0 8px;
}

.dk-add-to-cart-box .variations label {
    font-size: 13px;
    color: #424750;
    font-weight: 700;
}

.dk-add-to-cart-box .variations select {
    width: 100%;
    height: 42px;
    border: 1px solid #e0e0e2;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.dk-product-mobile-buy {
    display: none;
}

.dk-product-content {
    margin-top: 18px;
}

.dk-tabs-card {
    padding: 0;
    overflow: hidden;
}

.dk-custom-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e2;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 4;
}

.dk-tab-button {
    border: none;
    background: transparent;
    padding: 16px 22px;
    cursor: pointer;
    color: #62666d;
    font-weight: 800;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}

.dk-tab-button.is-active {
    color: #ef4056;
    border-bottom-color: #ef4056;
}

.dk-tab-panel {
    display: none;
    padding: 24px;
    line-height: 2;
    color: #424750;
}

.dk-tab-panel.is-active {
    display: block;
}

.dk-tab-panel h2 {
    margin-top: 0;
    color: #23254e;
    font-size: 20px;
}

.dk-description-content {
    font-size: 15px;
}

.dk-tab-panel table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.dk-tab-panel table.shop_attributes th,
.dk-tab-panel table.shop_attributes td {
    padding: 14px;
    border-bottom: 1px solid #f0f0f1;
    text-align: right;
}

.dk-tab-panel table.shop_attributes th {
    width: 220px;
    background: #f7f7f8;
    color: #62666d;
}

.dk-related-products {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e0e0e2;
    border-radius: 18px;
    padding: 20px;
}

.dk-related-products h2 {
    font-size: 20px;
    margin-top: 0;
}

.dk-related-products ul.products {
    margin-bottom: 0;
}

/* WooCommerce notices */
.dk-product-page .woocommerce-notices-wrapper {
    margin-bottom: 12px;
}

/* Reviews */
.dk-tab-panel #reviews {
    max-width: 100%;
}

.dk-tab-panel .commentlist {
    padding: 0;
}

.dk-tab-panel .commentlist li {
    list-style: none;
    border-bottom: 1px solid #f0f0f1;
    padding: 16px 0;
}

/* Tablet */
@media (max-width: 1180px) {
    .dk-product-hero {
        grid-template-columns: 42% minmax(0, 1fr);
    }

    .dk-buy-box {
        grid-column: 1 / -1;
        position: static;
    }

    .dk-buy-box-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .dk-seller-box,
    .dk-service-row {
        border-bottom: none;
        background: #f7f7f8;
        border-radius: 12px;
        padding: 14px;
    }

    .dk-price-box,
    .dk-add-to-cart-box,
    .dk-stock-status {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dk-product-page {
        padding-bottom: 96px;
    }

    .dk-container {
        width: 100%;
        padding: 0 10px;
    }

    .dk-breadcrumb {
        display: none;
    }

    .dk-product-hero {
        display: block;
    }

    .dk-product-gallery-card,
    .dk-product-info-card,
    .dk-buy-box-inner,
    .dk-tabs-card,
    .dk-related-products {
        border-radius: 14px;
        margin-top: 10px;
    }

    .dk-product-gallery-card {
        margin-top: 10px;
        padding: 12px;
    }

    .dk-main-gallery {
        aspect-ratio: 1 / 1;
    }

    .dk-gallery-thumbs {
        gap: 8px;
    }

    .dk-thumb {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .dk-product-info-card {
        padding: 16px;
    }

    .dk-product-title {
        font-size: 17px;
        line-height: 1.9;
    }

    .dk-product-meta-row {
        gap: 10px;
        font-size: 12px;
    }

    .dk-key-attributes li {
        font-size: 12px;
    }

    .dk-short-description {
        font-size: 13px;
        max-height: 150px;
        overflow: hidden;
        position: relative;
    }

    .dk-buy-box {
        position: static;
        margin-top: 10px;
    }

    .dk-buy-box-inner {
        display: block;
        padding: 14px;
    }

    .dk-price-box,
    .dk-add-to-cart-box {
        display: none;
    }

    .dk-seller-box,
    .dk-service-row {
        background: transparent;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f1;
        padding: 12px 0;
    }

    .dk-product-mobile-buy {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 10px;
        align-items: center;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e0e0e2;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(12px);
    }

    .dk-mobile-price {
        text-align: right;
        overflow: hidden;
    }

    .dk-mobile-price .price {
        color: #23254e;
        font-size: 15px;
        font-weight: 900;
        display: block;
        line-height: 1.6;
    }

    .dk-mobile-price del {
        font-size: 11px;
        color: #a1a3a8;
    }

    .dk-mobile-price ins {
        text-decoration: none;
    }

    .dk-mobile-add-button {
        width: 100%;
        height: 46px;
        border: none;
        border-radius: 12px;
        background: #ef4056;
        color: #fff;
        font-size: 14px;
        font-weight: 900;
        cursor: pointer;
    }

    .dk-custom-tabs {
        overflow-x: auto;
        position: sticky;
        top: 0;
    }

    .dk-tab-button {
        white-space: nowrap;
        padding: 14px 18px;
        font-size: 13px;
    }

    .dk-tab-panel {
        padding: 16px;
        font-size: 14px;
    }

    .dk-tab-panel h2 {
        font-size: 17px;
    }

    .dk-tab-panel table.shop_attributes th,
    .dk-tab-panel table.shop_attributes td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .dk-tab-panel table.shop_attributes th {
        border-radius: 10px 10px 0 0;
    }

    .dk-related-products {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .dk-product-title {
        font-size: 16px;
    }

    .dk-product-mobile-buy {
        grid-template-columns: 1fr 1fr;
    }

    .dk-mobile-add-button {
        font-size: 13px;
    }
}
