/* WooCommerce — modern shop & product pages */

/* ─── Notices (başarı / hata / bilgi) ─── */
.woocommerce-notices-wrapper,
.masatenisi-notices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.woocommerce-notices-wrapper:empty {
    display: none;
    margin: 0;
}

/* Başarı — sepete eklendi */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.75rem 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    display: none !important;
}

.masatenisi-cart-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.masatenisi-cart-notice::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .masatenisi-notice-btn,
.masatenisi-cart-notice .button,
.masatenisi-cart-notice .masatenisi-notice-btn {
    width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.84rem !important;
    border-radius: 9px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hata — stok yetersiz vb. */
.woocommerce-notices-wrapper .woocommerce-error {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-notices-wrapper .woocommerce-error::before {
    display: none !important;
}

.woocommerce-notices-wrapper .woocommerce-error li {
    display: block;
    margin: 0 !important;
    padding: 0.9rem 1rem 0.9rem 3rem !important;
    list-style: none !important;
    background: #fff8f8;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #7f1d1d;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.woocommerce-notices-wrapper .woocommerce-error li::before {
    content: "!";
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.woocommerce-notices-wrapper .woocommerce-error li::marker {
    display: none;
    content: none;
}

/* Hata kutusunda sepet butonu olmasın */
.woocommerce-notices-wrapper .woocommerce-error .button,
.woocommerce-notices-wrapper .woocommerce-error a.button {
    display: none !important;
}

/* Bilgi kutusu */
.woocommerce-notices-wrapper .woocommerce-info li,
.woocommerce-notices-wrapper > .woocommerce-info {
    padding: 0.9rem 1rem 0.9rem 3rem !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 14px !important;
    color: #1e3a5f !important;
    font-size: 0.92rem !important;
    position: relative;
}

/* ─── Shared ─── */
.woocommerce .woocommerce-breadcrumb {
    margin: 0 0 1.5rem;
    padding: 0.65rem 0;
    font-size: 0.84rem;
    color: var(--color-muted);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--color-muted);
    transition: color 0.2s;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-sep {
    margin: 0 0.45rem;
    opacity: 0.45;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: var(--color-primary) !important;
}

.woocommerce span.onsale {
    display: none !important;
}

/* ─── Shop archive ─── */
.shop-page {
    padding: 1.25rem 0 3rem;
}

.shop-page__top {
    margin-bottom: 1.25rem;
}

.shop-page .woocommerce-breadcrumb {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.shop-page .woocommerce-breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}

.shop-page .woocommerce-breadcrumb a:hover {
    color: var(--color-primary);
}

.shop-page .breadcrumb-sep {
    margin: 0 0.35rem;
    opacity: 0.55;
}

.shop-page__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.shop-filters__card {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.shop-filters__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.shop-filters__group + .shop-filters__group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.shop-filters__group-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.shop-filters__search {
    display: block;
    margin-bottom: 0.55rem;
}

.shop-filters__search-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.86rem;
    background: #f8faf9;
}

.shop-filters__search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

.shop-filters__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-filters__list--scroll {
    max-height: 220px;
    overflow: auto;
    padding-right: 0.15rem;
}

.shop-filters__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.2rem;
    color: var(--color-text);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.shop-filters__option:hover {
    color: var(--color-primary);
    background: rgba(13, 110, 79, 0.05);
}

.shop-filters__option.is-active {
    color: var(--color-primary);
    font-weight: 600;
}

.shop-filters__checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}

.shop-filters__option.is-active .shop-filters__checkbox {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.shop-filters__option.is-active .shop-filters__checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.shop-layout__content > .masatenisi-notices {
    margin-bottom: 1rem;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
    min-height: 58px;
}

.shop-toolbar__controls {
    display: none;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.shop-toolbar__filter-toggle {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #f8faf9;
    color: var(--color-text);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.shop-toolbar__filter-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-toolbar__sort-select-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-toolbar__sort-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    font-size: 0.86rem;
    color: var(--color-text);
}

.shop-toolbar__sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.shop-toolbar__sort {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-toolbar__sort::-webkit-scrollbar {
    display: none;
}

.shop-toolbar__sort-link {
    font-size: 0.82rem;
    color: var(--color-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.shop-toolbar__sort-link:hover,
.shop-toolbar__sort-link.is-active {
    color: var(--color-primary);
    font-weight: 700;
}

.shop-toolbar__count {
    flex: 0 0 auto;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.shop-toolbar__views {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #f8faf9;
}

.shop-toolbar__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 34px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
}

.shop-toolbar__view span {
    display: block;
    width: 3px;
    height: 12px;
    border-radius: 1px;
    background: currentColor;
}

.shop-toolbar__view--list span {
    width: 14px;
    height: 2px;
}

.shop-toolbar__view.is-active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.shop-products-grid {
    display: grid;
    gap: 1.25rem;
}

.shop-products-grid.shop-view--grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-products-grid.shop-view--grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-products-grid.shop-view--grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-products-grid.shop-view--list {
    grid-template-columns: 1fr;
}

.shop-products-grid .product-card {
    margin: 0;
}

.shop-products-grid.shop-view--list .product-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
}

.shop-products-grid.shop-view--list .product-card__image {
    aspect-ratio: 1;
}

.shop-products-grid.shop-view--list .product-card__body {
    padding: 1.25rem;
}

.shop-products-grid .product-card__image {
    position: relative;
    background: #f3f6f5;
}

.shop-products-grid .product-card__image img {
    object-fit: contain;
    padding: 0.75rem;
}

.product-card__badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.product-card__badge--new {
    background: #e11d48;
    color: #fff;
}

.product-card__badge--sale {
    background: #111827;
    color: #fff;
}

.product-card__shipping-slot {
    min-height: 1.55rem;
    margin-bottom: 0.45rem;
}

.shop-products-grid .product-card__shipping-slot {
    margin-bottom: 0.35rem;
}

.shop-products-grid .product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.shop-products-grid .product-card__price {
    margin-bottom: 0;
    color: #dc2626;
    font-size: 1.02rem;
}

.shop-products-grid .product-card__price del {
    color: var(--color-muted);
}

.shop-filters__count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-muted);
}

.shop-filters__option.is-active .shop-filters__count {
    color: var(--color-primary);
}

/* Pagination */
.shop-layout__content .woocommerce-pagination,
.shop-page .woocommerce-pagination {
    margin-top: 2rem;
    padding-top: 0.5rem;
}

.shop-layout__content .woocommerce-pagination ul.page-numbers,
.shop-page .woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-layout__content .woocommerce-pagination ul.page-numbers li,
.shop-page .woocommerce-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-layout__content .woocommerce-pagination a.page-numbers,
.shop-layout__content .woocommerce-pagination span.page-numbers,
.shop-page .woocommerce-pagination a.page-numbers,
.shop-page .woocommerce-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.shop-layout__content .woocommerce-pagination a.page-numbers:hover,
.shop-page .woocommerce-pagination a.page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.shop-layout__content .woocommerce-pagination span.page-numbers.current,
.shop-page .woocommerce-pagination span.page-numbers.current {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.shop-layout__content .woocommerce-pagination .next.page-numbers,
.shop-layout__content .woocommerce-pagination .prev.page-numbers,
.shop-page .woocommerce-pagination .next.page-numbers,
.shop-page .woocommerce-pagination .prev.page-numbers {
    min-width: 42px;
    font-size: 1.1rem;
    line-height: 1;
}

.shop-header {
    margin-bottom: 1.5rem;
}

.shop-header__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

/* ─── Single product page ─── */
.single-product-page {
    padding: 0.5rem 0 4rem;
}

.single-product-page__top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Gallery — flexslider float layout'una dokunma */
.single-product-page__gallery {
    position: sticky;
    top: 92px;
}

.single-product-page__gallery .woocommerce-product-gallery {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.single-product-page__gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
}

.single-product-page__gallery .flex-viewport,
.single-product-page__gallery .woocommerce-product-gallery__wrapper {
    background: #f8faf9;
}

.single-product-page__gallery .woocommerce-product-gallery__image {
    display: block;
    background: #f8faf9;
}

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

.single-product-page__gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.single-product-page__gallery .flex-control-thumbs {
    display: flex;
    gap: 0.55rem;
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    list-style: none;
    overflow-x: auto;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.single-product-page__gallery .flex-control-thumbs li {
    flex: 0 0 64px;
}

.single-product-page__gallery .flex-control-thumbs li img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 12px;
    opacity: 0.7;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.single-product-page__gallery .flex-control-thumbs li img.flex-active,
.single-product-page__gallery .flex-control-thumbs li img:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Summary card */
.product-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-summary__head {
    padding: 1.5rem 1.5rem 0;
}

.product-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-badge--sale {
    background: #fef2f2;
    color: #dc2626;
}

.product-badge--featured {
    background: #ecfdf5;
    color: var(--color-primary);
}

.product-summary .product_title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.product-summary__meta {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.product-summary__meta a {
    color: var(--color-primary);
    font-weight: 500;
}

.product-summary__meta a:hover {
    text-decoration: underline;
}

.product-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 1.25rem;
}

.product-summary .star-rating {
    color: #f5b700;
}

/* Price card */
.product-summary__price-card {
    margin: 0 1.5rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #f0faf6 0%, #f8faf9 100%);
    border: 1px solid #d4ebe3;
    border-radius: 14px;
}

.product-price-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.product-price-card__body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.product-price-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.22);
}

.product-summary__price-card .price,
.product-price-range .price,
.product-variation-live-price .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
}

.product-summary__price-card .price del,
.product-price-range .price del,
.product-variation-live-price .price del {
    order: 2;
    font-size: 1rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-summary__price-card .price ins,
.product-price-range .price ins,
.product-variation-live-price .price ins {
    text-decoration: none;
    color: #dc2626;
}

.product-summary__price-card--variable.has-live-price .product-price-range {
    display: none;
}

.product-variation-live-price:empty {
    display: none;
}

.product-price-range__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.product-price-range .price--placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-muted);
}

.product-stock {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.product-stock--in {
    color: var(--color-primary);
}

.product-stock--in::before {
    content: "● ";
    font-size: 0.7rem;
}

.product-stock--out {
    color: #dc2626;
}

/* Excerpt */
.product-summary__excerpt {
    padding: 1.25rem 1.5rem 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.product-summary__excerpt p {
    margin: 0;
}

/* Purchase box */
.product-summary__purchase {
    padding: 0 1.5rem 1.5rem;
}

.product-variations-panel {
    margin-bottom: 1rem;
    padding: 1.1rem 1.15rem;
    background: #fafbfb;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.product-variations-panel__title {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.product-summary__purchase form.cart.variations_form {
    display: block;
    margin: 0;
}

.product-summary__purchase .variations_form .single_variation_wrap {
    padding-top: 0.25rem;
}

.product-summary__purchase .variations_form .woocommerce-variation-add-to-cart {
    padding-top: 1rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--color-border);
}

.product-summary__purchase form.cart {
    display: block;
    margin: 0;
}

.product-summary__purchase .woocommerce-variation-add-to-cart,
.product-summary__purchase form.cart:not(.variations_form) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-purchase-actions__qty-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.product-purchase-actions__qty-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.product-purchase-actions__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px;
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
}

.product-summary__purchase .quantity,
.product-summary__purchase .masatenisi-quantity {
    flex: 0 0 auto;
    margin: 0 !important;
    width: 156px;
    max-width: 100%;
}

.masatenisi-qty-stepper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: stretch;
    min-height: 56px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.masatenisi-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #f8faf9;
    color: var(--color-text);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.masatenisi-qty-btn:hover {
    background: #eef6f2;
    color: var(--color-primary);
}

.masatenisi-qty-stepper .qty {
    width: 100%;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.masatenisi-qty-stepper .qty::-webkit-outer-spin-button,
.masatenisi-qty-stepper .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-summary__purchase .buy-now-button,
.single_variation_wrap .buy-now-button,
.woocommerce .product-summary__purchase button.buy-now-button.button {
    width: 100%;
    min-height: 56px !important;
    padding: 0 1.25rem !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: 12px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: var(--color-primary) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.product-summary__purchase .single_add_to_cart_button,
.single_variation_wrap .single_add_to_cart_button,
.woocommerce .product-summary__purchase button.single_add_to_cart_button.button.alt {
    width: 100%;
    min-height: 56px !important;
    padding: 0 1.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 8px 18px rgba(13, 110, 79, 0.18);
}

.product-summary__purchase .buy-now-button:hover:not(:disabled),
.single_variation_wrap .buy-now-button:hover:not(:disabled) {
    background: #f0faf6 !important;
    color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    transform: translateY(-1px);
}

.product-summary__purchase .buy-now-button:disabled,
.single_variation_wrap .buy-now-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.product-summary__purchase .single_add_to_cart_button:hover:not(:disabled),
.single_variation_wrap .single_add_to_cart_button:hover:not(:disabled),
.woocommerce .product-summary__purchase button.single_add_to_cart_button.button.alt:hover:not(:disabled) {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.product-summary__purchase .single_add_to_cart_button:disabled,
.single_variation_wrap .single_add_to_cart_button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.product-favorite-btn {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-favorite-btn:hover {
    border-color: #fda4af;
    color: #f43f5e;
    background: #fff1f2;
}

.product-favorite-btn:focus {
    outline: none;
}

.product-favorite-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.product-favorite-btn.is-active {
    border-color: #fb7185;
    background: #ffe4e6;
    color: #e11d48;
}

.product-favorite-btn.is-popping.is-active {
    animation: favorite-ring 0.55s ease;
}

.product-favorite-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.product-favorite-btn__svg {
    display: block;
    overflow: visible;
}

.product-favorite-btn__heart-outline {
    transition: opacity 0.2s ease;
}

.product-favorite-btn__heart-fill {
    fill: currentColor;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

.product-favorite-btn.is-active .product-favorite-btn__heart-fill {
    transform: scale(1);
    opacity: 1;
}

.product-favorite-btn.is-active .product-favorite-btn__heart-outline {
    opacity: 0;
}

.product-favorite-btn.is-popping .product-favorite-btn__svg {
    animation: favorite-pop 0.45s ease;
}

@keyframes favorite-pop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.28);
    }

    65% {
        transform: scale(0.94);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes favorite-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.35);
    }

    100% {
        box-shadow: 0 0 0 12px rgba(225, 29, 72, 0);
    }
}

.single_variation_wrap .woocommerce-variation-add-to-cart-disabled .buy-now-button,
.single_variation_wrap .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
    opacity: 0.55;
    pointer-events: none;
}

.product-summary__purchase .variations_form {
    width: 100%;
}

.product-summary__purchase .variations_form .variations {
    width: 100%;
    margin: 0 0 1rem;
    border-collapse: separate;
    border-spacing: 0;
}

.product-summary__purchase .variations_form .variations tbody {
    display: block;
}

.product-summary__purchase .variations_form .variations tr {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    padding: 0 0 1.15rem;
    border-bottom: 1px solid var(--color-border);
}

.product-summary__purchase .variations_form .variations tr:last-child {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.product-summary__purchase .variations_form .variations th,
.product-summary__purchase .variations_form .variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    vertical-align: top;
}

.product-summary__purchase .variations_form .variations th.label {
    width: 100%;
}

.product-summary__purchase .variations_form .variations th label {
    display: block;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}

.product-summary__purchase .variations_form .variations td.value {
    width: 100%;
}

.variation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    width: 100%;
}

.variation-pill {
    min-width: 56px;
    padding: 0.65rem 1.1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.variation-pill:hover {
    border-color: #9cd4bc;
    transform: translateY(-1px);
}

.variation-pill.is-active {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 79, 0.12), 0 4px 10px rgba(13, 110, 79, 0.08);
}

.variation-pills select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Varsayılan dropdown (pill yoksa) görünür kalsın */
.product-summary__purchase .variations_form .variations select:not(.variation-pills select) {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fff;
}

.product-summary__purchase .reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.variation-setup-notice {
    padding: 1rem 1.1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #92400e;
}

.variation-setup-notice p {
    margin: 0;
}

.single_variation_wrap {
    margin-top: 0.5rem;
}

.single_variation_wrap .woocommerce-variation {
    margin-bottom: 0.75rem;
}

.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

.single_variation_wrap .woocommerce-variation-availability {
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

.single_variation_wrap .woocommerce-variation-add-to-cart .quantity,
.single_variation_wrap .woocommerce-variation-add-to-cart .masatenisi-quantity {
    margin: 0 !important;
    width: 156px;
}

.product-summary__price-card--variable {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Trust */
.product-summary__trust {
    margin-top: auto;
    padding: 1.1rem 1.5rem 1.35rem;
    background: #fafbfb;
    border-top: 1px solid var(--color-border);
}

.product-trust-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-trust-list li {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-align: center;
    padding: 0.35rem 0.25rem;
}

.product-trust-list li::before {
    content: "✓ ";
    color: var(--color-primary);
    font-weight: 700;
}

/* Tabs */
.single-product-page__details .woocommerce-tabs {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: visible;
    box-shadow: var(--shadow-sm);
}

.single-product-page__details .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 1rem;
    list-style: none;
    border-bottom: 1px solid var(--color-border);
    background: #fafbfb;
    border-radius: 20px 20px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.single-product-page__details .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

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

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

.single-product-page__details .woocommerce-tabs ul.tabs li::before,
.single-product-page__details .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.single-product-page__details .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1.05rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-muted) !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    background: transparent !important;
}

.single-product-page__details .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary);
    background: transparent !important;
}

