/* ==================== SHOPPING PAGE STYLES - UPDATED ==================== */

/* Shopping Hero Section - Keep as is */
.shopping-hero {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.4), rgba(231, 111, 81, 0.4)),
                url("images/hybrid.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.shopping-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.shopping-hero h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.shopping-hero p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
}

/* Products Section */
.products-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5eb 100%);
    position: relative;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid - UPDATED FOR CONSISTENT SIZING */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

/* Product Card - FLEXIBLE HEIGHT WITH MINIMUM */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 320px;
    min-height: 520px; /* INCREASED minimum height */
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(231, 111, 81, 0.2);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3);
}

.product-badge.popular {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.product-badge.new {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.product-image {
    width: 100%;
    height: 240px; /* INCREASED image height */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px; /* INCREASED padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: center;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 28px; /* Ensures consistent spacing */
}

.product-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.5;
    min-height: 44px; /* INCREASED for more description space */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin: 12px 0;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #e76f51;
    letter-spacing: -0.5px;
}

.stock-status {
    font-size: 0.9rem;
    margin: 10px 0;
    font-weight: 500;
    min-height: 24px; /* Consistent spacing */
}

/* ==================== IMPROVED ADD TO CART BUTTON ==================== */
.add-to-cart-btn {
    width: 100%;
    padding: 18px 24px; /* INCREASED PADDING */
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px; /* LARGER font */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* Push to bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px; /* INCREASED minimum height */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Don't let button shrink */
}

.add-to-cart-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e76f51 0%, #d65c40 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.4);
}

.add-to-cart-btn:hover:not(:disabled):before {
    left: 100%;
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
}

.add-to-cart-btn:disabled {
    background: linear-gradient(135deg, #cccccc, #aaaaaa);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none !important;
}

.add-to-cart-btn i {
    font-size: 22px; /* LARGER icon */
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

/* Success state when added */
.add-to-cart-btn.added {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.add-to-cart-btn.added:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Out of stock button styling */
.add-to-cart-btn.out-of-stock {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: #ffffff;
    cursor: not-allowed;
}

/* Empty State Styling */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-products p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 20px;
}

.no-products i {
    font-size: 3rem;
    color: #f4a261;
    margin-bottom: 20px;
    display: block;
}

/* Enquiries Section */
.enquiries-section {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.enquiries-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #2d3436;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 24px;
    color: #e76f51;
}

.contact-item a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #e76f51;
}

/* Why Buy Section */
.why-buy-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
}

.why-buy-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.why-buy-container h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.why-buy-container h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
}

.benefit-icon i {
    font-size: 36px;
    color: #e76f51;
    transition: color 0.3s ease;
}

.benefit-item:hover .benefit-icon i {
    color: white;
}

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 16px;
    color: #666;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 24px;
    background: #4CAF50;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
    font-weight: 500;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: #f44336;
}

.toast.success {
    background: #4CAF50;
}

/* Cart Badge Styling - MAKE MORE VISIBLE */
.cart-badge {
    background: linear-gradient(135deg, #ff5722, #f4511e);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.3rem;
    min-width: 22px;
    height: 22px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablets and small desktops (up to 992px) */
@media (max-width: 992px) {
    .shopping-hero {
        min-height: 350px;
        padding: 50px 30px;
        margin-top: 70px;
    }

    .shopping-hero h2 {
        font-size: 42px;
    }

    .shopping-hero p {
        font-size: 18px;
    }

    .products-section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .product-card {
        max-width: 300px;
        min-height: 500px;
    }

    .product-image {
        height: 220px;
    }

    .add-to-cart-btn {
        padding: 16px 20px;
        font-size: 17px;
        min-height: 56px;
    }

    .why-buy-section {
        padding: 60px 20px;
    }

    .why-buy-container h2 {
        font-size: 36px;
    }
}

/* Tablets (up to 768px) */
@media (max-width: 768px) {
    .shopping-hero {
        min-height: 300px;
        padding: 40px 20px;
        margin-top: 65px;
    }

    .shopping-hero h2 {
        font-size: 36px;
    }

    .shopping-hero p {
        font-size: 16px;
    }

    .products-section {
        padding: 50px 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-card {
        max-width: 280px;
        min-height: 480px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    .price {
        font-size: 24px;
    }

    .add-to-cart-btn {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 52px;
        gap: 8px;
    }

    .add-to-cart-btn i {
        font-size: 20px;
    }

    .enquiries-section {
        padding: 30px 20px;
    }

    .enquiries-section h3 {
        font-size: 24px;
    }

    .contact-details {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    .why-buy-section {
        padding: 50px 15px;
    }

    .why-buy-container h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .benefit-item {
        padding: 25px 15px;
    }

    .benefit-icon {
        width: 70px;
        height: 70px;
    }

    .benefit-icon i {
        font-size: 30px;
    }

    .benefit-item h3 {
        font-size: 20px;
    }
}

/* Mobile phones (up to 480px) */
@media (max-width: 480px) {
    .shopping-hero {
        min-height: 250px;
        padding: 30px 15px;
        margin-top: 60px;
    }

    .shopping-hero h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .shopping-hero p {
        font-size: 14px;
    }

    .products-section {
        padding: 40px 10px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        width: 100%;
        max-width: 340px;
        min-height: 520px; /* INCREASED for mobile */
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 22px;
    }

    .add-to-cart-btn {
        padding: 16px 20px;
        font-size: 17px;
        min-height: 56px;
        border-radius: 10px;
        font-weight: 700;
        margin-top: 12px;
    }

    .add-to-cart-btn i {
        font-size: 20px;
    }

    .enquiries-section {
        padding: 25px 15px;
    }

    .enquiries-section h3 {
        font-size: 22px;
    }

    .contact-item {
        font-size: 16px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .why-buy-section {
        padding: 40px 10px;
    }

    .why-buy-container h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefit-item {
        padding: 20px 15px;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .benefit-icon i {
        font-size: 26px;
    }

    .benefit-item h3 {
        font-size: 18px;
    }

    .benefit-item p {
        font-size: 14px;
    }

    .cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* For single product centering */
.single-product-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* Loading animation for button */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}