/* ========================================================================
   WOOCOMMERCE STYLES
   YapıMarket Pro v3.0.0
   ======================================================================== */

/* ---- Product Card ---- */
.ym-product-card {
    background: var(--ym-bg-surface);
    border-radius: var(--ym-border-radius-lg);
    overflow: hidden;
    transition: all var(--ym-transition);
    border: 1px solid var(--ym-border-color);
}

.ym-product-card:hover {
    box-shadow: var(--ym-shadow-lg);
    transform: translateY(-4px);
}

.ym-product-card__image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.ym-product-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ym-product-card:hover .ym-product-card__image img {
    transform: scale(1.08);
}

.ym-product-card__badges {
    position: absolute;
    top: var(--ym-space-3);
    left: var(--ym-space-3);
    display: flex;
    flex-direction: column;
    gap: var(--ym-space-1);
    z-index: 2;
}

.ym-product-card__actions {
    position: absolute;
    top: var(--ym-space-3);
    right: var(--ym-space-3);
    display: flex;
    flex-direction: column;
    gap: var(--ym-space-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--ym-transition);
    z-index: 2;
}

.ym-product-card:hover .ym-product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.ym-product-card__action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--ym-border-radius-circle);
    background: var(--ym-bg-surface);
    color: var(--ym-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ym-shadow-sm);
    transition: all var(--ym-transition);
}

.ym-product-card__action-btn:hover {
    background: var(--ym-primary);
    color: var(--ym-white);
}

.ym-product-card__action-btn.ym-wishlisted {
    background: var(--ym-danger);
    color: var(--ym-white);
}

.ym-product-card__body {
    padding: var(--ym-space-4);
}

.ym-product-card__category {
    font-size: var(--ym-font-size-xs);
    color: var(--ym-text-secondary);
    margin-bottom: var(--ym-space-1);
}

.ym-product-card__title {
    font-size: var(--ym-font-size-sm);
    font-weight: var(--ym-font-weight-semibold);
    margin-bottom: var(--ym-space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ym-product-card__title a {
    color: var(--ym-text-primary);
    transition: color var(--ym-transition);
}

.ym-product-card__title a:hover {
    color: var(--ym-primary);
}

.ym-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--ym-space-1);
    margin-bottom: var(--ym-space-2);
}

.ym-product-card__stars {
    color: var(--ym-warning);
    font-size: 12px;
}

.ym-product-card__review-count {
    font-size: var(--ym-font-size-xs);
    color: var(--ym-text-secondary);
}

.ym-product-card__price-row {
    display: flex;
    align-items: center;
    gap: var(--ym-space-2);
    margin-bottom: var(--ym-space-3);
}

.ym-product-card__price {
    font-size: var(--ym-font-size-lg);
    font-weight: var(--ym-font-weight-bold);
    color: var(--ym-primary);
}

.ym-product-card__price del {
    font-size: var(--ym-font-size-sm);
    color: var(--ym-text-muted);
    font-weight: var(--ym-font-weight-normal);
}

.ym-product-card__unit {
    font-size: var(--ym-font-size-xs);
    color: var(--ym-text-secondary);
}

.ym-product-card__add-to-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ym-space-2);
    padding: var(--ym-space-2) var(--ym-space-4);
    background: var(--ym-primary);
    color: var(--ym-white);
    border-radius: var(--ym-border-radius);
    font-weight: var(--ym-font-weight-semibold);
    font-size: var(--ym-font-size-sm);
    transition: all var(--ym-transition);
}

.ym-product-card__add-to-cart:hover {
    background: var(--ym-primary-dark);
    transform: translateY(-1px);
}

/* ---- Shop Layout ---- */
.ym-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--ym-space-8);
    padding: var(--ym-space-8) 0;
}

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

.ym-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ym-space-3) var(--ym-space-4);
    background: var(--ym-bg-elevated);
    border-radius: var(--ym-border-radius);
    margin-bottom: var(--ym-space-6);
}

.ym-shop-toolbar__left,
.ym-shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: var(--ym-space-4);
}

