@import url('mobile.css');

#product-content {
    width: 100%;
    height: 100%;
    position: fixed;
    padding-top: 120px;
}

.product-hero {
    position: fixed;
    top: 50%;
    left: 220px;
    width: 600px;
    height: 600px;
    border-radius: 5px;
    transform: translateY(-50%);
    box-shadow: var(--primary-shadow);
    background-size: cover;
}

#product-video {
    display: none;
    cursor: pointer;
}

#product-image-previews {
    width: 140px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 200px);
}

.product-image-preview {
    width: 100px;
    height: 100px;
    margin: 20px;
    border-radius: 5px;
    background-size: cover;
    transition: 400ms cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: var(--primary-shadow);
    object-fit: cover;
}

.product-image-preview:hover {
    transform: scale(1.1);
}

.product-info {
    position: fixed;
    width: calc(100vw - 1000px);
    left: 910px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

#product-title {
    font-size: 48px;
}

#product-description {
    text-align: justify;
}

#product-price {
    font-size: 64px;
}

.purchase-info {
    background-color: var(--background-secondary);
    width: calc(100% - 80px);
    height: max-content;
    border-radius: 5px;
    padding: 40px;
    border: solid 1px var(--divider);
    box-shadow: var(--primary-shadow);
}

.purchase-info-centre {
    display: flex;
    align-items: center;
    position: relative;
    top: -20px;
    flex-wrap: wrap;
}

#price {
    font-size: 72px;
    font-family: 'Arial';
}

.purchase-text {
    margin-left: auto;
}

.material-symbols-outlined {
    user-select: none;
    position: relative;
    top: 5px;
    right: 5px;
}

.purchase-button {
    background-color: var(--primary);
    border: solid 1px var(--divider);
    text-align: center;
    position: relative;
    padding: 20px;
    color: var(--background-secondary);
    font-weight: bold;
    top: 10px;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
    box-shadow: var(--primary-shadow);
}

.purchase-added {
    background-color: var(--background);
    cursor: not-allowed;
    color: var(--text-secondary);
    font-weight: normal;
    border: none;
    font-style: italic;
    box-shadow: inset 0 0 10px 0 black;
}

.rating-container {
    font-size: 72px;
}

.star {
    color: var(--primary);
}

.review-container {
    background-color: var(--background);
    padding-bottom: 20px;
}

.rating-open>.material-symbols-outlined {
    font-weight: bold;
    margin-top: -10px;
}

.rating-open {
    margin-left: 30px;
    width: calc(100% - 260px);
    background-color: var(--background-secondary);
    color: var(--text);
}

#stock-alert {
    color: var(--error);
    text-decoration: underline;
    user-select: none;
    display: none;
}