/* B2C E-Commerce Custom Styles */

.cart-notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mt-product1 .txt .price {
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.mt-product1 .txt .title a {
    font-size: 14px;
}

/* Compact Sidebar Filters */
.sidebar-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-select {
    display: block;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    appearance: auto;
}

.filter-select:focus {
    border-color: #333;
    outline: none;
}

.filter-clear {
    display: block;
    text-align: center;
    padding: 6px;
    background: #eee;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.filter-clear:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.pagination > li > a,
.pagination > li > span {
    color: #333;
    border-radius: 0;
}

.pagination > .active > a {
    background-color: #333;
    border-color: #333;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 0;
}

.alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.btn-type1 {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-type1:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
}

.process-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: #333;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background 0.3s;
}

.process-btn:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
}

.mt-product1 img {
    max-width: 100%;
    height: auto;
}

.product-form button[disabled] {
    cursor: not-allowed;
}

/* ========== Cart Process Steps ========== */
.mt-process-sec {
    padding: 15px 0 !important;
}

.mt-process-sec .process-list li {
    padding: 8px 15px !important;
}

.mt-process-sec .process-list .counter {
    font-size: 14px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}

.mt-process-sec .process-list .title {
    font-size: 12px !important;
}

/* ========== Cart Page ========== */
.cart-header {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.cart-row-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-col-img {
    flex: 0 0 60px;
    margin-right: 12px;
}

.cart-col-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
}

.cart-col-product { flex: 1; }

.cart-col-info {
    flex: 1;
    min-width: 0;
}

.cart-product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
}

.cart-product-name:hover {
    color: #666;
    text-decoration: none;
}

.cart-variant-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.cart-variant-info strong {
    color: #555;
}