.single-product-page__details .woocommerce-tabs .panel {
    margin: 0;
    padding: 1.75rem;
    border-radius: 0 0 20px 20px;
    background: #fff;
}

.single-product-page__details .woocommerce-tabs .panel h2 {
    display: none;
}

/* Reviews */
.single-product-page__details #reviews {
    padding: 0;
}

.single-product-page__details #reviews .woocommerce-Reviews-title {
    display: none;
}

.single-product-page__details #reviews .woocommerce-noreviews {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: #f8faf9;
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.single-product-page__details #review_form #respond {
    margin: 0;
    padding: 1.25rem;
    background: #fafbfb;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.single-product-page__details #review_form #reply-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.single-product-page__details .review-form-note {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.single-product-page__details #review_form .comment-form-rating {
    margin-bottom: 1rem;
}

.single-product-page__details #review_form .comment-form-rating label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.single-product-page__details #review_form p.stars {
    margin: 0;
    line-height: 1;
}

.single-product-page__details #review_form p.stars a {
    display: inline-block;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.15rem;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    color: transparent;
}

.single-product-page__details #review_form p.stars a::before {
    content: "★";
    position: absolute;
    inset: 0;
    text-indent: 0;
    font-size: 1.35rem;
    line-height: 1.35rem;
    color: #d1d5db;
}

