/* ========================================
   GURUVAYOOR CART STYLES
   Based on the provided template
======================================== */


/* Base Styles */

.wide_gv_cart_wrapper {
    box-sizing: border-box;
}

.wide_gv_cart_wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html,
body {
    height: 100%;
    width: 100%;
}

.wide_gv_cart_wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 40px 20px;
    overflow: auto;
}

.wide_gv_cart_wrapper .wide_gv_cart_layout {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}


/* Header */

.wide_gv_cart_header {
    text-align: center;
    margin-bottom: 40px;
}

.wide_gv_cart_header h1 {
    color: #003366;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wide_gv_cart_header p {
    color: #666;
    font-size: 18px;
}


/* Cart Layout */

.wide_gv_cart_layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}


/* Mobile Cart Toggle */

.wide_gv_mobile_cart_toggle {
    display: none;
}


/* Cart Items Section */

.wide_gv_cart_items_section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
}

.wide_gv_section_title {
    color: #003366;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FF9933;
}


/* Cart Items List */

.wide_gv_cart_items_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* Cart Item */

.wide_gv_cart_item {
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wide_gv_cart_item.wide_gv_expanded {
    border-color: #FF9933;
}


/* Item Header */

.wide_gv_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.wide_gv_item_header:hover {
    background: #ffffff;
}

.wide_gv_item_header_left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.wide_gv_collapse_icon {
    width: 24px;
    height: 24px;
    fill: #003366;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.wide_gv_cart_item.wide_gv_expanded .wide_gv_collapse_icon {
    transform: rotate(180deg);
}

.wide_gv_item_info_collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.wide_gv_item_type {
    display: inline-block;
    background: linear-gradient(135deg, #FF9933 0%, #e68829 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wide_gv_item_name {
    color: #003366;
    font-size: 16px;
    font-weight: 700;
}

.wide_gv_item_quick_info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wide_gv_quick_info_badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #003366;
    font-weight: 600;
}

.wide_gv_quick_info_badge svg {
    width: 16px;
    height: 16px;
    fill: #FF9933;
}


/* Remove Button */

.wide_gv_remove_btn {
    background: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wide_gv_remove_btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}


/* Item Details Expanded */

.wide_gv_item_details_expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wide_gv_cart_item.wide_gv_expanded .wide_gv_item_details_expanded {
    max-height: 2000px;
}

.wide_gv_item_details_content {
    padding: 0 20px 20px 20px;
}

.wide_gv_detail_row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.wide_gv_detail_row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wide_gv_detail_label {
    color: #003366;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wide_gv_detail_value {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}


/* Features List */

.wide_gv_features_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wide_gv_feature_item {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.wide_gv_feature_item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #FF9933;
    border-radius: 50%;
}


/* Empty Cart */

.wide_gv_empty_cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.wide_gv_empty_cart svg {
    width: 100px;
    height: 100px;
    fill: #ccc;
    margin-bottom: 20px;
}

.wide_gv_empty_cart h3 {
    font-size: 24px;
    margin-bottom: 10px;
}


/* Order Form Section */

.wide_gv_order_form_section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    position: sticky;
    top: 20px;
}


/* Form Styles */

.wide_gv_form_group {
    margin-bottom: 20px;
}

.wide_gv_form_group label {
    display: block;
    color: #003366;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wide_gv_form_group input,
.wide_gv_form_group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wide_gv_form_group input:focus,
.wide_gv_form_group textarea:focus {
    outline: none;
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.wide_gv_form_group textarea {
    resize: vertical;
    min-height: 80px;
}

.wide_gv_form_group input::placeholder,
.wide_gv_form_group textarea::placeholder {
    color: #adb5bd;
}


/* Order Summary */

.wide_gv_order_summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 25px;
}

.wide_gv_summary_title {
    color: #003366;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wide_gv_summary_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wide_gv_summary_label {
    color: #666;
    font-size: 15px;
    font-weight: 600;
}

.wide_gv_summary_value {
    color: #FF9933;
    font-size: 20px;
    font-weight: 700;
}


/* Order Now Button */

.wide_gv_order_now_btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF9933 0%, #e68829 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.wide_gv_order_now_btn:hover {
    background: linear-gradient(135deg, #e68829 0%, #d67620 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 153, 51, 0.4);
}

.wide_gv_order_now_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Success Modal */

.wide_gv_modal_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: wide_gv_fadeIn 0.3s ease;
}

.wide_gv_modal_overlay.wide_gv_active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wide_gv_success_modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.3);
    text-align: center;
    animation: wide_gv_slideUp 0.4s ease;
    position: relative;
    z-index: 9999;
}

