/* Categories Page Specific Styles */

/* Shop by Category Section */
.shop-by-category {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--dark-gold);
}

/* .category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
} */

.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

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

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.learn-more-btn {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.learn-more-btn:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
}

/* Category Detail Section */
.category-detail {
    padding: 80px 0;
    background: var(--bg-cream);
}

.category-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.category-subcategories h3,
.category-stones h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.subcategory-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subcategory-item:hover {
    transform: translateY(-5px);
}

.subcategory-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

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

.subcategory-item:hover .subcategory-image img {
    transform: scale(1.1);
}

.subcategory-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.view-all-btn {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
}

.stones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stone-tag {
    background: var(--white);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stone-tag:hover {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
}

/* Best Sellers Section */
.best-sellers {
    padding: 80px 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid var(--dark-gold);
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

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

/* .product-card:hover .product-image img {
  transform: scale(1.1);
} */

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-category {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.view-details-btn {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .subcategory-image {
        width: 120px;
        height: 120px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stones-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-info {
        padding: 1rem;
    }

    .subcategory-image {
        width: 100px;
        height: 100px;
    }

    .stone-tag {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Product Detail Page Styles */
.product-detail {
    padding: 80px 0;
    background: var(--white);
}

.breadcrumb-product {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb-product a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-product a:hover {
    color: var(--primary-gold);
}

.breadcrumb-product span {
    color: var(--text-primary);
    font-weight: 500;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-product-image {
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-info-section {
    padding: 2rem 0;
}

.product-info-section h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-category {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-details {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: 600;
    color: var(--text-primary);
}

.value {
    color: var(--text-secondary);
}

.availability {
    margin-bottom: 2rem;
}

.status {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.status.available {
    background: #d4edda;
    color: #155724;
}

.status.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.product-description {
    margin-bottom: 3rem;
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.stock-info {
    font-weight: 600;
    color: var(--primary-gold) !important;
}

.product-actions {
    text-align: left;
}

.inquire-btn {
    background: var(--primary-gold);
    color: var(--white);
    border: 2px solid var(--primary-gold);
    padding: 0.9rem 1.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.5s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.inquire-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.5s ease;
    z-index: -1;
}

.inquire-btn:hover::before {
    left: 0;
}

.inquire-btn:hover {
    background: transparent;
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.inquire-btn.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* Related Products Section */
.related-products {
    padding: 80px 0;
    background: var(--bg-cream);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.related-product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--dark-gold);
}

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

.related-product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.related-product-info {
    padding: 1rem;
    text-align: center;
}

.related-product-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.related-product-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.product-pagination {
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-gold);
}

/* Mobile Responsive for Product Detail */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-product-image {
        height: 300px;
    }

    .product-info-section h1 {
        font-size: 2rem;
    }

    .inquire-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

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

    .product-actions {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .main-product-image {
        height: 250px;
    }

    .product-info-section h1 {
        font-size: 1.8rem;
    }

    .product-actions {
        text-align: left;
    }
}