.single-product-page__details #review_form p.stars:hover a::before,
.single-product-page__details #review_form p.stars.selected a.active ~ a::before,
.single-product-page__details #review_form p.stars.selected a:not(.active)::before {
    color: #d1d5db;
}

.single-product-page__details #review_form p.stars a:hover::before,
.single-product-page__details #review_form p.stars a:focus::before,
.single-product-page__details #review_form p.stars.selected a.active::before,
.single-product-page__details #review_form p.stars:hover a:hover ~ a::before {
    color: #f5b700;
}

.single-product-page__details #review_form .comment-form-comment label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.single-product-page__details #review_form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    background: #fff;
}

.single-product-page__details #review_form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 79, 0.1);
}

.single-product-page__details #review_form .comment-form-author input,
.single-product-page__details #review_form .comment-form-email input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fff;
}

.single-product-page__details #review_form .comment-form-author label,
.single-product-page__details #review_form .comment-form-email label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.single-product-page__details #review_form .form-submit {
    margin: 1rem 0 0;
}

.single-product-page__details .masatenisi-review-submit {
    min-width: 180px;
    padding: 0.75rem 1.4rem !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
}

.single-product-page__details #reviews #comments ol.commentlist {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.single-product-page__details #reviews #comments ol.commentlist li {
    margin: 0 0 1rem;
    padding: 0;
}