.wide_gv_success_icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: wide_gv_scaleIn 0.5s ease 0.2s backwards;
}

.wide_gv_success_icon svg {
    width: 50px;
    height: 50px;
    fill: #ffffff;
}

.wide_gv_success_modal h2 {
    color: #003366;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.wide_gv_order_number {
    background: linear-gradient(135deg, #FF9933 0%, #e68829 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.wide_gv_success_message {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.wide_gv_close_modal_btn {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wide_gv_close_modal_btn:hover {
    background: linear-gradient(135deg, #004080 0%, #0059b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}


/* Animations */

@keyframes wide_gv_fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wide_gv_slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wide_gv_scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}


/* Cart Notification */

.wide_gv_cart_notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0a875a;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: wide_gv_fadeIn 0.3s ease;
}

.wide_gv_cart_notification.wide_gv_show {
    display: flex;
}

.wide_gv_cart_notification.wide_gv_hide {
    display: none;
}

.wide_gv_cart_icon {
    font-size: 20px;
}


/* Responsive Styles */

@media (max-width: 1024px) {
    .wide_gv_cart_layout {
        grid-template-columns: 1fr;
    }
    .wide_gv_order_form_section {
        position: relative;
        top: 0;
    }
    .wide_gv_cart_header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .wide_gv_cart_wrapper {
        padding: 20px 15px;
    }
    .wide_gv_cart_header {
        margin-bottom: 25px;
    }
    .wide_gv_cart_header h1 {
        font-size: 28px;
    }
    .wide_gv_cart_header p {
        font-size: 15px;
    }
    /* Mobile Cart Toggle */
    .wide_gv_mobile_cart_toggle {
        display: block;
        width: 100%;
        background: #ffffff;
        border: 2px solid #FF9933;
        border-radius: 12px;
        padding: 18px 20px;
        margin-bottom: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
    }
    .wide_gv_mobile_cart_toggle:hover {
        background: #fff8f0;
        box-shadow: 0 6px 20px rgba(255, 153, 51, 0.15);
    }
    .wide_gv_toggle_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .wide_gv_toggle_left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .wide_gv_toggle_icon {
        width: 28px;
        height: 28px;
        fill: #FF9933;
        transition: transform 0.3s ease;
    }
    .wide_gv_mobile_cart_toggle.wide_gv_collapsed .wide_gv_toggle_icon {
        transform: rotate(180deg);
    }
    .wide_gv_toggle_text {
        color: #003366;
        font-size: 18px;
        font-weight: 700;
    }
    .wide_gv_toggle_count {
        background: linear-gradient(135deg, #FF9933 0%, #e68829 100%);
        color: #ffffff;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
    }
    /* Cart Section Collapse on Mobile */
    .wide_gv_cart_items_section {
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding-top: 0;
        padding-bottom: 0;
    }
    .wide_gv_cart_items_section.wide_gv_mobile_expanded {
        max-height: 10000px;
        padding: 20px;
        margin-bottom: 20px;
    }
    .wide_gv_order_form_section {
        padding: 25px 20px;
    }
    .wide_gv_section_title {
        font-size: 20px;
    }
    .wide_gv_item_name {
        font-size: 15px;
    }
    .wide_gv_detail_row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .wide_gv_success_modal {
        padding: 30px 25px;
    }
    .wide_gv_success_modal h2 {
        font-size: 26px;
    }
    .wide_gv_order_number {
        font-size: 18px;
        padding: 10px 20px;
    }
    .wide_gv_success_message {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wide_gv_cart_header h1 {
        font-size: 24px;
    }
    .wide_gv_item_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    .wide_gv_item_header_left {
        width: 100%;
    }
    .wide_gv_remove_btn {
        width: 100%;
    }
    .wide_gv_item_quick_info {
        width: 100%;
    }
    .wide_gv_order_now_btn {
        font-size: 16px;
        padding: 14px;
    }
    .wide_gv_success_modal {
        padding: 25px 20px;
    }
    .wide_gv_success_icon {
        width: 70px;
        height: 70px;
    }
    .wide_gv_success_icon svg {
        width: 40px;
        height: 40px;
    }
    .wide_gv_success_modal h2 {
        font-size: 22px;
    }
}