/* product-details.css - NEW FILE */
@import url("shared.css");

/* Page Spacing for Sticky Header */
.page-top-padding {
    height: 80px; /* Match header height */
    width: 100%;
}
@media (max-width: 768px) {
    .page-top-padding {
        height: 60px;
    }
}

/* Product Details Hero/Breadcrumb Section */
.product-details-hero-section {
    background-color: var(--color-light); /* Lighter background */
    padding: var(--spacing-lg) 0 var(--spacing-md); /* Less vertical padding */
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
}

.product-details-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.product-details-hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.product-details-category {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
}
.product-details-category span {
    font-weight: 600;
    color: var(--color-secondary);
}

/* Product Main Details Section */
.product-main-details {
    background-color: white; /* White card background */
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.product-details-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow columns to stack */
    gap: var(--spacing-xl); /* Space between image and info */
    justify-content: center;
    max-width: 1100px; /* Max width for content */
    margin: 0 auto;
    background-color: var(--color-light); /* Background for the wrapper card */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.product-details-image {
    flex: 1;
    min-width: 350px; /* Min width for image column */
    max-width: 50%; /* Max width to prevent image from being too wide */
    text-align: center;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.product-details-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
}

.product-details-info {
    flex: 1;
    min-width: 350px; /* Min width for info column */
    max-width: 45%; /* Max width for info column */
    padding: var(--spacing-md);
}

.info-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-align: left; /* Align text left */
}

.info-description {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.info-price {
    font-family: var(--font-alt);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.info-specs {
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0,0,0,0.05); /* Separator */
}
.info-specs h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}
.info-specs ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-sm);
}
.info-specs ul li {
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 5px;
}
.info-specs ul li strong {
    color: var(--color-primary);
}
.specs-note {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    opacity: 0.8;
    font-style: italic;
    margin-top: var(--spacing-sm);
}

.info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: flex-start; /* Align buttons to the left */
}

/* No Product Found Section */
.no-product-found {
    text-align: center;
    padding: var(--spacing-xl);
    font-size: 1.2rem;
    color: var(--color-text-dark);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    margin-top: var(--spacing-lg);
}
.no-product-found .button {
    margin-top: var(--spacing-md);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-details-hero-title { font-size: 3rem; }
    .product-details-image, .product-details-info {
        min-width: 45%; /* Adjust min-width for larger tablets */
    }
    .info-title { font-size: 2.2rem; }
    .info-description { font-size: 1rem; }
    .info-price { font-size: 1.8rem; }
    .info-specs h3 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .product-details-hero-section { padding: var(--spacing-lg) 0 var(--spacing-sm); }
    .product-details-hero-title { font-size: 2.5rem; }
    .product-details-category { font-size: 1rem; }
    .product-details-wrapper {
        flex-direction: column; /* Stack columns vertically */
        padding: var(--spacing-md);
        gap: var(--spacing-lg);
    }
    .product-details-image, .product-details-info {
        min-width: unset; /* Remove min-width to allow full width */
        max-width: 100%;
        width: 100%;
    }
    .info-title { text-align: center; font-size: 2rem; }
    .info-description { text-align: center; }
    .info-price { text-align: center; font-size: 1.6rem; }
    .info-specs h3 { text-align: center; font-size: 1.2rem; }
    .info-specs ul { text-align: left; padding-left: var(--spacing-md); }
    .info-actions { justify-content: center; } /* Center buttons on mobile */
}

@media (max-width: 480px) {
    .product-details-hero-title { font-size: 1.8rem; }
    .product-details-category { font-size: 0.9rem; }
    .info-title { font-size: 1.6rem; }
    .info-description { font-size: 0.9rem; }
    .info-price { font-size: 1.4rem; }
    .info-specs h3 { font-size: 1rem; }
    .info-specs ul li { font-size: 0.9rem; }
    .specs-note { font-size: 0.8rem; }
}
