/* ========================== */
/* Main Container */
/* ========================== */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
}

@media (min-width: 1024px) {
    .main-container {
        flex-direction: row;
    }
}

/* ========================== */
/* Product Image Section */
/* ========================== */
.product-image-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .product-image-section {
        width: 50%;
    }
}

.main-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

.main-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
}

.thumbnails-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumbnail.active {
    border-color: #ff7a00;
    background-color: #f3f4f6;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons for Thumbnails */
.thumbnail-nav {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    color: #6b7280;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.thumbnail-nav:hover {
    background-color: #f3f4f6;
}

/* ========================== */
/* Product Details Section */
/* ========================== */
.product-details-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .product-details-section {
        width: 50%;
    }
}

.category-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
}

.reviews-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b;
}

.reviews-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
}

.old-price {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-text {
    font-size: 1.25rem;
    color: #ef4444;
    font-weight: bold;
}

hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ========================== */
/* Size Options */
/* ========================== */
.size-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-button {
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.size-button:hover,
.size-button:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.3);
}

/* ========================== */
/* Quantity Selector */
/* ========================== */
.quantity-container {
    display: inline-block;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 160px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quantity-button {
    flex: 1;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    color: #374151;
    background-color: #f9fafb;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-button:first-child {
    border-right: 1px solid #d1d5db;
}

.quantity-button:last-child {
    border-left: 1px solid #d1d5db;
}

.quantity-button:hover {
    background-color: #e5e7eb;
}

.quantity-button:active {
    background-color: #d1d5db;
}

.quantity-display {
    flex: 2;
    border: none;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    min-width: 3rem;
    padding: 0.5rem 0;
}

/* ========================== */
/* Action Buttons */
/* ========================== */
.actions-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.add-to-cart-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background-color: #ff7a00;
    color: #ffffff;
    border-radius: 0.5rem;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.add-to-cart-button:hover {
    background-color: #ff9500;
}

.wishlist-button,
.share-button {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wishlist-button:hover,
.share-button:hover {
    background-color: #f3f4f6;
}

/* ========================== */
/* Product Info Section */
/* ========================== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .info-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-label {
    font-weight: 600;
}

.info-value.in-stock {
    color: #16a34a;
}

/* ========================== */
/* Product Tabs */
/* ========================== */
.product-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background-color: #ffffff;
}

.product-tab-button {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.product-tab-button.active {
    border-bottom-color: #ff7a00;
    color: #ff7a00;
}

.product-tab-button:hover {
    color: #ff9500;
}

.product-tab-content {
    /* padding: 1rem 0; */
    font-size: 0.875rem;
    color: #4b5563;
    background-color: #ffffff;
    padding: 1rem;
}

/* Reviews inside tab */
.product-tab-content .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-tab-content .review-item {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
}

.product-tab-content .review-item strong {
    color: #111827;
}

.product-tab-content .review-item span {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
}
