/* Genel CSS */

a {
    text-decoration: none;
    outline: none;
    -webkit-transition: color 0.3s;
    -ms-transition: color 0.3s;
    transition: color 0.3s;
}

/* Cart Icon Button */
.shpcrt-icon-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2999;
}

.shpcrt-cart-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shpcrt-cart-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.shpcrt-cart-icon {
    font-size: 24px;
}

.shpcrt-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

/* Overlay */
.shpcrt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shpcrt-overlay.shpcrt-active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.shpcrt-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: white;
    z-index: 3001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
}

.shpcrt-sidebar.shpcrt-active {
    right: 0;
}

/* Header */
.shpcrt-header {
    padding: 20px;
    background: #fff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.shpcrt-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.shpcrt-close-btn {
    background: #f5f5f5;
    border: none;
    color: #333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shpcrt-close-btn:hover {
    background: #e0e0e0;
}

/* Delivery Info */
.shpcrt-delivery-info {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.shpcrt-delivery-icon {
    font-size: 20px;
}

.shpcrt-delivery-text {
    flex: 1;
}

.shpcrt-delivery-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.shpcrt-delivery-desc {
    font-size: 11px;
    color: #666;
}

/* Mini Cart Wrapper */
.mini-cart {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cart Items Container */
.shpcrt-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fafafa;
}

.shpcrt-items-container::-webkit-scrollbar {
    width: 6px;
}

.shpcrt-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.shpcrt-items-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Cart Item */
.shpcrt-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.shpcrt-item-content {
    display: flex;
    gap: 12px;
}

.shpcrt-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.shpcrt-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shpcrt-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shpcrt-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.shpcrt-item-details {
    flex: 1;
}

.shpcrt-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.shpcrt-item-title-info {
    color: #707070;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.shpcrt-price-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.shpcrt-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.shpcrt-new-price {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b35;
}

/* Quantity and Remove */
.shpcrt-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.shpcrt-qty-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.shpcrt-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    font-weight: 600;
    transition: all 0.2s ease;
}

.shpcrt-qty-btn:hover {
    color: #333;
}

.shpcrt-qty-input {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.shpcrt-remove-text {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.shpcrt-remove-text:hover {
    color: #e74c3c;
}

/* Variants */
.shpcrt-variants {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.shpcrt-variant-item {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Campaign Badge */
.shpcrt-campaign {
    margin-top: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Promo Code */
.shpcrt-promo-section {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.shpcrt-promo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px dashed #ccc;
}

.shpcrt-promo-icon {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.shpcrt-promo-text {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.shpcrt-promo-btn {
    font-size: 12px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* Footer */
.shpcrt-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.shpcrt-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.shpcrt-summary-label {
    font-size: 14px;
    color: #666;
}

.shpcrt-summary-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.shpcrt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shpcrt-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.shpcrt-total-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.shpcrt-checkout-btn {
    width: 100%;
    background: #4caf50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.shpcrt-checkout-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.shpcrt-continue-btn {
    width: 100%;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shpcrt-continue-btn:hover {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .shpcrt-sidebar {
        width: 100%;
        right: -100%;
    }

    .shpcrt-header {
        padding: 15px;
    }

    .shpcrt-header h2 {
        font-size: 18px;
    }

    .shpcrt-delivery-info {
        padding: 10px 15px;
    }

    .shpcrt-items-container {
        padding: 10px;
    }

    .shpcrt-item {
        padding: 10px;
        margin-bottom: 8px;
    }

    .shpcrt-item-image {
        width: 70px;
        height: 70px;
    }

    .shpcrt-item-title {
        font-size: 13px;
    }

    .shpcrt-old-price {
        font-size: 11px;
    }

    .shpcrt-new-price {
        font-size: 13px;
    }

    .shpcrt-qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .shpcrt-qty-input {
        width: 30px;
        font-size: 13px;
    }

    .shpcrt-remove-text {
        font-size: 12px;
    }

    .shpcrt-variant-item {
        font-size: 10px;
        padding: 2px 6px;
    }

    .shpcrt-campaign {
        font-size: 10px;
        padding: 3px 6px;
    }

    .shpcrt-promo-section {
        padding: 12px 15px;
    }

    .shpcrt-footer {
        padding: 15px;
    }

    .shpcrt-summary-label,
    .shpcrt-summary-value {
        font-size: 13px;
    }

    .shpcrt-total-label {
        font-size: 15px;
    }

    .shpcrt-total-price {
        font-size: 18px;
    }

    .shpcrt-checkout-btn {
        padding: 13px;
        font-size: 14px;
    }

    .shpcrt-continue-btn {
        padding: 11px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .shpcrt-cart-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

/* Toast Base Styles */
.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Toast Show Animation */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Types */
.toast.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.toast.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fef1f1 100%);
}

.toast.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
}

.toast.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #6b7280;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: currentColor;
    transition: width linear;
    opacity: 0.7;
}

.toast.success .toast-progress-bar {
    background: #10b981;
}

.toast.error .toast-progress-bar {
    background: #ef4444;
}

.toast.warning .toast-progress-bar {
    background: #f59e0b;
}

.toast.info .toast-progress-bar {
    background: #3b82f6;
}

/* product card image ratio */

.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-9-16 { aspect-ratio: 9 / 16; }

/* product rating */

.product-rating {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    min-height: 14px;
}
.rating-score {
    font-weight: 600;
    color: #1a1a1a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.stars-display {
    width: 90px;
    height: 15px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #FFB800 var(--percent), #E0E0E0 var(--percent));
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M10 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M30 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M50 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M70 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M90 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/></svg>') no-repeat left center;
    -webkit-mask-size: 100% 100%;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M10 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M30 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M50 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M70 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/><path d="M90 0l2.5 7.5h7.5l-6 4.5 2.5 7.5-6-4.5-6 4.5 2.5-7.5-6-4.5h7.5z"/></svg>') no-repeat left center;
    mask-size: 100% 100%;
}
.stars-display::before, .stars-display::after {
    content: none !important;
    display: none !important;
}
.review-count {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
    margin-left: 100px;
}