/**
 * Single Product Page Styles
 * Modern professional design with enhanced UX/UI
 */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&display=swap');

/* ===== ANIMATIONS & KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

/* Scroll reveal base class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease-out;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #dc2626;
}

.breadcrumb .active {
    color: #1f2937;
    font-weight: 600;
}

/* Main Product Section */
.single-product-section {
    margin: 0.5rem 0 2rem 0;
    padding: 0.5rem 0 2rem 0;
    
    border-radius: 12px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 50vh;
    padding: 0.5rem 0 2rem 0;
}

/* Product Gallery */
.product-gallery {
    position: relative;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.product-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Image Availability Badge */
.image-availability-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.6s ease-out 0.5s both;
}

.availability-badge.in-stock {
    background: #10b981;
    color: white;
}

.availability-badge.out-of-stock {
    background: #ef4444;
    color: white;
}

.availability-badge.popular {
    background: #f97316;
    color: white;
}

.availability-badge i {
    font-size: 1rem;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
}

.product-main-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    margin: 0 auto;
    cursor: pointer;
    animation: scaleIn 0.8s ease-out 0.4s both;
}

/* Professional Action Icons */
.product-action-icons {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: scaleIn 0.6s ease-out backwards;
}

.action-icon:nth-child(1) { animation-delay: 0.6s; }
.action-icon:nth-child(2) { animation-delay: 0.7s; }

