/* Cart Page - TryDo Theme Styles */

/* Cart Item Card */
.cart-item-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Product Image */
.cart-item-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cart-voucher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f9004d 0%, #ff1a5e 100%);
    color: #ffffff;
    font-size: 28px;
}

/* Product Info */
.cart-item-info {
    padding: 0 10px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.cart-item-title a {
    color: #1f1f25;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-title a:hover {
    color: #f9004d;
}

.cart-item-model {
    font-size: 13px;
    color: #717173;
    margin-bottom: 0;
    margin-top: 5px;
}

.cart-item-options small {
    color: #717173;
    font-size: 12px;
}

.cart-item-stock {
    font-size: 12px;
}

/* Price */
.cart-item-price {
    text-align: center;
}

.cart-item-price span {
    font-size: 15px;
    color: #1f1f25;
}

/* Quantity */
.cart-item-quantity {
    text-align: center;
}

.cart-item-quantity .form-control {
    width: 60px;
    text-align: center;
    margin: 0 auto 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.cart-item-quantity .form-control:focus {
    border-color: #f9004d;
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 0, 77, 0.1);
}

.cart-item-qty-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    padding: 0;
}

.cart-qty-update {
    background: #e8e8e8;
    color: #1f1f25;
}

.cart-qty-update:hover {
    background: #f9004d;
    color: #ffffff;
}

.cart-qty-remove {
    background: #e8e8e8;
    color: #1f1f25;
}

.cart-qty-remove:hover {
    background: #dc3545;
    color: #ffffff;
}

/* Total */
.cart-item-total {
    text-align: center;
}

.cart-item-total strong {
    font-size: 16px;
    color: #1f1f25;
    font-weight: 700;
}

/* Cart Summary Card */
.cart-summary-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.cart-summary-inner {
    padding: 30px;
}

.cart-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f1f25;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-summary-totals {
    margin-bottom: 25px;
}

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

.cart-summary-row:last-child {
    border-bottom: 2px solid #1f1f25;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.cart-summary-label {
    font-size: 15px;
    color: #717173;
    font-weight: 500;
}

.cart-summary-row:last-child .cart-summary-label {
    color: #1f1f25;
    font-weight: 700;
    font-size: 16px;
}

.cart-summary-value {
    font-size: 15px;
    color: #1f1f25;
    font-weight: 600;
}

.cart-summary-row:last-child .cart-summary-value {
    font-size: 18px;
    color: #f9004d;
    font-weight: 700;
}

/* Summary Buttons */
.cart-summary-actions {
    padding-top: 10px;
}

.cart-summary-actions .rn-button-style--2 {
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ================================
   Checkout Page Styles
   ================================ */

/* Section Cards */
.checkout-section-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f25;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Account Type Tabs */
.checkout-tab {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #717173;
    transition: all 0.3s ease;
}

.checkout-tab:hover {
    border-color: #f9004d;
    color: #f9004d;
}

.checkout-tab.active {
    border-color: #f9004d;
    background: #f9004d;
    color: #ffffff;
}

.checkout-tab input[type="radio"] {
    display: none;
}

/* Override onepagecheckout plugin styles for TryDo */
#onepagecheckout .form-group {
    margin-bottom: 15px;
}

#onepagecheckout .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

#onepagecheckout .form-control:focus {
    outline: none;
    border-color: #f9004d;
    box-shadow: 0 0 0 2px rgba(249, 0, 77, 0.1);
}

#onepagecheckout select.form-control {
    appearance: auto;
}

#onepagecheckout label {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f25;
    margin-bottom: 5px;
}

#onepagecheckout .has-error .form-control {
    border-color: #dc3545;
}

#onepagecheckout .text-danger {
    font-size: 12px;
    margin-top: 4px;
}

/* Payment/Shipping method radio buttons */
#onepagecheckout .radio label,
#onepagecheckout .checkbox label {
    font-weight: 400;
    color: #1f1f25;
    cursor: pointer;
    padding: 8px 0;
}

/* Fix oversized radio buttons and checkboxes */
#onepagecheckout input[type="radio"],
#onepagecheckout input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -1px;
    accent-color: #f9004d;
    display: inline-block;
}

#onepagecheckout .radio,
#onepagecheckout .checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

#onepagecheckout .radio label,
#onepagecheckout .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Terms checkbox inline */
#onepagecheckout .confirm-order-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* Confirm section */
#onepagecheckout .confirm-order-content .btn,
#onepagecheckout .confirm-order-content button[id^="button-"] {
    background: #f9004d;
    border: 2px solid #f9004d;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#onepagecheckout .confirm-order-content .btn:hover,
#onepagecheckout .confirm-order-content button[id^="button-"]:hover {
    background: #d6003f;
    border-color: #d6003f;
}

/* Login form in checkout */
#onepagecheckout .content-login .form-group {
    margin-bottom: 15px;
}

#onepagecheckout .content-login .btn-primary {
    background: #f9004d;
    border-color: #f9004d;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
}

#onepagecheckout .content-login .btn-primary:hover {
    background: #d6003f;
    border-color: #d6003f;
}

/* Hide utility */
#onepagecheckout .hide {
    display: none;
}

/* Override ext classes */
#onepagecheckout .extrow {
    display: block;
}

#onepagecheckout .extsm-12 {
    width: 100%;
}

#onepagecheckout .extpanel {
    border: none;
    box-shadow: none;
    background: transparent;
}

#onepagecheckout .extpanel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f25;
    margin-bottom: 10px;
}

#onepagecheckout .extpanel-body {
    padding: 0;
}

/* All checkout buttons - TryDo style */
#onepagecheckout .btn-contrast,
#onepagecheckout .confirm-btn-holder .btn,
#onepagecheckout .button-login {
    background: #f9004d;
    border: 2px solid #f9004d;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
}

