/* Robbie Rose Gallery - Listing Page Specific Styles */
/* Isolated styles for purchase button and drawer on listing pages */

/* --- Request Form Text Area Styling --- */
.request-textarea {
    width: 100%; /* Full width for responsive design */
    height: 120px; /* Fixed height for classic bubble look */
    border: 2px solid #00bfff; /* Blue border matching purchase button */
    border-radius: 20px; /* More rounded for bubble effect */
    padding: var(--space-md);
    font-family: var(--secondary-font); /* Use serif for a more classic feel */
    font-size: 16px; /* Larger font size */
    color: var(--color-silver-800);
    background-color: #ffffff; /* White background for bubble look */
    resize: none; /* Disable user resizing */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Ensure padding and border are included in height */
}

.request-textarea:focus {
    outline: none;
    border-color: #00bfff; /* Maintain blue border */
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.3); /* Enhanced blue glow */
}

/* Placeholder styling */
.request-textarea::placeholder {
    color: #00bfff; /* Blue color */
    opacity: 0.5; /* Low transparency */
    font-size: 18px; /* Larger font size for placeholder */
    font-family: var(--primary-font); /* Use Avril for the placeholder */
    font-weight: var(--weight-light);
}

/* Base "Avril" Purchase Button Style for all screen sizes */
.single-listing .purchase-text-btn {
    display: inline-block;
    background-color: #f0f0f0; /* Light gray container */
    color: #00bfff; /* Light aqua/bright blue font */
    border: 1px solid #ccc; /* Tight border */
    border-radius: 50px; /* Max rounding */
    font-weight: 500; /* Medium weight */
    font-family: 'Avril Fatface', Arial, sans-serif;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
    transition: none; /* Prevent transitions */
    margin: 0; /* No margins */
}

/* Mobile-specific overrides to fight browser defaults (e.g., iOS Safari) */
@media (max-width: 768px) {
    .single-listing .purchase-text-btn {
        -webkit-appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
        appearance: none !important;
        background-color: #f0f0f0 !important;
        color: #00bfff !important;
        border: 1px solid #ccc !important;
        border-radius: 50px !important;
        font-weight: 500 !important;
        font-family: 'Avril Fatface', Arial, sans-serif !important;
        padding: 8px 16px !important;
        margin: 0 !important;
    }
}

/* Standalone Purchase Button Container */
.purchase-button-container {
    display: flex;
    justify-content: flex-start; /* Left-align within the product details column */
    align-items: center;
    width: 100%;
    margin: 20px 0; /* Vertical centering between elements */
}

/* Legacy Wrapper for integration with title (if used) */
.purchase-button-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl); /* Increased space below the title/button */
}

/* Responsive Polish for extra narrow screens */
@media (max-width: 480px) {
    .purchase-button-wrapper {
        flex-direction: column; /* Stack if too narrow */
        align-items: stretch;
    }
    .single-listing .purchase-text-btn {
        width: 100%; /* Allow full on tiny screens */
        margin-top: var(--space-sm);
        justify-content: center;
    }
}

/* --- Production Details Drawer Styles --- */
.production-drawer-wrapper {
    max-width: 100%; /* Take full width of the container */
    margin: var(--space-2xl) 0; /* Vertical spacing */
}

.accordion-item {
    border-bottom: 1px solid var(--color-silver-200);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    padding: var(--space-md) 0;
    font-family: var(--primary-font);
    font-size: var(--font-lg);
    font-weight: var(--weight-light);
    color: var(--color-silver-800);
}

.accordion-icon {
    font-family: monospace;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg) scale(1.2);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--color-silver-600);
}

.accordion-content p {
    padding-bottom: var(--space-md);
}

.quicklink {
    display: inline-block;
    color: var(--color-silver-800);
    font-weight: var(--weight-medium);
    text-decoration: none;
    border-bottom: 1px solid var(--color-silver-300);
    padding-bottom: 2px;
    margin-bottom: var(--space-md);
    transition: border-color 0.2s ease;
}

.quicklink:hover {
    border-color: var(--color-silver-800);
}

/* --- Specifications Table Styling --- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
}

.spec-table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-silver-200);
    font-size: var(--font-sm);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table td:first-child {
    color: var(--color-silver-500);
    width: 40%;
}

/* Large screens (1024px+): Enhance grid and button layouts */
@media (min-width: 1024px) {
    .product-layout-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two-column layout */
        gap: var(--space-xl);
        align-items: start;
    }

    .single-listing .purchase-text-btn {
        padding: 12px 20px; /* Slightly larger buttons */
        font-size: 1.1rem;
    }
}

/* Extra large screens (1200px+): Optimize for ultra-wide displays */
@media (min-width: 1200px) {
    .product-layout-grid {
        max-width: 1400px; /* Cap width to prevent excessive stretching */
        margin: 0 auto; /* Center the grid */
        gap: var(--space-2xl);
    }

    .single-listing .purchase-text-btn {
        padding: 14px 24px; /* Even larger for prominence */
        font-size: 1.2rem;
    }
}
