/* Product Details Page Styles */

:root {
    --main-bg: #ffffff;
    --section-bg: #fff2f2;
    --highlight: #e8092e;
    /* Menzerna Red */
    --highlight-alt: #ff9966;
    --dim: #5c1717;
    --text-main: #292929;
    --text-muted: #aaa;
}

.page-content {
    padding: 40px 0;
}

/* Layout - Now handled by Bootstrap, but keeping specifics */
.left-column {
    overflow: hidden;
}

/* Product Title */
.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: rgb(80, 44, 44);
}

@media (max-width: 768px) {
    .product-title {
        font-size: 26px;
    }
}

.product-location {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 16px;
}

.product-location i {
    margin-right: 8px;
    color: var(--highlight);
}

/* Gallery */
.gallery-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-slideshow {
    position: relative;
    height: 400px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .main-slideshow {
        height: 300px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through if not active */
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    cursor: pointer;
}

.slide-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    pointer-events: none;
    /* Allow clicking on image */
}

.slide-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.slide-controls button:hover {
    background: var(--highlight);
    color: white;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

.thumbnail {
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--highlight);
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.fullscreen-slide {
    display: none;
    text-align: center;
    height: 100%;
}

.fullscreen-slide img {
    max-width: 90%;
    max-height: 80vh;
    margin: auto;
}

.fullscreen-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.fullscreen-modal .prev,
.fullscreen-modal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    padding: 16px;
    margin-top: -22px;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.fullscreen-modal .prev {
    left: 20px;
}

.fullscreen-modal .next {
    right: 20px;
}

/* Product Details & Description */
.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: rgb(80, 44, 44);
}

.product-description {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.product-description p {
    margin-bottom: 15px;
    color: #555;
}

/* Cut & Gloss Visualizer */
.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cut-gloss-section {
    text-align: center;
    margin: 20px 0;
}

.cut-gloss-label {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0 20px;
    background: linear-gradient(to right, var(--highlight), var(--highlight-alt));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gridd {
    display: grid;
    grid-template-columns: repeat(10, 32px);
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

@media (max-width: 900px) {
    .gridd {
        grid-template-columns: repeat(10, 28px);
        gap: 6px;
    }
}

.square {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 2px solid #a52a2a33;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

@media (max-width: 900px) {
    .square {
        width: 28px;
        height: 28px;
    }
}

.square:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(180, 21, 21, 0.5);
}

.filled {
    background: var(--highlight);
    border-color: var(--highlight);
}

.outline {
    border-color: var(--highlight);
    background: transparent;
}

.dim {
    background: var(--dim);
    border-color: var(--dim);
}

.dim-outline {
    border-color: var(--dim);
    background: transparent;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

/* Steps Visualization */
.steps-container {
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #eee;
}

.steps-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.steps-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 900px) {
    .steps-flow {
        flex-direction: column;
    }

    .plus-sign {
        transform: rotate(90deg);
    }
}

.step {
    text-align: center;
}

.step-circle {
    width: 70px;
    height: 70px;
    background: #6a2222;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.step.active .step-circle {
    background: var(--highlight);
}

.step.half-active .step-circle {
    background: linear-gradient(90deg, #e8092e 50%, #6a2222 50%);
}

.step-label {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.plus-sign {
    font-size: 2.2rem;
    color: var(--highlight);
}

/* Sidebar Order Box */
.order-box {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    /* Adjust based on header height */
    z-index: 10;
}

.order-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.order-box ul li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-box ul li:last-child {
    border-bottom: none;
}

.order-box ul li span:first-child {
    font-weight: 500;
    color: rgb(80, 44, 44);
}

.order-box ul li span:last-child {
    color: #7f8c8d;
    text-align: right;
}

.product-price {
    font-size: 1.25rem;
}

.stock-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.in-stock {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.out-of-stock {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.btn-get-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: var(--highlight);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-decoration: none;
}

.btn-get-quote:hover {
    background: rgb(185, 41, 41);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 9, 46, 0.4);
}

/* Downloads Section */
.download-list {
    margin-top: 20px;
}

.download-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e52d2d;
    margin-right: 15px;
}

.file-badge {
    font-size: 12px;
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    color: #666;
    margin-left: 10px;
}

.download-btn {
    background: linear-gradient(to right, #1a2a6c, #e8092e);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.download-btn:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(232, 9, 46, 0.3);
}

/* Modal Form */
.popup-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-form-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.popup-form-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control,
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.reqfil {
    color: red;
}

.btn-submit {
    background: var(--highlight);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #d60829;
}

/* Portfolio Card Clamp */
.clamp-titlee2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
}