
/* =========================================
   LANKACNC - PRODUCT DETAILS
   Screenshot Matching Design
========================================= */

* {
    box-sizing: border-box;
}

body {
    background: #0f172a;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
}

/* PRODUCT CONTAINER */

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;

    max-width: 1200px;
    margin: 10px auto;
    padding: 26px;

    background: #1e293b;
    border: 1px solid #263449;
    border-radius: 14px;

    color: #ffffff;
}

/* PRODUCT IMAGE */

.product-details-image {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 327px;

    background: #ffffff;
    border-radius: 11px;
    padding: 15px;

    overflow: hidden;
}

.product-details-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.product-details-image img:hover {
    transform: scale(1.04);
}

/* PRODUCT INFORMATION */

.product-details-info {
    width: 100%;
}

.product-details-info h1 {
    font-size: 25px;
    line-height: 1.4;

    margin: 0 0 12px;

    color: #ffffff;
    font-weight: 700;
}

/* CATEGORY */

.product-category {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;

    text-transform: none;
    margin: 10px 0;
}

/* RATING */

.product-rating {
    color: #facc15;
    font-size: 15px;

    margin: 12px 0;
    letter-spacing: 1px;
}

/* PRICE */

.product-details-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 15px 0;
}

.product-details-price del {
    color: #94a3b8;
    font-size: 11px;
}

.product-details-price strong {
    color: #38bdf8;
    font-size: 20px;
    font-weight: 700;
}

/* STOCK */

.product-stock {
    margin: 15px 0;

    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.product-stock.out-of-stock {
    color: #ef4444;
}

/* PRODUCT DESCRIPTION */

.product-description {
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.7;
}

.product-description h3 {
    color: #38bdf8;
    font-size: 16px;
    margin: 15px 0 8px;
}

.product-description p {
    margin-bottom: 12px;
}

/* KEY FEATURES */

.product-feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.product-feature-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 12px;
}

.product-feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}
/* PRODUCT MANUALS */

.product-manuals {
    margin-top: 15px;
    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;

    color: #ffffff;
}

.product-manuals h3 {
    display: none;
}

/* MANUAL ITEM */

.manual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
    margin: 7px 0;
    padding: 0;

    background: transparent;
    border: none;
}

.manual-item:hover {
    transform: none;
    border-color: transparent;
}

.manual-info {
    display: none;
}

/* PDF ICON */

.manual-icon {
    display: none;
}

/* MANUAL BUTTON */

.manual-download,
.product-manuals > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 9px 12px;

    background: #dc202e;
    color: #ffffff !important;

    border: none;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition: 0.3s;
}

.manual-download:hover,
.product-manuals > a:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* QUANTITY */

.product-quantity {
    margin: 18px 0 8px;
}

.product-quantity label {
    display: block;

    color: #ffffff;
    font-size: 10px;
    font-weight: 600;

    margin-bottom: 5px;
}

.product-quantity input {
    width: 73px;
    height: 19px;

    padding: 2px 5px;

    background: #ffffff;
    color: #111827;

    border: 1px solid #94a3b8;
    border-radius: 0;

    font-size: 11px;
    outline: none;
}

/* QUANTITY PLUS / MINUS BUTTONS */

.product-quantity button {
    width: 19px;
    height: 19px;

    padding: 0;

    background: #e2e8f0;
    color: #334155;

    border: 1px solid #94a3b8;
    border-radius: 0;

    font-size: 12px;
    cursor: pointer;
}

.product-quantity button:hover {
    background: #38bdf8;
    color: #ffffff;
}

/* SELECTED TOTAL PRICE */

.product-total,
.total-price,
.selected-total {
    color: #16a34a;
    font-size: 15px;
    font-weight: 700;

    margin: 8px 0;
}

/* ADD TO CART */

#details-add-cart {
    display: block;

    width: 100%;
    max-width: 100%;

    padding: 10px 15px;
    margin: 0;

    background: #38bdf8;
    color: #0f172a;

    border: none;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.3s;
}

#details-add-cart:hover {
    background: #0ea5e9;
    color: #ffffff;

    transform: translateY(-2px);
}

#details-add-cart:disabled {
    background: #64748b;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
}

/* PRODUCT OPTIONS */

.product-option-box {
    margin: 15px 0;
    padding: 12px;

    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 7px;
}

.product-option-box label {
    display: block;
    margin-bottom: 8px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.product-option-box select {
    width: 100%;
    max-width: 350px;

    padding: 9px;

    background: #1e293b;
    color: #ffffff;

    border: 1px solid #475569;
    border-radius: 5px;

    outline: none;
}

.product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-options button,
.option-btn {
    padding: 8px 13px;

    background: #1e293b;
    color: #cbd5e1;

    border: 1px solid #475569;
    border-radius: 5px;

    cursor: pointer;
}

.product-options button:hover,
.option-btn:hover,
.product-options button.active,
.option-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
}

/* SPECIFICATIONS */

.product-specifications {
    margin-top: 25px;
    padding: 20px;

    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
}

.product-specifications h3 {
    color: #38bdf8;
    margin-bottom: 15px;
}

.product-specifications table {
    width: 100%;
    border-collapse: collapse;
}

.product-specifications td {
    padding: 10px;
    border-bottom: 1px solid #334155;

    color: #cbd5e1;
    font-size: 13px;
}

.product-specifications td:first-child {
    color: #ffffff;
    font-weight: 600;
    width: 40%;
}

/* ERROR */

.product-error {
    text-align: center;
    padding: 50px 20px;
    color: #ffffff;
}

.product-error a {
    color: #38bdf8;
}

/* DISCOUNT */

.card {
    position: relative;
}

.discount {
    position: absolute;
    top: 15px;
    left: 15px;

    background: #ef4444;
    color: #ffffff;

    padding: 7px 12px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

/* TABLET */

@media (max-width: 900px) {

    .product-details {
        gap: 20px;
        margin: 15px;
        padding: 20px;
    }

    .product-details-image {
        height: 300px;
    }

    .product-details-info h1 {
        font-size: 22px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .product-details {
        grid-template-columns: 1fr;
        gap: 20px;

        margin: 12px;
        padding: 15px;
    }

    .product-details-image {
        height: 280px;
        padding: 12px;
    }

    .product-details-info h1 {
        font-size: 23px;
    }

    .product-details-price strong {
        font-size: 20px;
    }

    #details-add-cart {
        width: 100%;
    }

    .product-specifications {
        padding: 15px;
    }
}

/* SMALL MOBILE */

@media (max-width: 480px) {

    .product-details {
        margin: 8px;
        padding: 12px;
    }

    .product-details-image {
        height: 230px;
    }

    .product-details-info h1 {
        font-size: 20px;
    }

    .manual-download,
    .product-manuals > a {
        font-size: 10px;
        padding: 9px 10px;
    }

}
