/* =============================================
   DMA Styles - Consolidated CSS
   For DMA Hardware & Firmware pages and modals
   ============================================= */

/* =============================================
   DMA Navigation Tabs
   ============================================= */
.dma-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    padding: 8px;
    background: rgba(24, 26, 34, 0.8);
    border-radius: 16px;
    flex-wrap: wrap;
    width: max-content;
    max-width: 100%;
}

.dma-tabs__item {
    flex: 1;
    text-wrap: nowrap;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6C738F;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.dma-tabs__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dma-tabs__item--active {
    color: #fff;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.dma-tabs__item--active:hover {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
}

@media (max-width: 768px) {
    .dma-tabs {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
        margin-bottom: 20px;
    }
    
    .dma-tabs__item {
        padding: 12px 16px;
        font-size: 0.875rem;
        min-width: 100%;
    }
}

/* =============================================
   DMA Modal Styles
   ============================================= */
#modal-pay .popup__close {
    filter: none !important;
}

/* Modal Content Layout */
.dma-modal__content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .dma-modal__content {
        flex-direction: column;
    }
}

/* Left Column - Order Info */
.dma-modal__order-info {
    flex: 0 0 240px;
    background: #181a22;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    .dma-modal__order-info {
        flex: none;
    }
}

.dma-modal__order-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c738f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.dma-modal__product-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.dma-modal__product-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff416c;
}

.dma-modal__product-price-currency {
    font-size: 16px;
    margin-left: 5px;
}

.dma-modal__info-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 65, 108, 0.1);
    border-radius: 10px;
    margin-top: auto;
}

.dma-modal__info-text svg {
    flex-shrink: 0;
    color: #ff416c;
}

.dma-modal__info-text span {
    font-size: 13px;
    color: #a0a3b1;
    line-height: 1.4;
}

/* Right Column - Form */
.dma-modal__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dma-modal__form-section {
    background: #181a22;
    border-radius: 12px;
    padding: 15px;
}

.dma-modal__form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #6c738f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dma-modal__form-row {
    display: flex;
    gap: 15px;
}

@media (max-width: 500px) {
    .dma-modal__form-row {
        flex-direction: column;
    }
}

.dma-modal__form-row .modal-pay__email {
    flex: 1;
}

/* Characteristics in Left Column */
.dma-modal__characteristics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(108, 115, 143, 0.2);
}

.dma-modal__characteristic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.dma-modal__characteristic-label {
    color: #6c738f;
}

.dma-modal__characteristic-value {
    color: #fff;
    font-weight: 500;
}

/* Характеристики в модальном окне */
.dma-modal__chars {
    /*margin-top: 15px;*/
    padding-top: 15px;
    border-top: 1px solid rgba(108, 115, 143, 0.2);
}

.dma-modal__char-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dma-modal__char-item {
    padding: 10px 12px;
    background: rgba(255, 65, 108, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    color: #e8f6fc;
    font-size: 13px;
    position: relative;
    padding-left: 30px;
}

.dma-modal__char-item::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #ff416c;
    font-weight: bold;
}

/* Submit Button Section */
.dma-modal__submit-section {
    margin-top: 10px;
}

/* Primary Button with New Hover Effect */
.btn-primary-dma {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-dma:hover {
    box-shadow: 0 6px 25px rgba(255, 65, 108, 0.6);
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
}

.btn-primary-dma:active {
    transform: scale(0.98);
}

/* =============================================
   DMA Product Page Styles
   ============================================= */
.dma-product-page {
    padding: 40px 0;
}

.dma-product-page__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dma-product-page__body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .dma-product-page__body {
        grid-template-columns: 1fr;
    }
}

.dma-product-page__info {
    background: #181a22;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.dma-product-page__info .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    pointer-events: none;
}

.dma-product-page__info-top {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .dma-product-page__info-top {
        flex-direction: column;
    }
}

.dma-product-page__image-wrap {
    flex-shrink: 0;
}

.dma-product-page__image {
    width: 150px;
    height: 170px;
    object-fit: cover;
    border-radius: 18px;
}

@media (max-width: 480px) {
    .dma-product-page__image {
        width: 100%;
        height: auto;
    }
}

