
/* =========================================================
   SINGLE PRODUCT PAGE — MODERN WOOCOMMERCE DESIGN
   Applies ONLY to individual WooCommerce product pages.
========================================================= */

/* Main page wrapper */
body.single-product #primary.content-area {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 35px 30px 80px;
    box-sizing: border-box;
}

body.single-product #primary.content-area *,
body.single-product #primary.content-area *::before,
body.single-product #primary.content-area *::after {
    box-sizing: border-box;
}

body.single-product #main.site-main {
    width: 100%;
    margin: 0;
}

/* Breadcrumb */
body.single-product .woocommerce-breadcrumb {
    margin: 0 0 35px;
    padding: 0 0 18px;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
    border-bottom: 1px solid #ededed;
}

body.single-product .woocommerce-breadcrumb a {
    color: #777;
    text-decoration: none;
    transition: color .25s ease;
}

body.single-product .woocommerce-breadcrumb a:hover {
    color: #111;
}

/* Product layout */
body.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: 65px;
    row-gap: 55px;
    align-items: start;
    width: 100%;
    margin: 0;
}

/* Product gallery */
body.single-product .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 18px;
    overflow: hidden;
    position: relative;
    background: #f6f5f2;
    border: 1px solid #efeee9;
    border-radius: 18px;
}

body.single-product .woocommerce-product-gallery__wrapper {
    margin: 0;
}

body.single-product .woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: 12px;
}

body.single-product .woocommerce-product-gallery__image a {
    display: block;
    line-height: 0;
}

body.single-product .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: 12px;
    transition: transform .45s ease;
}

body.single-product .woocommerce-product-gallery__image:hover img {
    transform: scale(1.025);
}

/* Gallery zoom button */
body.single-product .woocommerce-product-gallery__trigger {
    z-index: 5;
    top: 28px !important;
    right: 28px !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    text-decoration: none;
}

/* Product summary */
body.single-product .summary.entry-summary {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 12px 0 0;
}

/* Product title */
body.single-product .product_title.entry-title {
    margin: 0 0 18px;
    color: #171717;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -1.2px;
}

/* Price */
body.single-product .summary .price {
    display: block;
    margin: 0 0 24px;
    color: #171717;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

body.single-product .summary .price del {
    color: #999;
    font-size: 19px;
    font-weight: 400;
    opacity: .8;
}

body.single-product .summary .price ins {
    color: #171717;
    text-decoration: none;
}

body.single-product .summary .price .woocommerce-Price-currencySymbol {
    font-size: .85em;
}

/* Short description */
body.single-product .woocommerce-product-details__short-description {
    margin: 0 0 30px;
    padding: 0 0 26px;
    border-bottom: 1px solid #eaeaea;
    color: #666;
    font-size: 15px;
    line-height: 1.9;
}

body.single-product .woocommerce-product-details__short-description p {
    margin: 0 0 12px;
}

body.single-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Product variations */
body.single-product .variations_form {
    width: 100%;
    margin: 0 0 22px;
}

body.single-product table.variations {
    width: 100%;
    margin: 0 0 25px;
    border: 0;
    border-collapse: collapse;
}

body.single-product table.variations tr,
body.single-product table.variations th,
body.single-product table.variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

body.single-product table.variations th.label {
    margin: 0 0 10px;
    padding: 0;
}

body.single-product table.variations th.label label {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
}

body.single-product table.variations td.value {
    position: relative;
    padding: 0;
}

body.single-product table.variations select {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 12px 42px 12px 16px;
    border: 1px solid #dedede;
    border-radius: 9px;
    outline: none;
    background-color: #fff;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease;
}

body.single-product table.variations select:focus {
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}

body.single-product .reset_variations {
    display: inline-block;
    margin-top: 10px;
    color: #777;
    font-size: 12px;
    text-decoration: underline;
}

body.single-product .reset_variations:hover {
    color: #111;
}

/* Stock and variation information */
body.single-product .woocommerce-variation {
    margin: 0 0 18px;
}

body.single-product .woocommerce-variation-availability .stock,
body.single-product .summary p.stock {
    display: inline-block;
    margin: 0 0 18px;
    padding: 9px 13px;
    border-radius: 6px;
    background: #f1f7ef;
    color: #39723c;
    font-size: 12px;
    font-weight: 600;
}

body.single-product .summary p.stock.out-of-stock,
body.single-product .summary p.stock.available-on-backorder {
    background: #fff6e8;
    color: #93651d;
}

/* Quantity and Add to Cart */
body.single-product .single_variation_wrap {
    width: 100%;
}

body.single-product .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin: 0 0 28px;
}

