.shipping-info-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    position: sticky;
    top: 80px;
    /* Below fixed header */
    z-index: 997;
}

@media (max-width: 768px) {
    .shipping-info-bar {
        top: 120px;
        /* Below mobile header + sticky search bar */
    }
}

.hero-slider-container {
    margin-top: 30px;
    margin-bottom: 30px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-light);
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.hero-slider-container .swiper {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.hero-slider-container .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    color: white;
}

.hero-slide-image,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #f8f9fa;
    z-index: 1;
}

.swiper-slide.skeleton-slide {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 40px;
    width: 100%;
}

.hero-slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-slide-content p {
    font-size: 1.1rem;
    margin: 5px 0 20px 0;
    max-width: 500px;
    color: var(--white);
    opacity: 0.9;
}

.hero-slide-content .btn {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
}

.hero-slide-content .btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--primary-blue);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.shop-main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding-top: 0;
    padding-bottom: 40px;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    /* Below fixed header + shipping bar */
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.shop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.filter-group {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 20px 0;
    margin-bottom: 0;
    box-shadow: none;
}

.filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.filter-group-header:hover {
    background: var(--bg-light);
}

.filter-group-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
}

.filter-group-header i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.mobile-filter-dropdown.active .filter-group-header i {
    transform: rotate(180deg);
}

.filter-group-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
    padding-top: 15px;
}

.mobile-filter-dropdown:not(.active) .filter-group-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    overflow: hidden;
}

.filter-group h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.category-list a:hover {
    color: var(--primary-blue);
    background-color: var(--bg-light);
    transform: translateX(4px);
}

.category-list a.active-category {
    color: var(--primary-blue);
    font-weight: 600;
    background-color: rgba(0, 82, 255, 0.1);
    border-left: 3px solid var(--primary-blue);
    padding-left: 13px;
}

.price-input-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.price-field {
    width: 48%;
}

.price-field span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-field input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.price-field input::-webkit-outer-spin-button,
.price-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-separator {
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
    color: var(--text-muted);
}

.slider-container {
    position: relative;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 5px;
}

.price-slider-track {
    position: absolute;
    height: 5px;
    left: 0%;
    right: 0%;
    top: 0;
    background-color: var(--primary-blue);
    border-radius: 5px;
}

.price-range-slider {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    top: 0;
    left: 0;
    margin: 0;
}

.price-range-slider::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
}

.price-range-slider::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    -moz-appearance: none;
    cursor: pointer;
}

.product-grid-container .grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.product-grid-container .grid-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 0;
}

.product-grid-container .grid-header .form-control {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    min-width: 200px;
}

.product-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Image submission section spans full width in grid */
.image-submission-area {
    grid-column: 1 / -1;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#image-submission-area {
    transition: all 0.3s ease;
}

#image-submission-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.15);
}

.image-submission-area.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.image-submission-area.uploading:hover {
    transform: none;
    cursor: wait;
}

#image-submission-status,
[id^="image-submission-status-"] {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

#image-submission-status i,
[id^="image-submission-status-"] i {
    margin-right: 8px;
}

.product-card .product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9;
}

.product-card .product-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .product-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5em;
}

.product-card .product-title a {
    text-decoration: none;
    color: inherit;
}

.product-card .product-title a:hover {
    color: var(--primary-blue);
}

.product-card .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-card .stock-status {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: auto;
}

.product-card .stock-status i {
    font-size: 0.9rem;
}

.product-card .btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-message {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    grid-column: 1 / -1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.pagination a {
    text-decoration: none;
    color: var(--primary-blue);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.skeleton-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 15px;
}

.skeleton-img,
.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 6px;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
}

.skeleton-line {
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
    height: 18px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 992px) {
    .shipping-info-bar {
        top: 80px;
        /* Below fixed header on mobile */
    }

    .shop-main-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        display: block;
        border-radius: 12px;
    }

    .filter-group:nth-child(1) {
        grid-column: 1 / -1;
    }

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

@media (max-width: 768px) {
    .shop-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .shop-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .filter-group {
        margin-bottom: 0;
        padding: 16px 0;
    }

    .mobile-filter-dropdown:not(.active) .filter-group-content {
        display: none;
    }

    .mobile-filter-dropdown.active .filter-group-content {
        display: block;
        padding-top: 15px;
    }

    .filter-group-header {
        padding-bottom: 15px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .filter-group-header h3 {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
        font-size: 1.1rem;
    }

    .product-grid-container {
        width: 100%;
        padding: 0;
    }

    .product-grid-container .grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 5px;
        margin-bottom: 15px;
    }

    .product-grid-container .grid-header h2 {
        font-size: 1.4rem;
        margin: 0;
    }

    .product-grid-container .grid-header .form-control {
        width: 100%;
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 5px;
    }

    @media (max-width: 480px) {
        .product-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }

    .product-card {
        border-radius: 10px;
        overflow: hidden;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 5px;
        margin-top: 30px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 36px;
    }

    .product-card .product-info {
        padding: 15px;
    }

    .product-card .product-title {
        font-size: 0.95rem;
        min-height: 2.4em;
    }

    .product-card .product-price {
        font-size: 1.1rem;
    }

    .product-card .btn {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    .product-card .stock-status {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .hero-slider-container {
        height: 250px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .hero-slide-content h2 {
        font-size: 1.8rem;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-slide-content .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .shop-main-layout {
        padding: 0 5px;
    }

    .product-grid {
        gap: 8px;
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card .product-info {
        padding: 10px 8px;
    }

    .product-card .product-title {
        font-size: 0.85rem;
        min-height: 2.2em;
        line-height: 1.3;
    }

    .product-card .product-price {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .product-card .stock-status {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .product-card .btn {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination a {
        padding: 5px 8px;
        font-size: 0.8rem;
        min-width: 32px;
    }

    .mobile-menu {
        display: flex !important;
    }

    body.mobile-menu-open .mobile-menu {
        transform: translateX(0) !important;
    }
}