/* Product Attributes Tabs */
.product-attributes-tabs {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #fff;
}

.tabs-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 15px;
}

.tab-pane.active {
    display: block;
}

/* Table Container */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Tables Styling */
.product-info-table,
.system-requirements-table,
.buy-license-table,
.download-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
    table-layout: fixed;
}

.product-info-table td,
.system-requirements-table td,
.buy-license-table td,
.download-table td {
    padding: 10px 8px;
    border: 1px solid #dee2e6;
    vertical-align: top;
    word-wrap: break-word;
}

/* Compact rows for Buy and Download tabs */
.buy-license-table .compact-row td,
.download-table .compact-row td {
    padding: 8px 8px;
}

.product-info-table td:first-child,
.system-requirements-table td:first-child {
    width: 30%;
    background: #f8f9fa;
    font-weight: 600;
}

.system-requirements-table .os-header {
    vertical-align: middle;
    text-align: center;
    background: #f8f9fa;
    width: 30%;
}

.system-requirements-table .os-platform {
    width: 20%;
    background: #f8f9fa;
}

.system-requirements-table .os-details {
    width: 50%;
}

.system-requirements-table .requirement-header {
    background: #f8f9fa;
    width: 30%;
}

.system-requirements-table .requirement-details {
    width: 70%;
}

/* Buy License Table Specific */
.buy-license-table .buy-platform {
    width: 15%;
    background: #f8f9fa;
}

.buy-license-table .buy-description {
    width: 35%;
}

.buy-license-table .discount-value {
    width: 20%;
    background: #f8f9fa;
    text-align: center;
    font-weight: 600;
    color: #28a745;
}

.buy-license-table .buy-button-cell {
    width: 30%;
    text-align: center;
}

.buy-license-table .coupon-platform {
    width: 15%;
    background: #f8f9fa;
}

.buy-license-table .coupon-details {
    width: 85%;
}

/* Download Table Specific */
.download-table .download-platform {
    width: 20%;
    background: #f8f9fa;
}

.download-table .download-description {
    width: 40%;
}

.download-table .download-button-cell {
    width: 40%;
    text-align: center;
}

/* Combined platform icons styling */
.fa-windows, .fa-linux, .fa-apple {
    margin-right: 2px;
}

.os-platform .fa-windows,
.os-platform .fa-linux, 
.os-platform .fa-apple {
    margin-right: 5px;
}

/* Ensure proper spacing for combined platform in buy table */
.buy-license-table .buy-platform .fa-windows,
.buy-license-table .buy-platform .fa-linux,
.buy-license-table .buy-platform .fa-apple {
    margin-right: 5px;
}

/* Center the platform icons when there's no text */
.buy-license-table .buy-platform:has(.fa-windows + .fa-linux + .fa-apple) {
    text-align: center;
}

/* Fallback for older browsers that don't support :has() */
.buy-license-table .buy-platform .fa-windows + .fa-linux + .fa-apple {
    display: inline-block;
}

/* Coupon Code Styling */
.coupon-code {
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
    text-align: center;
}

.coupon-code .coupon {
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    border: 1px dashed #856404;
    font-size: 14px;
}

/* Buy Now Button - Original Download Protector Style */
.buy-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #28a745;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
    position: relative;
    font-family: inherit;
    min-width: 140px;
    justify-content: center;
}

.buy-now-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
    border-color: #218838;
    color: #333;
    text-decoration: none;
}

.buy-now-btn i {
    font-size: 16px;
    color: #28a745;
    width: 18px;
    text-align: center;
}

.buy-now-btn:hover i {
    color: #218838;
}

.buy-now-btn .btn-text {
    color: #333;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

/* Download Now Button - Original Download Protector Style */
.download-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    position: relative;
    font-family: inherit;
    min-width: 140px;
    justify-content: center;
}

.download-now-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    border-color: #27ae60;
    color: #333;
    text-decoration: none;
}

.download-now-btn i {
    font-size: 16px;
    color: #667eea;
    width: 18px;
    text-align: center;
}

.download-now-btn:hover i {
    color: #27ae60;
}

.download-now-btn .btn-text {
    color: #333;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

/* Ensure proper table display */
.product-attributes-tabs table {
    display: table !important;
    width: 100% !important;
}

.product-attributes-tabs tr {
    display: table-row !important;
}

.product-attributes-tabs td {
    display: table-cell !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid #dee2e6;
        border-right: 3px solid transparent;
        text-align: left;
        justify-content: flex-start;
    }
    
    .tab-button.active {
        border-right-color: #007bff;
        border-bottom-color: #dee2e6;
    }
    
    .product-info-table,
    .system-requirements-table,
    .buy-license-table,
    .download-table {
        table-layout: auto;
        display: block;
        overflow-x: auto;
    }
    
    .system-requirements-table .os-header {
        width: 100%;
        display: block;
    }
    
    .system-requirements-table tr {
        display: table-row;
    }
    
    .buy-license-table .buy-platform,
    .buy-license-table .discount-value,
    .buy-license-table .coupon-platform {
        width: 25%;
    }
    
    .buy-license-table .buy-description,
    .buy-license-table .buy-button-cell,
    .buy-license-table .coupon-details {
        width: 75%;
    }
    
    .buy-now-btn,
    .download-now-btn {
        min-width: 120px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .buy-now-btn .btn-text,
    .download-now-btn .btn-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tab-button i {
        font-size: 14px;
    }
    
    .tab-pane {
        padding: 10px;
    }
    
    .product-info-table td,
    .system-requirements-table td,
    .buy-license-table td,
    .download-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .buy-license-table .compact-row td,
    .download-table .compact-row td {
        padding: 6px 6px;
    }
    
    .buy-license-table .discount-value {
        font-size: 12px;
    }
}