/* Request Price Page Styles */

:root {
  
    --primary-dark: #2A3FA9;
    --primary-light: #F0F6FF;
    

    --danger-color: #E74C3C;
    --text-primary: #222;
    --text-secondary: #666;
    --bg-light: #F5F5F5;
}

/* General Styles */
* {
    box-sizing: border-box;
}

main {
   
    min-height: 100vh;
}

.cart-page-header h1 {
    line-height: 1.2;
}

.cart-page-header p {
    max-width: 680px;
}

.navigation {
   
    border-bottom: 1px solid var(--border);
}

.breadcrumb-nav,
.navigation {
  
}

/* Cart Section */
.cart-section {
    margin-bottom: 3rem;
}

.cart-items-wrapper {
    display: grid;
    gap: 1.5rem;
}

.cart-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .5rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--main);
    transform: translateY(-2px);
}

.cart-item-inner {
    display: grid;
    grid-template-columns: auto 1fr 120px;
    gap: 1.75rem;
    padding: 1.5rem 1.75rem;
    align-items: center;
    direction: rtl;
}
@media (max-width: 456px) {
    .cart-item-inner {
        grid-template-columns: auto 1fr 61px;
    }
}


/* Product Image */
.cart-item-image {
    width: 116px;
    height: 116px;
    background: #f6f7f9;
    border-radius: 0.9rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Product Details */
.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0;
    text-align: right;
}

.cart-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
 
}

.cart-item-price {
    color: #0b4aa0;
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.cart-item-title {
     font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(180deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    margin: 0;
    transition: all .3s;
}
.cart-item-title:hover {
    color: var(--main);
    background: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--main);
}
.cart-item-specs {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-self: baseline;
}

.spec-badge {
    background: var(--primary-light);
    color: var(--main);
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    width: fit-content;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid rgba(59, 91, 219, 0.2);
}

.spec-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.spec-value {
    color: var(--main);
    font-weight: 500;
}

/* Cart Actions */
.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
    padding-left: 0;
    direction: ltr;
  align-self: self-end;
  justify-content: space-between;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
     align-self: self-end;
}

.favorite-btn {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #e6edf5;
    background: #fff;
    color: #1d5bd6;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    border-color: #c7d8f6;
    background: #f4f7ff;
}

.favorite-btn.active {
    background: var(--main);
    color: #fff;
    border-color: var(--main);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.options-btn {
    border: 1px solid #e6edf5;
    background: #fff;
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.options-btn:hover {
    border-color: #c7d8f6;
    color: #1d5bd6;
}

/* Quantity Control */
.quantity-control {
      display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.46rem;
    background-color: #e6f3fe;
 
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
  line-height: 1.8;
    justify-content: center;

    border-radius: 4px;
}

.quantity-control button:hover {
    background: #E0E0E0;
    color: var(--text-primary);
}

.quantity-control button:active {
    transform: scale(0.95);
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1rem;
    color: var(--main);
    padding: 4px 0;
}
.quantity-control button.qty-increase{
    color: var(--main);
}

.quantity-control input:focus {
    outline: none;
}

/* Remove spinner from input number */
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control input[type=number] {
    -moz-appearance: textfield;
}

/* Delete Button */
.delete-btn {
    width: 2.4rem;
    height: 2.4rem  ;
    border: none;
    background: #FFE8E8;
    color: var(--danger-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: var(--danger-color);
    color: #fff;
    transform: scale(1.05);
}

.delete-btn:active {
    transform: scale(0.95);
}

/* Empty Cart Message */
.empty-cart-message {
    padding: 3rem 1rem;
    background: #fff;
    border-radius: 1rem;
   
    text-align: center;
}

.empty-cart-message img {
    max-width: 100%;
}

.empty-cart-message p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
}

/* Form Section */
.form-section {
    background: transparent;
    padding: 0;
}

.form-card,
.summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
        z-index: 1;
}

.form-card:hover {
    border-color: var(--main);
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.08);
}

.form-card h2,
.summary-card h3 {
  
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.coupon-box .form-label {
    margin-bottom: 0.75rem;
}

.coupon-input {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.coupon-input .form-control {
    flex: 1;
}

.coupon-input .btn {
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* Form Inputs */
.form-control {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    background: #fff;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
    background: #fff;
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

.form-control:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.error-msg {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

/* Buttons */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

.main-bg {
    background: linear-gradient(135deg, var(--main) 0%, var(--primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.continue:hover {
    background: var(--main) !important;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 91, 219, 0.3);

}
.main-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.main-bg:hover::before {
    left: 100%;
}

.main-bg:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1F2A7A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 91, 219, 0.3);
}

.main-bg:active {
    transform: translateY(0);
}

.main-bg:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--main);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #E0E0E0;
}

/* Summary Sidebar */
.summary-card {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 992px) {
    .summary-card {
        position: relative;
        top: auto;
    }
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-row {
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.summary-row span {
    color: var(--text-secondary);
    
}



.summary-total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.summary-total strong {
    font-size: 1.2rem;
}

#totalPrice {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.alert {
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0 0 0;
}

.alert-info {
    background: var(--primary-light);
    border: 1px solid rgba(59, 91, 219, 0.2);
    color: var(--main);
}

.alert-info small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--main);
}

/* Responsive Design */
@media (max-width: 992px) {
    .cart-item-inner {
        gap: 1rem;
        padding: 1rem;
    }

    .form-section {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem 0;
    }

    .navigation {
        padding: 1rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .form-card,
    .summary-card {
        border-radius: 1rem;
        padding: 1rem;
    }

    .cart-item {
        border-radius: 0.75rem;
    }

    .form-card h2,
    .summary-card h3 {
        font-size: 1.3rem;
    }

    .cart-item-title {
        font-size: 1rem;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .cart-item-image {
        width: 90px;
        height: 90px;
    }

    .cart-item-title {
        font-size: 0.95rem;
    }

    .spec-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .quantity-control button {
        width: auto;
        height: auto;
        font-size: 0.9rem;
    }

    .quantity-control input {
        width: 2.4rem;
        font-size: 0.9rem;
    }



    .form-control {
        font-size: 0.95rem;
        padding: 0.65rem 0.75rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Custom utilities */
.custom-border {
    border: 1px solid var(--border) !important;
}





/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 91, 219, 0.3);
    border-top-color: var(--main);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Print styles */
@media print {
    .cart-item-actions {
        display: none;
    }

    .form-section {
        display: none;
    }

    .cart-item {
        page-break-inside: avoid;
    }
}
