/**
 * WooCommerce Custom Theme Styles - Digitz Theme
 * 
 * @package Digitz Theme
 * @subpackage WooCommerce
 */

/* ============================================
   GENERAL WOOCOMMERCE STYLING
   ============================================ */

.woocommerce {
    font-size: 1rem;
    line-height: 1.6;
}

.woocommerce-page,
.woocommerce {
    margin: 0;
    padding: 0;
}

/* Remove default WooCommerce table styling */
.woocommerce table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table {
    border: none;
    background: transparent;
}

.woocommerce table.shop_table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.woocommerce table.shop_table tbody tr:hover {
    background-color: #f8f9fa;
}

.woocommerce-account .woocommerce-MyAccount-content{
width: 100%;
}

.woocommerce-MyAccount-navigation-link--downloads{
 display: none;
}

/* ============================================
   ACCOUNT SECTIONS
   ============================================ */

.woocommerce-account {
    padding: 3rem 0;
}

.account-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-page-title i {
    color: #1f97d3;
    font-size: 2rem;
}

.account-subtitle {
    font-size: 1rem;
    color: #939598;
    margin: 0;
}

/* Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation{
    width: 100%;
}
.woocommerce-MyAccount-navigation-link::before{
    display: none !important;
}
.account-nav {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0;
    border: 1px solid #e9ecef;
}

.account-nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.account-nav-list .nav-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.account-nav-list .nav-item:hover,
.account-nav-list .nav-item.is-active {
    border-left-color: #1f97d3;
    background-color: #e8f4f8;
}

.account-nav-list .nav-link {
    color: #000;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.account-nav-list .nav-item.is-active .nav-link {
    color: #1f97d3;
}

.account-nav-list .nav-link i {
    width: 20px;
    text-align: center;
}

.account-nav-list .nav-link:hover {
    color: #1f97d3;
}

/* ============================================
   ACCOUNT CARDS & SECTIONS
   ============================================ */

.account-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
    transition: all 0.3s ease;
}

.account-card:hover {
    box-shadow: 0 4px 20px rgba(31, 151, 211, 0.12);
    transform: translateY(-2px);
}

.account-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.account-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1f97d3 0%, #1682b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(31, 151, 211, 0.3);
}

.register-icon {
    background: linear-gradient(135deg, #918bcb 0%, #6f60aa 100%);
    box-shadow: 0 4px 15px rgba(145, 139, 203, 0.3);
}

.account-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.account-subtitle {
    font-size: 0.95rem;
    color: #939598;
    margin: 0;
}

.register-header .account-subtitle {
    color: #939598;
}

/* Stat Cards */
.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 20px rgba(31, 151, 211, 0.12);
    transform: translateY(-2px);
}

.woocommerce-account,
.woocommerce-orders,
.woocommerce-order-details,
.woocommerce-addresses,
.edit-address-section,
.edit-account-section,
.woocommerce-accounts-section {
    width: 100%;
    flex: 0 0 100%;
}

