/* Glycon Basket Page Styles */

/* Hide old page elements */
.g-page-hero,
.g-page-hero-section,
.page-hero,
.sayfaustheader,
.sayfabaslik,
.g-breadcrumb,
.breadcrumb {
    display: none !important;
}

/* Reset g-page padding for basket */
.g-page:has(.bsk-page) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Main Container */
.bsk-page {
    min-height: auto;
    background: #fff;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsk-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.bsk-header {
    text-align: center;
    margin-bottom: 30px;
}

.bsk-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.bsk-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Grid Layout */
.bsk-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.bsk-grid.empty-state {
    grid-template-columns: 1fr;
}

.bsk-grid.empty-state .bsk-items {
    max-width: 700px;
    margin: 0 auto;
}

/* Items Section */
.bsk-items {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.bsk-items-header {
    display: grid;
    grid-template-columns: 1fr 160px 140px 50px;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.bsk-items-body {
    min-height: 100px;
}

/* Empty State - Modern & Cute */
.bsk-empty {
    display: none;
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.bsk-empty.show ~ .bsk-sidebar {
    display: none;
}

.bsk-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bsk-empty-icon::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed #93c5fd;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bsk-empty-icon i {
    font-size: 50px;
    color: var(--g-primary);
}

.bsk-empty h4 {
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 10px;
    font-weight: 700;
}

.bsk-empty p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}

.bsk-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--g-primary), var(--g-secondary));
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(63,147,214,0.25);
}

.bsk-empty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(63,147,214,0.35);
    color: #fff;
}

.bsk-empty-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.bsk-empty-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.bsk-empty-feature i {
    color: var(--g-accent);
    font-size: 16px;
}

/* Loader */
.bsk-loader {
    text-align: center;
    padding: 60px 40px;
    display: block;
}

.bsk-loader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #3f93d6;
    border-radius: 50%;
    animation: bsk-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes bsk-spin {
    to { transform: rotate(360deg); }
}

