/* ==============================
   PRODUCT PAGE STYLES
   ============================== */

/* ===== PRODUCT HEADER ===== */
.product-header {
    padding: 120px 0 30px;
    background-color: var(--bg-light);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-light);
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-light);
}

.main-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.75rem;
}

.thumbnail {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
    aspect-ratio: 1 / 1; /* Keep thumbnails square */
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.product-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-rating i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 0.2rem;
}

.rating-text {
    margin-left: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-description strong {
    color: var(--text-dark);
}

/* ===== PRODUCT FEATURES BOX ===== */
.product-features-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.product-features-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.7rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* ===== PRODUCT ACTIONS ===== */
.product-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(210, 180, 140, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.product-actions .btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.product-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.product-actions .btn i {
    transition: transform 0.3s ease;
}

.product-actions .btn:hover i {
    transform: scale(1.2);
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b4513 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.product-actions .btn-primary:hover {
    background: linear-gradient(135deg, #6b4513 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.35);
    border-color: #6b4513;
}

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #1fb855 100%);
    border-color: #25d366;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1fb855 0%, #128c3f 100%);
    border-color: #1fb855;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* ===== SPECIFICATIONS SECTION ===== */
.specifications-section {
    background-color: var(--bg-light);
}

.spec-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.spec-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.spec-card h3 i {
    margin-right: 0.7rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 0.8rem 0;
    font-size: 0.95rem;
}

.spec-table td:first-child {
    color: var(--text-light);
    font-weight: 500;
    width: 50%;
}

.spec-table td:last-child {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* ===== RELATED PRODUCTS ===== */
.product-card-small {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-small:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image-small {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background-color: var(--bg-light);
}

.product-image-small img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-small:hover .product-image-small img {
    transform: scale(1.1);
}

.product-content-small {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content-small h4 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.product-content-small p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .product-gallery {
        position: static;
        margin-bottom: 2rem;
        top: auto;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .product-header {
        padding: 100px 0 20px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .spec-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== FOOTER CONTACT ===== */
.footer-contact {
    font-size: 0.9rem;
    line-height: 2;
}

.footer-contact i {
    margin-right: 0.5rem;
}
