/*--------------------------------------------------------------
# Collection & Category & Product Pages
--------------------------------------------------------------*/

/* Collection Categories Section */
.collection-categories {
    padding: 80px 0 100px;
    background-color: #f8f8f8;
}

.collection-categories .section-title {
    margin-bottom: 60px;
}

.collection-categories .section-title__tagline {
    font-size: 14px;
    color: var(--thm-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.collection-categories .section-title__title {
    font-size: 42px;
    font-weight: 400;
    color: var(--thm-black);
    font-family: var(--reey-font);
}

/* Category Grid */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.category-item {
    text-align: center;
    max-width: 200px;
    transition: all 0.3s ease;
}

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

.category-item__img {
    width: 180px;
    height: 220px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-item:hover .category-item__img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.category-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-item:hover .category-item__img img {
    transform: scale(1.05);
}

.category-item__title {
    margin: 0;
}

.category-item__title a {
    font-family: var(--reey-font);
    font-size: 28px;
    color: var(--thm-black);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-item:hover .category-item__title a {
    color: var(--thm-primary);
}

/* Category Products Section */
.category-products {
    padding: 80px 0 100px;
    background-color: #fff;
}

.category-products .section-title {
    margin-bottom: 60px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.product-card__img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.08);
}

.product-card__content {
    padding: 25px;
}

.product-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card__title a {
    color: var(--thm-black);
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-card:hover .product-card__title a {
    color: var(--thm-primary);
}

.product-card__text {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Product Detail Section */
.product-detail {
    padding: 80px 0 100px;
}

.product-detail__gallery {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.product-detail__thumbs-container {
    flex: 0 0 120px;
    max-height: 600px;
}

.product-thumbs-slider {
    height: 600px;
}

.product-thumbs-slider .swiper-wrapper {
    flex-direction: column;
}

.product-thumbs-slider .swiper-slide {
    height: auto !important;
    margin-bottom: 15px;
}

.product-detail__thumb {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.product-detail__thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-detail__thumb:hover::after {
    opacity: 1;
}

.product-thumbs-slider .swiper-slide-thumb-active .product-detail__thumb {
    border-color: var(--thm-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-thumbs-slider .swiper-slide-thumb-active .product-detail__thumb::after {
    opacity: 0;
}

.product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail__thumb:hover img {
    transform: scale(1.1);
}

.product-detail__main-img-wrapper {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-main-slider {
    height: 600px;
}

.product-main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__main-img {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail__main-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.product-detail__main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-detail__main-img a:hover img {
    transform: scale(1.05);
}

/* Swiper Navigation Buttons - Custom Style */
.product-main-slider .swiper-button-next,
.product-main-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--thm-primary);
    border-radius: 50%;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-detail__main-img-wrapper:hover .swiper-button-next,
.product-detail__main-img-wrapper:hover .swiper-button-prev {
    opacity: 1;
}

.product-main-slider .swiper-button-next:hover,
.product-main-slider .swiper-button-prev:hover {
    background: var(--thm-black);
    transform: scale(1.1);
}

.product-main-slider .swiper-button-next::after,
.product-main-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.product-main-slider .swiper-button-next.swiper-button-disabled,
.product-main-slider .swiper-button-prev.swiper-button-disabled {
    opacity: 0.3;
}

.product-detail__zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-detail__main-img-wrapper:hover .product-detail__zoom-hint {
    opacity: 1;
}

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

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

.product-detail__title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--thm-black);
    font-family: var(--reey-font);
    line-height: 1.3;
}

.product-detail__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.product-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 15px;
}

.product-detail__meta-item i {
    color: var(--thm-primary);
    font-size: 18px;
}

.product-detail__description {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f8f8;
    border-left: 4px solid var(--thm-primary);
    border-radius: 5px;
}

.product-detail__content {
    line-height: 1.8;
    color: #444;
}

.product-detail__content h1,
.product-detail__content h2,
.product-detail__content h3,
.product-detail__content h4,
.product-detail__content h5,
.product-detail__content h6 {
    margin-bottom: 20px;
    margin-top: 30px;
    color: var(--thm-black);
    font-weight: 600;
}

.product-detail__content h2 {
    font-size: 28px;
}

.product-detail__content h3 {
    font-size: 24px;
}

.product-detail__content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.product-detail__content ul,
.product-detail__content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.product-detail__content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.product-detail__content ul li {
    position: relative;
    padding-left: 25px;
}

.product-detail__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--thm-primary);
    border-radius: 50%;
}

.product-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.product-detail__content blockquote {
    border-left: 4px solid var(--thm-primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

/* Sidebar */
.product-sidebar {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
}

.product-sidebar__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--thm-primary);
    color: var(--thm-black);
}

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

.product-sidebar__categories li {
    margin-bottom: 12px;
}

.product-sidebar__categories li:last-child {
    margin-bottom: 0;
}

.product-sidebar__categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border-radius: 5px;
    color: var(--thm-black);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-sidebar__categories a:hover,
.product-sidebar__categories li.active a {
    background: var(--thm-primary);
    color: #fff;
}

.product-sidebar__categories a i {
    font-size: 12px;
}

.product-sidebar__contact {
    background: var(--thm-primary);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.product-sidebar__contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-sidebar__contact-icon i {
    font-size: 28px;
    color: #fff;
}

.product-sidebar__contact-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
}

.product-sidebar__contact-phone {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.product-sidebar__contact-phone:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 991px) {
    .product-detail__info {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .collection-categories,
    .category-products,
    .product-detail {
        padding: 60px 0 80px;
    }

    .category-grid {
        gap: 25px;
    }

    .category-item {
        max-width: 150px;
    }

    .category-item__img {
        width: 140px;
        height: 180px;
    }

    .category-item__title a {
        font-size: 22px;
    }

    .collection-categories .section-title__title {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-card__img {
        height: 200px;
    }

    .product-detail__title {
        font-size: 28px;
    }

    /* Mobile: Stack gallery vertically */
    .product-detail__gallery {
        flex-direction: column-reverse;
    }

    .product-detail__thumbs-container {
        flex: 0 0 auto;
        max-height: none;
        margin-top: 20px;
    }

    .product-thumbs-slider {
        height: auto !important;
    }

    .product-thumbs-slider .swiper-wrapper {
        flex-direction: row !important;
    }

    .product-thumbs-slider .swiper-slide {
        height: 100px !important;
        width: 100px !important;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .product-detail__main-img-wrapper {
        width: 100%;
    }

    .product-detail__main-img,
    .product-main-slider {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .category-grid {
        gap: 20px;
    }

    .category-item {
        max-width: 130px;
    }

    .category-item__img {
        width: 120px;
        height: 150px;
    }

    .category-item__title a {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail__main-img,
    .product-main-slider {
        height: 300px;
    }

    .product-thumbs-slider .swiper-slide {
        height: 80px !important;
        width: 80px !important;
        margin-right: 10px;
    }

    .product-detail__thumb {
        width: 80px;
        height: 80px;
    }
}
