
/* =====================================
   SAIGA PRODUCT DETAILS & CART
   BLACK + GOLD THEME
===================================== */

.pd-page {
    --gold: #F2C879;
    --black: #090909;
    --card: #151515;
    --border: rgba(242,200,121,.18);
    --muted: #aaa;

    background: var(--black);
    color: #f5f5f5;
    min-height: 70vh;
    font-family: 'DM Sans', sans-serif;
}

.pd-page * {
    box-sizing: border-box;
}

.pd-page a {
    text-decoration: none;
}

.pd-container {
    width: min(1250px, 94%);
    margin: auto;
    padding: 35px 0 75px;
}


/* BREADCRUMB */

.pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #777;
    margin-bottom: 35px;
}

.pd-breadcrumb a {
    color: #aaa;
}

.pd-breadcrumb a:hover,
.pd-breadcrumb strong {
    color: var(--gold);
}


/* PRODUCT LAYOUT */

.pd-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 65px;
    align-items: start;
}


/* GALLERY */

.pd-gallery {
    min-width: 0;
}

.pd-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 650px;
    background: #181818;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.pd-main-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pd-image-featured {
    position: absolute;
    top: 17px;
    left: 17px;
    background: var(--gold);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    padding: 8px 13px;
    letter-spacing: 1px;
}

.pd-no-image {
    height: 100%;
    display: grid;
    place-items: center;
    color: #999;
}

.pd-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 5px;
}

.pd-thumb {
    width: 80px;
    height: 95px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #383838;
    background: #191919;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.pd-thumb.active {
    border: 2px solid var(--gold);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* INFORMATION */

.pd-information {
    min-width: 0;
    padding-top: 10px;
}

.pd-brand {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.pd-information h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.25;
    margin: 13px 0;
}

.pd-sku {
    color: #888;
    font-size: 12px;
    margin-bottom: 22px;
}

.pd-price-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pd-price-box strong {
    font-size: 29px;
    color: var(--gold);
}

.pd-price-box del {
    color: #888;
    font-size: 16px;
}

.pd-discount {
    color: #fff;
    background: #76352c;
    padding: 6px 9px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 700;
}

.pd-description {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.9;
    margin: 22px 0;
}


/* FORM */

.pd-cart-form {
    margin-top: 25px;
}

.pd-option-group {
    margin-bottom: 22px;
}

.pd-option-group > label {
    display: block;
    color: #eee;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 11px;
}

.pd-option-group select {
    width: 100%;
    padding: 14px;
    background: #171717;
    border: 1px solid #41382a;
    border-radius: 4px;
    color: #fff;
    outline: none;
    font-size: 13px;
}

.pd-option-group select:focus {
    border-color: var(--gold);
}

.pd-option-group select option {
    background: #171717;
    color: #fff;
}

.pd-option-group > small {
    display: block;
    margin-top: 9px;
    color: #999;
    font-size: 11px;
}

.pd-stock-available {
    color: #7ed69b;
    font-size: 13px;
}


/* QUANTITY */

.pd-quantity-control {
    display: inline-flex;
    align-items: center;
    height: 43px;
    border: 1px solid #484033;
    border-radius: 4px;
    overflow: hidden;
}

.pd-quantity-control button {
    width: 42px;
    height: 100%;
    border: 0;
    background: #1a1a1a;
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
}

.pd-quantity-control input {
    width: 50px;
    height: 100%;
    background: #111;
    border: 0;
    border-left: 1px solid #38332a;
    border-right: 1px solid #38332a;
    color: white;
    text-align: center;
    font-size: 14px;
}


/* BUTTONS */

.pd-add-cart,
.pd-go-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: .25s;
}

.pd-add-cart {
    background: var(--gold);
    color: #111;
    border: 1px solid var(--gold);
}

.pd-add-cart:hover:not(:disabled) {
    background: #e0b366;
}

.pd-add-cart:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pd-add-cart span {
    font-size: 18px;
}

.pd-go-cart {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #55472f;
    color: var(--gold);
}

.pd-go-cart:hover {
    border-color: var(--gold);
}

.pd-alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
}

.pd-error {
    background: rgba(180,50,50,.12);
    color: #ff9c9c;
    border: 1px solid #793737;
}


/* PRODUCT ATTRIBUTES */

.pd-product-meta {
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.pd-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #262626;
    font-size: 12px;
}

.pd-meta-row span {
    color: #999;
}

.pd-meta-row strong {
    color: #eee;
    text-align: right;
    font-weight: 600;
}

.pd-trust-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    color: var(--gold);
    font-size: 11px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}


/* DESCRIPTION SECTION */

