/**
 * WooCommerce Custom Styles
 * AgenWebsite Theme
 * Version: 1.0.0
 */

/* ==========================================================================
   WooCommerce Global Overrides
   ========================================================================== */

.woocommerce-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.woocommerce .woocommerce-breadcrumb {
    padding: 20px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
    position: relative;
    font-size: 14px;
}

.woocommerce-message {
    background-color: #d4edda;
    border-color: var(--primary-color);
    color: #155724;
}

.woocommerce-info {
    background-color: #d1ecf1;
    border-color: var(--secondary-color);
    color: #0c5460;
    padding-left: 45px;
}

.woocommerce-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.woocommerce-error li {
    list-style: none;
}

/* Primary Button Styles */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce #respond input#submit {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce input.button.alt:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.2);
    color: white;
}

/* Secondary Button Styles */
.woocommerce a.button.alt,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled {
    background: var(--secondary-color);
}

/* Form Styles */
.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background-color: #fff;
}

.woocommerce form .form-row input[type="text"]:focus,
.woocommerce form .form-row input[type="email"]:focus,
.woocommerce form .form-row input[type="tel"]:focus,
.woocommerce form .form-row input[type="password"]:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* ==========================================================================
   My Account Pages
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a i {
    font-size: 16px;
    width: 20px;
    margin-right: 12px;
    color: var(--primary-color);
    transition: var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(255, 102, 0, 0.05);
    color: var(--primary-color);
    padding-left: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover i {
    transform: translateX(3px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--primary-color);
    color: white;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a i {
    color: white;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dashboard Welcome */
.woocommerce-MyAccount-content > p:first-child {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* ==========================================================================
   Login & Register Pages
   ========================================================================== */

.woocommerce-form-login,
.woocommerce-form-register {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-form-login-wrapper,
.woocommerce-form-register-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
}

.woocommerce-form-login h2::after,
.woocommerce-form-register h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Input Groups Styling */
.woocommerce-form-login .input-group,
.woocommerce-form-register .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.woocommerce-form-login .input-group:focus-within,
.woocommerce-form-register .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.woocommerce-form-login .input-group-text,
.woocommerce-form-register .input-group-text {
    background: #f8f9fa;
    border: none;
    border-right: 1px solid #dee2e6;
    padding: 12px 16px;
    color: var(--primary-color);
}

.woocommerce-form-login .input-group-text i,
.woocommerce-form-register .input-group-text i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.woocommerce-form-login .form-control,
.woocommerce-form-register .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 15px;
}

.woocommerce-form-login .form-control:focus,
.woocommerce-form-register .form-control:focus {
    box-shadow: none;
    outline: none;
}

/* Form Row Spacing */
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 20px;
}

/* Button Styling */
.woocommerce-form-login button[type="submit"],
.woocommerce-form-register button[type="submit"] {
    background: var(--primary-color);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.woocommerce-form-login button[type="submit"]:hover,
.woocommerce-form-register button[type="submit"]:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.2);
}

.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.woocommerce-form__label-for-checkbox span {
    font-size: 14px;
    color: var(--text-dark);
}

/* Form Labels */
.woocommerce-form-login label,
.woocommerce-form-register label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-form-login .required,
.woocommerce-form-register .required {
    color: var(--primary-color);
    font-weight: 700;
}

/* Checkbox Styling */
.woocommerce-form-login .form-check,
.woocommerce-form-register .form-check {
    padding-left: 0;
}

.woocommerce-form-login .form-check-input,
.woocommerce-form-register .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
}

