/* ─── TMG Product Detail Page ─── */

/* Price and made-to-order measurements use the storefront's warm neutrals. */
.tmg-product-price .tmg-sale-prices {
    display: block;
    padding: 17px 19px;
    border: 1px solid #e8e0d9;
    border-radius: 12px;
    background: #faf8f5;
}
.tmg-product-price .tmg-sale-prices .final-price {
    margin: 0;
    color: #1d1a18;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.tmg-product-price .tmg-sale-prices .tmg-bank-transfer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 14px;
    margin: 12px 0 0;
    padding: 11px 0 0;
    border-top: 1px solid #e8e0d9;
    background: transparent;
    color: #7b6048;
    font-size: 13px;
    line-height: 1.4;
}
.tmg-bank-transfer strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.tmg-order-options { margin-top: 22px; }
.tmg-custom-options { margin-top: 18px; }
.tmg-name-tabs__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.tmg-name-tabs__tab {
    display: inline-flex;
    min-height: 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 7px 14px;
    border: 1px solid #e4ddd5;
    border-radius: 7px;
    background: #fff;
    color: #50473f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.tmg-name-tabs__tab.is-active {
    border-color: #a67c52;
    background: #f6f0e8;
    color: #78512e;
}
.tmg-name-tabs__tab.has-error {
    border-color: #e7b3ad;
    color: #9b2c2c;
}
.tmg-name-tabs__tab.has-error.is-active {
    background: #fff6f5;
}
.tmg-name-tabs__star { margin-left: 2px; }
.tmg-name-tabs__error {
    max-width: 180px;
    color: #b42318;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}
.tmg-custom-option { margin: 0; padding: 0; border: 0; }
.tmg-custom-option + .tmg-custom-option { margin-top: 14px; }
.tmg-engrave__label {
    margin-bottom: 8px;
    color: #665c54;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .025em;
}
.tmg-engrave__price {
    margin-left: 6px;
    color: #8d6829;
    font-weight: 600;
}
.tmg-custom-option--text input,
.tmg-custom-option--textarea textarea {
    display: block;
    width: min(100%, 320px);
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #e4ddd5;
    border-radius: 7px;
    background: #fff;
    color: #50473f;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.4;
}
.tmg-custom-option--textarea textarea {
    min-height: 72px;
    resize: vertical;
}
.tmg-custom-option--text input:focus,
.tmg-custom-option--textarea textarea:focus {
    border-color: #a67c52;
    outline: none;
}
.tmg-engrave__hint {
    margin: 6px 0 0;
    color: #8a817a;
    font-size: 12px;
}
.tmg-ring-size-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d6829;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.tmg-ring-size-info__mark {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.tmg-ring-size-modal [class*="max-w-"] {
    max-width: min(980px, calc(100vw - 32px));
}
.tmg-ring-size-modal img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.tmg-measurement { min-width: 0; margin: 0; padding: 0; border: 0; }
.tmg-measurement__label {
    margin-bottom: 10px;
    color: #665c54;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .025em;
}
.tmg-measurement__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.tmg-measurement__choice {
    position: relative;
    display: flex;
    min-width: 70px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #e4ddd5;
    border-radius: 7px;
    background: #fff;
    color: #50473f;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.tmg-measurement__choice:hover { border-color: #b99a76; }
.tmg-measurement__choice:has(input:checked) {
    border-color: #a67c52;
    background: #f6f0e8;
    color: #78512e;
    font-weight: 600;
}
.tmg-measurement__choice:has(input:focus-visible) { outline: 2px solid #a67c52; outline-offset: 3px; }
.tmg-measurement__choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tmg-measurement .tmg-measurement__select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 40px 11px 14px;
    border: 1px solid #e4ddd5;
    border-radius: 7px;
    background-color: #fff;
    color: #50473f;
    font-size: 14px;
}
.tmg-measurement .tmg-measurement__select:focus { border-color: #a67c52; outline-color: #a67c52; }
@media (max-width: 480px) {
    .tmg-measurement__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tmg-product-price .tmg-sale-prices { padding: 15px; }
    .tmg-product-trust__payment { flex-wrap: wrap; }
    .tmg-product-trust__payment-img { max-width: 100%; }
}

/* Breadcrumbs */
.container .flex.justify-start [class*="breadcrumb"],
.flex.justify-start .flex.items-center {
    font-size: 12px !important;
    color: #9a918b !important;
}

/* Product Name */
.container h1.text-3xl {
    font-family: 'DM Serif Display', serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    color: #1d1a18 !important;
    line-height: 1.2 !important;
}

/* Price */
.tmg-product-price {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.tmg-price-panel {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    color: #171412;
}

.tmg-price-hero,
.tmg-price-options,
.tmg-price-note {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.tmg-price-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border: 1px solid #e8e0d9;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 243, 0.96)),
        linear-gradient(135deg, rgba(166, 124, 82, 0.12), rgba(23, 20, 18, 0));
    box-shadow: 0 18px 45px rgba(23, 20, 18, 0.08);
}

.tmg-price-hero__content {
    min-width: 0;
}

.tmg-price-hero__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tmg-price-hero__amount {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    color: #171412;
    white-space: nowrap;
}

.tmg-price-hero__note {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid #e9dfd5;
    border-radius: 999px;
    background: #fff;
    color: #6f6259;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tmg-price-hero__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid #e7d8c4;
    border-radius: 12px;
    color: #9b6f45;
    background: #fff;
}

.tmg-price-hero__icon svg,
.tmg-price-note svg,
.tmg-price-option__icon svg,
.tmg-product-trust__icon svg {
    width: 22px;
    height: 22px;
}

.tmg-price-options {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #ebe5df;
    border-radius: 14px;
    background: #fff;
}

.tmg-price-options__header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 86px minmax(118px, auto);
    gap: 12px;
    padding: 12px 16px;
    background: #f7f3ef;
    color: #6d6259;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tmg-price-options__header span:first-child {
    grid-column: 1 / 3;
}

.tmg-price-options__header span:nth-child(2),
.tmg-price-options__header span:last-child {
    text-align: right;
}

.tmg-price-option {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 86px minmax(118px, auto);
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-top: 1px solid #f0ebe6;
    transition: background 180ms ease, box-shadow 180ms ease;
}

.tmg-price-option:hover {
    background: #fcfaf8;
}

.tmg-price-option__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #eadfd3;
    border-radius: 10px;
    color: #9b6f45;
    background: #fff;
}

.tmg-price-option__text {
    min-width: 0;
}

.tmg-price-option__text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #211d1a;
    line-height: 1.25;
}

.tmg-price-option__text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #7c7168;
    line-height: 1.35;
}

.tmg-price-option__amount {
    justify-self: end;
    font-size: 18px;
    font-weight: 700;
    color: #171412;
    white-space: nowrap;
}

.tmg-price-option__saving {
    justify-self: end;
    min-width: 76px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #eef8f1;
    color: #247348;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.tmg-price-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #e6ece8;
    border-radius: 12px;
    background: #f6faf8;
    color: #486155;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.tmg-price-note svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.tmg-standard-price {
    display: grid;
    gap: 4px;
}

.tmg-standard-price .regular-price {
    color: #8b8179;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: line-through;
}

.tmg-standard-price .final-price {
    color: #171412;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.tmg-product-price .price-label {
    display: block;
    margin-bottom: 5px;
    color: #8a7a6f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tmg-product-price > p.final-price,
.tmg-product-price > p:not(.price-label):not(.regular-price),
.tmg-product-price .final-price:not(.regular-price) {
    color: #171412;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.tmg-product-price .regular-price {
    color: #8b8179;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: line-through;
}

/* Short description */
.container .text-lg.text-zinc-500 {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #6f655f !important;
}

/* ─── Gold Specifications ─── */
.tmg-gold-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #f0ebe7;
    border-radius: 10px;
    background: #faf8f6;
}

.tmg-gold-specs__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee8e4;
}