.single-product-page__details #reviews #comments ol.commentlist li .comment-text {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    background: #fff;
}

.single-product-page__details #reviews #comments ol.commentlist li .meta {
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.single-product-page__details #reviews #comments ol.commentlist li .description p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.single-product-page__details #reviews .star-rating {
    color: #f5b700;
    margin-bottom: 0.35rem;
}

.single-product-page__details .shop_attributes {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.single-product-page__details .shop_attributes th,
.single-product-page__details .shop_attributes td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
}

.single-product-page__details .shop_attributes th {
    width: 38%;
    color: var(--color-muted);
    font-weight: 500;
    background: #fafbfb;
}

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

/* Carousels */
.product-carousel-section {
    margin-top: 3rem;
}

.product-carousel-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.product-carousel-section__header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-carousel-section__nav {
    display: flex;
    gap: 0.5rem;
}

.product-carousel-nav {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
}

.product-carousel-nav:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.product-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding-bottom: 0.25rem;
}

.product-carousel__item {
    flex: 0 0 230px;
    display: flex;
    scroll-snap-align: start;
}

.product-carousel__item .product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-carousel__item .product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-carousel__item .product-card__title {
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-carousel__item .product-card__price {
    min-height: 1.35rem;
    margin-bottom: 0;
}

.product-carousel__item .product-card__action,
.product-carousel__item .product-card__stock {
    margin-top: auto;
    padding-top: 0.75rem;
}

.product-carousel__item .product-card__action .button {
    margin: 0;
}

/* Reviews (legacy selectors) */
.woocommerce #review_form #respond .submit {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.4rem !important;
    font-weight: 600 !important;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .single-product-page__top {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .single-product-page__gallery {
        position: static;
    }

    .product-trust-list {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .product-summary__purchase form.cart {
        flex-direction: column;
    }

    .product-purchase-actions__buttons {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
    }

    .product-summary__purchase .quantity,
    .product-summary__purchase .masatenisi-quantity {
        width: 156px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        display: none;
    }

    .shop-filters.is-open {
        display: block;
    }

    .shop-filters__card {
        position: static;
    }

    .shop-toolbar {
        flex-wrap: wrap;
        min-height: 0;
    }

    .shop-toolbar__controls {
        display: flex;
        width: 100%;
    }

    .shop-toolbar__sort {
        display: none;
    }

    .shop-toolbar__count {
        margin-right: auto;
    }

    .shop-products-grid.shop-view--grid-3,
    .shop-products-grid.shop-view--grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-products-grid.shop-view--list .product-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .single-product-page__details .woocommerce-tabs ul.tabs {
        padding: 0;
    }

    .product-carousel__item {
        flex-basis: 190px;
    }
}