.pd-extra-section {
    margin-top: 70px;
    padding: 35px;
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.pd-extra-section > span {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.pd-extra-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    color: #fff;
    margin: 12px 0 18px;
}

.pd-extra-description {
    color: #bbb;
    line-height: 1.9;
    font-size: 14px;
}


/* NOT FOUND */

.pd-not-found {
    text-align: center;
    padding: 100px 20px;
}

.pd-not-found > span {
    color: var(--gold);
    font-size: 55px;
    font-family: 'Playfair Display', serif;
}

.pd-not-found h1 {
    color: #fff;
}

.pd-not-found p {
    color: #aaa;
}

.pd-not-found a {
    display: inline-block;
    margin-top: 15px;
    background: var(--gold);
    color: #111;
    padding: 13px 22px;
    font-weight: 800;
    border-radius: 4px;
}


/* =====================================
   SHOPPING CART
===================================== */

.cart-page-heading {
    text-align: center;
    margin-bottom: 40px;
}

.cart-page-heading > span {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.cart-page-heading h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 38px;
    margin: 12px 0;
}

.cart-page-heading h1 b {
    color: var(--gold);
}

.cart-page-heading p {
    color: #aaa;
    font-size: 14px;
}

.cart-success-message {
    background: rgba(50,150,90,.12);
    border: 1px solid #326b49;
    color: #8cdaa6;
    padding: 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 25px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.cart-item-image {
    height: 165px;
    background: #222;
    overflow: hidden;
    border-radius: 4px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h3 {
    font-size: 17px;
    margin: 4px 0 9px;
}

.cart-item-info h3 a {
    color: #fff;
}

.cart-item-info p,
.cart-item-info > small {
    color: #999;
    font-size: 12px;
    display: block;
    margin: 5px 0;
}

.cart-item-info .cart-low-stock {
    color: #e5b76a;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
}

.cart-item-bottom > strong {
    color: var(--gold);
    font-size: 17px;
}

.cart-quantity-form input {
    width: 65px;
    padding: 8px;
    background: #101010;
    color: #fff;
    border: 1px solid #51432c;
    border-radius: 3px;
    text-align: center;
}

.cart-remove-btn {
    background: transparent;
    border: 0;
    color: #d58b80;
    font-size: 12px;
    cursor: pointer;
}

.cart-line-total {
    color: #ccc;
    font-size: 12px;
    margin-top: 13px;
}

.cart-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 12px;
}

.cart-bottom-actions a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.cart-bottom-actions button {
    color: #d58b80;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 12px;
}


/* SUMMARY */

.cart-summary {
    padding: 25px;
    background: #151515;
    border: 1px solid var(--border);
    border-radius: 6px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--gold);
    margin: 0 0 22px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0;
    font-size: 13px;
    color: #aaa;
}

.cart-summary-row strong {
    color: #fff;
    text-align: right;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: #eee;
}

.cart-summary-total strong {
    color: var(--gold);
    font-size: 20px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px 10px;
    background: #39332a;
    color: #c4b18f;
    border: 0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: not-allowed;
}

.cart-summary > p {
    color: #888;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 15px;
}


/* EMPTY CART */

.cart-empty {
    text-align: center;
    padding: 75px 20px;
    background: #151515;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.cart-empty > div {
    color: var(--gold);
    font-size: 55px;
}

.cart-empty h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 27px;
}

.cart-empty p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.cart-empty a {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 25px;
    background: var(--gold);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
}


/* RESPONSIVE */

@media(max-width: 900px) {

    .pd-product-layout {
        gap: 30px;
    }

    .cart-layout {
        grid-template-columns: 1fr 280px;
        gap: 18px;
    }

}

@media(max-width: 650px) {

    .pd-container {
        width: 94%;
        padding: 22px 0 45px;
    }

    .pd-breadcrumb {
        font-size: 10px;
        gap: 7px;
        margin-bottom: 22px;
    }

    .pd-product-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pd-main-image {
        aspect-ratio: 4 / 4.5;
        max-height: 520px;
    }

    .pd-thumb {
        width: 67px;
        height: 78px;
    }

    .pd-information h1 {
        font-size: 29px;
    }

    .pd-price-box strong {
        font-size: 25px;
    }

    .pd-extra-section {
        margin-top: 35px;
        padding: 22px 17px;
    }

    .cart-page-heading h1 {
        font-size: 30px;
    }

    .cart-layout {
        display: flex;
        flex-direction: column;
    }

    .cart-items-list,
    .cart-summary {
        width: 100%;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 12px;
        padding: 11px;
    }

    .cart-item-image {
        height: 125px;
    }

    .cart-item-info h3 {
        font-size: 14px;
    }

    .cart-item-bottom {
        gap: 10px;
        margin-top: 12px;
    }

    .cart-item-bottom > strong {
        font-size: 14px;
    }

    .cart-quantity-form input {
        width: 48px;
        padding: 6px;
    }

    .cart-bottom-actions {
        flex-wrap: wrap;
    }

}

@media(max-width: 360px) {

    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 9px;
    }

    .cart-item-image {
        height: 110px;
    }

    .cart-item-bottom {
        gap: 7px;
    }

}
