/* =====================================================
   SHOP PAGE STYLES
   ===================================================== */

/* Shop Hero Section */
.shop-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--cream) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(176, 137, 104, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.shop-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 56px);
    color: var(--dark-brown);
    margin-bottom: 16px;
    font-weight: 700;
}

.shop-hero-subtitle {
    font-size: 18px;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Shop Section Layout */
.shop-section {
    padding: 100px 0 100px;
    background-color: var(--white);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar Filters */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background-color: var(--cream);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-gray);
}

.filter-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--dark-brown);
    font-weight: 600;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--primary-brown);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.clear-filters:hover {
    color: var(--dark-brown);
}

.filter-group {
    margin-bottom: 32px;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--dark-brown);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover span {
    color: var(--primary-brown);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--dark-brown);
}

.filter-option span {
    font-size: 14px;
    color: var(--charcoal);
    transition: var(--transition);
}

.mobile-filter-toggle {
    display: none;
}

/* Shop Main Content */
.shop-main {
    width: 100%;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px 24px;
    background-color: var(--cream);
    border-radius: 8px;
}

.results-count {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 500;
}

.results-count span {
    font-weight: 700;
    color: var(--dark-brown);
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    background-color: white;
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover {
    border-color: var(--primary-brown);
}

.sort-select:focus {
    outline: none;
    border-color: var(--dark-brown);
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-gray);
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--charcoal);
}

.view-btn:hover {
    border-color: var(--primary-brown);
    color: var(--primary-brown);
}

.view-btn.active {
    background-color: var(--dark-brown);
    border-color: var(--dark-brown);
    color: white;
}

/* Products Container */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.products-container.list-view {
    grid-template-columns: 1fr;
}

/* Product Card (Grid View) */
.shop-product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.shop-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--dark-brown);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background-color: var(--dark-green);
}

.product-badge.sale {
    background-color: #E74C3C;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
}

.shop-product-card:hover .product-wishlist {
    opacity: 1;
}

.product-wishlist:hover {
    background-color: var(--primary-brown);
    color: white;
}

.shop-product-info {
    padding: 24px;
}

.shop-product-category {
    font-size: 12px;
    color: var(--sage-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.shop-product-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--dark-brown);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.shop-product-tagline {
    font-size: 13px;
    color: var(--charcoal);
    margin-bottom: 12px;
    opacity: 0.8;
}

.shop-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.shop-product-stars {
    color: #FFB800;
    font-size: 14px;
}

.shop-product-reviews {
    font-size: 13px;
    color: #888;
}

.shop-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

.shop-product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-brown);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.shop-add-cart {
    background-color: var(--light-beige);
    color: var(--dark-brown);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-add-cart:hover {
    background-color: var(--dark-brown);
    color: white;
}

/* List View */
.products-container.list-view .shop-product-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.products-container.list-view .shop-product-image {
    aspect-ratio: 1;
}

.products-container.list-view .shop-product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-container.list-view .shop-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--dark-brown);
    border-color: var(--dark-brown);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-gray);
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--charcoal);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-number:hover {
    border-color: var(--primary-brown);
    color: var(--primary-brown);
}

.pagination-number.active {
    background-color: var(--dark-brown);
    border-color: var(--dark-brown);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results svg {
    color: var(--primary-brown);
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    color: var(--charcoal);
    margin-bottom: 32px;
}

/* Loading State */
.products-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }

    .shop-sidebar.active {
        left: 0;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 200px;
        right: 10px;
        background-color: var(--dark-brown);
        color: white;
        border: none;
        padding: 16px 24px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transition: var(--transition);
    }

    .mobile-filter-toggle:hover {
        background-color: var(--primary-brown);
        transform: scale(1.05);
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .shop-controls {
        justify-content: space-between;
    }

    .sort-select {
        flex: 1;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .products-container.list-view .shop-product-card {
        grid-template-columns: 1fr;
    }

    .products-container.list-view .shop-product-image {
        aspect-ratio: 16/10;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 120px 0 60px;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .shop-product-info {
        padding: 20px;
    }

    .view-toggle {
        display: none;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* =====================================================
   SOCIAL PROOF TOAST
   ===================================================== */
.social-proof-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: white;
    border-left: 4px solid var(--primary-brown);
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    pointer-events: none;
    /* Pass through clicks when hidden */
}

.social-proof-toast.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.social-proof-image-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.social-proof-image {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--light-gray);
}

.social-proof-check {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background-color: var(--sage-green);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.social-proof-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.social-proof-text {
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.4;
    margin-bottom: 2px;
}

.social-proof-text strong {
    color: var(--dark-brown);
    font-weight: 600;
}

.social-proof-time {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-proof-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-proof-close:hover {
    color: var(--dark-brown);
}

@media (max-width: 768px) {
    .social-proof-toast {
        bottom: auto;
        top: 80px;
        /* Below navbar */
        left: 50%;
        transform: translate(-50%, -20px);
        width: 90%;
        max-width: none;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    .social-proof-toast.visible {
        transform: translate(-50%, 0);
    }
}

/* =====================================================
   LOAD MORE BUTTON
   ===================================================== */
.load-more-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    border: 2px solid var(--dark-brown);
    color: var(--dark-brown);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.load-more-btn:hover {
    background-color: var(--dark-brown);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 61, 46, 0.2);
}

.load-more-btn:active {
    transform: translateY(0);
}

.pagination p {
    font-family: var(--font-body);
}

/* Hide old pagination elements just in case */
.pagination-number,
.pagination-btn {
    display: none !important;
}

/* =====================================================
   WISHLIST STYLES
   ===================================================== */
.product-wishlist.active {
    background-color: white;
    color: #e63946;
    /* Red color for heart */
    border-color: #e63946;
}

.product-wishlist.active svg {
    fill: #e63946;
}

.wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e63946;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-toast {
    z-index: 10001;
    /* Higher than social proof */
    min-width: 200px;
}