/* Item Row - These classes are used by JavaScript */
.sepetlist {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.sepetlist:hover {
    background: #f8fafc;
}

.sepetlist:last-child {
    border-bottom: none;
}

.row-label {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 0 0 8px;
}

.green-label {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.sepetlistcon {
    display: grid;
    grid-template-columns: 1fr 160px 140px 50px;
    gap: 16px;
    padding: 20px 24px;
    align-items: center;
}

.uhinfo {
    min-width: 0;
}

.uhinfo h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.uhinfo h5 strong {
    font-weight: 600;
}

.uhinfo h4 {
    margin: 0;
    font-size: 13px;
}

.uhinfo h4 a {
    color: #3f93d6;
    text-decoration: none;
}

.uhinfo h4 a:hover {
    text-decoration: underline;
}

.uhinfo p {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.uhinfo p span {
    color: #3f93d6;
    font-weight: 500;
}

.uhinfo .checkbox-custom {
    margin-right: 8px;
}

.uhinfo .checkbox-custom-label {
    font-size: 13px !important;
    color: #64748b;
    cursor: pointer;
}

.uhperiyod {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uhperiyod h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 6px;
}

.uhperiyod span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

.uhperiyod select {
    width: auto;
    min-width: 140px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.uhperiyod select option {
    color: #1e293b;
    padding: 8px;
}

.uhperiyod select:hover {
    border-color: #3f93d6;
}

.uhperiyod select:focus {
    outline: none;
    border-color: #3f93d6;
    box-shadow: 0 0 0 3px rgba(63,147,214,0.1);
}

.uhtutar {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.uhtutar h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.uhtutar h4 strong {
    font-weight: 700;
}

.uhsil {
    text-align: center;
}

.uhsil a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.3s;
}

.uhsil a:hover {
    background: #fef2f2;
    color: #ef4444;
}

.uhsil a i {
    font-size: 16px;
}

/* Currency Position */
.amount_spot_view {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.currposleft {
    order: -1;
    margin-right: 2px;
}

.currposright {
    order: 1;
    margin-left: 2px;
}

/* Clear fix - hide inside grid */
.clear {
    clear: both;
}

.sepetlistcon .clear {
    display: none;
}

/* Continue Shopping Button */
.bsk-continue-shopping {
    text-align: center;
    padding: 24px;
    border-top: 1px solid #f1f5f9;
}

.bsk-continue-shopping a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s;
}

.bsk-continue-shopping a:hover {
    border-color: #3f93d6;
    color: #3f93d6;
}

/* Payment Logos */
.bsk-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.bsk-security img {
    height: 32px;
    opacity: 0.7;
}

.bsk-security span {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* Sidebar - Order Summary */
.bsk-sidebar {
    position: sticky;
    top: 100px;
}

.bsk-summary {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.bsk-summary-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.bsk-summary-body {
    padding: 24px;
}

.bsk-summary-loader {
    text-align: center;
    padding: 30px;
}

.bsk-summary-loader .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3f93d6;
    border-radius: 50%;
    animation: bsk-spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Summary Table */
.sepetsipinfo {
    width: 100%;
    border-collapse: collapse;
}

.sepetsipinfo tr {
    border-bottom: 1px solid #f1f5f9;
}

.sepetsipinfo tr:last-child {
    border-bottom: none;
}

.sepetsipinfo td {
    padding: 14px 0;
    font-size: 14px;
    color: #64748b;
    vertical-align: middle;
}

.sepetsipinfo td strong {
    color: #1e293b;
    font-weight: 500;
}

.sepetsipinfo td h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.sepetsipinfo .totalamountinfo {
    padding: 20px 0;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    margin-top: 16px;
}

.sepetsipinfo .totalamountinfo strong {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sepetsipinfo .totalamountinfo h5 {
    font-size: 28px;
    font-weight: 800;
    color: #22c55e;
    margin-top: 8px;
}

/* Coupon Section */
.sepetsipinfo a {
    color: #3f93d6;
    text-decoration: none;
    font-size: 13px;
}

.sepetsipinfo a:hover {
    text-decoration: underline;
}

.sepetsipinfo a i {
    margin-right: 6px;
}

.kuponkodu {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.kuponkodu input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.kuponkodu input:focus {
    outline: none;
    border-color: #3f93d6;
    box-shadow: 0 0 0 3px rgba(63,147,214,0.1);
}

.kuponkodu .error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 8px;
}

/* Checkout Buttons */
.bsk-checkout {
    padding: 0 24px 24px;
}

.bsk-checkout a,
.gonderbtn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

#continue_go {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

#continue_go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}

#continue_block {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

/* Old button overrides */
.graybtn.gonderbtn {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
}

#continueshopbtn {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .bsk-grid {
        grid-template-columns: 1fr;
    }
    
    .bsk-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .bsk-page {
        padding: 16px 16px;
    }
    
    .bsk-header {
        margin-bottom: 20px;
    }
    
    .bsk-title {
        font-size: 20px;
    }
    
    .bsk-subtitle {
        font-size: 13px;
    }
    
    .bsk-items-header {
        display: none;
    }
    
    .sepetlistcon {
        grid-template-columns: 1fr;
        gap: 12px;
        position: relative;
        padding-right: 50px;
    }
    
    .uhinfo {
        order: 1;
    }
    
    .uhperiyod {
        order: 2;
        text-align: left;
    }
    
    .uhperiyod h5 {
        display: inline-block;
        background: #f1f5f9;
        padding: 6px 12px;
        border-radius: 6px;
    }
    
    .uhperiyod select {
        max-width: 200px;
    }
    
    .uhtutar {
        order: 3;
        text-align: left;
    }
    
    .uhtutar h4 {
        font-size: 18px;
        color: #22c55e;
    }
    
    .uhsil {
        position: absolute;
        top: 20px;
        right: 16px;
    }
    
    .bsk-security {
        flex-direction: column;
        gap: 12px;
    }
}
