.wl.product-page {
    padding: 40px 20px;
}

@media (min-width: 992px) {
    .wl.product-page {
        padding: 60px 40px;
    }
}

.product-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .product-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
}

/* ==================== PRODUCT GALLERY ==================== */
.product-gallery {
    flex: 1;
    position: sticky;
    top: 20px;
}

.main-image-container {
    position: relative;
    background-color: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-float-1);
    margin-bottom: 1rem;
}

.main-product-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .main-product-image {
        min-height: 500px;
    }
}

.gift-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--positive);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 12px rgba(137, 187, 148, 0.3);
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background-color: var(--white);
    cursor: pointer;
    transition: all var(--td-fast);
    overflow: hidden;
    padding: 0;
}

.thumbnail:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(49, 145, 219, 0.2);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 145, 219, 0.1);
}

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

/* ==================== PRODUCT DETAILS ==================== */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .product-title {
        font-size: var(--font-size-lg);
    }
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    color: var(--border);
    transition: color var(--td-fast);
}

.star.filled {
    color: #fbbf24;
}

.review-count {
    font-size: var(--font-size-sm);
    color: var(--secondary-text);
}

.bestseller-badge {
    padding: 4px 12px;
    background-color: rgba(49, 145, 219, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* ==================== PRICING ==================== */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    direction: ltr;
}

.current-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text);
}

.old-price {
    font-size: var(--font-size-lg);
    color: var(--secondary-text);
    text-decoration: line-through;
}

.price-tax-note {
    color: #9aa0a6;
    font-size: var(--font-size-base);
    unicode-bidi: isolate;
}

.flexible-amounts {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amount-label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amount-option {
    padding: 12px 24px;
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    cursor: pointer;
    transition: all var(--td-fast);
}

.amount-option:hover {
    border-color: var(--primary);
    background-color: rgba(49, 145, 219, 0.05);
}

.amount-option.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.custom-amount-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-amount-input label {
    font-size: var(--font-size-sm);
    color: var(--secondary-text);
}

.custom-amount-input .form-control {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: var(--font-size-base);
    color: var(--text);
    background-color: var(--white);
    transition: border-color var(--td-fast);
}

.saudi-riyal-select,
.saudi-riyal-select option {
    font-family: "Saudi Riyal", "saudi_riyal", "saudi-riyal", sans-serif;
}

.custom-amount-input .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 145, 219, 0.1);
}

.product-description {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--secondary-text);
    margin: 0;
}

.product-section-name {
    margin: 12px 0;
}

/* ==================== ACTION BUTTONS ==================== */
.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 180px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--td-fast);
    border: none;
}

@media (max-width: 576px) {
    .product-actions .btn {
        width: 100%;
        min-width: unset;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(49, 145, 219, 0.3);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(49, 145, 219, 0.05);
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== PRODUCT FEATURES ==================== */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-base);
    color: var(--text);
}

.product-features li svg {
    flex-shrink: 0;
}


/* ==================== PRODUCT INFO SECTION (TABS) ==================== */
.product-info-section {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-float-1);
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--border);
    background-color: var(--bg-light);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    color: var(--secondary-text);
    cursor: pointer;
    transition: all var(--td-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: rgba(49, 145, 219, 0.05);
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--white);
}

.tab-content-container {
    padding: 2rem;
}

@media (max-width: 768px) {
    .tab-content-container {
        padding: 1.5rem;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-text p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--td-fast);
}

.feature-card:hover {
    box-shadow: var(--shadow-default);
    transform: translateY(-2px);
}

.feature-card svg {
    flex-shrink: 0;
}

.feature-card h3 {
    margin: 0 0 8px 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.feature-card p {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--secondary-text);
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid var(--border);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table th,
.specifications-table td {
    padding: 16px;
    text-align: left;
}

.specifications-table th {
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    width: 40%;
    background-color: var(--bg-light);
}

.specifications-table td {
    color: var(--secondary-text);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 991px) {
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: var(--font-size-lg);
    }

    .current-price {
        font-size: var(--font-size-lg);
    }

    .amount-option {
        flex: 1;
        min-width: calc(50% - 6px);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 12px;
        font-size: var(--font-size-sm);
    }
}

/* ==================== QUANTITY SELECTOR ==================== */
.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-selector label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 44px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--td-fast);
}

.quantity-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.quantity-btn:active {
    background-color: var(--border);
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    background-color: var(--white);
}

.quantity-input:focus {
    outline: none;
    background-color: var(--bg-light);
}

/* Remove spinner arrows from number input */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}