.tmg-gold-specs__icon {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    color: #9b6f45;
}

.tmg-gold-specs__icon::before,
.tmg-gold-specs__icon::after {
    content: "";
    display: block;
}

.tmg-gold-specs__icon--karat::before {
    width: 10px;
    height: 10px;
    border: 1.8px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
}

.tmg-gold-specs__icon--agirlik::before {
    width: 13px;
    height: 9px;
    border: 1.7px solid currentColor;
    border-top: 0;
    border-radius: 0 0 7px 7px;
}

.tmg-gold-specs__icon--agirlik::after {
    position: absolute;
    top: 2px;
    width: 9px;
    height: 1.7px;
    border-radius: 999px;
    background: currentColor;
}

.tmg-gold-specs__icon--color::before {
    width: 13px;
    height: 13px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 5px 0 0 rgba(155, 111, 69, 0.22);
}

.tmg-gold-specs__icon--size::before {
    width: 13px;
    height: 13px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
}

.tmg-gold-specs__icon--size::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 6px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-35deg);
}

.tmg-gold-specs__label {
    font-size: 11px;
    font-weight: 500;
    color: #8a7e78;
}

.tmg-gold-specs__value {
    font-size: 12px;
    font-weight: 600;
    color: #1d1a18;
}

/* ─── Trust Badges ─── */
.tmg-product-trust {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eee8e4;
}

