/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
}

.modal-content .form-group {
    margin-bottom: 12px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #ccc;
    margin-left: 2px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    /* Reduced padding to compensate for larger font */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    /* Prevents iOS zoom */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    height: 42px;
    /* Fixed height for consistency */
}

.modal-content input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-confirm {
    flex: 2;
    background: #fff;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    color: #999;
    border: 1px solid #333;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel:hover {
    color: #fff;
    border-color: #666;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Roboto', 'DIN Next', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo img {
    height: 18px;
    /* Approximate size */
    display: block;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cccccc;
    cursor: pointer;
}

.language-selector svg {
    stroke: #cccccc;
}

main {
    padding-top: 140px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 60px;
    /* Increased gap to push right column further */
    max-width: 1100px;
    /* Slightly wider container */
    width: 100%;
    padding: 0 40px;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -1px;
}

.subtitle-container p {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #f0f0f0;
    line-height: 1.5;
    font-weight: 500;
}

.subtitle-container .light-text {
    color: #999;
    font-weight: 400;
    margin-top: 12px;
}

.address-section {
    margin-top: 45px;
}

.address-section label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.address-section label::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTk5IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTIxIDEwYzAgNy05IDEzLTkgMTNzLTktNi05LTEzYTkgOSAwIDAgMSAxOCAweiI+PC9wYXRoPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTAiIHI9IjMiPjwvY2lyY2xlPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    opacity: 0.7;
}

.input-wrapper input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
}

.product-visual {
    margin: 60px 0 70px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.product-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

.product-selector {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 50px;
    position: relative;
}

.tabs {
    display: flex;
    background-color: transparent;
    padding: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 22px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0px;
}

/* Inactive tabs */
.tab:not(.active) {
    background-color: #0c0c0c;
    color: #999;
    border-bottom: 1px solid #404040;
}

.tab.active {
    color: #fff;
    background-color: #262626;
    border: 1px solid #404040;
    border-bottom: 1px solid #262626;
    border-radius: 12px 12px 0 0;
}

.tab-details {
    padding: 40px;
    background-color: #262626;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    border: 1px solid #404040;
    border-top: 1px solid #404040;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 5;
}



.detail-highlight {
    color: #f0f0f0;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 500;
}

.detail-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-label {
    font-size: 11px;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    margin-right: 15px;
    white-space: nowrap;
}

.section-line {
    height: 1px;
    background-color: #333;
    width: 100%;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-name {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.detail-price {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.details-link {
    margin-top: auto;
    text-align: center;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    display: block;
    width: 100%;
    padding-top: 20px;
    transition: color 0.2s;
}

.details-link:hover {
    color: #fff;
}

/* Right Column */
.right-column {
    padding-top: 20px;
}

.sticky-wrapper {
    position: sticky;
    top: 140px;
    max-width: 320px;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
}

.total-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c7be5;
    cursor: pointer;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    background-color: #fff;
    color: #000;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: background-color 0.2s;
}

.btn-checkout:hover {
    background-color: #e6e6e6;
}

.faq-list {
    border-top: 1px solid #333;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    padding: 22px 15px 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #fff;
}

.faq-question span {
    padding-right: 20px;
}

.faq-answer {
    padding-bottom: 22px;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.rotate {
    transform: rotate(90deg);
}

.faq-item:last-child {
    border-bottom: none;
}


/* Footer */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: #000;
    /* Ensure visibility over content if needed */
    z-index: 5;
    flex-wrap: wrap;
    font-size: 11px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-copyright {
    margin-left: auto;
    color: #666;
    display: flex;
    gap: 15px;
}

.footer-copyright a {
    color: #fff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .right-column {
        order: 2;
    }

    .left-column {
        order: 1;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }

    header,
    .container,
    .footer-nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Mobile Checkout Bar Fixed Bottom */
    .sticky-wrapper {
        position: static;
        max-width: none;
    }

    .mobile-checkout-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 20px;
        z-index: 100;
        border-top: 1px solid #333;
    }

    .price-summary {
        margin-bottom: 15px;
        /* Adjust spacing in fixed bar */
    }

    .btn-checkout {
        margin-bottom: 0;
    }

    /* Footer adjustments for mobile */
    .footer-nav {
        position: relative;
        /* Static position in flow */
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 180px;
        /* Space for the fixed checkout bar */
        gap: 15px;
        background-color: transparent;
    }

    .footer-copyright {
        margin-left: 0;
        width: 100%;
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Checkout Bar Mobile Logic */
    .checkout-container {
        background-color: #000;
        width: 100%;
        transition: transform 0.2s;
    }

    .checkout-container.fixed-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
        border-top: 1px solid #1a1a1a;
        padding: 20px;
        animation: slideUp 0.3s ease-out;
    }

    /* Animation for smooth appearance */
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .price-summary {
        margin-bottom: 20px;
    }

    .btn-checkout {
        margin-bottom: 0;
    }

    .footer-nav {
        padding-bottom: 50px;
        /* Standard padding */
    }
}

/* Accessories Section */
.accessories-link {
    font-size: 13px;
    color: #fff;
    text-decoration: underline;
    margin-bottom: 20px;
    display: block;
    font-weight: 500;
}

.accessories-card {
    background-color: #121212;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    padding: 30px;
    margin-bottom: 50px;
}

.accessories-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.accessories-title {
    font-size: 18px;
    font-weight: 700;
    margin-right: 15px;
    color: #fff;
}

.badge-optional {
    background-color: #333;
    color: #ccc;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 15px;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background-color: #333;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    /* Reduced gap slightly */
    margin-bottom: 30px;
}

.accessory-item {
    display: flex;
    flex-direction: column;
}

.accessory-visual {
    background-color: #1a1a1a;
    border-radius: 8px;
    position: relative;

    /* changed from 1/1 to match landscape look */
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accessory-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.accessory-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    border: 1px solid #666;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    appearance: none;
    -webkit-appearance: none;
}

.accessory-checkbox:checked {
    background-color: #fff;
    border-color: #fff;
}

.accessory-checkbox:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(-45deg);
    position: absolute;
    top: 4px;
    left: 4px;
}

.accessory-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.accessory-price {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.accessories-footer-link {
    display: block;
    text-align: center;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.accessories-footer-link:hover {
    color: #fff;
}

/* Specific overrides for grid control if needed */
@media (max-width: 768px) {
    .accessories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Order Summary Styling */
.order-summary {
    background-color: #000;
    padding: 20px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    /* On Desktop, this sits inside the card normally. On mobile, it needs to behave differently if inside the fixed bar. */
}

.summary-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-subtitle {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

.summary-row span:last-child {
    color: #fff;
    white-space: nowrap;
    margin-left: 20px;
    text-align: right;
}

.summary-note {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin-top: 15px;
    border-top: 1px solid #1a1a1a;
    padding-top: 15px;
}

/* Mobile specific for Summary inside fixed bar */
@media (max-width: 768px) {
    .order-summary {
        padding-left: 0;
        padding-right: 0;
        /* It is inside .checkout-container which has padding */
    }
}

.hidden {
    display: none !important;
}