/* Products List Page Styles */

.page-header {
    margin-top: 80px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 300;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 69px;
    z-index: 100;
}

.filter-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Thai', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Products List */
.products-list {
    padding: 80px 0 120px;
}

.products-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
}

.product-item {
    position: relative;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-item.hidden {
    display: none;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-badge-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 10;
}

.product-badge-corner.sale {
    background-color: #ff4757;
}

.product-badge-corner.new {
    background-color: #2ed573;
}

.product-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    aspect-ratio: 3/4;
    background-color: var(--bg-light);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-quick-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-quick-view {
    opacity: 1;
}

.btn-quick-view {
    padding: 14px 35px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Noto Sans Thai', sans-serif;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.product-item:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.product-item-info {
    text-align: center;
}

.product-category {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.product-item-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-item-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.price-main {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-old {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-fb,
.btn-cta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Thai', sans-serif;
}

.btn-cta-fb {
    background-color: #1877f2;
    color: var(--white);
}

.btn-cta-fb:hover {
    background-color: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

.btn-cta-line {
    background-color: #06c755;
    color: var(--white);
}

.btn-cta-line:hover {
    background-color: #05b04c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
}

/* Responsive Design */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .page-title {
        font-size: 50px;
    }

    .products-grid-large {
        grid-template-columns: repeat(3, 1fr);
        gap: 45px 35px;
    }
}

/* Tablet Portrait */
@media (max-width: 968px) {
    .page-header {
        padding: 70px 0 50px;
    }

    .page-title {
        font-size: 44px;
        margin-bottom: 15px;
    }

    .page-subtitle {
        font-size: 17px;
    }

    .filter-section {
        padding: 35px 0;
        top: 65px;
    }

    .filter-bar {
        gap: 10px;
    }

    .filter-btn {
        padding: 11px 24px;
        font-size: 14px;
    }

    .products-list {
        padding: 70px 0 100px;
    }

    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .product-badge-corner {
        top: 15px;
        right: 15px;
        padding: 7px 14px;
        font-size: 10px;
    }

    .product-image-wrapper {
        margin-bottom: 20px;
        border-radius: 18px;
    }

    .btn-quick-view {
        padding: 13px 32px;
        font-size: 14px;
    }

    .product-category {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .product-item-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .product-item-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .price-main {
        font-size: 24px;
    }

    .price-old {
        font-size: 17px;
    }

    .cta-section {
        padding: 70px 0;
    }

    .cta-content h2 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 17px;
        margin-bottom: 35px;
    }

    .cta-buttons {
        gap: 18px;
    }

    .btn-cta-fb,
    .btn-cta-line {
        padding: 17px 42px;
        font-size: 15px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .page-title {
        font-size: 38px;
    }

    .products-grid-large {
        gap: 35px 25px;
    }

    .product-item-title {
        font-size: 18px;
    }

    .price-main {
        font-size: 22px;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

/* Mobile Portrait */
@media (max-width: 640px) {
    .page-header {
        padding: 50px 0 35px;
        margin-top: 65px;
    }

    .page-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .filter-section {
        padding: 25px 0;
        top: 60px;
    }

    .filter-bar {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 10px 22px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .products-list {
        padding: 50px 0 70px;
    }

    .products-grid-large {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .product-badge-corner {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .product-image-wrapper {
        margin-bottom: 18px;
        border-radius: 15px;
    }

    .product-quick-view {
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }

    .btn-quick-view {
        padding: 12px 30px;
        font-size: 14px;
        transform: translateY(0);
    }

    .product-category {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .product-item-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-item-desc {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .product-item-price {
        gap: 10px;
    }

    .price-main {
        font-size: 24px;
    }

    .price-old {
        font-size: 17px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn-cta-fb,
    .btn-cta-line {
        width: 100%;
        padding: 16px 35px;
        font-size: 15px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .filter-btn {
        padding: 9px 18px;
        font-size: 12px;
    }

    .product-item-title {
        font-size: 17px;
    }

    .price-main {
        font-size: 22px;
    }

    .price-old {
        font-size: 16px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-content p {
        font-size: 15px;
    }

    .btn-cta-fb,
    .btn-cta-line {
        padding: 15px 30px;
        font-size: 14px;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .page-title {
        font-size: 26px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .product-item-title {
        font-size: 16px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.6s ease forwards;
}

.product-item:nth-child(1) { animation-delay: 0.05s; }
.product-item:nth-child(2) { animation-delay: 0.1s; }
.product-item:nth-child(3) { animation-delay: 0.15s; }
.product-item:nth-child(4) { animation-delay: 0.2s; }
.product-item:nth-child(5) { animation-delay: 0.25s; }
.product-item:nth-child(6) { animation-delay: 0.3s; }
.product-item:nth-child(7) { animation-delay: 0.35s; }
.product-item:nth-child(8) { animation-delay: 0.4s; }
.product-item:nth-child(9) { animation-delay: 0.45s; }
.product-item:nth-child(10) { animation-delay: 0.5s; }
.product-item:nth-child(11) { animation-delay: 0.55s; }
.product-item:nth-child(12) { animation-delay: 0.6s; }