.tmg-product-trust__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tmg-product-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f0ebe7;
    border-radius: 8px;
    background: #faf8f6;
}

.tmg-product-trust__icon {
    flex-shrink: 0;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee8e4;
    color: #9b6f45;
    font-size: 15px;
}

.tmg-product-trust__item strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1d1a18;
    line-height: 1.3;
}

.tmg-product-trust__item span:not(.tmg-product-trust__icon) {
    display: block;
    font-size: 11px;
    color: #8a7e78;
    line-height: 1.4;
    margin-top: 1px;
}

/* Payment Methods */
.tmg-product-trust__payment {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #f0ebe7;
    border-radius: 8px;
    background: #faf8f6;
}

.tmg-product-trust__payment-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #8a7e78;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tmg-product-trust__payment-img {
    height: 22px;
    width: auto;
    opacity: 0.85;
}

/* ─── Quantity Changer ─── */
.container [class*="quantity-changer"],
.container .gap-x-4.rounded-xl {
    padding: 8px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #e4ddd8 !important;
}

/* ─── Add to Cart / Buy Now Buttons ─── */
.container .secondary-button.w-full {
    height: 46px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #1d1a18 !important;
    background: #fff !important;
    color: #1d1a18 !important;
    transition: all 200ms ease !important;
}

.container .secondary-button.w-full:hover {
    background: #1d1a18 !important;
    color: #fff !important;
}

.container .primary-button.w-full {
    height: 46px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #9b6f59 !important;
    color: #fff !important;
    border: 0 !important;
    transition: all 200ms ease !important;
}

.container .primary-button.w-full:hover {
    background: #7d5844 !important;
}

/* ─── Tabs Section ─── */
.container [class*="tabs"] [class*="tab-button"],
.container [class*="tabs"] button {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Description text */
.container .text-lg.text-zinc-500.max-1180\:text-sm {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #4a3f3a !important;
}

/* Additional info grid */
.container .grid-cols-\[auto_1fr\] {
    gap: 12px 20px !important;
}

.container .grid-cols-\[auto_1fr\] .text-base.text-black {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1d1a18 !important;
}

.container .grid-cols-\[auto_1fr\] .text-base.text-zinc-500 {
    font-size: 13px !important;
    color: #6f655f !important;
}

/* ─── Compare/Share Section ─── */
/* Product action buttons (share etc) */
.tmg-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tmg-product-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #eee8e4;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #4a3f3a;
    text-decoration: none;
    transition: all 180ms ease;
}

.tmg-product-actions__btn:hover {
    border-color: #9b6f59;
    color: #9b6f59;
    background: #faf8f6;
}

.tmg-product-actions__btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.tmg-product-actions__btn:hover svg {
    opacity: 1;
}

/* Wishlist button (heart icon circle) */
.container .flex.justify-between .min-h-\[46px\] ,
.container .flex.justify-between [class*="min-h-[46px]"] {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border: 1px solid #eee8e4 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    transition: all 200ms ease !important;
}

.container .flex.justify-between [class*="icon-heart"]:hover {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

.container .flex.justify-between .icon-heart-fill {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Social share buttons - legacy (removed, using tmg-product-actions now) */

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .tmg-product-price {
        max-width: none;
    }

    .tmg-price-hero {
        padding: 15px;
        border-radius: 12px;
    }

    .tmg-price-hero__amount,
    .tmg-standard-price .final-price,
    .tmg-product-price > p.final-price,
    .tmg-product-price > p:not(.price-label):not(.regular-price),
    .tmg-product-price .final-price:not(.regular-price) {
        font-size: 24px;
    }

    .tmg-price-hero__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .tmg-price-options__header {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .tmg-price-options__header span:first-child {
        grid-column: auto;
    }

    .tmg-price-options__header span:nth-child(2),
    .tmg-price-options__header span:last-child {
        display: none;
    }

    .tmg-price-option {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 14px;
    }

    .tmg-price-option__icon {
        width: 34px;
        height: 34px;
    }

    .tmg-price-option__amount {
        grid-column: 2;
        justify-self: start;
        font-size: 17px;
    }

    .tmg-price-option__saving {
        grid-column: 2;
        justify-self: start;
    }

    .tmg-product-trust__grid {
        grid-template-columns: 1fr;
    }

    .container h1.text-3xl {
        font-size: 22px !important;
    }
}
