/* ===== PRODUCT PAGE STYLES ===== */

/* Product Detail Layout */
.product-detail {
    padding: 3rem 0;
    background: #fff;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.thumbnail-images .thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
}

.thumbnail-images .thumb:hover,
.thumbnail-images .thumb.active {
    border-color: #E11D48;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

/* Product Info */
.product-info {
    padding: 1rem 0;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stars {
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.rating-text {
    color: #6B7280;
    font-size: 0.95rem;
}

.product-price-box {
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #E11D48;
}

.unit {
    font-size: 1.1rem;
    color: #6B7280;
}

.product-short-desc {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #4B5563;
    font-size: 1.05rem;
}

.product-highlights {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #E11D48;
}

.product-highlights h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2937;
}

.product-highlights ul {
    list-style: none;
    padding: 0;
}

.product-highlights li {
    padding: 0.5rem 0;
    color: #4B5563;
    font-size: 0.95rem;
}

/* Product Order Box */
.product-order-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    min-width: 140px;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: #F9FAFB;
    color: #E11D48;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #E11D48;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex: 1;
    min-width: 180px;
    padding: 0.95rem 2rem;
    background: white;
    border: 2px solid #E11D48;
    color: #E11D48;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #E11D48;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

.btn-buy-now {
    flex: 1;
    min-width: 180px;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

/* Product Meta */
.product-meta {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 12px;
}

.product-meta p {
    margin: 0.75rem 0;
    color: #4B5563;
    font-size: 0.95rem;
}

.product-meta a {
    color: #E11D48;
    text-decoration: none;
    font-weight: 500;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Cart Icon in Navbar */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    color: #1F2937;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E11D48;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Success Message */
.add-to-cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: relative;
        top: 0;
    }

    .product-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-order-box {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
    }

    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
        min-width: auto;
    }

    .product-name {
        font-size: 1.75rem;
    }

    .current-price {
        font-size: 2rem;
    }
}