.preview-wrapper {
    /* width: 600px; */
    margin-bottom: 15px;
    position: relative;
}

.floor {
    width: 600px;
    height: 850px;
    background-size: cover;
    background-position: center 640px ;
    position: relative;
}
.cm-floor-bg .floor {
    background-position: center center !important;
}

body .floor-tile-layer {
    z-index: 1;
    transform: perspective(686px) rotateX(58deg);
    opacity: 1;
    transform-origin: center;
    background-repeat: no-repeat !important;
    background-size: 100% !important;
    width: 75%;
    height: 85%;
    top: 53.7%;
    left: 18%;
}


.color {
    width: 28px;
    height: 28px;
    display: inline-block;
    margin: 4px;
    border: 1px solid #000;
    cursor: pointer;
}






/* ================================
   MAIN GRID
================================ */
.configurator-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:30px;
    align-items:start;
}

/* ================================
   LEFT SIDE
================================ */
.config-left .preview-wrapper{
    width:100%;
}

.floor{
    width:100%;
    background-size:cover;
    background-position:center 640px;
    position:relative;
    border-radius:10px;
    overflow:hidden;
}

.floor-tile-layer{
    position:absolute;
    inset:0;
}

/* ================================
   RIGHT SIDE
================================ */
.config-right{
    /* background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,0.08); */
}

/* tabs */
.tabs{
    margin-bottom:15px;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
	gap: 5px;
}

.tab{
    /* display:inline-block;
    padding:6px 12px;
    margin:4px;
    background:#eee;
    cursor:pointer;
    font-size:14px;
	*/
    padding: 6px 12px;
    background: #eee;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
	text-align: center;
}

.tab.active{
    background:#000;
    color:#fff;
}

/* palette */
.palette{
    display:flex;
    flex-wrap:wrap;
    gap:2px;
	border: 3px solid #e1e1e1;
}

.color{
    width:18px;
    height:18px;
    /* border-radius:100%; */
    cursor:pointer;
    border:2px solid #ddd;
}

/* ================================
   MOBILE RESPONSIVE
================================ */
@media(max-width:768px){
    .configurator-grid{
        grid-template-columns:1fr;
    }
}


.tile-area-calculator {
    max-width: 700px;
    font-family: Arial, sans-serif;
}

.calculator-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.calculator-col {
    flex: 1;
}

.calculator-col label,
.price-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    width: 180px;
}

.qty-box button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f3f3;
    font-size: 18px;
    cursor: pointer;
}

.qty-box button:hover {
    background: #e5e5e5;
}

.qty-input {
    width: 100%;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.qty-input:focus {
    outline: none;
}

.price-section {
    margin-top: 10px;
}

.price-input {
    width: 200px;
    height: 40px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 16px;
}




button.button.alt.tile-custom-add-to-cart {
    width: 100%;
    background: #4f4f4c;
    font-size: 18px;
}


.acf-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.logo-item img {
    width: 100%;
    height: auto;
    transition: 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.05);
}
/*new css */
/* Wrapper */
.floor-preview-wrapper {
    margin-top: 20px;
}

/* Box with border */
.floor-preview-box {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border: 3px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Floor background */
.floor-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom;
}

/* Tile overlay */
.floor-tile-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.floor-tile-layer {
    position: absolute;
    inset: 0;
    z-index:-1;
    width: 100%;
    height: 100%;
    transform: rotateX(45deg);
    transform-origin: center;
    opacity: 1;
}
.cm-floor-bg {
    overflow: hidden;
    position: relative;
}

.cm-floor-bg .floor {
    background-position: top center;
 
}


@media(max-width:768px){
body .floor-tile-layer {
    transform: perspective(417px) rotateX(67deg);
    width: 70%;
    height: 83%;
    top: 49.7%;
    left: 20%;
}
body .floor {
    height: 360px;
}
}

@media (min-width: 769px) and (max-width:989px){
body .floor-tile-layer {
    transform: perspective(504px) rotateX(67deg);
    width: 70%;
    height: 83%;
    top: 48.4%;
    left: 21%;
}
body .floor {
    height: 450px;
}
}


@media (min-width: 1400px) and (max-width: 1550px) {
body .floor-tile-layer {
	top: 52%;
	transform: perspective(626px) rotateX(58deg);
}
body .floor {
    height: 800px;
}
}

@media (min-width: 1300px) and (max-width: 1400px) {
body .floor-tile-layer {
	top: 50%;
	transform: perspective(626px) rotateX(58deg);
}
}

@media (min-width: 1200px) and (max-width: 1300px) {
body .floor-tile-layer {
	top: 49%;
	transform: perspective(626px) rotateX(58deg);
}
}

@media (min-width: 990px) and (max-width: 1200px) {
body .floor-tile-layer {
	width: 75%;
	height: 56%;
	top: 55%;
	left: 18%;
	transform: perspective(566px) rotateX(58deg);
}
body .floor {
    height: 755px;
}
}
