/* ====================================
   SHOP PAGE STYLES
   ==================================== */

:root {
    --primary-color: #FF8800;
    --primary-light: #FFB84D;
    --primary-dark: #E67E00;
    --dark-text: #0F172A;
    --light-text: #64748B;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --success-color: #22C55E;
    --danger-color: #EF4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

/* ====================================
   SHOP SECTION
   ==================================== */

.shop-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 40px 0 80px;
    min-height: 100vh;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   SHOP HEADER
   ==================================== */

.shop-header {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.shop-header-content {
    text-align: center;
}

.shop-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.shop-subtitle {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 500;
}

/* ====================================
   SHOP LAYOUT
   ==================================== */

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ====================================
   SIDEBAR FILTERS
   ==================================== */

.shop-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-text);
    margin: 0;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-close:hover {
    color: var(--primary-color);
}

.filter-reset {
    margin-bottom: 30px;
}

.reset-btn {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.1), rgba(255, 184, 77, 0.1));
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-label {
    font-size: 14px;
    color: var(--light-text);
    transition: var(--transition);
    user-select: none;
}

.filter-option:hover .filter-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Price Filter */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition);
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-separator {
    color: var(--light-text);
    font-weight: 600;
}

.apply-price-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.apply-price-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

/* Sort Select */
.sort-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-text);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ====================================
   SHOP MAIN AREA
   ==================================== */

.shop-main {
    animation: fadeInUp 0.8s ease-out;
}

.shop-topbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.filter-toggle {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.products-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    background: var(--light-bg);
    padding: 10px 16px;
    border-radius: 8px;
}

/* ====================================
   PRODUCTS GRID
   ==================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.15);
    transform: translateY(-8px);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(135deg, var(--light-bg), rgba(255, 184, 77, 0.1));
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    font-size: 16px;
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Product Content */
.product-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FDB022;
    font-size: 11px;
}

.star.empty {
    color: var(--border-color);
}

.rating-count {
    color: var(--light-text);
    font-size: 11px;
}

/* Product Price */
.product-price-section {
    margin: 8px 0 12px 0;
}

.current-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.view-btn {
    flex: 1;
    padding: 10px 8px;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.1), rgba(255, 184, 77, 0.1));
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.view-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.wishlist-action-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--light-bg);
    color: var(--light-text);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.wishlist-action-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ====================================
   NO PRODUCTS MESSAGE
   ==================================== */

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
}

.no-products i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-products p {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 600;
}

/* ====================================
   LOAD MORE
   ==================================== */

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* TABLET - 1024px */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 20px;
    }

    .shop-title {
        font-size: 36px;
    }

    .product-name {
        font-size: 14px;
    }

    .current-price {
        font-size: 16px;
    }
}

/* MEDIUM - 768px */
@media (max-width: 768px) {
    .shop-section {
        padding: 30px 0 60px;
    }

    .shop-header {
        margin-bottom: 30px;
    }

    .shop-title {
        font-size: 28px;
    }

    .shop-subtitle {
        font-size: 15px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .shop-sidebar {
        position: fixed;
        left: 0;
        top: 80px;
        width: 280px;
        height: calc(100vh - 80px);
        z-index: 999;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .shop-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .shop-topbar {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-content {
        padding: 15px;
    }

    .current-price {
        font-size: 15px;
    }

    .product-actions {
        gap: 8px;
    }

    .view-btn,
    .add-to-cart-btn {
        padding: 8px;
        font-size: 11px;
    }
}

/* MOBILE - 480px */
@media (max-width: 480px) {
    .shop-container {
        padding: 0 15px;
    }

    .shop-section {
        padding: 25px 0 50px;
    }

    .shop-header {
        margin-bottom: 20px;
    }

    .shop-title {
        font-size: 24px;
    }

    .shop-subtitle {
        font-size: 13px;
    }

    .sidebar-header h3 {
        font-size: 18px;
    }

    .filter-title {
        font-size: 13px;
    }

    .filter-option {
        gap: 8px;
    }

    .filter-label {
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        margin-bottom: 30px;
    }

    .product-content {
        padding: 12px;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .current-price {
        font-size: 14px;
    }

    .product-actions {
        gap: 6px;
    }

    .view-btn {
        padding: 8px 6px;
        font-size: 11px;
    }

    .wishlist-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .product-rating {
        font-size: 10px;
    }

    .star {
        font-size: 9px;
    }

    .rating-count {
        font-size: 10px;
    }

    .filter-toggle {
        padding: 10px 15px;
        font-size: 12px;
    }

    .products-count {
        font-size: 12px;
        padding: 8px 12px;
    }

    .no-products {
        padding: 60px 20px;
    }

    .no-products i {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .no-products p {
        font-size: 15px;
    }

    .load-more-btn {
        padding: 12px 25px;
        font-size: 13px;
    }
}

/* EXTRA SMALL - 375px */
@media (max-width: 375px) {
    .shop-container {
        padding: 0 12px;
    }

    .shop-title {
        font-size: 20px;
    }

    .shop-subtitle {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-content {
        padding: 10px;
    }

    .product-name {
        font-size: 11px;
    }

    .current-price {
        font-size: 13px;
    }

    .view-btn {
        padding: 6px;
        font-size: 9px;
    }

    .wishlist-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .wishlist-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    .shop-sidebar,
    .shop-topbar,
    .product-actions,
    .load-more-container,
    .filter-toggle {
        display: none !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
