/* Shop Page Styles for Predesigns Clothing */
/* Product Grid and Cards */
.shop-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

/* Image Gallery for Dual Images */
.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-gallery .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.image-gallery .secondary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.product-card:hover .image-gallery .main-image {
    opacity: 0;
}

.product-card:hover .image-gallery .secondary-image {
    opacity: 1;
}

/* Image Indicators */
.image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    z-index: 5;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #6A0DAD;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .quick-view-btn:hover {
    background: #5a0ca3;
    transform: translateY(-2px);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-wishlist,
.add-to-cart {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-wishlist:hover,
.add-to-cart:hover {
    background: #6A0DAD;
    color: white;
    transform: translateY(-2px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #6A0DAD;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-preorder {
    background: #28a745;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: #6A0DAD;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #6A0DAD;
    margin-bottom: 10px;
}

.product-rating {
    margin-bottom: 12px;
    color: #f39c12;
    font-size: 14px;
}

.rating-count {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-actions-mobile {
    display: none;
    gap: 10px;
}

/* Shop Filters */
.shop-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.filters-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #6A0DAD;
}

/* No Results Message */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-results i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 16px;
    color: #999;
}

/* Delivery Information */
.delivery-info {
    padding: 60px 0;
    background: #f8f9fa;
}

.delivery-content {
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.delivery-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.delivery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.delivery-item i {
    font-size: 40px;
    color: #6A0DAD;
    margin-bottom: 15px;
}

.delivery-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.delivery-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Custom Order CTA */
.custom-order-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #6A0DAD 0%, #5a0ca3 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #6A0DAD;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6A0DAD;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #6A0DAD;
}

.newsletter-form button {
    padding: 15px 25px;
    background: #6A0DAD;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #5a0ca3;
    transform: translateY(-2px);
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    inset: 0;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #6A0DAD;
    transform: rotate(90deg);
}

.modal-product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-product-image {
    text-align: center;
}

.modal-product-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-info {
    padding: 20px 0;
}

.modal-product-category {
    font-size: 14px;
    font-weight: 600;
    color: #6A0DAD;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.modal-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #6A0DAD;
    margin-bottom: 15px;
}

.modal-product-rating {
    margin-bottom: 20px;
    color: #f39c12;
    font-size: 16px;
}

.modal-product-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.add-to-cart-modal,
.add-to-wishlist-modal {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-modal {
    background: #6A0DAD;
    color: white;
}

.add-to-cart-modal:hover {
    background: #5a0ca3;
    transform: translateY(-2px);
}

.add-to-wishlist-modal {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.add-to-wishlist-modal:hover {
    border-color: #6A0DAD;
    color: #6A0DAD;
    transform: translateY(-2px);
}

.modal-product-details {
    border-top: 2px solid #f1f3f4;
    padding-top: 20px;
}

.modal-product-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

.modal-product-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #666;
}

.modal-product-details li:last-child {
    border-bottom: none;
}

.modal-product-details strong {
    color: #333;
}

/* Lazy Loading Styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-loaded {
    opacity: 1;
}

/* Optimized Image Loading */
.main-image,
.secondary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .shop-hero-content {
        text-align: center;
    }

    .shop-hero-title {
        font-size: 28px;
    }

    .filters-content {
        flex-direction: column;
        align-items: center;
    }

    .filter-group {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-actions-mobile {
        display: flex;
    }

    .product-actions {
        display: none;
    }

    .product-overlay {
        opacity: 0 !important;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-product-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 40px 0;
    }

    .shop-hero-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }

    .delivery-item {
        padding: 20px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
    }
}

/* Custom Order Modals */
.custom-order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    inset: 0;
}

.custom-order-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-form-content {
    padding: 40px;
}

.modal-form-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.modal-form-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6A0DAD;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.form-actions .btn-primary {
    background: #6A0DAD;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #5a0ca3;
    transform: translateY(-2px);
}

.form-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.form-actions .btn-secondary:hover {
    border-color: #6A0DAD;
    color: #6A0DAD;
    transform: translateY(-2px);
}

/* Loading Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #6A0DAD;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #6A0DAD;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #5a0ca3;
    transform: translateY(-3px);
}

.back-to-top i {
    pointer-events: none;
    font-size: 20px;
}

/* Smooth page transition */
.page-transition {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}