/* Main Content Layout */
.main-content {
    padding: 20px 40px;
}

.left-section {
    padding-right: 10px;
}

.right-section {
    padding-left: 65px;
    display: flex;
    align-items: flex-start;
}

/* Back Button */
.back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-arrow:hover {
    background-color: #e9ecef;
    color: #000;
}

/* Product Image */
.product-image-container {
    max-width: 500px;
    margin: 0 auto;
}

.product-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Product Info */
.product-info {
    width: 100%;
    max-width: 450px;
}

.product-name {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-category {
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

.product-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 50px;
}

/* Size Section */
.size-section {
    margin-top: 40px;
}

.size-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

/* Size Buttons */
.size-button {
    padding: 12px 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.size-button:hover:not(.disabled) {
    transform: translateY(-1px);
    border-color: #333;
    background-color: #f9f9f9;
}

.size-button.selected, .size-button.selected:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

.size-button.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    border-color: #e5e5e5;
    cursor: not-allowed;
    pointer-events: none;
}

.size-button.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background-color: #ccc;
    transform: rotate(-45deg);
}

/* Add to Cart Button */
.add-to-cart-button {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-button:hover:not(:disabled) {
    background-color: #333;
}

.add-to-cart-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}