* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff;
    padding: 0;
    margin: 0;
}

/* Hide mobile version on larger screens */
.mobile-version {
    display: none;
}

/* Hide PC version on smaller screens */
.pc-version {
    display: inline;
}


.main-container {
    background-color: white;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;

}

.container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.left-column {
    width: 120px;
    padding-right: 10px;
    border-right: none;

}

.center-column {
    width: 380px;
    position: relative;
}

.right-column {
    width: calc(100% - 500px);
    padding-left: 20px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 10px;

}

.thumbnail img {
    border: 1px solid #E40475;
}

.thumbnail {
    width: 100px;
    height: 133px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-container {
    position: relative;
    width: 100%;

}

.main-image {
    width: 100%;
    display: block;
    height: 500px;
}

.image-pagination {
    position: absolute;
    bottom: 4%;
    left: 33%;
    display: flex;
    gap: 8px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.pagination-dot.active {
    background-color: #2196f3;
}

.product-info {
    padding: 0;
}

.product-title {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;

}

.size-selection1 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Close button */
.close-modal-btn1 {
    color: #777;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close-modal-btn1:hover {
    color: #333;
}

.available-size {
    margin-right: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #494343;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;
}

.size-option1s {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.size-option1 {

    height: 25px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #054362;
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin-right: 2px;
    padding: 0 5px;
}

.colorname {
    display: block;
}

.color-label {
    font-size: 16px;
    margin-right: 8px;
    font-weight: bold;
    color: #494343;
    padding: 10px 0;
    border-radius: 1.5px;
    margin-left: 10px;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;
}

.size-option1.selected {
    background-color: #054362;
    border-color: #054362;
    /* box-shadow: 0 0 0 3px rgba(5, 67, 98, 0.3); */
    outline: 2px solid #054362;
    outline-offset: 3px;
}

/* Responsive adjustments */
/* @media (max-width: 768px) { */
.available-size {
    font-size: 15px;
}

.colorname {
    display: none;
}


.color-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-right: 15px;
    text-transform: uppercase;
    margin-left: 0px;
}

.color-option1s {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid rgb(255, 221, 221);
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option1:hover .color-circle {
    transform: scale(1.05);
}

.color-option1.selected .color-circle {
    /* border: 3px solid #333; */
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--selected-color);
    outline: none;
}

/* Special handling for very light colors */
.color-circle[style*="#fff"],
.color-circle[style*="#ffffff"],
.color-circle[style*="white"],
.color-circle[style*="#f"] {
    border: 2px solid #ddd;
}

.color-option1.selected .color-circle[style*="#fff"],
.color-option1.selected .color-circle[style*="#ffffff"],
.color-option1.selected .color-circle[style*="white"],
.color-option1.selected .color-circle[style*="#f"] {
    border: 3px solid #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #333;
}



.color-option1.selected .colorname {
    color: #333;
    font-weight: 600;
}

.size-option1s {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option1 {

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #054362;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #054362;
    /* transition: all 0.3s ease; */
    text-transform: uppercase;
}

/* .size-option1:hover {
    background-color: transparent;
    color: #054362;
    border-color: #054362;
} */

.size-option1.selected {
    background-color: #054362;
    border-color: #054362;
    /* box-shadow: 0 0 0 3px rgba(5, 67, 98, 0.3); */
    outline: 2px solid #054362;
    outline-offset: 3px;
}

.size-option1 {
    width: 33px;
    height: 33px;
    font-size: 14px;
}

.mobile-version {
    display: inline;
}

.pc-version {
    display: none;
}

/* } */

.color-selection1 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    background-color: #F8F5F5;
}

/* @media (max-width: 768px) { */
/* Color Selection Styles */
.color-selection1 {
    margin: 15px 0;
    background-color: transparent;
    /* Removes background color on phone version */
}

/* } */

.color-option1s {
    display: inline-flex;
    align-items: center;
}

.color-option1 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-right: 10px;
}

.color-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* Size buttons */
.size-option {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    min-width: 45px;
}

.size-option:hover {
    border-color: #bbb;
    background-color: #f7f7f7;
}

.selected-size {
    border: 2px solid #3498db;
    background-color: #ebf5fb !important;
    color: #3498db !important;
}

/* Color options */
.color-option {
    display: inline-block;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 5px !important;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.color-option:hover {
    transform: scale(1.1);
}

.selected-color {
    box-shadow: 0 0 0 2px #3498db;
    transform: scale(1.1);
}

.price-section {
    margin-bottom: 15px;
}

.price-label {
    font-size: 16px;
    font-weight: lighter;
    margin-right: 8px;
    display: inline-block;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;
}

.original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #f44336;
    display: inline-block;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;
}

.discount {
    font-size: 14px;
    color: #333;
    float: right;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.order-now-btn {
    background: linear-gradient(to right, #e91e63, #3f51b5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    width: 100%;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 2px;
    border-radius: 5px;
}

.secondary-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.add-cart-btn {
    background-color: #005a87;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    flex: 1;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 0.3px;
    border-radius: 5px;
}


.download-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    flex: 1;
    font-family: 'Font Awesome 6 Free', sans-serif;
    letter-spacing: 0.3px;
    border-radius: 5px;
}

.video-container {
    background-color: #ffffff;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #E40475;
    /* Red border */
}

.video-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    font-family: 'Font Awesome 6 Free', sans-serif;
    font-weight: bold;
}

.description-section {
    margin-top: 23px;
    background-color: #ffffff;
    color: #054362;
    padding: 15px;
    width: 448%;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.description-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    text-align: center;

    font-family: 'Gabarito', sans-serif;
    letter-spacing: 2px
}

.description-content {
    font-size: 14px;
    line-height: 1.8;
    font-family: 'Gabarito', sans-serif;
    padding-left: 15px;

}

.info-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    z-index: 2;
    /* Ensure it's above other elements */
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 3px;
}