.cart-col-price {
    flex: 0 0 110px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.cart-col-qty {
    flex: 0 0 90px;
    text-align: center;
}

.cart-qty-input {
    width: 60px;
    padding: 6px 4px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.cart-qty-input:focus {
    border-color: #333;
    outline: none;
}

.cart-col-total {
    flex: 0 0 120px;
    text-align: right;
    font-size: 15px;
    color: #333;
}

.cart-col-remove {
    flex: 0 0 40px;
    text-align: center;
}

.cart-col-remove a {
    color: #bbb;
    font-size: 18px;
    transition: color 0.2s;
}

.cart-col-remove a:hover {
    color: #e74c3c;
}

.cart-label {
    display: none;
}

/* Cart Summary */
.cart-summary {
    background: #f9f9f9;
    padding: 25px;
    border: 1px solid #eee;
}

.cart-summary h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.cart-summary-total {
    font-size: 16px;
    color: #333;
    border-bottom: none;
    padding-top: 12px;
}

@media (max-width: 767px) {
    .cart-header { display: none; }
    .cart-row-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px 0;
    }
    .cart-col-img {
        flex: 0 0 60px;
        margin-right: 10px;
    }
    .cart-col-img img { width: 60px; height: 60px; }
    .cart-col-info { flex: 1 1 calc(100% - 70px); }
    .cart-col-price, .cart-col-qty, .cart-col-total {
        flex: 1;
        text-align: left;
    }
    .cart-col-remove {
        flex: 0 0 30px;
    }
    .cart-label {
        display: inline;
        font-size: 11px;
        color: #999;
        margin-right: 4px;
    }
}

.table > thead > tr > th {
    border-bottom: 2px solid #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.icon-user:before {
    content: "\e005";
    font-family: 'Simple-Line-Icons';
}

/* Varyant Secim Butonlari */
.variant-btn {
    display: inline-block;
    padding: 8px 18px;
    margin: 0 6px 6px 0;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    text-align: center;
}

.variant-btn:hover {
    border-color: #333;
}

.variant-btn.active {
    border-color: #333;
    background: #333;
    color: #fff;
}

.variant-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variant-group {
    margin-bottom: 15px;
}

.variant-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.variant-selection {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

/* Product Image Zoom Icon */
.zoom-trigger {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.zoom-trigger:hover .zoom-icon {
    opacity: 1;
}

/* Image Zoom Modal */
.img-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
}

.img-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-modal-close {
    position: absolute;
    top: 20px; right: 25px;
    color: #fff;
    font-size: 36px;
    z-index: 10;
    text-decoration: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.img-modal-close:hover {
    opacity: 1;
    color: #fff;
    text-decoration: none;
}

.img-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 28px;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.img-modal-nav:hover {
    opacity: 1;
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
}

.img-modal-prev { left: 20px; }
.img-modal-next { right: 20px; }

.img-modal-zoom-wrap {
    max-width: 85vw;
    max-height: 85vh;
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-modal-zoom-wrap img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.img-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 2px;
}

/* Product Description - full width */
.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

/* Variant disabled button */
.variant-btn.variant-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Related Products Section */
.related-section {
    padding: 40px 0 60px;
    background: #fafafa;
}

.related-section .section-heading {
    font: 700 22px/28px "Montserrat", sans-serif;
    color: #333;
    margin: 0 0 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

.related-card {
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
}

.related-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.related-card-img {
    display: block;
    overflow: hidden;
    background: #fff;
    padding: 15px;
    text-align: center;
}

.related-card-img img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    transition: transform 0.3s;
}

.related-card:hover .related-card-img img {
    transform: scale(1.05);
}

.related-card-info {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.related-card-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
}

.related-card-info strong a {
    color: #333;
    text-decoration: none;
}

.related-card-info strong a:hover {
    color: #666;
}

.related-card-brand {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* ========== Category Grid (Homepage) ========== */
.cat-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.cat-card {
    flex: 1 1 0;
    max-width: 140px;
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.cat-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    text-decoration: none;
}

.cat-card-img {
    overflow: hidden;
}

.cat-card-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.06);
}

.cat-card-name {
    display: block;
    padding: 8px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-card:hover .cat-card-name {
    color: #000;
}

@media (max-width: 767px) {
    .cat-grid {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cat-card {
        flex: 0 0 calc(25% - 6px);
        max-width: none;
    }
    .cat-card-name {
        font-size: 9px;
        padding: 5px 2px;
    }
}

/* ========== Product Grid ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}

.product-grid-item {
    display: flex;
}

/* ========== Product Cards ========== */
.pcard {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s;
}

.pcard:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pcard-img {
    display: block;
    text-align: center;
    padding: 10px;
    background: #fff;
    overflow: hidden;
}

.pcard-img img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s;
}

.pcard:hover .pcard-img img {
    transform: scale(1.03);
}

.pcard-info {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f0f0f0;
}

.pcard-title {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
    min-height: 36px;
}

.pcard-title a {
    color: #333;
    text-decoration: none;
}

.pcard-title a:hover {
    color: #666;
}

.pcard-brand {
    display: block;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pcard-price {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* Kart icindeki varyant secimi - dropdown */
.pcard-variants {
    margin-top: auto;
    padding-top: 8px;
}

.pcard-select {
    display: block;
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #555;
    font-size: 12px;
    appearance: auto;
    cursor: pointer;
}

.pcard-select:focus {
    border-color: #333;
    outline: none;
}

.pcard-select option:disabled {
    color: #ccc;
}

/* Alt butonlar */
.pcard-actions {
    display: flex;
    border-top: 1px solid #eee;
}

.pcard-cart-btn {
    flex: 1;
    padding: 10px 5px;
    border: none;
    border-right: 1px solid #eee;
    background: #f5f5f5;
    color: #bbb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: not-allowed;
    transition: all 0.2s;
}

.pcard-cart-btn.active {
    background: #333;
    color: #fff;
    cursor: pointer;
}

.pcard-cart-btn.active:hover {
    background: #555;
}

.pcard-detail-btn {
    flex: 0 0 auto;
    padding: 10px 15px;
    background: #fafafa;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.pcard-detail-btn:hover {
    background: #eee;
    color: #333;
    text-decoration: none;
}

@media (max-width: 767px) {
    .pcard-img img {
        height: 180px;
    }
    .pcard-select {
        font-size: 11px;
        padding: 5px 6px;
    }
    .pcard-cart-btn, .pcard-detail-btn {
        font-size: 10px;
        padding: 8px 5px;
    }
}

/* ========== Pagination ========== */
.paging-nav {
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pg-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.pg-link:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    text-decoration: none;
}

.pg-active {
    background: #333;
    color: #fff;
    border-color: #333;
}