#onepagecheckout .btn-contrast:hover,
#onepagecheckout .confirm-btn-holder .btn:hover,
#onepagecheckout .button-login:hover {
    background: #d6003f;
    border-color: #d6003f;
    color: #ffffff;
}

/* Continue shopping button - outline style */
#onepagecheckout .confirm-btn-holder .btn-primary {
    background: transparent;
    border: 2px solid #f9004d;
    color: #f9004d;
}

#onepagecheckout .confirm-btn-holder .btn-primary:hover {
    background: #f9004d;
    border-color: #f9004d;
    color: #ffffff;
}

/* Forgotten password link */
#onepagecheckout .content-login .pull-right {
    color: #f9004d;
    font-size: 13px;
}

#onepagecheckout .content-login .pull-right:hover {
    color: #d6003f;
}

/* Checkbox/agree styling */
#onepagecheckout .margin-b10 {
    margin-bottom: 10px;
}

/* Confirm button holder spacing */
#onepagecheckout .confirm-btn-holder {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-summary-card {
        position: static;
        margin-top: 30px;
    }

    .checkout-section-card {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .cart-item-card {
        padding: 15px;
    }

    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total {
        text-align: left;
        margin-top: 10px;
    }

    .cart-item-quantity .form-control {
        margin: 0 0 8px;
    }

    .cart-item-qty-actions {
        justify-content: flex-start;
    }

    .checkout-section-card {
        padding: 15px;
    }

    .checkout-tab {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ================================
   Account Pages Styles
   ================================ */

/* Account Form Styling */
.account-form .form-group {
    margin-bottom: 15px;
}

.account-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.account-form .form-control:focus {
    outline: none;
    border-color: #f9004d;
    box-shadow: 0 0 0 2px rgba(249, 0, 77, 0.1);
}

.account-form select.form-control {
    appearance: auto;
}

.account-form label {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f25;
    margin-bottom: 5px;
    display: block;
}

.account-form .has-error .form-control {
    border-color: #dc3545;
}

.account-form .text-danger {
    font-size: 12px;
    margin-top: 4px;
}

.account-form .radio label,
.account-form .checkbox label {
    font-weight: 400;
    color: #1f1f25;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.account-form input[type="radio"],
.account-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -1px;
    accent-color: #f9004d;
    display: inline-block;
}

.account-form .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
    font-size: 14px;
    cursor: pointer;
}

.account-form .input-group {
    display: flex;
}

.account-form .input-group .form-control {
    border-radius: 6px 0 0 6px;
}

.account-form .input-group-btn .btn {
    border-radius: 0 6px 6px 0;
    border: 1px solid #e1e1e1;
    border-left: none;
    padding: 12px 15px;
    background: #f5f5f5;
}

/* Account Dashboard Cards */
.checkout-section-card .single-service.service__style--2 {
    padding: 20px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.checkout-section-card .single-service.service__style--2:hover {
    border-color: #f9004d;
    box-shadow: 0 5px 15px rgba(249, 0, 77, 0.1);
    transform: translateY(-2px);
}

.checkout-section-card .single-service.service__style--2 .title {
    color: #1f1f25;
    margin: 0;
}

.checkout-section-card .single-service.service__style--2:hover .title {
    color: #f9004d;
}

/* Account Tables */
.checkout-section-card .table {
    margin-bottom: 0;
}

.checkout-section-card .table thead td {
    background: #f8f8f8;
    font-weight: 600;
    color: #1f1f25;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-color: #e8e8e8;
}

.checkout-section-card .table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 14px;
    color: #1f1f25;
    border-color: #f0f0f0;
}

.checkout-section-card .table tbody tr:hover {
    background: #fafafa;
}

.checkout-section-card .table tfoot td {
    padding: 10px 15px;
    border-color: #e8e8e8;
}

/* Pagination in account pages */
.checkout-section-card .pagination {
    margin: 0;
}

.checkout-section-card .pagination > li > a,
.checkout-section-card .pagination > li > span {
    color: #1f1f25;
    border-color: #e0e0e0;
    padding: 8px 14px;
    font-size: 13px;
}

.checkout-section-card .pagination > .active > a,
.checkout-section-card .pagination > .active > span {
    background: #f9004d;
    border-color: #f9004d;
    color: #fff;
}

.checkout-section-card .pagination > li > a:hover {
    background: #f9004d;
    border-color: #f9004d;
    color: #fff;
}

/* Required field indicator */
.account-form .form-group.required > label::after,
.checkout-section-card .form-group.required > label::after {
    content: ' *';
    color: #f9004d;
    font-weight: 700;
}

@media (max-width: 767px) {
    .checkout-section-card .single-service.service__style--2 {
        padding: 15px 10px;
    }
}

/* ================================
   Product Page Styles
   ================================ */

/* Product info card form controls */
.product-info-card .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.product-info-card .form-control:focus {
    outline: none;
    border-color: #f9004d;
    box-shadow: 0 0 0 2px rgba(249, 0, 77, 0.1);
}

.product-info-card select.form-control {
    appearance: auto;
}

.product-info-card input[type="radio"],
.product-info-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    accent-color: #f9004d;
    display: inline-block;
}

.product-info-card .radio label,
.product-info-card .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    padding: 4px 0;
}

/* Product page responsive */
@media (max-width: 767px) {
    .product-info-card {
        padding: 20px !important;
    }

    .product-info-card h1 {
        font-size: 22px !important;
    }

    .product-actions .d-flex {
        flex-direction: column;
    }

    .product-actions .rn-button-style--2 {
        width: 100%;
    }
}