.related-products {
    margin-top: 20px;
}

.related-title {
    text-align: center;
    color: #ff1493;
    font-size: 18px;
    margin-bottom: 15px;

    font-family: 'Gabarito', sans-serif;
    letter-spacing: 1px;

}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* border: 2px solid #9C9C9C; Added border with color #9C9C9C */
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: #ff0000;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 14px;
    margin-bottom: 5px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    /* SemiBold */
    text-align: center;
}

.product-material {
    font-size: 12px;
    margin-bottom: 5px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    /* SemiBold */
    text-align: center;
}

.product-prices {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    display: block;
    text-align: center;
    font-family: 'Gabarito', sans-serif;
    font-weight: 300;
    /* SemiBold */
}

.product-buttons {
    display: flex;
    gap: 5px;
}

.btn-view {
    background-color: #5E00FF;
}

.btn-buy {
    background-color: #E40475;
}

.sale-tag {
    background-color: red;
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    position: absolute;
    top: 5px;
    left: 5px;
}


/* Navigation */
nav {
    background-color: #5000a0;
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}





/* Show the form */
.form-container {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: all 0.2s ease;

}

.form-container.show {
    opacity: 1;
    pointer-events: all;
    max-height: 51vh;
    /* 👈 This is your intended visible height */
    overflow-y: auto;
    /* padding: 30px; */
    margin-top: 20px;
}

/* Modal background */
.cart-modal1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