body.single-product .summary .quantity {
    float: none !important;
    flex: 0 0 105px;
    width: 105px !important;
    margin: 0 !important;
}

body.single-product .summary .quantity .qty {
    width: 100% !important;
    height: 56px;
    padding: 10px;
    border: 1px solid #dedede;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    text-align: center;
}

body.single-product .summary .quantity .qty:focus {
    border-color: #222;
}

body.single-product .single_add_to_cart_button {
    display: inline-flex !important;
    flex: 1 1 180px;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: 0 !important;
    padding: 15px 24px !important;
    border: 1px solid #171717 !important;
    border-radius: 9px !important;
    background: #171717 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease,
                border-color .25s ease, transform .25s ease;
}

body.single-product .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    border-color: #383838 !important;
    background: #383838 !important;
    color: #fff !important;
}

body.single-product .single_add_to_cart_button:disabled,
body.single-product .single_add_to_cart_button.disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* Product metadata */
body.single-product .product_meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #eaeaea;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

body.single-product .product_meta > span {
    display: block;
}

body.single-product .product_meta a {
    color: #333;
    text-decoration: none;
    transition: color .2s ease;
}

body.single-product .product_meta a:hover {
    color: #888;
    text-decoration: underline;
}

body.single-product .product_meta .sku {
    color: #333;
}

/* Product tabs wrapper */
body.single-product .woocommerce-tabs.wc-tabs-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eaeaea;
}

/* Tabs navigation */
body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0 0 30px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs::before,
body.single-product .woocommerce-tabs ul.tabs.wc-tabs::after {
    display: none !important;
    content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
    display: block;
    padding: 22px 0 14px !important;
    border-bottom: 2px solid transparent;
    color: #777 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
    border-bottom-color: #171717;
    color: #171717 !important;
}

/* Tab content */
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    width: 100%;
    margin: 0 !important;
    padding: 0 0 15px !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    margin: 0 0 22px;
    color: #171717;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

body.single-product table.shop_attributes {
    width: 100%;
    max-width: 750px;
    margin: 0;
    border: 1px solid #ededed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #ededed;
    background: #fff;
    color: #555;
    font-size: 14px;
    text-align: left;
}

body.single-product table.shop_attributes th {
    width: 35%;
    color: #222;
    font-weight: 600;
}

body.single-product table.shop_attributes tr:last-child th,
body.single-product table.shop_attributes tr:last-child td {
    border-bottom: 0;
}

body.single-product table.shop_attributes td p {
    margin: 0;
}

/* Reviews */
body.single-product #reviews {
    max-width: 850px;
}

body.single-product .woocommerce-Reviews-title {
    margin-bottom: 20px !important;
}

body.single-product .woocommerce-noreviews {
    padding: 18px;
    border-radius: 8px;
    background: #f7f7f7;
    color: #666;
    font-size: 14px;
}

body.single-product #review_form_wrapper {
    margin-top: 30px;
}

body.single-product #reply-title {
    display: block;
    margin-bottom: 18px;
    color: #222;
    font-size: 18px;
    font-weight: 600;
}

body.single-product #commentform label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

body.single-product #commentform textarea,
body.single-product #commentform input[type="text"],
body.single-product #commentform input[type="email"],
body.single-product #commentform input[type="url"] {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
}

body.single-product #commentform textarea {
    min-height: 150px;
    resize: vertical;
}

body.single-product #commentform textarea:focus,
body.single-product #commentform input:focus {
    border-color: #222;
    outline: none;
}

body.single-product #commentform input#submit {
    padding: 13px 25px;
    border: 1px solid #171717;
    border-radius: 8px;
    background: #171717;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease;
}

body.single-product #commentform input#submit:hover {
    background: #383838;
}

/* Related products */
body.single-product section.related.products {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 35px 0 0;
    border-top: 1px solid #eaeaea;
}

body.single-product section.related.products > h2 {
    margin: 0 0 30px;
    color: #171717;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.6px;
}

/* Related product grid */
body.single-product section.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product section.related.products ul.products::before,
body.single-product section.related.products ul.products::after {
    display: none !important;
    content: none !important;
}

body.single-product section.related.products ul.products li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 12px 20px !important;
    overflow: hidden;
    border: 1px solid #ededed;
    border-radius: 13px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease,
                border-color .3s ease;
}

body.single-product section.related.products ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: #ddd;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

body.single-product section.related.products ul.products li.product a img {
    display: block;
    width: 100% !important;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 0 18px !important;
    border-radius: 8px;
    background: #f6f5f2;
    object-fit: cover;
}

