/* Shop specific styles - Enhanced version */

:root {
    /* Additional shop-specific variables */
    --card-radius: 12px;
    --transition-bezier: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

/* Hero section - cleaner and more focused */
.shop-hero {
    min-height: 60vh;
    padding-top: 100px;
    position: relative;
}

.shop-hero .hero-content {
    padding-bottom: 40px;
}

/* Featured Products Section - improved layout */
.featured {
    padding: 100px 0 80px;
    background-color: var(--light);
    position: relative;
}

.featured:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--accent2);
    opacity: 0.05;
    border-radius: 50% 0 0 0;
    z-index: 1;
}

.featured h2, .categories h2, .products h2, .newsletter h2 {
    margin-bottom: 60px;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.featured-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 15px 5px 35px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
}

.featured-slider::-webkit-scrollbar {
    display: none;
}

/* Improved featured slider navigation hints */
.featured-slider:after {
    content: '';
    flex: 0 0 5px;
}

.featured:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Product Cards - cleaner design */
.product-card {
    background-color: var(--light);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bezier);
    position: relative;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.featured-product {
    min-width: 350px;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 20%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-bezier);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product badges - more refined */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient1);
    color: var(--light);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 3px 10px -3px rgba(255, 107, 107, 0.5);
}

.product-card:nth-child(2) .product-badge {
    background: var(--gradient2);
    box-shadow: 0 3px 10px -3px rgba(78, 205, 196, 0.5);
}

.product-card:nth-child(3) .product-badge {
    background: var(--gradient3);
    box-shadow: 0 3px 10px -3px rgba(162, 155, 254, 0.5);
}

/* Product information - cleaner layout */
.product-info {
    padding: 22px 25px;
}

.product-info h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    color: var(--dark);
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-price {
    font-weight: 700;
    color: var(--accent1);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 8px;
    font-weight: 400;
}

.product-rating {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.product-rating i {
    color: var(--accent3);
    margin-right: 2px;
}

.product-rating span {
    margin-left: 5px;
    opacity: 0.7;
}

.product-card p {
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: rgba(45, 52, 54, 0.7);
    line-height: 1.6;
}

/* Product actions - improved button design */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-actions .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 30px;
    background: var(--gradient1);
    box-shadow: 0 4px 10px -4px rgba(255, 107, 107, 0.5);
    border: none;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition-bezier);
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -5px rgba(255, 107, 107, 0.5);
}

.btn-preview {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--gray);
    color: var(--primary);
    transition: var(--transition-bezier);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-preview:hover {
    background-color: var(--accent1);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(255, 107, 107, 0.5);
}

/* Categories Section - improved design */
.categories {
    padding: 100px 0 120px;
    background-color: var(--gray);
    position: relative;
    overflow: hidden;
}

.categories:after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent4);
    opacity: 0.05;
    border-radius: 50%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.category-card {
    background-color: var(--light);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-bezier);
    text-decoration: none;
    color: var(--primary);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--rainbow-gradient);
    background-size: 300%;
    animation: gradient-shift 8s ease infinite;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    transition: var(--transition-bezier);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.categories-grid .category-card:nth-child(2) .category-icon {
    color: var(--accent2);
    background-color: rgba(78, 205, 196, 0.1);
}

.categories-grid .category-card:nth-child(3) .category-icon {
    color: var(--accent3);
    background-color: rgba(253, 203, 110, 0.1);
}

.categories-grid .category-card:nth-child(4) .category-icon {
    color: var(--accent4);
    background-color: rgba(162, 155, 254, 0.1);
}

.categories-grid .category-card:nth-child(5) .category-icon {
    color: var(--accent1);
    background-color: rgba(255, 107, 107, 0.1);
}

.categories-grid .category-card:nth-child(6) .category-icon {
    color: var(--accent2);
    background-color: rgba(78, 205, 196, 0.1);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.category-count {
    font-size: 0.9rem;
    color: rgba(45, 52, 54, 0.6);
    font-weight: 500;
}

/* Products Section - cleaner layout */
.products {
    padding: 100px 0;
    background-color: var(--light);
    position: relative;
}

.products:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent1);
    opacity: 0.05;
    border-radius: 50%;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.products h2 {
    margin-bottom: 10px;
    text-align: left;
}

.products-filter {
    position: relative;
}

.products-filter select {
    appearance: none;
    padding: 12px 45px 12px 18px;
    border-radius: 30px;
    border: 2px solid var(--gray);
    background-color: white;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.products-filter select:focus {
    border-color: var(--accent1);
}

.products-filter::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid .product-image {
    height: 180px;
}

.products-grid .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.products-grid .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.products-grid .product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.products-grid .product-rating {
    display: flex;
    align-items: center;
}

.products-grid .product-description {
    font-size: 0.9rem;
    color: rgba(45, 52, 54, 0.7);
    margin-bottom: 15px;
    line-height: 1.5;
}

.products-grid .product-categories {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.products-grid .product-category {
    font-size: 0.75rem;
    padding: 3px 8px;
    background-color: rgba(78, 205, 196, 0.1);
    color: var(--accent2);
    border-radius: 12px;
    font-weight: 500;
}

.products-grid .product-actions {
    margin-top: auto;
}

.products-grid .btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    background: var(--gradient1);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition-bezier);
    border: none;
    width: 100%;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 10px -4px rgba(255, 107, 107, 0.5);
}

.products-grid .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -4px rgba(255, 107, 107, 0.5);
}

/* Improved pagination */
.pagination {
    display: none;
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.btn-load-more {
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 30px;
    background-color: transparent;
    border: 2px solid var(--accent1);
    color: var(--accent1);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bezier);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-load-more:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient1);
    transition: var(--transition-bezier);
    z-index: -1;
}

.btn-load-more:hover {
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px -5px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.btn-load-more:hover:before {
    width: 100%;
}

.btn-load-more i {
    font-size: 0.9rem;
}

.btn-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-load-more .loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.btn-load-more.loading .loading-spinner {
    display: inline-block;
}

.btn-load-more.loading .btn-text {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Newsletter Section - cleaner design */
.newsletter {
    padding: 100px 0;
    background-color: var(--dark);
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.newsletter:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--rainbow-gradient);
    background-size: 400%;
    animation: gradient-shift 8s ease infinite;
}

.newsletter:after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent2);
    opacity: 0.05;
    border-radius: 50%;
}

.newsletter-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.newsletter-content p {
    margin-bottom: 35px;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 25px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-form .btn {
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    background: var(--gradient1);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bezier);
    white-space: nowrap;
    box-shadow: 0 5px 15px -5px rgba(255, 107, 107, 0.5);
}

.newsletter-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(255, 107, 107, 0.6);
}

/* Responsive Adjustments - more refined */
@media (max-width: 992px) {
    .featured h2, .categories h2, .products h2, .newsletter h2 {
        font-size: 2.2rem;
    }
    
    .newsletter-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .featured-slider {
        padding-left: 20px;
        margin-bottom: 20px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 20px;
    }
    
    .products h2 {
        margin-bottom: 20px;
    }
    
    .products-grid {
        padding: 0 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: calc(100% - 40px);
        margin: 0 20px;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }
    
    .featured h2, .categories h2, .products h2, .newsletter h2 {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .pagination a, .pagination span {
        width: 35px;
        height: 35px;
        margin: 0 3px;
    }
    
    .pagination a.next {
        padding: 0 15px;
    }
    
    .featured-product {
        min-width: 280px;
    }
}

/* Animation for product card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

.product-card:nth-child(5) {
    animation-delay: 0.4s;
}

.product-card:nth-child(6) {
    animation-delay: 0.5s;
}