/* --- PRODUCT LAYOUT --- */
.product-page {
    width: 100%;
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product {
    width: 90%;
    max-width: 1100px;
    display: flex;
    /* image/details touch each other */
}

/* --- IMAGE SLIDER --- */
.product-gallery {
    flex-basis: 47%;
    position: relative;
    overflow: hidden;
    background: #241e20;
}

.image-slider {
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.slides img {
    width: 100%;
    height: auto;          /* maintain aspect ratio */
    display: block;
    object-fit: contain;    /* ensure no cropping */
    user-select: none;
    flex-shrink: 0;         /* prevent shrinking in flex container */
    user-select: none;
}

/* DOTS */
.controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.dot.active {
    background: #e30613;
    transform: scale(1.2);
}

/* --- DETAILS --- */
.details {
    flex-basis: 53%;
    background: #f8c7de;
    padding: 30px 10px 30px 30px;
    box-sizing: border-box;
    /* position: relative; */
    text-align: left;
}

.details .product-title b {
    font-family: 'Neue Haas Display Bold';
    font-size: 30px;
    margin: 0 0 10px 0;
}

.details h2 {
    font-size: 26px;
    margin: 0 0 15px 0;
}

.details p {
    margin-bottom: 20px;
}

/* --- SELECTOR ROWS --- */
.selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.selector-row p {
    min-width: 70px;
    margin: 0;
}

/* --- SIZE / COLOR BUTTONS --- */
.size-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.size-btn,
.color-btn {
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s;
    user-select: none;
    color: #e30613;
}

.size-btn.active,
.color-btn.active {
    background: #e30613;
    color: white;
    border-color: #e30613;
}

.size-btn:hover:not(.active),
.color-btn:hover:not(.active) {
    border-color: #e30613;
}

/* --- QUANTITY INPUT --- */
.selector-row input[type=number] {
    width: 60px;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #eee;
    color: #e30613;
}

/* --- CHECKOUT BUTTON --- */
button[type="submit"] {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #e30613;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    cursor: pointer;
}

/* --- CUSTOMER INFO --- */
.customer-info {
    margin-top: 25px;
}

.customer-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 4px;
}

.input-group input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid white;
    background: white;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #e30613;
    background: #fff;
}

/* Row for street + postcode */
.input-row {
    display: flex;
    gap: 10px;
}

.input-group.small {
    max-width: 120px;
}

.checkout-step {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.checkout-step.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

/* Mobile */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
    }

    .input-group.small {
        max-width: 100%;
    }
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .product {
        flex-direction: column;
    }

    .slides img {
        height: auto;
    }
}