.action-icon:hover {
    background: rgba(220, 38, 38, 0.95);
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.action-icon:hover i {
    color: white;
}

.action-icon i {
    font-size: 1.25rem;
    color: #dc2626;
    transition: color 0.3s ease;
}

.wishlist-icon.active i {
    color: #dc2626;
}

.wishlist-icon.active i:before {
    content: "\f004" !important;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    border-left: 4px solid #dc2626;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left-color: #10b981;
}

.notification-info {
    border-left-color: #3b82f6;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.25rem;
    color: #10b981;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-content span {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-image-wrapper:hover .product-main-image {
    transform: scale(1.08) rotate(2deg);
}

.image-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {    
    position: relative;
    z-index: 11;
    background-color: #dc2626;
    color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    font-size: 0;
    transition: all 0.3s ease;
    display: flex;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    pointer-events: auto;
}

.nav-arrow:hover {
    background-color: white;
    color: #262626;
    border: 1px solid #262626;

    i {
        color: #262626;
    }    
}

.nav-arrow i {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: white;
}



.nav-prev i::before {
    content: "\f060";
}

.nav-next i::before {
    content: "\f061";
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.thumbnail-wrapper {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-wrapper::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.thumbnail-item.active {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.thumbnail-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #dc2626;
    border-radius: 12px;
    pointer-events: none;
}

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

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* Product Details */
.product-details {
    padding: 2rem;
    background: white;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.product-header {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Category Badge */
.product-category {
    margin-bottom: 0.75rem;
}

.category-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: #f97316;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-badge.popular {
    background: #dc2626;
    color: white;
}

.product-badge.sale {
    background: #fbbf24;
    color: #1f2937;
}

.product-badge.stock {
    background: #10b981;
    color: white;
}

.product-badge.out-of-stock {
    background: #ef4444;
    color: white;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

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

.product-info {
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.75rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-description {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.125rem;
    margin: 0;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Product Specifications */
.product-specifications {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spec-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.spec-list {
    display: grid;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.spec-value {
    color: #6b7280;
    font-weight: 400;
    text-align: left;
    font-size: 0.9rem;
}

.product-price-section {
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    animation: scaleIn 0.6s ease-out 0.6s both;
}

.price-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.75rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.current-price {
    color: #f97316;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

.current-price:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.sale-price {
    color: #f97316;
    font-size: 2rem;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.price-container .regular-price {
    color: #6b7280;
    text-decoration: line-through;
    font-size: 1rem;
}

.current-price.regular-price {
    color: #f97316;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    text-decoration: none;
}

.original-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
    animation: slideInFromBottom 0.6s ease-out 0.7s both;
}

.product-actions .main-actions {
    width: auto;
    max-width: fit-content;
}

/* Professional Quantity Selector */
.quantity-section {
    margin-bottom: 2rem;
}

.quantity-label {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.quantity-controls:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qty-btn:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

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

.qty-input {
    width: 80px;
    height: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
}

.qty-input:focus {
    outline: none;
}

.add-to-cart-btn {
    background: #dc2626;
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: auto;
    min-width: fit-content;
    justify-content: center;
    margin-bottom: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    overflow: visible;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    background: #b91c1c;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    animation: pulse 1s infinite;
}

.add-to-cart-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.add-to-cart-btn i {
    font-size: 1.1rem;
}

/* Secondary Actions */
.product-actions-secondary {
    display: flex;
    gap: 1rem;
}

.wishlist-btn,
.share-btn {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.wishlist-btn:hover,
.share-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    margin: 3rem 0;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
}

.products-section.scroll-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.products-header {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.products-header.scroll-visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.products-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: 'Aref Ruqaa', serif;
    opacity: 0;
    transform: translateY(20px);
}

.products-header.scroll-visible .products-title {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.products-description {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
    padding: 0 2rem;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transform: translateY(20px);
}

.products-header.scroll-visible .products-description {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Recent Products Section - Legacy */
.recent-products-section {
    margin: 2rem 0;
    padding: 1rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.show-more-btn {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #dc2626;
    color: white;
}

.recent-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recent-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.recent-product-card.scroll-animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.recent-product-card.scroll-animate:nth-child(1) { animation-delay: 0.1s; }
.recent-product-card.scroll-animate:nth-child(2) { animation-delay: 0.2s; }
.recent-product-card.scroll-animate:nth-child(3) { animation-delay: 0.3s; }
.recent-product-card.scroll-animate:nth-child(4) { animation-delay: 0.4s; }
.recent-product-card.scroll-animate:nth-child(5) { animation-delay: 0.5s; }
.recent-product-card.scroll-animate:nth-child(6) { animation-delay: 0.6s; }
.recent-product-card.scroll-animate:nth-child(7) { animation-delay: 0.7s; }
.recent-product-card.scroll-animate:nth-child(8) { animation-delay: 0.8s; }

.recent-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.recent-product-card .product-image {
    position: relative;
    height: 50%;
    min-height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    flex: 0 0 50%;
}

.recent-product-card .product-image img {
    width: 90%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 auto;
    display: block;
}

.recent-product-card:hover .product-image img {
    transform: scale(1.15) rotate(3deg);
}

.product-price-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #f97316;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 80px;
    transition: all 0.3s ease;
}

.recent-product-card:hover .product-price-tag {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.product-price-tag .original-price {
    font-size: 0.75rem;
    text-decoration: line-through;
    opacity: 0.8;
    font-weight: 500;
}

.product-price-tag .current-price {
    font-size: 1rem;
    font-weight: 700;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #6b7280;
}

.favorite-btn:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.2) rotate(15deg);
}

.recent-product-card .product-info {
    padding: 1.5rem 1.5rem 5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 50%;
    min-height: 200px;
    position: relative;
}

.recent-product-card .product-actions {
    margin-top: auto;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.product-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.recent-product-card .add-to-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    text-transform: uppercase;
}

.recent-product-card .add-to-cart-btn .cart-icon {
    width: 16px;
    height: 16px;
}

.recent-product-card .add-to-cart-btn i {
    font-size: 0.75rem;
}

/* WooCommerce add to cart button in product cards */
.recent-product-card .woocommerce-add-to-cart .single_add_to_cart_button {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2) !important;
    min-width: fit-content !important;
    text-transform: uppercase !important;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

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

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-details {
        padding: 1.5rem;
    }
    
    .products-title {
        font-size: 2rem;
    }
    
    .products-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .recent-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .recent-product-card {
        min-height: 350px;
    }
    
    .recent-product-card .product-image {
        min-height: 175px;
    }
    
    .recent-product-card .product-info {
        padding: 1.25rem 1.25rem 4rem 1.25rem;
        min-height: 175px;
    }
    
    .recent-product-card .product-actions {
        padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    }
    
    .recent-product-card .add-to-cart-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .recent-product-card .woocommerce-add-to-cart .single_add_to_cart_button {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.8rem !important;
    }
    
    .product-actions-secondary {
        flex-direction: column;
    }
    
    .wishlist-btn,
    .share-btn {
        width: 100%;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .thumbnail-gallery {
        flex-wrap: wrap;
    }
    
    .thumbnail-item {
        flex: 0 0 calc(50% - 0.25rem);
    }
}

@media (max-width: 480px) {
    .product-image-wrapper {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .recent-products-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-product-card {
        min-height: 300px;
    }
    
    .recent-product-card .product-image {
        min-height: 150px;
    }
    
    .recent-product-card .product-info {
        padding: 1rem 1rem 3.5rem 1rem;
        min-height: 150px;
    }
    
    .recent-product-card .product-actions {
        padding: 0.5rem 1rem 1rem 1rem;
    }
    
    .product-price-tag {
        padding: 0.5rem 0.75rem;
        min-width: 70px;
    }
    
    .product-price-tag .current-price {
        font-size: 0.9rem;
    }
    
    .products-title {
        font-size: 1.75rem;
    }
    
    .products-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .product-details {
        padding: 1rem;
    }
    
    .product-badges {
        justify-content: center;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
    
    .thumbnail-item {
        flex: 0 0 100%;
        height: 60px;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .product-actions {
        justify-content: center;
    }
    
    .product-actions .main-actions {
        width: 100%;
        max-width: 100%;
    }
    
    .woocommerce-add-to-cart .single_add_to_cart_button {
        width: 100% !important;
    }
    
    /* Cart popup mobile styles */
    .cart-popup {
        max-width: 100%;
        right: -100%;
    }
    
    .cart-popup.active {
        right: 0;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-quantity {
        justify-content: space-between;
        width: 100%;
    }
    
    .quantity-input {
        width: 60px;
    }
}

/* Fullscreen Image Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#fullscreen-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-close i {
    font-size: 1.2rem;
    color: white;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 10001;
}

.modal-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.modal-nav:hover {
    background: white;
    transform: scale(1.05);
}

.modal-nav i {
    font-size: 1.2rem;
    color: #333;
}

/* Shopping Cart Popup */
.cart-popup {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 10000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.cart-popup.active {
    right: 0;
}

.cart-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: #dc2626;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.cart-item-remove {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #b91c1c;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    bottom: 0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.subtotal-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.subtotal-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
}

.checkout-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-cart-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-cart-message {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-cart-submessage {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Cart Counter Badge */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
}

/* WooCommerce Integration */
.woocommerce-add-to-cart {
    margin-top: 1rem;
}

.woocommerce-add-to-cart .quantity {
    display: none !important;
}

.woocommerce-add-to-cart .single_add_to_cart_button {
    background: #dc2626 !important;
    color: white !important;
    padding: 24px 48px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    line-height: 1 !important;
    width: auto !important;
    min-width: fit-content !important;
    margin-bottom: 1rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.woocommerce-add-to-cart .single_add_to_cart_button::before {
    content: "\f07a" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
}

.woocommerce-add-to-cart .single_add_to_cart_button:hover {
    background: #262626 !important;
    color: white !important;
}



