* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.5;
    overflow: hidden;
}

/* Header */
.pannel-image-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 550px;
    color: white;
    background-color: #212121;
    padding: 30px;
    overflow-y: auto;
    max-height: 100vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    padding: 25px 25px 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 600;
}

.tab-button{
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer !important;
}

.tab-button span {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 15px;
}

.chevron-icon {
    font-size: 15px;
    transition: transform 0.2s;
}

/* Content Area */

/* Car Viewer */
.car-viewer {
    width: 100%;
    height: 100vh;
    position: relative;
}

.car-viewer iframe {
    width: 100%;
    height: 100vh;
}

/* Configurator */
.configurator {
    overflow: hidden;
}

/* Tab Content */
.tab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-content.active {
    max-height: 1000px;
    opacity: 1;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

/* New container for the panels to display side by side */
.panels-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Option Buttons */
.option-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.option-btn {
    padding: 10px 30px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.option-btn:hover {
    background-color: #e0e0e0;
}

.option-btn.active {
    background-color: #29506e;
    color: white;
    border-color: #29506e;
}

/* Roof Rack Preview */
.roof-rack-preview {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.roof-rack {
    background-color: #555;
    border-radius: 4px;
    transition: all 0.3s;
}

.roof-rack.half {
    width: 120px;
    height: 20px;
}

.roof-rack.full {
    width: 340px;
    height: 20px;
}

/* Accessories */
.accessories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 20px;
    margin-bottom: 20px;
}

.save-button {
    padding: 20px 20px;
    background-color: #29506e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.save-button:hover {
    background-color: #072c46;
}

.fullscreen-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #29506e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 13px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.fullscreen-button:hover {
    background-color: #072c46;
    scale: 1.05;
}

.fullscreen-button .fa-light {
    color: #fff;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Box */
.popup {
    background: #ffffff;
    padding: 40px;
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* Popup Content */
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2a44;
    margin: 0;
    line-height: 1.2;
}

.popup-content p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Form Elements */
.popup-content .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.popup-content .checkBox-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: block;
}

.popup-content input[type="text"],
.popup-content input[type="email"] {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.input-container {
    width: 100%;
}

.popup-content input:focus {
    outline: none;
    border-color: #29506e;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #29506e;
    border-radius: 4px;
    cursor: pointer;
}

/* Send Button */
.send-button {
    padding: 20px 20px;
    background-color: #29506e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.send-button:hover {
    background-color: #072c46;
}

.send-button:active {
    transform: translateY(0);
}

/* Close Button */
.close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #29506e;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1000px) {
    body {
        overflow-y: auto;
    }

    .main-content {
        display: flex;
        flex-direction: column-reverse;
    }

    .sidebar {
        width: 100%;
        height: 50vh;
    }

    .sidebar-header h2 {
        font-size: 16px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .car-viewer {
        position: fixed;
        top: 0;
        height: 50vh;
    }

    .car-viewer iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .popup {
        padding: 24px;
        max-width: 90%;
    }

    .popup-content h1 {
        font-size: 24px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .send-button {
        padding: 12px;
        font-size: 14px;
    }

    .panels-container {
        flex-direction: column;
        align-items: center;
    }
}

.pannel-image-container img {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.pannel-image-container img.dragging {
    cursor: grabbing;
}



.add-to-cart {
  position: fixed;
  bottom: 20px;     /* niche se gap */
  right: 20px;      /* right side se gap */
  z-index: 2000;    /* sabse upar dikhne ke liye */
  
  display: inline-block;  /* inline-block rakho */
  padding: 12px 20px;     /* andar ka space */
  min-width: 140px;       /* minimum width fix */
  text-align: center;     /* text center me */
  
  border-radius: 8px;
  background-color: #007bff; /* blue */
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.add-to-cart:hover {
  background-color: #0056b3; /* hover pe dark blue */
}

/* Tablet ke liye (<=1000px) */
@media (max-width: 1000px) {
  .add-to-cart {
    bottom: 428px;  
    right: 15px;
    padding: 14px 24px;
    font-size: 16px;
    min-width: 160px;
  }
}

/* Mobile ke liye (<=600px) */
@media (max-width: 600px) {
  .add-to-cart {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 421px;  
    max-width: 320px;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 10px;
  }
}