.dma-product-page__title-wrap {
    flex: 1;
}

.dma-product-page__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.dma-product-page__tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dma-product-page__tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.dma-product-page__tag--sale {
    background: #ff416c;
    color: #fff;
}

.dma-product-page__tag--vip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.dma-product-page__tag--top {
    background: #ffb400;
    color: #181a22;
}

.dma-product-page__price {
    font-size: 32px;
    font-weight: 700;
    color: #ff416c;
    margin-bottom: 20px;
}

.dma-product-page__price-currency {
    font-size: 20px;
    margin-left: 5px;
}

/* Description Section */
.dma-product-page__descr-section {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.dma-product-page__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2c38;
}

.dma-product-page__descr {
    color: #a0a3b1;
    line-height: 1.7;
    font-size: 15px;
}

/* Characteristics List */
.dma-product-page__chars {
    margin-top: 20px;
}

.dma-product-page__char-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dma-product-page__char-item {
    padding: 12px 15px;
    background: #22242e;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #e8f6fc;
    font-size: 14px;
}

/* Order Card */
.dma-product-page__order-card {
    background: #181a22;
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dma-product-page__order-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.dma-product-page__order-price {
    text-align: center;
    margin-bottom: 25px;
}

.dma-product-page__order-price-value {
    font-size: 36px;
    font-weight: 700;
    color: #ff416c;
}

.dma-product-page__order-price-currency {
    font-size: 20px;
}

.dma-product-page__order-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
}

.dma-product-page__order-btn:hover {
    background: linear-gradient(135deg, #e6004c, #ff1e56);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
}

.dma-product-page__order-note {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #6c738f;
}

/* Reviews Section */
.dma-product-page__reviews {
    margin-top: 40px;
    background: #181a22;
    border-radius: 16px;
    padding: 30px;
}

.dma-product-page__reviews-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.dma-product-page__review-item {
    background: #22242e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.dma-product-page__review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dma-product-page__review-author {
    font-weight: 600;
    color: #fff;
}

.dma-product-page__review-date {
    font-size: 13px;
    color: #6c738f;
}

.dma-product-page__review-rating {
    color: #ffb400;
    margin-bottom: 10px;
}

.dma-product-page__review-text {
    color: #a0a3b1;
    line-height: 1.6;
}

/* Breadcrumbs */
.dma-breadcrumbs {
    margin-bottom: 20px;
}

.dma-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.dma-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dma-breadcrumbs__link {
    color: #6c738f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.dma-breadcrumbs__link:hover {
    color: #ff416c;
}

.dma-breadcrumbs__current {
    color: #fff;
    font-size: 14px;
}

.dma-breadcrumbs__separator {
    color: #6c738f;
}

/* Product Page Pay Styles for DMA */
.product-page__pay-price {
    margin: 15px 0;
    line-height: 1;
}

.product-page__pay-this-price {
    font-size: 36px;
    font-weight: 700;
    color: #ff416c;
}

.product-page__pay-this-price-currency {
    font-size: 26px;
    margin-left: 0;
}

/* Product Page IFO Tags */
/*.product-page__ifo-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
}*/

.dma-product-page__title-wrap {
    flex: 1;
    min-width: 0;
}

/* DMA Product Characteristics - Two columns grid */
.dma-product-page__characteristics {
    margin-top: 15px;
}

.dma-characteristics__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dma-characteristics__item {
    padding: 8px 12px;
    background: rgba(255, 65, 108, 0.1);
    border-radius: 8px;
    color: #e8f6fc;
    font-size: 13px;
    position: relative;
    padding-left: 28px;
}

.dma-characteristics__item::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #ff416c;
    font-weight: bold;
}

/* Product info box full width */
.product-page__info-box {
    width: 100%;
}

/* DMA Product Characteristics - Mobile version */
.dma-product-page__characteristics-mobile {
    display: none;
}

@media (max-width: 43.75em) {
    /* Hide main characteristics on mobile */
    .dma-product-page__characteristics {
        display: none;
    }
    
    /* Show mobile characteristics on mobile */
    .dma-product-page__characteristics-mobile {
        display: block;
        margin-bottom: 20px;
    }
}