.woocommerce-form-login .form-check-label,
.woocommerce-form-register .form-check-label {
    padding-left: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

.woocommerce-LostPassword {
    margin-top: 20px;
    text-align: center;
}

.woocommerce-LostPassword a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.woocommerce-LostPassword a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   Product Pages
   ========================================================================== */

/* Single Product */
.single-product .product {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.woocommerce div.product div.images {
    margin-bottom: 30px;
}

.woocommerce div.product div.images img {
    border-radius: var(--border-radius);
}

.woocommerce div.product div.summary {
    padding: 20px;
}

.woocommerce div.product .product_title {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce div.product .price {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce div.product .price del {
    color: var(--text-muted);
    font-size: 20px;
    margin-right: 10px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* Product Gallery */
.woocommerce div.product div.images .flex-control-thumbs {
    margin-top: 20px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    padding: 5px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    border-color: var(--primary-color);
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #dee2e6;
    padding: 0;
    margin: 0 0 30px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    margin: 0 30px 0 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    padding: 15px 0;
    display: block;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Product Archive */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce table.shop_table {
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
    border-radius: 10px;
}

.woocommerce table.shop_table th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    padding: 20px;
    text-align: left;
}

.woocommerce table.shop_table td {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.woocommerce table.shop_table .product-name a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce table.shop_table .product-name a:hover {
    color: var(--primary-color);
}

.woocommerce .quantity .qty {
    width: 60px;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    text-align: center;
}

.woocommerce table.shop_table .product-remove a {
    color: #dc3545;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce table.shop_table .product-remove a:hover {
    color: #a02c2c;
}

/* Cart Actions */
.woocommerce .cart-collaterals {
    margin-top: 40px;
}

.woocommerce .cart-collaterals .cart_totals {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce .cart-collaterals .cart_totals h2 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
}

.woocommerce .cart-collaterals .cart_totals table tr {
    border-bottom: 1px solid #dee2e6;
}

.woocommerce .cart-collaterals .cart_totals table tr:last-child {
    border-bottom: none;
}

.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
    padding: 15px 0;
}

.woocommerce .cart-collaterals .cart_totals .order-total th,
.woocommerce .cart-collaterals .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Coupon Form */
.woocommerce .coupon {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce .coupon label {
    font-weight: 600;
    color: var(--text-dark);
}

.woocommerce .coupon input[type="text"] {
    flex: 1;
    max-width: 300px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
}

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

.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    /* background: white; */
    /* border-radius: var(--border-radius); */
    /* padding: 30px; */
    /* margin-bottom: 30px; */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
}

.woocommerce-checkout h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.woocommerce-checkout #order_review {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce-checkout #order_review_heading {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 25px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    margin-bottom: 30px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid #dee2e6;
    padding-top: 20px;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
}

.woocommerce-checkout #payment .payment_methods {
    border: none;
    margin: 0;
}

.woocommerce-checkout #payment .payment_methods li {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    padding: 20px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.woocommerce-checkout #payment .payment_methods li.selected {
    border-color: var(--primary-color);
}

.woocommerce-checkout #payment .payment_methods li label {
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.woocommerce-checkout #payment .place-order {
    margin-top: 20px;
}

.woocommerce-checkout #payment #place_order {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

/* ==========================================================================
   Order Received / Thank You Page
   ========================================================================== */

.woocommerce-order-received .woocommerce-order {
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.woocommerce-order-received .woocommerce-order h1 {
    color: #28a745;
    font-size: 36px;
    margin-bottom: 20px;
}

.woocommerce-order-received .woocommerce-order p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
}

/* ==========================================================================
   WooCommerce Modal Notifications
   ========================================================================== */

.agen-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.agen-modal {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    padding: 0;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.agen-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agen-modal-header.success {
    background: #28a745;
    color: white;
}

.agen-modal-header.error {
    background: #dc3545;
    color: white;
}

.agen-modal-header.info {
    background: var(--secondary-color);
    color: white;
}

.agen-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 0!important;
    color: #FFF !important;
    margin: 0 !important;
    padding: 0 !important;
}

.agen-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.agen-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.agen-modal-body {
    padding: 30px;
}

.agen-modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.agen-modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.agen-modal-body a:hover {
    color: #ff8533;
    text-decoration: underline;
}

.agen-modal-body ul,
.agen-modal-body ol {
    margin: 10px 0;
    padding-left: 20px;
}

.agen-modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.agen-modal-body strong,
.agen-modal-body b {
    font-weight: 600;
    color: var(--text-dark);
}

.agen-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.agen-modal-btn {
    padding: 10px 25px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.agen-modal-btn-primary {
    background: var(--primary-color);
    color: white;
    margin-left: 10px;
}

.agen-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.agen-modal-btn-secondary {
    background: #6c757d;
    color: white;
}

.agen-modal-btn-secondary:hover {
    background: #5a6268;
}

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

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 20px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .woocommerce div.product .product_title {
        font-size: 24px;
    }

    .woocommerce div.product .price {
        font-size: 22px;
    }

    .woocommerce-form-login,
    .woocommerce-form-register,
    .woocommerce-form-login-wrapper,
    .woocommerce-form-register-wrapper {
        padding: 30px 20px;
    }

    .woocommerce-form-login h2,
    .woocommerce-form-register h2 {
        font-size: 24px;
    }

    .woocommerce-form-login .input-group-text,
    .woocommerce-form-register .input-group-text {
        padding: 10px 12px;
    }

    .woocommerce table.shop_table {
        font-size: 14px;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 12px;
    }

    .agen-modal {
        margin: 20px;
    }

    .agen-modal-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce table.shop_table .product-thumbnail {
        display: none;
    }

    .woocommerce .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce .coupon input[type="text"] {
        max-width: none;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   Additional Utilities
   ========================================================================== */

.woocommerce-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.woocommerce-page .section-padding {
    padding: 60px 0;
}

.woocommerce-page .text-center {
    text-align: center;
}

.woocommerce-page .mb-4 {
    margin-bottom: 30px;
}

.woocommerce-page .mt-4 {
    margin-top: 30px;
}


/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
}

/* Billing Section */
.billing-section {
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin: 0;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Order Review Section */
.order-review-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
    padding: 0;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 15px;
    text-align: left;
}

.woocommerce-checkout-review-order-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid #dee2e6;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
    color: var(--text-dark);
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid #dee2e6;
    border-bottom: none;
    padding-top: 20px;
}

/* Payment Section */
#payment {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
}

#payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

#payment .payment_methods li {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    margin-bottom: 15px !important;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th {
    color: #FFF !important;
}


#payment .payment_methods li:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 133, 51, 0.05) 100%);
}

#payment .payment_methods li input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

#payment .payment_methods li label {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin: 0;
}

#payment .payment_methods li label input[type="radio"] {
    margin-right: 10px;
}

.payment_box {
    background: #fff;
    padding: 15px;
    margin-top: 15px;
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.6;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8533 100%);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions {
    display: block !important;
}

.woocommerce-terms-and-conditions-wrapper {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
}

.woocommerce-terms-and-conditions-wrapper p {
    margin: 0 !important;
}

/* Required Field Indicator */
.woocommerce-checkout .form-row .required {
    color: var(--primary-color);
}

.woocommerce form .form-row {
    width: 100% !important;
}

.woocommerce-checkout #payment ul.payment_methods li input {
    display: inline-block;
    float: left;
    margin: 9px 10px 0px 0;
}

/* Responsive Design */
@media (max-width: 768px) {

    .billing-section,
    .order-review-wrapper {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    #payment {
        padding: 20px;
    }

    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 12px 8px;
        font-size: 14px;
    }

    .woocommerce-checkout-review-order-table tfoot tr:last-child th,
    .woocommerce-checkout-review-order-table tfoot tr:last-child td {
        font-size: 18px;
    }

    /* Stack form fields on mobile */
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title i {
        margin-bottom: 5px;
    }

    #place_order {
        font-size: 16px;
        padding: 15px;
    }
}