.ym-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ym-space-5);
}

/* ---- Single Product ---- */
.ym-product-page {
    padding: var(--ym-space-8) 0;
}

.ym-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ym-space-10);
    margin-bottom: var(--ym-space-12);
}

.ym-product-gallery__main {
    border-radius: var(--ym-border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ym-border-color);
}

.ym-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ym-space-2);
    margin-top: var(--ym-space-3);
}

.ym-product-gallery__thumb {
    border: 2px solid var(--ym-border-color);
    border-radius: var(--ym-border-radius);
    cursor: pointer;
    transition: border-color var(--ym-transition);
    overflow: hidden;
}

.ym-product-gallery__thumb--active,
.ym-product-gallery__thumb:hover {
    border-color: var(--ym-primary);
}

.ym-product-summary__title {
    font-size: var(--ym-font-size-2xl);
    margin-bottom: var(--ym-space-3);
}

.ym-product-summary__sku {
    color: var(--ym-text-secondary);
    font-size: var(--ym-font-size-sm);
    margin-bottom: var(--ym-space-4);
}

.ym-product-summary__price {
    font-size: var(--ym-font-size-3xl);
    font-weight: var(--ym-font-weight-bold);
    color: var(--ym-primary);
    margin-bottom: var(--ym-space-4);
}

.ym-product-summary__price del {
    font-size: var(--ym-font-size-lg);
    color: var(--ym-text-muted);
}

.ym-product-summary__desc {
    color: var(--ym-text-secondary);
    line-height: var(--ym-line-height-relaxed);
    margin-bottom: var(--ym-space-6);
    padding-bottom: var(--ym-space-6);
    border-bottom: 1px solid var(--ym-border-color);
}

/* Unit Selector */
.ym-unit-selector {
    display: flex;
    gap: var(--ym-space-3);
    margin-bottom: var(--ym-space-4);
    padding: var(--ym-space-4);
    background: var(--ym-bg-elevated);
    border-radius: var(--ym-border-radius);
}

.ym-unit-selector__option {
    flex: 1;
    text-align: center;
    padding: var(--ym-space-3);
    border: 2px solid var(--ym-border-color);
    border-radius: var(--ym-border-radius);
    cursor: pointer;
    transition: all var(--ym-transition);
}

.ym-unit-selector__option--active,
.ym-unit-selector__option:hover {
    border-color: var(--ym-primary);
    background: rgba(27, 58, 92, 0.05);
}

.ym-unit-selector__label {
    display: block;
    font-weight: var(--ym-font-weight-semibold);
    font-size: var(--ym-font-size-sm);
}

.ym-unit-selector__price {
    display: block;
    color: var(--ym-primary);
    font-weight: var(--ym-font-weight-bold);
    margin-top: var(--ym-space-1);
}

/* Quantity + Add to Cart */
.ym-product-actions {
    display: flex;
    gap: var(--ym-space-3);
    margin-bottom: var(--ym-space-6);
}

.ym-quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--ym-border-color);
    border-radius: var(--ym-border-radius);
    overflow: hidden;
}

.ym-quantity__btn {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ym-bg-elevated);
    color: var(--ym-text-primary);
    transition: all var(--ym-transition);
}

.ym-quantity__btn:hover {
    background: var(--ym-primary);
    color: var(--ym-white);
}

.ym-quantity__input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: var(--ym-font-weight-bold);
    font-size: var(--ym-font-size-base);
}

/* Product Tabs */
.ym-product-tabs {
    margin-top: var(--ym-space-10);
}

.ym-product-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ym-border-color);
}

.ym-product-tabs__tab {
    padding: var(--ym-space-3) var(--ym-space-6);
    font-weight: var(--ym-font-weight-semibold);
    color: var(--ym-text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--ym-transition);
}

.ym-product-tabs__tab--active,
.ym-product-tabs__tab:hover {
    color: var(--ym-primary);
    border-bottom-color: var(--ym-primary);
}

.ym-product-tabs__content {
    padding: var(--ym-space-8) 0;
}

