/* Product Detail Page Styles */

.product-detail-page {
    background: var(--secondary-color, #f5f5f5);
}

.product-detail-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .product-detail-container {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .product-detail-container {
        padding: 5rem 2rem;
    }
}


/* Product Main Card */
.product-main-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .product-main-card {
        gap: 2rem;
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .product-main-card {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 2rem 2.5rem;
        border-radius: 1.5rem;
    }
}

.product-main-image-wrapper {
    background: var(--secondary-color, #f5f5f5);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .product-main-image-wrapper {
        border-radius: 1rem;
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .product-main-image-wrapper {
        border-radius: 1.25rem;
        padding: 2rem;
    }
}

.product-main-image {
    position: relative;
    width: 100%;
    max-width: 24rem;
    height: 280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .product-main-image {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .product-main-image {
        height: 420px;
    }
}

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

.product-main-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-main-info {
        gap: 1.5rem;
    }
}

.product-brand-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    font-weight: 600;
}

@media (min-width: 640px) {
    .product-brand-label {
        font-size: 0.875rem;
    }
}

.product-title {
    font-size: 1.5rem;
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-weight: 700;
    margin: 0;
}

@media (min-width: 640px) {
    .product-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .product-title {
        font-size: 2.25rem;
    }
}

.product-overview-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #666;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .product-overview-label {
        font-size: 0.75rem;
    }
}

.product-overview-text {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .product-overview-text {
        font-size: 1rem;
    }
}

.product-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

@media (min-width: 640px) {
    .product-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-meta-item-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #666;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .product-meta-item-label {
        font-size: 0.75rem;
    }
}

.product-meta-item-value {
    font-size: 0.75rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .product-meta-item-value {
        font-size: 0.875rem;
    }
}

.product-meta-item-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-meta-item-link:hover {
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .product-actions {
        gap: 1rem;
    }
}

/* Product Facts Cards */
.product-facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .product-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-fact-card {
    background: white;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 0, 0), 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .product-fact-card {
        padding: 1.5rem;
    }
}

.product-fact-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #666;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .product-fact-label {
        font-size: 0.6875rem;
    }
}

.product-fact-value {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

@media (min-width: 640px) {
    .product-fact-value {
        font-size: 1.125rem;
    }
}

/* Product Item Card */
.product-item-card {
    background: white;
    border: 1px solid rgba(var(--primary-color-rgb, 0, 0, 0), 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-item-card-content {
    padding: 1rem;
}

@media (min-width: 640px) {
    .product-item-card-content {
        padding: 1.5rem;
    }
}

.product-item-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-item-grid {
        gap: 1.5rem;
    }
}

.product-item-grid-with-image {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .product-item-grid-with-image {
        grid-template-columns: 200px 1fr;
    }
}

.product-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--secondary-color, #f5f5f5);
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-item-image-wrapper {
        height: 192px;
        border-radius: 0.75rem;
    }
}

@media (min-width: 768px) {
    .product-item-image-wrapper {
        height: 192px;
    }
}

.product-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

@media (min-width: 640px) {
    .product-item-image-wrapper img {
        padding: 1rem;
    }
}

.product-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

@media (min-width: 640px) {
    .product-item-details {
        gap: 1rem;
    }
}

.product-item-description {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .product-item-description {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
}

.product-item-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .product-item-detail-row {
        font-size: 0.875rem;
    }
}

.product-item-detail-label {
    color: #666;
}

.product-item-detail-value {
    font-weight: 600;
}

/* Product Variants Section */
.product-variants-section {
    margin-bottom: 1.5rem;
}

.product-variants-title {
    font-size: 1.25rem;
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .product-variants-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.product-variants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-variants-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .product-variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product Logistics Card */
.product-logistics-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .product-logistics-card {
        padding: 1.5rem;
    }
}

.product-logistics-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #666;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .product-logistics-label {
        font-size: 0.6875rem;
        margin-bottom: 1.5rem;
    }
}

.product-logistics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .product-logistics-list {
        gap: 0.75rem;
    }
}

.product-logistics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .product-logistics-item {
        font-size: 0.875rem;
    }
}

.product-logistics-item:last-child {
    border-bottom: none;
}

.product-logistics-item-label {
    color: #666;
}

.product-logistics-item-value {
    font-weight: 600;
}

/* Related Products Section */
.related-products-section {
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .related-products-section {
        margin-top: 3rem;
    }
}

.related-products-header {
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .related-products-header {
        margin-bottom: 1.5rem;
    }
}

.related-products-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #666;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .related-products-label {
        font-size: 0.75rem;
    }
}

.related-products-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-weight: 700;
}

@media (min-width: 640px) {
    .related-products-title-row {
        font-size: 1.125rem;
    }
}

.related-products-view-all {
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.related-products-view-all:hover {
    color: var(--primary-color);
}

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

@media (min-width: 640px) {
    .related-products-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-product-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

@media (min-width: 640px) {
    .related-product-card {
        padding: 1.5rem;
    }
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 128px;
    background: var(--secondary-color, #f5f5f5);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .related-product-image-wrapper {
        height: 160px;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
}

.related-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

@media (min-width: 640px) {
    .related-product-image-wrapper img {
        padding: 1rem;
    }
}

.related-product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .related-product-name {
        font-size: 1.125rem;
    }
}

.related-product-category {
    font-size: 0.75rem;
    color: #666;
}

@media (min-width: 640px) {
    .related-product-category {
        font-size: 0.875rem;
    }
}

/* CTA Section */
.product-cta-section {
    background: var(--primary-color);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .product-cta-section {
        border-radius: 1.5rem;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .product-cta-section {
        border-radius: 1.875rem;
        padding: 2.5rem;
    }
}

.product-cta-title {
    font-size: 1.5rem;
    font-family: var(--font-headline, 'Montserrat', sans-serif);
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .product-cta-title {
        font-size: 1.875rem;
    }
}

.product-cta-text {
    font-size: 1rem;
    max-width: 48rem;
    margin: 0 auto 1rem;
    opacity: 0.8;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .product-cta-text {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
}

.product-cta-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .product-cta-actions {
        flex-direction: row;
    }
}

.product-cta-button {
    width: 100%;
}

@media (min-width: 640px) {
    .product-cta-button {
        width: auto;
    }
}

.product-cta-button-outline {
    background: transparent !important;
    color: white !important;
    border: 1px solid white !important;
}

.product-cta-button-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Accordion styles for mobile item cards */
.product-item-accordion {
    width: 100%;
}

.product-item-accordion-trigger {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

@media (min-width: 640px) {
    .product-item-accordion-trigger {
        padding: 1.5rem;
    }
}

.product-item-accordion-trigger:hover {
    background: rgba(0, 0, 0, 0.02);
}

.product-item-accordion-content {
    padding: 0 1.5rem 1rem;
}

@media (min-width: 640px) {
    .product-item-accordion-content {
        padding: 0 1.5rem 1.5rem;
    }
}

.product-item-accordion-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.product-item-accordion-icon.open {
    transform: rotate(180deg);
}

/* Hide accordion on desktop, show on mobile */
.product-item-accordion-mobile {
    display: block;
}

@media (min-width: 768px) {
    .product-item-accordion-mobile {
        display: none;
    }
}

.product-item-accordion-desktop {
    display: none;
}

@media (min-width: 768px) {
    .product-item-accordion-desktop {
        display: block;
    }
}
