.iphone17promax-page {
    padding: 50px 20px;
    background-color: #fafafa;
    text-align: center;
}

.images-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.thumbnail-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.thumbnail {
    max-width: 100px;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.large-image {
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: auto;
}

.h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
    margin-left: 400px; 
}

.nav-text {
    text-align: left;
    margin: 20px 0;
    margin-left: 400px; 
}

.nav-link {
    color: gray;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: red;
}

.aim {
    color: gray;
}

.product-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.details {
    text-align: left;
    font-size: 1.2rem;
    color: #333;
    max-width: 300px;
}

.price-info {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.current-price {
    color: black;
    font-weight: bold;
}

.action-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #ba2d3a;
}

.specs {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.quantity-and-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-input {
    width: 50px;
    height: 30px;
    padding: 5px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn-red {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.btn-red:hover {
    background-color: #ba2d3a;
}

.btn-white {
    background-color: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-white:hover {
    background-color: #dc3545;
    color: white;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tab {
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #DC3545;
    color: white;
    border-color: #DC3545;
}

.tab-content {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tab-content li {
    margin-bottom: 10px;
}

.tab-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.characteristics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

.characteristics-table th, .characteristics-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.characteristics-table thead th {
    background-color: silver;
    font-weight: bold;
}

@media (max-width: 768px) {
    .product-info {
        flex-direction: column;
    }
    .large-image {
        max-width: 100%;
    }
    .h1 {
    margin-left: 400px;
}
    .nav-text {
        margin-left: 0;
    }
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); 
    backdrop-filter: blur(5px); 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s forwards; 
}

.popup.open {
    display: flex;
}

.popup-content {
    background-color: #fdfdfd; 
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 
    max-width: 450px;
    text-align: left;
    animation: slideUp 0.3s forwards;
}

.popup-content input[type="text"],
.popup-content input[type="tel"],
.popup-content input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #fafafa;
    font-size: 16px;
    transition: border-color 0.3s;
}

.popup-content input[type="text"]:focus,
.popup-content input[type="tel"]:focus,
.popup-content input[type="email"]:focus {
    border-color: #dc3545; 
}

.popup-content select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #fafafa;
    font-size: 16px;
    transition: border-color 0.3s;
}

.popup-content select:focus {
    border-color: #dc3545;
}

.checkboxes label {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
}

.checkboxes input[type="checkbox"] {
    margin-right: 10px;
}

.popup-content label {
    font-size: 16px;
    color: #444;
    margin-bottom: 5px;
}

.public-offer,
.personal-data-processing {
    color: #dc3545; 
    text-decoration: none;
    font-weight: 600;
}

.public-offer:hover,
.personal-data-processing:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: #ba2d3a;
}

.required-note {
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-close:hover {
    background-color: #ba2d3a;
}