/* Cart Page Styles */
.cart-page {
    background: #F8F9FA;
    min-height: 100vh;
    padding-bottom: 200px;
}

.cart-items {
    padding: 16px;
}

.cart-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--gray-light);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.cart-item-variant {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}

.cart-qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-qty-value {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    font-size: 13px;
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: 0.2s;
    border: 1px solid var(--gray-light);
}

.cart-item-remove:hover {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.cart-empty {
    text-align: center;
    padding: 48px 24px;
}

.cart-empty-icon {
    font-size: 64px;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.cart-empty-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.cart-empty-text {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 14px;
}

.cart-summary {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 100;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray);
    font-size: 16px;
    font-weight: 800;
}

.summary-label {
    color: var(--gray);
}

.summary-value {
    font-weight: 600;
    color: var(--dark);
}

.summary-row.total .summary-value {
    color: var(--primary);
}

.checkout-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-checkout {
    flex: 2;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 13px;
}

.btn-whatsapp-checkout {
    flex: 1;
    padding: 14px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 20px;
}

.btn-checkout:hover,
.btn-whatsapp-checkout:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Checkout */
.checkout-page {
    background: #F8F9FA;
    min-height: 100vh;
    padding-bottom: 100px;
}

.checkout-section {
    background: var(--white);
    margin-bottom: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.checkout-section-title .icon {
    color: var(--primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: 0.2s;
    background: var(--gray-light);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.2s;
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.02);
}

.payment-option.whatsapp.selected {
    border-color: var(--whatsapp);
    background: rgba(37, 211, 102, 0.05);
}

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-full);
    position: relative;
}

.payment-option.selected .payment-radio {
    border-color: var(--primary);
}

.payment-option.selected .payment-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.payment-option.whatsapp.selected .payment-radio {
    border-color: var(--whatsapp);
}

.payment-option.whatsapp.selected .payment-radio::after {
    background: var(--whatsapp);
}

.payment-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payment-option.whatsapp .payment-icon {
    background: var(--whatsapp);
    color: var(--white);
}

.payment-details {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-desc {
    font-size: 13px;
    color: var(--gray);
}

.whatsapp-info {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid var(--whatsapp);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}

.whatsapp-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a9e4a;
    margin-bottom: 8px;
}

.whatsapp-info-text {
    font-size: 13px;
    color: var(--dark);
    line-height: 1.6;
}

.whatsapp-steps {
    margin-top: 12px;
}

.whatsapp-step {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.step-number {
    width: 22px;
    height: 22px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Product Details */
.product-details-page {
    padding-bottom: 100px;
}

.back-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.back-btn {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.2s;
}

.page-title {
    font-size: 16px;
    font-weight: 600;
}

.gallery-main {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #F8F9FA;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumbnail.active {
    border-color: var(--primary);
}

.product-details-content {
    padding: 16px;
}

.product-title-lg {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-price-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 16px;
    color: var(--gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.product-description {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-specs {
    background: #F8F9FA;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--gray);
    font-size: 13px;
}

.spec-value {
    font-weight: 500;
    font-size: 13px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.qty-label {
    font-weight: 600;
}

.qty-controls {
    display: flex;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    font-size: 20px;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.qty-value {
    width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.btn-cart {
    flex: 1;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-whatsapp {
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 0.2s;
}

.btn-cart:hover,
.btn-whatsapp:hover {
    transform: scale(1.02);
}

/* Profile */
.profile-page {
    background: #F8F9FA;
    min-height: 100vh;
    padding-bottom: 80px;
}

.profile-header {
    background: var(--gradient-primary);
    padding: 40px 16px;
    text-align: center;
    color: var(--white);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: var(--white);
    border-radius: var(--radius-full);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-email {
    opacity: 0.9;
    font-size: 14px;
}

.profile-menu {
    padding: 16px;
}

.menu-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.menu-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    padding: 12px 16px;
    background: #F8F9FA;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-light);
    transition: 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #F8F9FA;
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.menu-icon.green {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

.menu-icon.blue {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.menu-icon.purple {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.menu-icon.orange {
    background: linear-gradient(135deg, #E67E22, #D35400);
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-subtitle {
    font-size: 13px;
    color: var(--gray);
}

.menu-arrow {
    color: var(--gray);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}