body.single-product section.related.products ul.products li.product
.woocommerce-loop-product__title {
    min-height: 42px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #222;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.5;
}

body.single-product section.related.products ul.products li.product .price {
    display: block;
    margin: 0 0 16px;
    color: #171717;
    font-size: 16px !important;
    font-weight: 700;
}

body.single-product section.related.products ul.products li.product .price del {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

body.single-product section.related.products ul.products li.product .price ins {
    text-decoration: none;
}

body.single-product section.related.products ul.products li.product a.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 12px 0 0 !important;
    padding: 11px 14px !important;
    border: 1px solid #171717 !important;
    border-radius: 7px !important;
    background: #171717 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    transition: background .25s ease;
}

body.single-product section.related.products ul.products li.product a.button:hover {
    background: #383838 !important;
    color: #fff !important;
}

body.single-product section.related.products ul.products li.product .onsale {
    top: 20px !important;
    left: 20px !important;
    min-height: auto;
    min-width: auto;
    margin: 0 !important;
    padding: 7px 11px !important;
    border-radius: 5px;
    background: #171717;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

/* WooCommerce notices */
body.single-product .woocommerce-notices-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
    padding: 16px 20px 16px 45px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 1024px) {
    body.single-product #primary.content-area {
        padding: 28px 22px 60px;
    }

    body.single-product div.product {
        column-gap: 32px;
        row-gap: 40px;
    }

    body.single-product section.related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.single-product #primary.content-area {
        padding: 20px 16px 45px;
    }

    body.single-product .woocommerce-breadcrumb {
        margin-bottom: 24px;
        padding-bottom: 14px;
        font-size: 12px;
    }

    body.single-product div.product {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    body.single-product .woocommerce-product-gallery {
        padding: 10px;
        border-radius: 12px;
    }

    body.single-product .woocommerce-product-gallery__image,
    body.single-product .woocommerce-product-gallery__image img {
        border-radius: 8px;
    }

    body.single-product .woocommerce-product-gallery__trigger {
        top: 18px !important;
        right: 18px !important;
        width: 36px !important;
        height: 36px !important;
    }

    body.single-product .summary.entry-summary {
        padding-top: 0;
    }

    body.single-product .product_title.entry-title {
        margin-bottom: 14px;
        font-size: 30px;
        letter-spacing: -.7px;
    }

    body.single-product .summary .price {
        margin-bottom: 18px;
        font-size: 25px;
    }

    body.single-product .woocommerce-product-details__short-description {
        margin-bottom: 24px;
        padding-bottom: 20px;
        font-size: 14px;
    }

    body.single-product .woocommerce-variation-add-to-cart {
        gap: 10px;
    }

    body.single-product .summary .quantity {
        flex-basis: 85px;
        width: 85px !important;
    }

    body.single-product .single_add_to_cart_button {
        flex-basis: 150px;
        padding: 13px 15px !important;
        font-size: 13px !important;
    }

    body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
        gap: 22px;
        margin-bottom: 22px !important;
    }

    body.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
        padding: 18px 0 12px !important;
        font-size: 13px;
    }

    body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
        font-size: 21px;
    }

    body.single-product table.shop_attributes th,
    body.single-product table.shop_attributes td {
        padding: 13px 12px;
        font-size: 13px;
    }

    body.single-product section.related.products {
        padding-top: 28px;
    }

    body.single-product section.related.products ul.products {
        gap: 12px;
    }

    body.single-product section.related.products ul.products li.product {
        padding: 8px 8px 14px !important;
        border-radius: 10px;
    }

    body.single-product section.related.products ul.products li.product a img {
        margin-bottom: 12px !important;
        border-radius: 6px;
    }

    body.single-product section.related.products ul.products li.product
    .woocommerce-loop-product__title {
        min-height: 0;
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }

    body.single-product section.related.products ul.products li.product .price {
        font-size: 14px !important;
    }

    body.single-product section.related.products ul.products li.product a.button {
        min-height: 40px;
        padding: 9px 6px !important;
        font-size: 11px !important;
    }
}

/* Small mobile screens */
@media (max-width: 380px) {
    body.single-product #primary.content-area {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.single-product .product_title.entry-title {
        font-size: 26px;
    }

    body.single-product .woocommerce-variation-add-to-cart {
        gap: 8px;
    }

    body.single-product .summary .quantity {
        flex-basis: 72px;
        width: 72px !important;
    }

    body.single-product .single_add_to_cart_button {
        flex-basis: 130px;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
