/* =============================================
   PRODUCTS PAGE STYLES - MINIMALIST DESIGN
   ============================================= */

/* --- General Styles --- */
.products-page {
    font-family: 'Inter', sans-serif;
    color: #2c2c2c;
}

/* --- Hero Section --- */
.products-hero {
    background: #fafafa;
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.products-hero h1 {
    font-family: 'Crimson Text', serif;
    font-size: 48px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #2c2c2c;
}

.products-hero p {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Products Content --- */
.products-content {
    padding: 60px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Filters --- */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    border-color: #2c2c2c;
    color: #2c2c2c;
}

.filter-btn.active {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #2c2c2c;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #fafafa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #2c2c2c;
    color: #fff;
    z-index: 1;
}

.product-info {
    padding: 20px;
}

.category {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-info h3 {
    font-family: 'Crimson Text', serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c2c2c;
    line-height: 1.4;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
    margin: 0 0 12px 0;
}

.product-description-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.views svg {
    color: #bbb;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn,
.page-number {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.page-btn:hover,
.page-number:hover {
    border-color: #2c2c2c;
    color: #2c2c2c;
}

.page-number.active {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

/* --- No Products --- */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products p {
    font-size: 18px;
    color: #888;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

.product-detail-page {
    padding: 40px 0 80px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2c2c2c;
}

.breadcrumb span {
    color: #ddd;
}

.back-to-products {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 32px;
}

.back-to-products:hover {
    color: #2c2c2c;
}

/* --- Product Detail --- */
.product-detail {
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 60px;
    margin-bottom: 80px;
}

/* --- Left Column: Gallery + Descriptions --- */
.product-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    margin-bottom: 12px;
    overflow: hidden;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e8e8e8;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-nav:hover {
    background: #fff;
    border-color: #2c2c2c;
}

.gallery-nav svg {
    color: #2c2c2c;
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumb {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb:hover,
.thumb.active {
    border-color: #2c2c2c;
}

/* --- Product Description Sections --- */
.product-description-section {
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

.description-title {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #2c2c2c;
}

.product-subtitle {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.product-main-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 24px 0;
    white-space: pre-wrap;
}

/* --- Description Subsections --- */
.description-subsection {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.subsection-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #2c2c2c;
}

/* --- Info Lists in Left Column --- */
.info-list-left {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list-left li {
    padding: 6px 0 6px 16px;
    position: relative;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.info-list-left li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c2c2c;
    font-weight: bold;
}

.policy-text {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding: 8px 0;
    white-space: pre-line;
}

/* --- Right Column: Product Info Detail --- */
.product-info-detail {
    padding: 0;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: transparent;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    border: none;
    font-weight: 500;
}

.product-info-detail h1 {
    font-family: 'Crimson Text', serif;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #2c2c2c;
    line-height: 1.2;
}

.product-detail-price {
    margin: 0 0 24px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #d32f2f;
}

.price-currency {
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f;
}

.product-short-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* --- Specifications Section --- */
.specs-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #2c2c2c;
    text-transform: none;
}

.specs-grid {
    display: grid;
    gap: 12px;
}

.spec-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 8px 0;
}

.spec-label {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.spec-value {
    color: #2c2c2c;
    font-size: 13px;
}

/* --- Info Sections (Meaning, Placement, Care) --- */
.info-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

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

.info-list li {
    padding: 5px 0 5px 14px;
    position: relative;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.info-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c2c2c;
    font-weight: bold;
}

/* --- Info Sections (Meaning, Placement, Care) --- */
.info-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

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

.info-list li {
    padding: 5px 0 5px 14px;
    position: relative;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.info-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c2c2c;
    font-weight: bold;
}

/* --- Contact Wrapper --- */
.contact-wrapper {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: #2c2c2c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 2px solid #2c2c2c;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 0 10px 0;
}

.cta-button:hover {
    background: #fff;
    color: #2c2c2c;
}

.cta-button svg {
    flex-shrink: 0;
}

.contact-helper {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* --- Related Products --- */
.related-products {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-products h2 {
    font-family: 'Crimson Text', serif;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 48px 0;
    color: #2c2c2c;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .product-detail {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .products-hero {
        padding: 60px 0 40px;
    }

    .products-hero h1 {
        font-size: 36px;
    }

    .products-hero p {
        font-size: 16px;
    }

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

    .product-info h3 {
        font-size: 18px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery-wrapper {
        gap: 24px;
    }

    .product-info-detail h1 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .description-title {
        font-size: 16px;
    }

    .product-subtitle {
        font-size: 14px;
    }

    .product-main-description p {
        font-size: 13px;
    }

    .section-title {
        font-size: 13px;
    }

    .spec-item {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }

    .spec-label,
    .spec-value {
        font-size: 12px;
    }

    .info-list li {
        font-size: 12px;
    }

    .thumbnails {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }

    .filters {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 28px;
    }

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

    .product-info-detail h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .product-description-section {
        padding: 20px;
    }

    .description-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .product-subtitle {
        font-size: 13px;
    }

    .product-main-description p {
        font-size: 12px;
    }

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

    .spec-item {
        grid-template-columns: 90px 1fr;
        gap: 10px;
        padding: 6px 0;
    }

    .spec-label,
    .spec-value {
        font-size: 11px;
    }

    .info-section {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .info-list li {
        font-size: 11px;
        padding: 4px 0 4px 12px;
    }

    .contact-wrapper {
        margin-top: 24px;
        padding-top: 24px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 12px;
    }

    .contact-helper {
        font-size: 11px;
    }

    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .gallery-nav {
        width: 32px;
        height: 32px;
    }

    .gallery-nav.prev {
        left: 8px;
    }

    .gallery-nav.next {
        right: 8px;
    }

    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }
}