/* ===================================
   SHOP PAGE STYLES - CATALOG DESIGN
   =================================== */

/* Page Layout */
.shop-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    margin-top: 100px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.breadcrumb-back:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.breadcrumb-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.breadcrumb-home {
    font-weight: 500;
}

.breadcrumb-arrow {
    width: 1rem;
    height: 1rem;
}

.breadcrumb-current {
    font-weight: 700;
    color: #1f2937;
}

/* Catalog View */
.catalog-view {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.catalog-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

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

/* Category Card */
.category-card {
    position: relative;
    height: 300px;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.category-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Products View */
.products-view {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.products-view:not(.hidden) {
    opacity: 1;
}

/* Search Bar */
.search-bar {
    margin-bottom: 2rem;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    color: #9ca3af;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 4rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: #1f2937;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-card-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
}

.product-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1f2937;
}

.product-card-action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-category {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-card-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
}

.product-card-add-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.catalog-loading,
.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-results-text {
    color: #6b7280;
}

/* Footer */
.shop-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom right, #111827, #1f2937, #111827);
    padding: 4rem 0 6rem;
    margin-top: 3rem;
    overflow: hidden;
}

.shop-footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.shop-footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.5), transparent);
}

.shop-footer-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.shop-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Footer Brand Section */
.shop-footer-brand {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-footer-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #9333ea, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-footer-description {
    font-size: 1.125rem;
    max-width: 28rem;
    line-height: 1.75;
    color: #ffffff;
}

.shop-footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-footer-newsletter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.shop-footer-newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.shop-footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: rgba(243, 244, 246, 0.5);
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 0.5rem;
    color: #1f2937;
}

.shop-footer-newsletter-input::placeholder {
    color: #6b7280;
}

.shop-footer-newsletter-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #9333ea, #db2777);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    transform: scale(1);
    border: none;
    cursor: pointer;
}

.shop-footer-newsletter-button:hover {
    background: linear-gradient(to right, #7e22ce, #be185d);
    transform: scale(1.05);
}

/* Footer Links Section */
.shop-footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-footer-links-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    color: #ffffff;
}

.shop-footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #a78bfa, #f9a8d4);
    border-radius: 9999px;
}

.shop-footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-footer-link {
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
    color: #ffffff;
}

.shop-footer-link:hover {
    color: #9333ea;
    transform: translateX(0.25rem);
}

/* Footer Social Section */
.shop-footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-footer-social-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    color: #ffffff;
}

.shop-footer-social-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #6ee7b7, #5eead4);
    border-radius: 9999px;
}

.shop-footer-social-icons {
    display: flex;
    gap: 1rem;
}

.shop-footer-social-link {
    width: 3rem;
    height: 3rem;
    background-color: rgba(229, 231, 235, 0.5);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s;
    transform: translateY(0);
}

.shop-footer-social-link:hover {
    transform: translateY(-0.25rem) scale(1.1);
}

.shop-footer-social-link.facebook:hover {
    background-color: #9333ea;
    color: white;
}

.shop-footer-social-link.instagram:hover {
    background-color: #db2777;
    color: white;
}

.shop-footer-social-link.twitter:hover {
    background-color: #2563eb;
    color: white;
}

.shop-footer-social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.shop-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
}

.shop-footer-contact-item {
    color: #ffffff;
}

.shop-footer-contact-label {
    font-weight: 600;
}

