/* product-page-test.css */

.product-detail-page {
    /* Change this value to override the background color for this page only */
    background-color: #0b090a;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    min-height: 80vh;
}

/* Image Section */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-image-wrapper {
    background-color: #0b090a;
    width: 100%;
    aspect-ratio: 1 / 1.3;
    /* Matches Store & Admin (200/260) */
    overflow: hidden;
    position: relative;
    display: block;
    /* Changed from flex */
    margin-top: 60px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed from contain */
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 50% 50%;

    /* Default variables */
    --scale: 1;
    --off-x: 0%;
    --off-y: 0%;

    transform: translate(calc(-50% + var(--off-x)), calc(-50% + var(--off-y))) scale(var(--scale));
}

/* Info Section */
.product-info-panel {
    position: sticky;
    top: 120px;
    height: fit-content;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.breadcrumbs {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.product-title {
    font-family: 'Hiragino Kaku Gothic Std', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
    opacity: 0.9;
}

.product-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.add-to-bag-btn {
    background-color: #671f21;
    color: #f3f3f3;
    /* Burgundy text on white button */
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    padding: 18px 0;
    width: 100%;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.add-to-bag-btn:hover {
    opacity: 0.9;
}

.shipping-banner {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    margin-top: 60px;
    margin-bottom: 60px;
    /* Breathing room before accordion */
    opacity: 0.8;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

/* Accordion Styles */
.product-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    text-align: left;
    color: #f3f3f3;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-header .icon {
    font-weight: 300;
    font-size: 1.2rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-inner {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    color: #ccc;
}

/* Specific text styling in accordion */
.content-inner p {
    margin-bottom: 1rem;
}

.content-inner ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-info-panel {
        position: static;
        padding-top: 5px;
    }

    .main-image-wrapper {
        aspect-ratio: 1 / 1.3;
        max-height: 350px;
        margin-top: 0;
        overflow: hidden;
    }

    .main-image {
        /* Keep framing system active on mobile */
        width: 100%;
        height: 130%;
        object-fit: contain;
    }

    .product-images {
        gap: 5px;
    }

    .product-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .breadcrumbs {
        margin-bottom: 10px;
    }

    .product-description {
        margin-bottom: 15px;
    }

    .product-price {
        margin-bottom: 15px;
    }

    .shipping-banner {
        margin-top: 25px;
        margin-bottom: 25px;
        font-size: 1rem;
    }
}

/* Cart Icon Trigger (Moved from inline) */
.pd-cart-trigger {
    /* Tweaking Variables */
    --cart-icon-size: 50px;
    /* Size of the background box */
    --cart-icon-top: 20px;
    /* Top spacing */
    --cart-icon-right: 20px;
    /* Right spacing */
    --cart-svg-width: 24px;
    /* Width of usage SVG */

    position: absolute;
    top: var(--cart-icon-top);
    right: var(--cart-icon-right);
    width: var(--cart-icon-size);
    height: var(--cart-icon-size);
    background-color: #671f21;
    /* Requested background color */
    border-radius: 0;
    /* Sharp edges as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: #f3f3f3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pd-cart-trigger svg {
    width: var(--cart-svg-width);
    height: auto;
    display: block;
    /* Removes extra space below inline svg */
}

.pd-cart-trigger:hover {
    transform: translateY(-2px);
    /* Subtle lift instead of scale */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .pd-cart-trigger {
        --cart-icon-size: 44px;
        --cart-icon-top: 20px;
        --cart-icon-right: 20px;
        --cart-svg-width: 20px;
    }
}