/* Modal content */
.cart-modal1-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 0.4s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {


    /* Transition group */

    .video-container,
    .description-section,
    .mobile-description,
    .related-products,
    .action-buttons,
    .form-container {
        transition: all 0.12s ease;
    }

    /* Fade others out */
    .fade-out {
        opacity: 0;
        pointer-events: none;
        height: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    .cart-modal1-content {
        width: 95%;
        padding: 20px;
    }

    .main-image {

        height: 316px;
        transition: height 0.12s ease;
    }

    .main-image.expand-height {
        height: 357px;
    }

    nav {
        display: none;
    }

    .product-title {
        text-align: center;
        font-size: 20px;
    }

    .container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .left-column {
        width: 25%;
        padding-right: 10px;
        border: none;
        transition: all 0.12s ease;
    }

    .left-column.slide-out {
        transform: translateX(-100%);
        opacity: 0;
        width: 0;
        padding: 0;
        pointer-events: none;
    }

    .center-column {
        width: 75%;
        border: none;
        transition: all 0.12s ease;
    }

    .center-column.full-width {
        width: 100%;
    }

    .right-column {
        width: 100%;
        padding-left: 0;
        margin-top: 20px;
    }

    .thumbnails {
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0;
        gap: 9px;
    }

    .thumbnail {
        width: 98%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .description-section {
        margin-top: 20px;
        width: 100%;
    }

    .mobile-description {
        display: block;
    }

    .desktop-description {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 11px;
    }

    .product-card {
        background-color: white;
        border-radius: 5px;
        padding: 5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }



    .product-card-title {
        font-size: 12px;
        /* Slightly larger font size */
        color: #666;
        margin: 5px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-card-price {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        font-size: 12px;
        /* Adjusted for mobile */
    }

    .product-card-price .discount {
        font-size: 12px;
    }

    .product-card-actions {
        display: flex;
        gap: 5px;
    }

    .product-card-btn {
        padding: 5px;
        border: none;
        font-size: 12px;
        /* Adjusted for mobile */
        flex: 1;
        color: white;
        text-transform: uppercase;
    }

    .btn-view {
        background-color: #6200ea;
    }

    .btn-buy {
        background-color: #ff1493;
    }

    .sale-tag {
        background-color: red;
        color: white;
        padding: 2px 5px;
        font-size: 10px;
        position: absolute;
        top: 5px;
        left: 5px;
    }
}

@media (min-width: 769px) {
    .main-image {

        height: 420px;
    }

    .mobile-description {
        display: none;
    }


    .desktop-description {
        display: block;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .left-column {
        width: 30%;
    }

    .main-container {
        padding: 13px;
    }

    .center-column {
        width: 70%;
    }
}



.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Max width for the container */
    height: 315px;
    /* Fixed height for the container */
    margin: 0 auto;
    background-color: #000;
    /* Black background for the container */
    border-radius: 8px;
    /* Optional rounded corners */
    overflow: hidden;
    /* Prevent overflowing content */
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    height: 50px;
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    /* This is for the 16:9 aspect ratio (315px / 560px = 56.25%) */
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.copy-link-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-link-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.copy-link-btn span {
    font-size: 14px;
}

.no-link-style {
    text-decoration: none;
    /* Removes underline */
    color: inherit;
    /* Inherits the color of the parent element */
}

/* Style for selected size option */
.size-option1.selected {
    /* border: 2px solid #ff6600; 
    background-color: rgba(255, 102, 0, 0.882);  */
    cursor: pointer;
}

/* Style for selected color option */
.color-option1.selected {
    border: 2px solid #ff6600;
    background-color: rgba(255, 102, 0, 0.1);
    cursor: pointer;
}


.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 11px;
}

.quantity button {
    background-color: #dcd6d6;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.7rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity button:hover {
    background-color: #f0f0f0;
}

.quantity input[type="number"] {
    width: 60px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1rem;
    background-color: transparent;
    appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* .thumbnail-image.active {
    border: 2px solid #3498db;
    opacity: 0.8;
} */
.thumbnail-image.active {
    border: 2px solid #3498db;
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.2s ease;
}

.description_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}


/* Modal Overlay */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.order-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.order-modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 0;
    margin: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header Section */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
    position: relative;
    text-align: center;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

/* Product Image */
#modalProductImage {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

/* Product Name */
#modalProductName {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Price */
.price-display {
    font-size: 20px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Form Container */
/* .form-container {
            padding: 30px;
            max-height: 51vh;
            overflow-y: auto;
        } */

.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}


/* Product Details Container - NEW LAYOUT */
/* Product details */
#product-details {
    margin-bottom: 25px;
    text-align: center;
}

#product-details h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

#product-details img {
    max-width: 100%;
    width: 40%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#product-details p {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Selection sections */
#size-selection,
#color-selection {
    margin-bottom: 20px;
}

#size-selection h4,
#color-selection h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
}

/* Add to Cart button */
#add-to-cart-btn1 {
    background-color: #2ecc71;
    color: white;
    padding: 14px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#add-to-cart-btn1:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* Form Styling */
#orderForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 10px;
}

/* Input Fields */
input,
textarea,
select {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 150px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Select Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

/* FIXED: Desktop Modal Structure */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

/* FIXED: Smaller Header for Desktop */
.modal-header {
    padding: 15px 25px;
    /* Reduced from larger default */
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

/* FIXED: Scrollable Form Container */
.form-container {
    flex: 1;
    overflow-y: auto;
    /* padding: 20px 25px; */

}

/* FIXED: Sticky Submit Button Container */
.submit-container {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
    flex-shrink: 0;
    /* Keep button always visible */
}

/* Unique Confirm Order Button */
.confirm-order-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.confirm-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.confirm-order-btn:active {
    transform: translateY(-1px);
}

.confirm-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.confirm-order-btn:hover::before {
    left: 100%;
}

/* FIXED: Desktop Specific Styles */
@media (min-width: 769px) {
    .modal-header {
        padding: 8px 25px;
        /* Very small header for desktop */
        min-height: auto;
    }

    #modalProductName {
        font-size: 18px;
        /* Much smaller title */
        margin: 0;
        line-height: 1.2;
    }

    .price-display {
        font-size: 14px;
        /* Much smaller price */
        margin: 2px 0 0 0;
    }

    .product-details {
        gap: 8px;
        /* Reduce spacing between elements */
        align-items: center;
    }

    /* .form-container {
        padding: 20px 30px;
       
    } */

    .submit-container {
        padding: 12px 30px;
        /* Smaller button area */
    }

    button[type="submit"] {
        padding: 12px 30px;
        /* Smaller button */
        font-size: 15px;
    }

    /* Make modal wider on desktop to show more form */
    .modal-content {
        width: 90%;
        max-width: 500px;
        max-height: 85vh;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        border-radius: 15px;
        max-height: 95vh;
    }

    .product-details {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .modal-header {
        padding: 20px 25px;
    }

    /* .form-container {
       
        padding: 25px 20px;
    } */

    .submit-container {
        padding: 20px 20px;
    }

    #modalProductName {
        font-size: 20px;
    }

    .price-display {
        font-size: 18px;
    }

    input,
    textarea,
    select {
        padding: 14px 16px;
        font-size: 15px;
    }

    button[type="submit"] {
        padding: 16px 25px;
        font-size: 16px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Demo Button */
.demo-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.readonly-blocked {
    pointer-events: none;
    /* Disable mouse interaction */
    cursor: default;
    /* Change cursor to default */
    background-color: #f9f9f9;
    /* Optional: light background to indicate disabled */
    color: #555;
    /* Optional: dim the text slightly */
    border: 1px solid #ccc;
    /* Optional: standard border */
}


/* Payment Summary Styles */
.payment-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #e9ecff 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.payment-summary.show {
    display: block;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #667eea;
}

.summary-label {
    font-weight: 500;
    color: #555;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

.summary-total .summary-label,
.summary-total .summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.payment-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.payment-toggle label {
    position: relative;
    padding: 12px 24px;
    border-radius: 12px;
    background-color: #f0f4f8;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.payment-toggle label:hover {
    background-color: #e2ecf3;
}

.payment-toggle input[type="radio"] {
    display: none;
}

.payment-toggle input[type="radio"]:checked+label {
    background-color: #4f46e5;
    color: white;
    border-color: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.payment-radio:checked+label {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.loading.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



@media (max-width: 480px) {
    .cart-modal1-content {
        padding: 15px;
        width: 100%;
        max-height: 90%;
        overflow-y: auto;
    }

    .close-modal-btn1 {
        top: 10px;
        right: 15px;
    }

    .size-option1 {
        padding: 6px 12px;
        min-width: 40px;
    }

    #product-details img {
        max-height: 200px;
        object-fit: contain;
    }
}

.see-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 22px;
    background: linear-gradient(90deg, #6e00ff 0%, #82abc8 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.15);
    transition: background 0.2s, box-shadow 0.2s;
}

.see-more-btn:hover,
.see-more-btn:focus {
    background: linear-gradient(90deg, #82abc8 0%, #6e00ff 100%);
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.25);
    outline: none;
}