/* Fix for page.php row issue */
.general-sec .row > h1.heading {
    width: 100%;
    flex: 0 0 100%;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1f97d3 0%, #1682b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-spent .stat-icon {
    background: linear-gradient(135deg, #918bcb 0%, #6f60aa 100%);
}

.stat-card-addresses .stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #939598;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Account Section Box */
.account-section-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-title,
.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i,
.form-title i {
    color: #1f97d3;
    font-size: 1.5rem;
}

.view-all-link,
.edit-link {
    color: #1f97d3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-link:hover,
.edit-link:hover {
    color: #1682b8;
    gap: 0.75rem;
}

/* Info Block */
.info-block {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-block:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: #939598;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1rem;
    color: #000;
    margin: 0;
    font-weight: 500;
}

/* ============================================
   ORDERS TABLE
   ============================================ */

.orders-table-wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
}

.orders-table {
    margin-bottom: 0;
}

.orders-table thead {
    background-color: #f8f9fa;
}

.orders-table thead th {
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.25rem;
    vertical-align: middle;
}

.orders-table tbody td {
    border-color: #e9ecef;
    padding: 1.25rem;
    vertical-align: middle;
}

.order-row {
    transition: background-color 0.3s ease;
}

.order-row:hover {
    background-color: #f8f9fa;
}

.order-number {
    color: #1f97d3;
    font-size: 1rem;
}

.order-date {
    color: #939598;
    font-size: 0.9rem;
}

.items-count {
    color: #000;
    font-weight: 500;
}

.order-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.order-status.bg-completed,
.order-status.bg-processing,
.order-status.bg-on-hold {
    background-color: #cce5ff !important;
    color: #004085 !important;
}

.order-status.bg-pending,
.order-status.bg-failed {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.order-status.bg-cancelled,
.order-status.bg-refunded {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.order-total {
    color: #1f97d3;
    font-size: 1rem;
}

/* ============================================
   ORDER DETAILS
   ============================================ */

.order-details-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.order-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-title i {
    color: #1f97d3;
}

.order-meta {
    font-size: 0.95rem;
    color: #939598;
    margin: 0.5rem 0 0 0;
}

.order-date {
    color: #1f97d3;
    font-weight: 600;
}

.order-status-large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Order Section */
.order-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
}

.order-items-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.order-items-table tbody tr:last-child {
    border-bottom: none;
}

.item-name {
    color: #1f97d3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.item-name:hover {
    color: #1682b8;
    text-decoration: underline;
}

.item-meta {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Order Totals */
.totals-breakdown {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.total-row.total {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.total-row.subtotal .label,
.total-row.shipping .label,
.total-row.tax .label {
    color: #939598;
}

/* Info Card */
.info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: #1f97d3;
}

.formatted-address {
    line-height: 1.8;
    color: #000;
    font-style: normal;
    margin-bottom: 1rem;
}

.address-meta {
    color: #939598;
    font-size: 0.9rem;
}

/* ============================================
   ADDRESS MANAGEMENT
   ============================================ */

.address-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
    transition: all 0.3s ease;
}

.address-box:hover {
    box-shadow: 0 4px 20px rgba(31, 151, 211, 0.12);
    transform: translateY(-2px);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.address-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.address-title i {
    color: #1f97d3;
}

.address-content {
    margin-top: 1rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
    max-width: 100%;
}

.form-section {
    background: white;
    padding: 0;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-subtitle i {
    color: #1f97d3;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: #1f97d3;
}

.form-control,
.form-select {
    border: 1px solid #d0d5dd;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #1f97d3;
    box-shadow: 0 0 0 3px rgba(31, 151, 211, 0.1);
    outline: none;
}

.form-control-lg,
.form-select-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.form-text.text-muted {
    color: #939598 !important;
    font-size: 0.85rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #1f97d3;
    border-color: #1f97d3;
    box-shadow: inset 0 0 0 0.25rem #fff;
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    color: #000;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e8f4f8;
    border-left-color: #1f97d3;
    color: #004085;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-sm {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.alert-lg {
    padding: 2rem;
}

.alert-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #1f97d3;
    color: white;
    box-shadow: 0 4px 15px rgba(31, 151, 211, 0.3);
}

.btn-primary:hover {
    background-color: #1682b8;
    box-shadow: 0 6px 25px rgba(31, 151, 211, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid #1f97d3;
    color: #1f97d3;
}

.btn-outline-primary:hover {
    background-color: #1f97d3;
    color: white;
}

.btn-secondary {
    background-color: #918bcb;
    color: white;
    box-shadow: 0 4px 15px rgba(145, 139, 203, 0.3);
}

.btn-secondary:hover {
    background-color: #6f60aa;
    box-shadow: 0 6px 25px rgba(145, 139, 203, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid #939598;
    color: #939598;
}

.btn-outline-secondary:hover {
    background-color: #939598;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-w-100,
.w-100 {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: #1f97d3;
    padding: 0;
    box-shadow: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

.btn-link:hover {
    color: #1682b8;
    transform: none;
    box-shadow: none;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    margin-bottom: 0;
    background-color: transparent;
}

.table thead th {
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    color: #000;
    background-color: #f8f9fa;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td,
.table th {
    vertical-align: middle;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: capitalize;
    display: inline-block;
}

.bg-primary {
    background-color: #1f97d3 !important;
    color: white;
}

.bg-success {
    background-color: #28a745 !important;
    color: white;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: white;
}

.bg-info {
    background-color: #17a2b8 !important;
    color: white;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: white;
}

/* ============================================
   CHECKOUT
   ============================================ */

.checkout-section {
    padding: 3rem 0;
}

.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
}

.checkout-header p {
    font-size: 1rem;
    color: #939598;
}

.checkout-review-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(31, 151, 211, 0.08);
}

.review-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-title i {
    color: #1f97d3;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .account-page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .order-title {
        font-size: 1.5rem;
    }

    .checkout-review-wrapper {
        margin-top: 2rem;
    }

    .checkout-review-wrapper.sticky-top {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .account-card {
        padding: 1.5rem;
    }

    .account-page-title {
        font-size: 1.75rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin: 0 auto;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-all-link,
    .edit-link {
        align-self: flex-start;
    }

    .address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-fields-grid {
        display: flex;
        flex-direction: column;
    }

    .col-form-field {
        width: 100%;
    }

    .table {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .woocommerce-accounts-section {
        margin-top: 2rem;
    }

    .account-page-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .account-page-title i {
        font-size: 1.5rem;
    }

    .account-card {
        padding: 1.25rem;
    }

    .account-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .account-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .section-title i {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .orders-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .orders-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .alert {
        padding: 1rem;
    }

    .alert-lg {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-danger {
    color: #dc3545;
}

.text-muted {
    color: #939598;
}

.text-success {
    color: #28a745;
}

.text-center {
    text-align: center;
}

.text-md-end {
    text-align: right;
}

.border-top {
    border-top: 1px solid #e9ecef;
}

.border-bottom {
    border-bottom: 1px solid #e9ecef;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}
