/* ==========================================================================
   HOSS BY SASS - LUXURY PRODUCT DETAIL STYLES
   ========================================================================== */

/* --- Container & Layout --- */
.container-product {
    max-width: 1300px;
    margin: 120px auto 60px;
    padding: 0 40px;
    font-family: 'Open Sans', 'Montserrat', sans-serif;
    color: #111;
}

.product-detail-layout-new {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail-layout-new {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Image Gallery (Sticky & Scrolling) --- */
.product-gallery-new {
    position: sticky;
    top: 100px; /* Keeps images in view while scrolling long details */
}

.main-product-image-detail {
    width: 100%;
    height: auto;
    object-fit: cover;
    background-color: #f9f9f9;
}

.thumbnail-gallery-detail {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #ccc transparent;
    padding-bottom: 5px;
}

.thumbnail-gallery-detail::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery-detail::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

.thumbnail-image-detail {
    width: 80px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.thumbnail-image-detail:hover {
    opacity: 0.8;
}

.thumbnail-image-detail.active {
    opacity: 1;
    border-color: #111;
}

/* --- Product Info & Typography --- */
.product-info-new {
    display: flex;
    flex-direction: column;
}

.product-brand-detail {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 10px;
}

.product-title-detail {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 15px;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-price {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 30px;
}

.original-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 16px;
    margin-right: 10px;
}

.current-price {
    color: #111;
}

.current-price.discounted {
    color: #c0392b;
}

.discount-percentage-text {
    font-size: 12px;
    color: #c0392b;
    vertical-align: middle;
    margin-left: 5px;
    letter-spacing: 1px;
}

.sold-out-price {
    color: #888;
}

.description {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 30px;
}

/* --- Specifications Section --- */
.product-specifications {
    margin-bottom: 30px;
}

.specs-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #111;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.8;
}

.spec-label {
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    margin-right: 5px;
}

.characteristics-table {
    margin-top: 10px;
    background: #fafafa;
    border: 1px solid #eaeaea;
}

.characteristics-table td {
    padding: 8px 12px;
    border: 1px solid #eaeaea;
    font-size: 11px;
    text-align: left;
    color: #555;
}

/* --- Forms & Variants --- */
.options-container-detail {
    margin-bottom: 30px;
}

.form-group-detail {
    margin-bottom: 20px;
}

.form-group-detail label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group-detail select,
.form-group-detail input[type="number"],
.form-group-detail textarea {
    width: 100%;
    padding-left: 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    appearance: none;
    border-radius: 0; /* Remove iOS rounding */
}

/* Custom dropdown arrow */
.form-group-detail select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111111%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.form-group-detail select:focus,
.form-group-detail input:focus,
.form-group-detail textarea:focus {
    outline: none;
    border-color: #111;
}

/* --- Call to Action --- */
.actions-container-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.button-action-detail {
    flex-grow: 1;
    padding: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #111;
    text-align: center;
}

.primary-action {
    background-color: #111;
    color: #fff;
}

.primary-action:hover:not(:disabled) {
    background-color: #fff;
    color: #111;
}

.primary-action:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    color: #fff;
}

/* --- Size Guide Toggle --- */
.size-guide {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.size-guide h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.size-guide-toggle {
    background: none;
    border: none;
    text-decoration: underline;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
}

.size-guide-toggle:hover {
    color: #111;
}

.size-guide-content {
    display: none;
}

.size-guide-content.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.size-guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 12px;
}

.size-guide-content th,
.size-guide-content td {
    padding: 10px;
    border: 1px solid #eaeaea;
    text-align: center;
}

.size-guide-content th {
    background-color: #fafafa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Loading/Error States */
.loading-message, .error-message {
    text-align: center;
    padding: 60px 20px;
    font-weight: 300;
    letter-spacing: 1px;
}
.error-message h1 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
}