/* Sticky Add to Cart Bar */
.ym-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ym-bg-surface);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--ym-space-3) 0;
    transform: translateY(100%);
    transition: transform var(--ym-transition);
    z-index: var(--ym-z-sticky);
}

.ym-sticky-cart--visible {
    transform: translateY(0);
}

.ym-sticky-cart__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ym-space-4);
}

/* Cart & Checkout */
.ym-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.ym-cart-table th,
.ym-cart-table td {
    padding: var(--ym-space-4);
    border-bottom: 1px solid var(--ym-border-color);
}

.ym-cart-table th {
    background: var(--ym-bg-elevated);
    font-weight: var(--ym-font-weight-semibold);
    text-align: left;
}

.ym-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--ym-space-8);
}

/* Sidebar Filters */
.ym-widget--shop .ym-widget__title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ym-widget--shop .ym-widget__title::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform var(--ym-transition);
}

.ym-widget--shop.collapsed .ym-widget__title::after {
    transform: rotate(-90deg);
}

.ym-filter-color {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ym-space-2);
}

.ym-filter-color__swatch {
    width: 28px;
    height: 28px;
    border-radius: var(--ym-border-radius-circle);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ym-transition);
}

/* ---- Mini Cart ---- */
.ym-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ym-mini-cart__item {
    display: flex;
    gap: var(--ym-space-4);
    padding: var(--ym-space-4) 0;
    border-bottom: 1px solid var(--ym-border-color);
    position: relative;
    transition: background var(--ym-transition);
}

.ym-mini-cart__item:hover {
    background: var(--ym-gray-50);
}

.ym-mini-cart__thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--ym-border-radius);
    overflow: hidden;
    border: 1px solid var(--ym-border-color);
}

.ym-mini-cart__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ym-mini-cart__content {
    flex: 1;
    min-width: 0;
}

.ym-mini-cart__name {
    font-size: var(--ym-font-size-sm);
    font-weight: var(--ym-font-weight-semibold);
    margin: 0 0 var(--ym-space-1);
    line-height: 1.4;
}

.ym-mini-cart__name a {
    color: var(--ym-text-primary);
    transition: color var(--ym-transition);
}

.ym-mini-cart__name a:hover {
    color: var(--ym-primary);
}

.ym-mini-cart__meta {
    display: flex;
    align-items: center;
    gap: var(--ym-space-1);
    font-size: var(--ym-font-size-sm);
}

.ym-mini-cart__quantity {
    color: var(--ym-text-secondary);
}

.ym-mini-cart__price {
    font-weight: var(--ym-font-weight-bold);
    color: var(--ym-primary);
}

.ym-mini-cart__remove {
    position: absolute;
    top: var(--ym-space-2);
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ym-text-muted);
    font-size: 20px;
    transition: all var(--ym-transition);
}

.ym-mini-cart__remove:hover {
    color: var(--ym-danger);
    transform: rotate(90deg);
}

.ym-mini-cart__footer {
    padding-top: var(--ym-space-5);
    margin-top: var(--ym-space-2);
}

.ym-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--ym-font-size-lg);
    font-weight: var(--ym-font-weight-bold);
    color: var(--ym-text-primary);
    margin-bottom: var(--ym-space-5);
    padding-bottom: var(--ym-space-4);
    border-bottom: 2px solid var(--ym-border-color);
}

.ym-mini-cart__total span:last-child {
    color: var(--ym-primary);
    font-size: var(--ym-font-size-xl);
}

.ym-mini-cart__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ym-space-3);
    margin: 0;
}

.ym-mini-cart--empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--ym-space-10) var(--ym-space-5);
}

.ym-mini-cart__empty-icon {
    color: var(--ym-gray-300);
    margin-bottom: var(--ym-space-5);
}

.ym-mini-cart__empty-text {
    font-size: var(--ym-font-size-base);
    color: var(--ym-text-secondary);
    margin-bottom: var(--ym-space-8);
}

@media (max-width: 768px) {
    .ym-mini-cart__buttons {
        grid-template-columns: 1fr;
    }
}