/* Footer Bottom */
.shop-footer-bottom {
    border-top: 1px solid rgba(209, 213, 219, 0.7);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.shop-footer-copyright {
    color: #6b7280;
    text-align: center;
}

.shop-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.shop-footer-bottom-link {
    color: #6b7280;
    transition: color 0.2s;
}

.shop-footer-bottom-link:hover {
    color: #111827;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (min-width: 640px) {
    .shop-main {
        padding: 2rem 1.5rem;
    }

    .catalog-title {
        font-size: 3rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-footer {
        padding: 5rem 0;
    }

    .shop-footer-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .breadcrumb {
        flex-direction: row;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .shop-main {
        padding: 2rem 2rem;
    }

    .catalog-title {
        font-size: 3.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-footer {
        padding: 6rem 0;
        margin-top: 5rem;
    }

    .shop-footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .shop-footer-brand {
        grid-column: span 2;
    }

    .shop-footer-title {
        font-size: 3rem;
    }

    .shop-footer-bottom {
        flex-direction: row;
    }

    .shop-footer-copyright {
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Footer */
.shop-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom right, #111827, #1f2937, #111827);
    padding: 4rem 0 6rem;
    margin-top: 3rem;
    overflow: hidden;
}

.shop-footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.shop-footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.5), transparent);
}

.shop-footer-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.shop-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Footer Brand Section */
.shop-footer-brand {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-footer-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #9333ea, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shop-footer-description {
    font-size: 1.125rem;
    max-width: 28rem;
    line-height: 1.75;
    color: #ffffff;
}

.shop-footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-footer-newsletter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.shop-footer-newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.shop-footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: rgba(243, 244, 246, 0.5);
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 0.5rem;
    color: #1f2937;
}

.shop-footer-newsletter-input::placeholder {
    color: #6b7280;
}

.shop-footer-newsletter-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #9333ea, #db2777);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    transform: scale(1);
    border: none;
    cursor: pointer;
}

.shop-footer-newsletter-button:hover {
    background: linear-gradient(to right, #7e22ce, #be185d);
    transform: scale(1.05);
}

/* Footer Links Section */
.shop-footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-footer-links-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    color: #ffffff;
}

.shop-footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #a78bfa, #f9a8d4);
    border-radius: 9999px;
}

.shop-footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-footer-link {
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
    color: #ffffff;
}

.shop-footer-link:hover {
    color: #9333ea;
    transform: translateX(0.25rem);
}

/* Footer Social Section */
.shop-footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-footer-social-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    color: #ffffff;
}

.shop-footer-social-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, #6ee7b7, #5eead4);
    border-radius: 9999px;
}

.shop-footer-social-icons {
    display: flex;
    gap: 1rem;
}

.shop-footer-social-link {
    width: 3rem;
    height: 3rem;
    background-color: rgba(229, 231, 235, 0.5);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s;
    transform: translateY(0);
}

.shop-footer-social-link:hover {
    transform: translateY(-0.25rem) scale(1.1);
}

.shop-footer-social-link.facebook:hover {
    background-color: #9333ea;
    color: white;
}

.shop-footer-social-link.instagram:hover {
    background-color: #db2777;
    color: white;
}

.shop-footer-social-link.twitter:hover {
    background-color: #2563eb;
    color: white;
}

.shop-footer-social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.shop-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
}

.shop-footer-contact-item {
    color: #ffffff;
}

.shop-footer-contact-label {
    font-weight: 600;
}

/* Footer Bottom */
.shop-footer-bottom {
    border-top: 1px solid rgba(209, 213, 219, 0.7);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.shop-footer-copyright {
    color: #6b7280;
    text-align: center;
}

.shop-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.shop-footer-bottom-link {
    color: #6b7280;
    transition: color 0.2s;
}

.shop-footer-bottom-link:hover {
    color: #111827;
}

/* ===================================
   RESPONSIVE DESIGN - TABLETS & UP
   =================================== */
@media (min-width: 640px) {
    .shop-main {
        padding: 2rem 1.5rem;
    }

    .shop-search-controls {
        flex-direction: row;
        justify-content: space-between;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-footer {
        padding: 5rem 0;
    }

    .shop-footer-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .shop-main {
        padding: 2rem 2rem;
    }

    .shop-layout {
        flex-direction: row;
    }

    .shop-sidebar {
        width: 16rem;
    }

    .shop-categories-header {
        cursor: default;
    }

    .shop-categories-arrow {
        display: none;
    }

    .shop-categories-list {
        display: flex !important;
    }

    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-footer {
        padding: 6rem 0;
        margin-top: 5rem;
    }

    .shop-footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .shop-footer-brand {
        grid-column: span 2;
    }

    .shop-footer-title {
        font-size: 3rem;
    }

    .shop-footer-bottom {
        flex-direction: row;
    }

    .shop-footer-copyright {
        text-align: left;
    }
}
