/* BEMS Moda - Sepet Sayfası Stilleri */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #d3a7fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c19ae6;
}

/* Cart Section */
.cart-section {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.cart-header h1 i {
    color: #d3a7fa;
    margin-right: 0.5rem;
}

.cart-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Cart Content Layout */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.item-details h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.item-code {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.item-variants {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.item-color, .item-size {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.item-color i, .item-size i {
    margin-right: 0.25rem;
    color: #d3a7fa;
}

.item-price {
    font-weight: 600;
    color: #d3a7fa;
    font-size: 1.1rem;
}

/* Quantity Controls */
.item-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #666;
}

.qty-btn:hover {
    background: #d3a7fa;
    color: white;
}

.qty-input {
    border: none;
    width: 50px;
    height: 35px;
    text-align: center;
    font-weight: 500;
    background: white;
}

.qty-input:focus {
    outline: none;
}

/* Item Total */
.item-total .total-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

/* Item Actions */
.remove-btn {
    background: #ff4757;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: #666;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #333;
}

.free-shipping {
    color: #27ae60 !important;
    font-weight: 600 !important;
}

.total-row {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #d3a7fa;
}

.total-row span {
    color: #333 !important;
}

/* Cart Actions */
.cart-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.continue-shopping-btn, .checkout-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.continue-shopping-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.continue-shopping-btn:hover {
    background: #e9ecef;
    color: #333;
}

.checkout-btn {
    background: linear-gradient(135deg, #d3a7fa, #c19ae6);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 167, 250, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 167, 250, 0.4);
}

/* Cart Utilities */
.cart-utilities {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.clear-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid #ff4757;
    color: #ff4757;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-cart-btn:hover {
    background: #ff4757;
    color: white;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #d3a7fa;
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.start-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d3a7fa, #c19ae6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 167, 250, 0.3);
}

.start-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 167, 250, 0.4);
}

/* Minimalist Coupon Section Styles */
.minimalist-coupon-section {
    margin: 1rem 0;
    padding: 0;
}

/* Simple Header */
.coupon-simple-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.coupon-simple-header i {
    color: #667eea;
    font-size: 1rem;
}

/* Simple Input */
.coupon-simple-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.simple-coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: border-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simple-coupon-input:focus {
    outline: none;
    border-color: #667eea;
}

.simple-coupon-input::placeholder {
    color: #a0aec0;
    text-transform: none;
    letter-spacing: normal;
}

.simple-apply-btn {
    padding: 0.75rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.simple-apply-btn:hover {
    background: #5a67d8;
}

/* Hint */
.coupon-hint {
    margin-top: 0.5rem;
}

.coupon-hint small {
    color: #718096;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coupon-hint i {
    color: #667eea;
    font-size: 0.75rem;
}

/* Applied Coupon Simple */
.applied-coupon-simple {
    margin-bottom: 0.75rem;
}

.coupon-applied-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
}

.coupon-applied-info i {
    color: #38a169;
    font-size: 1rem;
}

.coupon-code-simple {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coupon-discount-simple {
    color: #38a169;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

.remove-coupon-simple {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.remove-coupon-simple:hover {
    background: #fed7d7;
}

/* Simple Discount Row */
.coupon-discount-simple {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.discount-amount-simple {
    color: #38a169;
    font-weight: 600;
}

/* Cart Header with Instagram Button */
.cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.cart-title-section {
    flex: 1;
    min-width: 0;
}

.cart-social-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Modern Instagram Button */
.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.instagram-btn:hover::before {
    left: 100%;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
}

.instagram-btn:active {
    transform: translateY(0);
}

.instagram-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.instagram-btn:hover i {
    transform: scale(1.1);
}

.instagram-btn .btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Product Link Styles */
.product-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.product-link:hover {
    opacity: 0.8;
}

.product-name-link {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-name-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cart-social-section {
        justify-content: center;
    }
    
    .instagram-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        justify-content: center;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .coupon-simple-input {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .simple-apply-btn {
        width: 100%;
    }
    
    .coupon-applied-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .coupon-discount-simple {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .cart-header-content {
        gap: 1rem;
    }
    
    .instagram-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .instagram-btn i {
        font-size: 1rem;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d3a7fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Active Cart Button */
.cart-button.active {
    background: linear-gradient(135deg, #c19ae6, #b088d9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .item-quantity, .item-total, .item-actions {
        grid-column: 1 / -1;
        justify-self: start;
    }
    
    .item-quantity {
        margin-top: 1rem;
    }
    
    .item-total {
        text-align: left;
    }
    
    .item-actions {
        text-align: right;
        margin-top: 0.5rem;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.75rem 0;
        margin-top: 60px;
    }
    
    .breadcrumb .container {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .cart-section {
        padding: 1rem 0 2rem;
    }
    
    .cart-header {
        margin-bottom: 2rem;
    }
    
    .cart-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-subtitle {
        font-size: 0.95rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-items {
        order: 1;
    }
    
    .cart-summary {
        order: 2;
    }
    
    .cart-item {
        padding: 0.75rem;
        grid-template-columns: 70px 1fr auto;
        gap: 12px;
    }
    
    .item-image img {
        width: 60px;
        height: 60px;
    }
    
    .item-details h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .item-details p {
        font-size: 0.85rem;
        margin: 2px 0;
    }
    
    .item-price {
        font-size: 1.1rem;
        text-align: right;
    }
    
    .item-actions {
        text-align: center;
        margin-top: 10px;
        grid-column: 1 / -1;
    }
    
    .quantity-controls {
        justify-content: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .quantity-display {
        padding: 5px 12px;
        font-size: 0.9rem;
        min-width: 40px;
    }
    
    .remove-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .summary-card {
        padding: 1.25rem;
    }
    
    .summary-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .summary-row {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .summary-total {
        font-size: 1.1rem;
        padding: 12px 0;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 1rem;
        width: 100%;
    }
    
    .continue-shopping {
        margin-top: 15px;
        font-size: 0.9rem;
    }
    
    .empty-cart {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .empty-cart h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .empty-cart p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .shop-now-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Payment Options Styles */
.payment-options {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-options h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    cursor: pointer;
    display: block;
}

.payment-method input[type="radio"] {
    display: none;
}

.method-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.method-box i {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.method-box .method-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    flex: 1;
}

.method-box .method-desc {
    font-size: 0.85rem;
    color: #6b7280;
    position: absolute;
    bottom: 5px;
    right: 15px;
}

.payment-method input[type="radio"]:checked + .method-box {
    border-color: #d3a7fa;
    background: linear-gradient(135deg, rgba(211, 167, 250, 0.08) 0%, rgba(183, 148, 246, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(211, 167, 250, 0.2);
}

.payment-method input[type="radio"]:checked + .method-box i {
    color: #d3a7fa;
}

.payment-method input[type="radio"]:checked + .method-box::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d3a7fa;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.method-box:hover {
    border-color: #d3a7fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 167, 250, 0.15);
}

@media (max-width: 768px) {
    .method-box {
        padding: 12px;
    }
    
    .method-box i {
        font-size: 1.3rem;
    }
    
    .method-box .method-title {
        font-size: 0.9rem;
    }
    
    .method-box .method-desc {
        display: none;
    }
}
